EBGeometry
Compact, header-only C++ library for fast evaluation of signed distance functions
Loading...
Searching...
No Matches
Functions
EBGeometry::PointSoA Namespace Reference

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.
 

Detailed Description

Namespace for PointSoAT-related compile-time utilities.

Function Documentation

◆ DefaultWidth()

template<typename T >
constexpr size_t EBGeometry::PointSoA::DefaultWidth ( )
constexprnoexcept

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.

Template Parameters
TFloating-point precision type (float or double).
Returns
Optimal W for the current ISA and T.