jax.scipy.linalg.rsf2csf#

jax.scipy.linalg.rsf2csf(T, Z, check_finite=True)[source]#

Convert real Schur form to complex Schur form.

LAX-backend implementation of scipy.linalg._decomp_schur.rsf2csf().

Does not support the Scipy argument check_finite=True, because compiled JAX code cannot perform checks of array values at runtime.

Original docstring below.

Convert a quasi-diagonal real-valued Schur form to the upper-triangular complex-valued Schur form.

Parameters
  • T ((M, M) array_like) – Real Schur form of the original array

  • Z ((M, M) array_like) – Schur transformation matrix

  • check_finite (bool, optional) – Whether to check that the input arrays contain only finite numbers. Disabling may give a performance gain, but may result in problems (crashes, non-termination) if the inputs do contain infinities or NaNs.

Return type

Tuple[Array, Array]

Returns

  • T ((M, M) ndarray) – Complex Schur form of the original array

  • Z ((M, M) ndarray) – Schur transformation matrix corresponding to the complex form