Skip to main content

Module matrix

Module matrix 

Source
Expand description

Small column-major dense containers for internal numerics.

Mat and Mat3 come from sparse-ir-sve, where they hold generic scalars (including Df64) for the SVE, polynomial, and kernel-matrix code paths. They are plain column-major Vec<T> buffers with infallible indexing: the first index varies fastest in memory, matching Fortran, BLAS, and tenferro.

Public APIs that expose f64/Complex<f64> matrices use crate::Matrix (TypedTensor<T, Rank<2>>); MatTyped::into_typed and MatTyped::from_typed move between the two without copying.

Structs§

Mat
Column-major dense matrix with infallible indexing.
Mat3
Column-major dense rank-3 array with infallible indexing.

Traits§

MatTyped
Conversions between Mat and tenferro rank-2 tensors