tbplas.h5_load_double

tbplas.h5_load_double(file_name: str, key: str, transpose: bool = False, flatten: bool = False) ndarray

Load a double matrix from hdf5 file.

WARNING: DO NOT change the default value of arguments. Otherwise, A LOT OF functions will not work properly.

Parameters:
  • file_name – name of hdf5 file without the h5 suffix

  • key – name of matrix

  • transpose – whether to transpose the matrix

  • flatten – whether to flatten matrix with only 1 ROW or COLUMN to a ROW vector

Returns:

(num_rows, num_cols) float64 matrix or ROW vector, depending on raw data shape and the ‘flatten’ parameter