scipy.io.mmwrite

scipy.io.mmwrite(target, a, comment='', field=None, precision=None)

Writes the sparse or dense matrix A to a Matrix Market formatted file.

Inputs:

target - Matrix Market filename (extension .mtx) or open file object a - sparse or full matrix comment - comments to be prepended to the Matrix Market file field - ‘real’ | ‘complex’ | ‘pattern’ | ‘integer’ precision - Number of digits to display for real or complex values.

Previous topic

scipy.io.mmread

Next topic

scipy.io.save_as_module

This Page

Quick search