[][src]Function sprs::io::write_matrix_market_sym

pub fn write_matrix_market_sym<'a, N, I, M, P>(
    path: P,
    mat: M,
    sym: SymmetryMode
) -> Result<(), Error> where
    I: 'a + SpIndex + Display,
    N: 'a + PrimitiveKind + Copy + Display,
    M: IntoIterator<Item = (&'a N, (I, I))> + SparseMat,
    P: AsRef<Path>, 

Write a symmetric sparse matrix into the matrix market format.

This function does not enforce the actual symmetry of the matrix, instead only the elements below the diagonal are written.

If sym is SymmetryMode::SkewSymmetric, the diagonal elements are also ignored.

Note that this method can also be used to write general sparse matrices, but this would be slightly less efficient than using write_matrix_market.