pg_utils.numerics.io

Input and output of numerical matrices

Functions

matrices_load_h5(fread)

Load matrices to h5py file/group

matrices_save_h5(fwrite, matrix[, f_attrs, ...])

Save matrices to h5py file/group.

matrix_load_from_group(sp_gp)

Load matrix from h5py group

parse_coo(serialized_obj[, transform])

Retrieve COOrdinate format sparse array from serialized obj

serialize_coo(sp_array[, transform, format])

Retrieve serializable objs of COOrdinate format sparse array

sparse_coo_load_from_group(sp_gp)

Load sparse matrix in coordinate format from h5py group

sparse_coo_save_to_group(sp_matrix, sp_gp)

Save sparse matrix in coordinate format to h5py group

Classes

CompactArrayJSONEncoder(*args, **kwargs)

A Json encoder that puts long arrays on one line