Expand description
SIMD-friendly batch math operations.
When the simd feature is enabled, these functions structure computations
to encourage auto-vectorization by the compiler. On wasm32 with
-C target-feature=+simd128, LLVM will use SIMD instructions.
Functionsยง
- batch_
cross - Batch cross products: compute
cross(a[i], b[i])for parallel arrays. - batch_
distance_ sq - Batch squared distances between corresponding point pairs.
- batch_
dot - Batch dot products: compute
dot(a[i], b[i])for parallel arrays. - batch_
normalize - Batch normalize: normalize an array of vectors.
- batch_
transform_ points - Batch transform: apply a
Mat4to an array of points.