pub trait SparseFromDense<T> {
// Required method
fn from_dense_matrix(
mat: MatRef<'_, T>,
format: CompressedSparseFormat,
) -> Self;
}Expand description
Builds a CompressedSparseData2 from a dense faer matrix.
An extension trait rather than an inherent method, as the sparse structure
lives in bixverse-sparse, which does not depend on faer.
Required Methods§
Sourcefn from_dense_matrix(mat: MatRef<'_, T>, format: CompressedSparseFormat) -> Self
fn from_dense_matrix(mat: MatRef<'_, T>, format: CompressedSparseFormat) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".