#include "SIMD.hpp"
#include <iostream>
#include <cmath>
#include <vector>
Go to the source code of this file.
◆ aligned_vector
Type alias for a std::vector with aligned memory allocation.
This provides an aligned vector container compatible with SIMD usage. The alignment used is determined by the macro ALIGN, typically set based on the SIMD instruction set width (e.g., 16 for SSE, 32 for AVX, 64 for AVX-512).
- Template Parameters
-
◆ operator!=()
template<typename T , std::size_t Alignment>
Inequality operator for AlignedAllocator.
Always returns false, as there are no distinguishing stateful properties.
- Template Parameters
-
| T | Type of allocated elements. |
| Alignment | Alignment in bytes. |
- Returns
- false
◆ operator==()
template<typename T , std::size_t Alignment>
Equality operator for AlignedAllocator.
Always returns true as the allocator is stateless and does not manage any per-instance resources.
- Template Parameters
-
| T | Type of allocated elements. |
| Alignment | Alignment in bytes. |
- Returns
- true