This is documentation for an old release of SciPy (version 1.8.0). Read this page in the documentation of the latest stable release (version 1.15.1).
scipy.io.mmread#
- scipy.io.mmread(source)[source]#
Reads the contents of a Matrix Market file-like ‘source’ into a matrix.
- Parameters
- sourcestr or file-like
Matrix Market filename (extensions .mtx, .mtz.gz) or open file-like object.
- Returns
- andarray or coo_matrix
Dense or sparse matrix depending on the matrix format in the Matrix Market file.