|
EBGeometry
Compact, header-only C++ library for fast evaluation of signed distance functions
|
Namespace for PointSoAT-related compile-time utilities. More...
Functions | |
| template<typename T > | |
| constexpr size_t | DefaultWidth () noexcept |
| Returns the SIMD-optimal SoA width (points per PointSoAT group) for type T on the current target ISA. | |
Namespace for PointSoAT-related compile-time utilities.
Returns the SIMD-optimal SoA width (points per PointSoAT group) for type T on the current target ISA.
Same mapping as TriangleSoA::DefaultWidth<T>() – the width that fills one SIMD register exactly. Not a member of PointSoAT itself: that class is templated on W, so a member couldn't be used to compute W's own default.
| ISA | T=float | T=double |
|---|---|---|
| AVX-512F | 16 | 8 |
| AVX | 8 | 4 |
| otherwise | 4 | 4 |
Usage: size_t W = EBGeometry::PointSoA::DefaultWidth<T>() as a template-parameter default.
| T | Floating-point precision type (float or double). |