scipy.linalg.lapack.zgees#
- scipy.linalg.lapack.zgees(zselect, a, compute_v=1, sort_t=0, lwork=3 * n, zselect_extra_args=(), overwrite_a=0) = <flapack function zgees>#
Compute the Schur factorization of a general matrix (LAPACK
zgees).- Parameters:
- zselectcallable
Eigenvalue selector, called as
zselect(w). Used only when sort_t is nonzero; return true to move that eigenvalue to the leading block.- andarray
Square matrix of shape
(n, n).- compute_vint, optional
If nonzero, the Schur vectors are computed. Default is 1.
- sort_tint, optional
If nonzero, eigenvalues are sorted using the selector. Default is 0.
- lworkint, optional
Size of the workspace. Default is
3 * n. Usethe value reported in work[0]for the optimal value.- zselect_extra_argstuple, optional
Extra positional arguments appended to every selector call. Default is
().- overwrite_aint, optional
If nonzero, a may be overwritten in place. Default is 0.
- Returns:
- tndarray
Schur form of a.
- sdimint
Number of eigenvalues the selector accepted; 0 when sort_t is 0.
- wndarray
Eigenvalues, in the order they appear on the diagonal of t.
- vsndarray
Schur vectors, or a
(1, n)placeholder when compute_v is 0.- workndarray
Workspace actually used;
work[0]is the optimal lwork.- infoint
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.