pub type CscMatrix = NumCscMatrix<f64>;
Expand description
Defines an alias to NumCscMatrix with f64
Aliased Type§
struct CscMatrix { /* private fields */ }
Implementations§
Source§impl CscMatrix
impl CscMatrix
Sourcepub fn write_matrix_market<P>(
&self,
full_path: &P,
vismatrix: bool,
) -> Result<(), StrError>
pub fn write_matrix_market<P>( &self, full_path: &P, vismatrix: bool, ) -> Result<(), StrError>
Writes a MatrixMarket file
§Input
full_path
– may be a String, &str, or Pathvismatrix
– generate a SMAT file for Vismatrix instead of a MatrixMarket
§Notes
- The vismatrix format is is similar to the MatrixMarket format without the header, and the indices start at zero.
- If the matrix is symmetric, then:
- Only the lower triangle + diagonal will be written (standard MatrixMarket format)
- For vismatrix, the full matrix will be written
§References
- MatrixMarket: https://math.nist.gov/MatrixMarket/formats.html
- MatrixMarket collection: https://suitesparse-collection-website.herokuapp.com/
- Vismatrix: https://github.com/cpmech/vismatrix