math#

Compiled versions of fundamental mathematical functions.

Functions

cross_3d(a, b)

Compute the vector product \(a \times b\) between two 3D vectors \(a\) and \(b\).

difference_3d(a, b)

Compute the difference \(a - b\) between two 3D vectors \(a\) and \(b\).

dot_3d(a, b)

Compute the scalar product \(a \cdot b\) between two 3D vectors \(a\) and \(b\).

multiply_3d(r, a)

Multiply a 3D vector \(a\) by a scalar \(r\).

negate_3d(a)

Compute \(-a\) where \(a\) is a 3D vector.

norm_3d(a)

Compute the magnitude of a 3D vector.

sign(x)

Numba-compiled version of the sign function

sum_3d(a, b)

Compute the sum \(a + b\) between two 3D vectors \(a\) and \(b\).