OpenMD 3.1
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
OpenMD::RealSymmetricTridiagonal< Real > Class Template Reference

Computes eigenvalues and eigenvectors of a real (non-complex) symmetric tridiagonal matrix by the QL method. More...

#include <RealSymmetricTridiagonal.hpp>

Public Member Functions

 RealSymmetricTridiagonal (const DynamicVector< Real > &diagonals, const DynamicVector< Real > &subdiagonals)
 Construct the eigenvalue decomposition.
 
void getEigenvectors (DynamicRectMatrix< Real > &V_)
 Return the eigenvector matrix.
 
void getEigenvalues (DynamicVector< Real > &d_)
 Return the real parts of the eigenvalues.
 

Detailed Description

template<typename Real>
class OpenMD::RealSymmetricTridiagonal< Real >

Computes eigenvalues and eigenvectors of a real (non-complex) symmetric tridiagonal matrix by the QL method.

Definition at line 66 of file RealSymmetricTridiagonal.hpp.

Constructor & Destructor Documentation

◆ RealSymmetricTridiagonal()

template<typename Real >
OpenMD::RealSymmetricTridiagonal< Real >::RealSymmetricTridiagonal ( const DynamicVector< Real > & diagonals,
const DynamicVector< Real > & subdiagonals )
inline

Construct the eigenvalue decomposition.

Parameters
diagonalsthe diagonal elements of the input matrix.
subdiagonalsthe subdiagonal elements of the input matrix in its last n-1 positions. subdiagonals[0] is arbitrary.

Definition at line 199 of file RealSymmetricTridiagonal.hpp.

Member Function Documentation

◆ getEigenvalues()

template<typename Real >
void OpenMD::RealSymmetricTridiagonal< Real >::getEigenvalues ( DynamicVector< Real > & d_)
inline

Return the real parts of the eigenvalues.

Returns
real(diag(D))

Definition at line 224 of file RealSymmetricTridiagonal.hpp.

◆ getEigenvectors()

template<typename Real >
void OpenMD::RealSymmetricTridiagonal< Real >::getEigenvectors ( DynamicRectMatrix< Real > & V_)
inline

Return the eigenvector matrix.

Returns
V

Definition at line 216 of file RealSymmetricTridiagonal.hpp.


The documentation for this class was generated from the following file: