scipy.io.mminfo

scipy.io.mminfo(source)[source]

Return size and storage parameters from Matrix Market file-like ‘source’.

Parameters
sourcestr or file-like

Matrix Market filename (extension .mtx) or open file-like object

Returns
rowsint

Number of matrix rows.

colsint

Number of matrix columns.

entriesint

Number of non-zero entries of a sparse matrix or rows*cols for a dense matrix.

formatstr

Either ‘coordinate’ or ‘array’.

fieldstr

Either ‘real’, ‘complex’, ‘pattern’, or ‘integer’.

symmetrystr

Either ‘general’, ‘symmetric’, ‘skew-symmetric’, or ‘hermitian’.