How-to guides#
Recipes: one task each, grouped by topic and ordered from first use to advanced. No GPU needed unless the task says so.
Vector algebra#
Cross, dot and matrix products, and rotating with quaternions.
- Vector and matrix cookbook
Write
cross/dot/matmulwithout reaching for a CUDA math intrinsic anywhere.- Rotate a vector with a quaternion
Rotate a vector 90 degrees with a unit quaternion; the page also lists the quaternion surface.
Random numbers#
- Reproducible random numbers
Fill an array with seeded normal draws and prove the stream is reproducible; the page also describes the generator.
Numerics and precision#
- Banded emulated double precision
Compute
1/3withaether::banded::BandedRealand compare it to nativedouble. The ideas are in Banded/emulated real arithmetic.