cerberus.interpolation.interpolation_from_file¶
- cerberus.interpolation.interpolation_from_file(path, n_src, n_dest)¶
Generates interpolation data based on a file containing an interpolation matrix.
- Parameters:
path (str) – Location of the text file containing the interpolation matrix.
n_src (int) – Number of values in the source Transferrable.
n_dest (int) – Number of values in the destination Transferrable.
- Raises:
RuntimeError – If the syntax of the text file is incorrect.
- Returns:
- An interpolation matrix and an array
containing indices of the rows of the interpolation matrix containing only zeros.
- Return type:
Tuple[csr_matrix, np.ndarray]