scipy.linalg.lapack.dstemr_lwork#

scipy.linalg.lapack.dstemr_lwork(d, e, range, vl, vu, il, iu, compute_v=1, overwrite_d=0, overwrite_e=0) = <flapack function dstemr_lwork>#

Query the optimal lwork and liwork for dstemr.

Parameters:
dndarray

Diagonal elements of the symmetric tridiagonal matrix, length n.

endarray

Off-diagonal elements in the leading n - 1 entries, length n.

rangeint

Which eigenvalues to compute: 0 for all, 1 for those in (vl, vu], 2 for those with indices il through iu.

vlfloat

Lower bound of the half-open interval; used only when range is 1.

vufloat

Upper bound of the half-open interval; used only when range is 1.

ilint

Index of the smallest eigenvalue to return, 1-based; used only when range is 2.

iuint

Index of the largest eigenvalue to return, 1-based; used only when range is 2.

compute_vint, optional

If nonzero, eigenvectors are computed. Default is 1.

overwrite_dint, optional

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

overwrite_eint, optional

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

Returns:
workfloat

Optimal size of the work array, as a scalar of the routine’s dtype.

iworkint

Optimal size of the integer workspace, to pass as liwork.

infoint

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