pymor.tools.io.matrices¶ Module Contents¶ pymor.tools.io.matrices.load_matrix(path, key=None)[source]¶ Load matrix from file. Parameters pathPath to the file (str or pathlib.Path). keyKey of the matrix (only for NPY, NPZ, and MATLAB files). Returns matrixNumPy array of SciPy spmatrix. Raises IOErrorIf loading fails. pymor.tools.io.matrices.save_matrix(path, matrix, key=None)[source]¶ Save matrix to file. Parameters pathPath to the file (str or pathlib.Path). matrixMatrix to save. keyKey of the matrix (only for NPY, NPZ, and MATLAB files). Raises IOErrorIf saving fails.