scipy.linalg.lapack.strsen_lwork#

scipy.linalg.lapack.strsen_lwork(select, t, job='B') = <flapack function strsen_lwork>#

Query the workspace trsen needs for this select and job (LAPACK strsen with lwork = -1).

select and t are read for real: LAPACK has to scan them to work out the cluster size before it can size the workspace.

Parameters:
selectndarray

Boolean mask of length n: the eigenvalues it marks are gathered into the leading block. A bool array works; LAPACK reads it as a Fortran LOGICAL.

tndarray

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

jobstr, optional

What to compute besides the reordering: 'N' nothing, 'E' the cluster condition number s, 'V' the separation sep, 'B' both. Default is 'B'.

Returns:
workfloat

Optimal lwork for the matching trsen call.

iworkint

Optimal liwork. The complex flavors have no integer workspace and do not return it.

infoint

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