Skip to main content

zu_vector/kernels/
mod.rs

1//! Vectorized kernels (perf/02 section 3, perf/11).
2//!
3//! Tier 1 policy throughout: plain scalar Rust in fixed-shape loops the
4//! compiler auto-vectorizes, measured before anything fancier. No
5//! per-ISA intrinsics; portable std::simd goes behind a feature only
6//! where a bench proves tier 1 short. Comparison kernels build the
7//! predicate bitmap a word at a time, one u64 per 64 rows, so the inner
8//! loop has no per-row store or branch.
9
10mod agg;
11mod arith;
12mod cmp;
13mod gather;
14mod hash;
15mod math;
16mod setops;
17mod strings;
18mod temporal;
19
20pub use agg::{count_valid, max_i64, min_i64, sum_f64, sum_i64};
21pub use arith::{BinOp, binary};
22pub use cmp::{CmpOp, compare};
23pub use gather::{compact, gather_u64};
24pub use hash::{hash_slice, hash64};
25pub use math::{MathOp, MathPair, cot, pair, unary};
26pub use setops::intersect_sorted;
27pub use strings::{
28    StrCut, StrFold, StrLen, StrNorm, StrTrim, TrimSet, cut, element_ids, fold, length, normalize,
29    normalized, trim,
30};
31pub use temporal::duration_between;