Skip to content
fn

lapack_eigh_f32

void lapack_eigh_f32(const float * A, int n, float * w, float * V_out, int * info, char uplo)

Symmetric eigendecomposition (float32) via divide-and-conquer.

For a real symmetric input A=ATA = A^T, computes the spectral decomposition A=V diag(w) VTA = V \, \mathrm{diag}(w) \, V^T. Eigenvalues are produced in ascending order and eigenvectors are the columns of VV (returned row-major after transposition).

Math

AV=V diag(w)A V = V \, \mathrm{diag}(w)

References

LAPACK ssyevd_.

Parameters

Aconst float*
Row-major n×nn \times n symmetric matrix.
nint
Side length.
wfloat*
Eigenvalues, length nn (ascending).
V_outfloat*
Row-major matrix whose columns are the eigenvectors.
infoint*
LAPACK status word.