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/matmul without 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/3 with aether::banded::BandedReal and compare it to native double. The ideas are in Banded/emulated real arithmetic.