Fundamental 2D dense Matrix, MatrixView, CSRMatrix, CSCMatrix sparse representations, Dataset containers, and hardware-accelerated BLAS/LAPACK solvers.
| Struct |
Description |
Matrix |
Dense 2D row-major matrix container with striding and view support. |
MatrixView |
Non-owning 2D view over a contiguous or strided matrix memory buffer. |
CSRMatrix |
Compressed Sparse Row (CSR) 2D matrix format. |
CSCMatrix |
Compressed Sparse Column (CSC) 2D matrix format. |
DatasetSplit |
Container holding train and test partitions of a Dataset. |
Dataset |
Machine learning dataset container pairing a feature matrix with targets. |
SVDResult |
Result of Singular Value Decomposition (A=UΣVT). |
QRResult |
Result of QR Decomposition (A=QR). |
EigResult |
Result of Symmetric Eigenvalue Decomposition (AV=VΛ). |
| Trait |
Description |
SparseMatrix |
Base interface trait for 2D sparse matrix representations. |
| Function |
Description |
hstack |
Horizontally stacks a list of matrices with matching row counts. |
vstack |
Vertically stacks a list of matrices with matching column counts. |
spmv |
Sparse matrix-vector multiplication: y = A @ x + bias. |
spvm |
Vector-sparse matrix multiplication: y^T = x^T @ A. |
spmm |
Sparse-Dense matrix multiplication: C = A @ B. |
sddmm |
Sampled Dense-Dense Matrix Multiplication: P = (A @ B) ⊙ S. |
spgemm |
Sparse-sparse matrix multiplication: C = A @ B. |
gemm |
Compute dense matrix product C=AB. |
dense_dot_vec |
Dense matrix-vector product: y = A @ x + bias. |
svd |
Computes the Singular Value Decomposition (SVD) of a matrix A = U * S * Vt. |
qr |
Computes the QR Decomposition of matrix A = Q * R using LAPACK Householder reflectors (dgeqrf/dorgqr). |
cholesky |
Computes the Cholesky factorization of a symmetric positive-definite matrix A = L * L^T. |
lstsq |
Solve linear least-squares problem minx∥Ax−b∥2 using SVD. |
solve |
Solves a square linear system A * x = b using LU decomposition (dgesv/sgesv). |
solve_cholesky |
Solves a symmetric positive definite linear system A * x = b using Cholesky (dposv/sposv). |
inv |
Computes the multiplicative inverse of a square matrix A using LU decomposition (dgetrf/dgetri). |
norm |
Computes the Frobenius matrix norm: |
eigh |
Computes the eigenvalues and eigenvectors of a real symmetric matrix. |
matrix_to_numpy |
Converts a Strata Matrix[dtype] to a NumPy 2D array. |
matrix_from_numpy |
Converts a 2D NumPy ndarray to a Strata Matrix[dtype]. |
csr_to_scipy |
Converts a Strata CSRMatrix[dtype] to a scipy.sparse.csr_matrix. |
csr_from_scipy |
Converts a scipy.sparse.csr_matrix to a Strata CSRMatrix[dtype]. |