Expand description
Continuous-grid numerical integration — Simpson / trapezoidal rules (Kahan-
compensated, SIMD-accelerated chunking) over zero-copy mmap-backed f64 grids, plus
the DMA-alignment / state-suspension helpers. Relocated here from
modalities::calculus as STEM math; the VM opcode surface that dispatches these
stays in modalities::calculus (the modality), the numbers live in the solver.
Structs§
- Continuous
Grid - Zero-copy continuous data grid view.
Enums§
Functions§
- detect_
cache_ line_ size - detect_
simd_ width - integrate_
simpsons_ chunked - Simpson’s rule integration (standard, without Kahan compensation).
- integrate_
simpsons_ kahan - Simpson’s rule integration with Kahan summation for precision.
- integrate_
trapezoidal_ chunked - Trapezoidal rule integration (fallback for simpler integrands).
- pack_
f32_ pair - Bit-packs two f32 values into a single 64-bit context field Used for packing step_size and Kahan compensation into the Quin context field
- resolve_
aligned_ byte_ offset - Translates a starting float boundary into a strictly 4096-aligned byte offset assuming the underlying grid is an array of contiguous 64-bit floats (8 bytes).
- unpack_
f32_ pair - Unpacks a 64-bit context field back into two f32 values