spectre.Elliptic.ReadH5

Functions

read_matrix(volfiles)

Read matrix representation written by elliptic solver.

spectre.Elliptic.ReadH5.read_matrix(volfiles: H5Vol | Sequence[H5Vol])

Read matrix representation written by elliptic solver.

Parameters:

volfiles – Open spectre H5 volume files that contain volume data written by the ‘BuildMatrix’ phase of an elliptic solve.

Returns: The matrix as a dense numpy array. If memory becomes a concern, we

can change this to a sparse matrix.