This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / linalg / _flapack / ctrexc

lapack_function

scipy.linalg._flapack:ctrexc

source: build-install/usr/lib/python3.14/site-packages/scipy/linalg/_flapack.cpython-314-x86_64-linux-gnu.so

Signature

def ctrexc(a, q, ifst, ilst, wantq = 1, overwrite_a = 0, overwrite_q = 0)

Summary

Reorder a Schur decomposition by moving one diagonal block (LAPACK ctrexc).

Parameters

a : ndarray

Upper (quasi-)triangular Schur form of shape (n, n).

q : ndarray

Matrix of Schur vectors; updated when wantq is nonzero.

ifst : int

Current position of the diagonal block to move, 1-based.

ilst : int

Position to move it to, 1-based. LAPACK adjusts both when a block turns out to be 2x2; the adjusted values are not returned.

wantq : int, optional

If nonzero, the transformation is accumulated into q. Default is 1.

overwrite_a : int, optional

If nonzero, a may be overwritten in place. Default is 0.

overwrite_q : int, optional

If nonzero, q may be overwritten in place. Default is 0.

Returns

a : ndarray

The reordered Schur form.

q : ndarray

The updated Schur vectors.

info : int

0 on success; if negative, the -info-th argument had an illegal value.

Aliases

  • scipy.linalg._flapack.ctrexc