Expand description
SIMD-accelerated matrix kernels operating on MatrixData.
All functions operate directly on MatrixData (row-major, SIMD-aligned)
to avoid the overhead of nested-array extraction in the old matrix.rs.
Functionsยง
- matrix_
add - Element-wise matrix addition: C = A + B (same dimensions).
- matrix_
determinant - Matrix determinant via LU decomposition (partial pivoting).
- matrix_
element_ mul - Element-wise (Hadamard) multiplication: C[i,j] = A[i,j] * B[i,j].
- matrix_
inverse - Matrix inverse via Gauss-Jordan elimination. Only works for square matrices.
- matrix_
matmul - Matrix multiplication: C = A * B. A is (m x k), B is (k x n), result is (m x n).
- matrix_
matvec - Matrix-vector multiplication: y = A * v. A is (m x n), v has length n, result has length m.
- matrix_
scale - Scalar multiplication: C = A * scalar.
- matrix_
sub - Element-wise matrix subtraction: C = A - B (same dimensions).
- matrix_
trace - Matrix trace: sum of diagonal elements.
- matrix_
transpose - Matrix transpose: B = A^T.