comet_maths.linear_algebra.matrix_conversion.change_order_errcorr_dims#
- comet_maths.linear_algebra.matrix_conversion.change_order_errcorr_dims(in_corr: ndarray, in_dim: str | List[str], out_dim: List[str], dim_sizes: dict) ndarray [source]#
Function to flip the order of the underlying dimensions for an err_corr for matrices that describe the combination of 2 dimensions
- Parameters:
in_corr – correlation matrix along the dimensions specified in in_dim
in_dim – list of dimensions of the input correlation matrix
out_dim – list of dimensions of the expanded matrix
dim_sizes – dictionary with the dimensions of each of the dimensions
- Returns:
correlation matrix with flipped underlying dimensions