Skip to main content

Module matrix

Module matrix 

Source
Expand description

Matrix operations for Trueno

Provides 2D matrix operations with SIMD optimization for linear algebra, machine learning, and scientific computing.

§Module Structure (PMAT-018)

Operations are organized into domain-specific submodules:

  • ops/storage: Constructors and element access
  • ops/arithmetic: Matrix multiplication
  • ops/linear: Transpose, matvec, vecmat
  • ops/ml_ops: Convolution, embedding, pooling

§Example

use trueno::Matrix;

// Create a 2x3 matrix
let m = Matrix::zeros(2, 3);
assert_eq!(m.rows(), 2);
assert_eq!(m.cols(), 3);

Structs§

Matrix
A 2D matrix with row-major storage