SciPy

scipy.io.hb_read

scipy.io.hb_read(path_or_open_file)[source]

Read HB-format file.

Parameters:
path_or_open_file : path-like or file-like

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

Returns:
data : scipy.sparse.csc_matrix instance

The data read from the HB file as a sparse matrix.

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.netcdf_variable.typecode

Next topic

scipy.io.hb_write