Expand description
High-performance intrinsic functions for Shape
Intrinsics are Rust-implemented functions that provide performance-critical operations while keeping domain logic in Shape stdlib.
These functions are prefixed with __intrinsic_ and should not be called
directly by users - they are wrapped by Shape stdlib functions.
Modules§
- array_
transforms - Array-transform intrinsics — partial migration to typed marshal layer.
- convolution
- Convolution intrinsics — full migration to typed marshal layer.
- distributions
- Statistical distribution intrinsics — full migration to typed marshal layer.
- fft
- FFT (Fast Fourier Transform) intrinsics — full migration to typed marshal layer.
- math
- Math intrinsics — partial migration to typed marshal layer.
- matrix
- Matrix intrinsics — full migration to typed marshal layer.
- matrix_
kernels - SIMD-accelerated matrix kernels operating on
MatrixData. - random
- Random number generation intrinsics — full migration to typed marshal layer.
- recurrence
- Recurrence intrinsics — partial migration to typed marshal layer
(cross-crate-dual-consumer pattern; see
docs/defections.md2026-05-07 intrinsics-typed-CC entry’s N1 sub-decision). - rolling
- Rolling window intrinsics — partial migration to typed marshal layer.
- statistical
- Statistical intrinsics — full migration to typed marshal layer.
- stochastic
- Stochastic process intrinsics — full migration to typed marshal layer.
- vector
- Vector intrinsics — element-wise SIMD operations on f64 / i64 typed arrays.
Structs§
- Intrinsics
Registry - Global intrinsics registry
Functions§
- extract_
f64 - Extract a f64 from an intrinsic argument. Phase 1.B reads the slot’s
8 bytes as
f64directly — variadic intrinsic callers carry the kind contract per registration. - extract_
f64_ array - Extract a
Vec<f64>from an intrinsic array argument. - extract_
str - Extract a string reference from an intrinsic argument. Phase 1.B
reads the slot bits as
Arc<String>::into_raw-shaped per registeredstringparam; returns the borrowed string. - extract_
usize - Extract a
usizefrom an intrinsic argument (window size / period). - f64_
vec_ to_ float_ array - Build a
KindedSlottyped FloatArray from aVec<f64>. Seef64_vec_to_nb_array— Phase 2c rebuild deferral. - f64_
vec_ to_ nb_ array - Build a
KindedSlotarray from aVec<f64>. Phase 2c lands the properHeapValue::TypedArray(TypedArrayData::F64)constructor. - i64_
vec_ to_ nb_ int_ array - Build a
KindedSlottyped IntArray from aVec<i64>. See above. - option_
i64_ vec_ to_ nb - Build a
KindedSlotIntArray with validity bitmap fromVec<Option<i64>>. Phase 2c rebuild deferral. - try_
extract_ i64_ slice - Try to read an i64 slice directly from a
KindedSlotIntArray. Phase 1.B: deferred — returnsNone.
Type Aliases§
- Intrinsic
Fn - Function signature for intrinsics.