{ } Raw JSON

bundles / scipy latest / scipy / linalg / _decomp_schur / rsf2csf

function

scipy.linalg._decomp_schur:rsf2csf

source: /scipy/linalg/_decomp_schur.py :252

Signature

def   rsf2csf ( T Z check_finite = True )

Summary

Convert real Schur form to complex Schur form.

Extended Summary

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

The documentation is written assuming array arguments are of specified "core" shapes. However, array argument(s) of this function may have additional "batch" dimensions prepended to the core shape. In this case, the array is treated as a batch of lower-dimensional slices; see linalg_batch for details. Note that calls with zero-size batches are unsupported and will raise a ValueError.

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.

Returns

T : (M, M) ndarray

Complex Schur form of the original array

Z : (M, M) ndarray

Schur transformation matrix corresponding to the complex form

Examples

import numpy as np
from scipy.linalg import schur, rsf2csf
A = np.array([[0, 2, 2], [0, 1, 2], [1, 0, 1]])
T, Z = schur(A)
T
Z
T2 , Z2 = rsf2csf(T, Z)
T2
Z2

See also

schur

Schur decomposition of an array

Aliases

  • scipy.linalg.rsf2csf

Referenced by

This package