jaxoplanet.starry.multiprecision.utils#
Functions#
|
|
|
|
|
Returns M1 - M2, at arbitrary precision and casted to numpy.float64. |
|
|
|
Module Contents#
- jaxoplanet.starry.multiprecision.utils.diff_mp(M1: numpy.ndarray | mpmath.matrix, M2: numpy.ndarray | mpmath.matrix)[source]#
Returns M1 - M2, at arbitrary precision and casted to numpy.float64.
This function allows comparison of matrices at arbitrary precision if at least one is a mpmath matrix.
- Parameters:
M1 (np.ndarray or mpmath.matrix) – matrix
M2 (np.ndarray or mpmath.matrix) – matrix
- Returns:
difference between M1 and M2, casted to numpy.float64
- Return type:
np.ndarray