pymor.tools.io.matrices
¶
Module Contents¶
- pymor.tools.io.matrices.load_matrix(path, key=None)[source]¶
Load matrix from file.
- Parameters:
path – Path to the file (
str
orpathlib.Path
).key – Key of the matrix (only for NPY, NPZ, and MATLAB files).
- Returns:
matrix –
NumPy array
ofSciPy spmatrix
.- Raises:
IOError – If loading fails.