jaxoplanet.starry.multiprecision.utils

jaxoplanet.starry.multiprecision.utils#

Functions#

to_numpy(x)

to_mp(x)

diff_mp(M1, M2)

Returns M1 - M2, at arbitrary precision and casted to numpy.float64.

kron_delta(m, n)

fac(n)

Module Contents#

jaxoplanet.starry.multiprecision.utils.to_numpy(x)[source]#
jaxoplanet.starry.multiprecision.utils.to_mp(x)[source]#
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

jaxoplanet.starry.multiprecision.utils.kron_delta(m, n)[source]#
jaxoplanet.starry.multiprecision.utils.fac(n)[source]#