Linear Algebra
Matrix operations, decompositions, and solvers (BLAS/LAPACK).
cholesky
Cholesky factorization of a symmetric positive-definite matrix.
cholesky(A) → r
det
Matrix determinant.
det(A) → r
dot
Dot product of two vectors.
dot(a, b) → r
eig
Eigenvalue decomposition.
eig(A) → r
gemm
General matrix-matrix multiply. Computes A * B.
gemm(A, B) → r
gemv
General matrix-vector multiply. Computes A * x.
gemv(A, x) → r
inv
Matrix inverse.
inv(A) → r
lu
LU factorization with partial pivoting.
lu(A) → r
norm
Euclidean norm (L2 norm) of a vector.
norm(a) → r
qr
QR factorization.
qr(A) → r
rank
Matrix rank (number of linearly independent rows/columns).
rank(A) → r
solve
Solve the linear system A * x = b.
solve(A, b) → r
svd
Singular value decomposition.
svd(A) → r
trace
Matrix trace (sum of diagonal elements).
trace(A) → r