bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / linalg / _flapack / dpteqr
lapack_function
scipy.linalg._flapack:dpteqr
source: build-install/usr/lib/python3.14/site-packages/scipy/linalg/_flapack.cpython-314-x86_64-linux-gnu.so
Signature
def dpteqr(d, e, z, compute_z = 0, overwrite_d = 0, overwrite_e = 0, overwrite_z = 0)Summary
Compute the eigenvalues and optionally the eigenvectors of a positive definite tridiagonal matrix, to high relative accuracy (LAPACK dpteqr).
Parameters
d: ndarrayDiagonal of the matrix, length
n. Real for every flavor.e: ndarrayOff-diagonal, length
max(0, n - 1). Real for every flavor.z: ndarrayRequired even when unused. With
compute_z=1it is the matrix whose eigenvectors are wanted, of shape(max(1, n), n); withcompute_z=2its contents are ignored and the eigenvectors of the tridiagonal matrix itself are returned; withcompute_z=0it is not referenced at all and any shape is accepted.compute_z: int, optional0 for eigenvalues only, 1 to compute eigenvectors of the original matrix from the
zsupplied, 2 for eigenvectors of the tridiagonal matrix. Default is 0.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.overwrite_z: int, optionalIf nonzero,
zmay be overwritten in place. Default is 0.
Returns
d: ndarrayEigenvalues in descending order.
e: ndarrayDestroyed by the computation; the contents are not meaningful.
z: ndarrayOrthonormal eigenvectors as columns, or
zunchanged whencompute_zis 0.info: int0 on success; if negative, the
-info-th argument had an illegal value; if0 < info <= n, the leading minor of order info is not positive definite; ifinfo > n, that many off-diagonal elements failed to converge to zero.
Aliases
scipy.linalg._flapack.dpteqr