package scipy

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Io.Harwell_boeingSource

Sourceval get_py : string -> Py.Object.t

Get an attribute of this module as a Py.Object.t. This is useful to pass a Python function to another function.

Sourcemodule HBFile : sig ... end
Sourcemodule HBInfo : sig ... end
Sourcemodule HBMatrixType : sig ... end
Sourcemodule MalformedHeader : sig ... end
Sourcemodule Hb : sig ... end

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
Sourceval hb_write : ?hb_info:Py.Object.t -> path_or_open_file:Py.Object.t -> m:[> `Spmatrix ] Np.Obj.t -> unit -> Py.Object.t

Write 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 writing. m : sparse-matrix the sparse matrix to write hb_info : HBInfo 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
OCaml

Innovation. Community. Security.