SciPy

scipy.io.hb_write

scipy.io.hb_write(path_or_open_file, m, hb_info=None)[source]

Write HB-format file.

Parameters
path_or_open_filepath-like or file-like

If a file-like object, it is used as-is. Otherwise it is opened before writing.

msparse-matrix

the sparse matrix to write

hb_infoHBInfo

contains the meta-data for write

Returns
None

Notes

At the moment not the full Harwell-Boeing format is supported. Supported features are:

  • assembled, non-symmetric, real matrices

  • integer for pointer/indices

  • exponential format for float values, and int format

Previous topic

scipy.io.hb_read

Next topic

scipy.io.wavfile.read