Template Class LaneQuantizer
Defined in File guru.hpp
Class Documentation
-
template<class T, class Arch = xsimd::default_arch>
class LaneQuantizer One 1D fit’s leaf-table quantize with its constants hoisted into registers.
ids(x)andin_domain(x)classify a batch of points lane for lane identical toFunction::leaf_id, so a caller fusing several regimes folds the lanes withxsimd::selectwhile they are still in registers — branchless whatever a compiler makes of the scalar ternary. Preconditionsupports(f): one subtree with a live leaf table (assert- guarded in the constructor). xsimd only: every ISA xsimd targets runs it.Public Types
-
using mask_type = typename batch_type::batch_bool_type
Public Functions
-
inline mask_type in_domain(batch_type x) const noexcept
lower <= x <= upperper lane; NaN and ±Inf fail (positive logic).
-
inline id_batch_type ids(batch_type x) const noexcept
Leaf id per lane. An out-of-domain lane reads a clamped, valid table entry — mask it with
in_domain.
-
using mask_type = typename batch_type::batch_bool_type