Expand description
Performance-critical unsafe optimizations
This module contains unsafe code for performance-critical paths in kernel approximation. All unsafe code is carefully reviewed and documented.
§Safety
All functions in this module that use unsafe code have detailed safety documentation explaining the invariants that must be upheld.
Functions§
- batch_
rbf_ ⚠kernel_ fast - Batch RBF kernel computation with unsafe optimizations
- dot_
product_ ⚠unrolled - Unsafe dot product with manual loop unrolling
- elementwise_
op_ ⚠fast - Fast element-wise operations with unrolled loops
- fast_
cosine_ ⚠features - Fast cosine features computation for Random Fourier Features
- matvec_
multiply_ ⚠fast - Fast matrix-vector multiplication using unsafe optimizations
- rbf_
kernel_ ⚠fast - Fast exponential computation for RBF kernels
- safe_
dot_ product - Safe wrapper for dot product with bounds checking
- safe_
matvec_ multiply - Safe wrapper for matrix-vector multiplication