This is a pre-release version (latest).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy latest / scipy / linalg / _flapack / sgees

lapack_function

scipy.linalg._flapack:sgees

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

Summary

Compute the Schur factorization of a general matrix (LAPACK sgees).

Parameters

sselect : callable

Eigenvalue selector, called as sselect(wr, wi) with the real and imaginary parts. Used only when sort_t is nonzero; return true to move that eigenvalue to the leading block.

a : ndarray

Square matrix of shape (n, n).

compute_v : int, optional

If nonzero, the Schur vectors are computed. Default is 1.

sort_t : int, optional

If nonzero, eigenvalues are sorted using the selector. Default is 0.

lwork : int, optional

Size of the workspace. Default is 3 * n. Use the value reported in work[0] for the optimal value.

sselect_extra_args : tuple, optional

Extra positional arguments appended to every selector call. Default is ().

overwrite_a : int, optional

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

Returns

t : ndarray

Schur form of a.

sdim : int

Number of eigenvalues the selector accepted; 0 when sort_t is 0.

wr : ndarray

Real parts of the eigenvalues.

wi : ndarray

Imaginary parts of the eigenvalues; conjugate pairs appear adjacently.

vs : ndarray

Schur vectors, or a (1, n) placeholder when compute_v is 0.

work : ndarray

Workspace actually used; work[0] is the optimal lwork.

info : int

0 on success; if negative, the -info-th argument had an illegal value; if positive, the QR algorithm failed or the selected block could not be reordered.

Aliases

  • scipy.linalg._flapack.sgees