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 / dtrsen_lwork

lapack_function

scipy.linalg._flapack:dtrsen_lwork

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

Signature

def dtrsen_lwork(select, t, job = B)

Summary

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

Extended Summary

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

select : ndarray

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.

t : ndarray

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

job : str, 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

work : float

Optimal lwork for the matching trsen call.

iwork : int

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

info : int

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

Aliases

  • scipy.linalg._flapack.dtrsen_lwork