Writes the sparse or dense matrix A to a Matrix Market formatted file.
target : file
Matrix Market filename (extension .mtx) or open file object
a : array like
Sparse or full matrix
comment : str
comments to be prepended to the Matrix Market file
field : {‘real’, ‘complex’, ‘pattern’, ‘integer’}, optional
precision : :
Number of digits to display for real or complex values.
scipy.io.mmread
scipy.io.save_as_module
Enter search terms or a module, class or function name.