cosmicfish_pylib.fisher_operations.reshuffle¶
-
cosmicfish_pylib.fisher_operations.
reshuffle
(fisher_matrix, names)[source]¶ This function reshuffles a Fisher matrix. The new Fisher matrix will have the parameters specified in names, in the order specified by names. Can be used to delete parameters, change their order or extract the Fisher for some parameters without marginalizing over the others.
Parameters: - fisher_matrix (
cosmicfish_pylib.fisher_matrix.fisher_matrix
) – input Fisher matrix - names (
list
ofstring
) – list of names of the parameters that are desired in the output Fisher matrix, in the desired order.
Returns: A Fisher matrix with the new parameters
Return type: - fisher_matrix (