bundles / scipy latest / scipy / linalg / _flapack / sstevd
lapack_function
scipy.linalg._flapack:sstevd
source: build-install/usr/lib/python3.14/site-packages/scipy/linalg/_flapack.cpython-314-x86_64-linux-gnu.so
Summary
Compute the eigenvalues and optionally the eigenvectors of a symmetric tridiagonal matrix by divide-and-conquer (LAPACK sstevd).
Parameters
d: ndarrayDiagonal elements of the symmetric tridiagonal matrix, length
n.e: ndarrayOff-diagonal elements, length
max(n - 1, 1).compute_v: int, optionalIf nonzero, eigenvectors are computed. Default is 1.
lwork: int, optionalSize of the workspace. Default is
1 + 4 * n + n ** 2when compute_v is nonzero and1otherwise, which are the exact requirements.liwork: int, optionalSize of the integer workspace. Default is
3 + 5 * nwhen compute_v is nonzero and1otherwise.overwrite_d: int, optionalIf nonzero, d may be overwritten in place. Default is 0.
overwrite_e: int, optionalIf nonzero,
emay be overwritten in place. Default is 0.
Returns
vals: ndarrayEigenvalues in ascending order, written over
d.z: ndarrayOrthonormal eigenvectors as columns, shape
(n, n), or a(1, 1)placeholder whencompute_vis 0.info: int0 on success; if negative, the
-info-th argument had an illegal value; if positive, the algorithm failed to converge.
Aliases
scipy.linalg._flapack.sstevd