Skip to main content

SymEigenValues

This function calculates eigenvalues of a symmetric matrix.

note
INTERFACE
MODULE FUNCTION SymEigenValues(mat) RESULT(ans)
REAL(DFP), INTENT(IN) :: mat(:, :)
!! for n=2, we call SymEigenValues2by2
!! for n=3, we call SymEigenValues3by3
!! for n>=4, we call Lapack or JacobiMethod
REAL(DFP) :: ans(SIZE(mat, 1))
END FUNCTION SymEigenValues
END INTERFACE