bundles / scipy latest / 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: ndarrayUpper (quasi-)triangular Schur form of shape
(n, n).q: ndarrayMatrix of Schur vectors; updated when
wantqis nonzero.ifst: intCurrent position of the diagonal block to move, 1-based.
ilst: intPosition 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, optionalIf nonzero, the transformation is accumulated into
q. Default is 1.overwrite_a: int, optionalIf nonzero, a may be overwritten in place. Default is 0.
overwrite_q: int, optionalIf nonzero,
qmay be overwritten in place. Default is 0.
Returns
a: ndarrayThe reordered Schur form.
q: ndarrayThe updated Schur vectors.
info: int0 on success; if negative, the
-info-th argument had an illegal value.
Aliases
scipy.linalg._flapack.ctrexc