sqrtm_psd¶
-
forest.benchmarking.operator_tools.calculational.
sqrtm_psd
(matrix: numpy.ndarray, check_finite: bool = True) → numpy.ndarray¶ Calculates the square root of a matrix that is positive semidefinite.
Parameters: - matrix – the matrix to square root
- check_finite – Whether to check that the input matrices contain only finite numbers.
Returns: sqrt(matrix)