Expand description
Sparse operands and the traits the solvers consume.
§Index widths
SvdMat defaults to u32 column indices with u64 row pointers. Against
usize-everywhere that is 12 bytes per non-zero instead of 16 for f64 data
(8 instead of 16 for f32), and the separate pointer width keeps matrices with
more than u32::MAX non-zeros representable. Callers who need wider indices can
name them: SvdMat<f64, u64, u64>.
Re-exports§
pub use kernels::DEFAULT_SCRATCH_BUDGET;pub use masked::MaskedCsMat;
Modules§
Traits§
- Sparse
Mat - The operand interface the Krylov solvers (
crate::lanczos,crate::irlba) need: shape and a matrix-vector product. - Sparse
MatDense - Blocked products, needed by the randomized solvers.
Functions§
- apply_
centering - Subtract the rank-1 centering term from an uncentered product. Public so an
implementor writing a fused
mul_dense_centeredcan reuse it. - total_
squared_ norm ‖A‖²_F, or the centered version whenmeansis supplied. What the solvers store inSvdRec::total_squared_norm.
Type Aliases§
- SvdMat
- An owned sparse matrix. Defaults to
u32indices andu64row pointers. - SvdMat
View - A borrowed sparse matrix. Defaults to
u32indices andu64row pointers.