cisst-saw
Loading...
Searching...
No Matches
nmrSymmetricEigenProblem.h File Reference

Go to the source code of this file.

Classes

class  nmrSymmetricEigenProblem
class  nmrSymmetricEigenProblem::Data

Functions

nmrSymmetricEigenProblem::Errno CISST_EXPORT nmrSymmetricEigenProblem (vctDynamicMatrix< double > &A, vctDynamicVector< double > &D, vctDynamicMatrix< double > &V)
 Symmetric Eigenproblems (SEP).
nmrSymmetricEigenProblem::Errno CISST_EXPORT nmrSymmetricEigenProblem (vctDynamicMatrix< double > &A, vctDynamicVector< double > &D, vctDynamicMatrix< double > &V, nmrSymmetricEigenProblem::Data &data)
 Symmetric Eigenproblems (SEP).

Function Documentation

◆ nmrSymmetricEigenProblem() [1/2]

nmrSymmetricEigenProblem::Errno CISST_EXPORT nmrSymmetricEigenProblem ( vctDynamicMatrix< double > & A,
vctDynamicVector< double > & D,
vctDynamicMatrix< double > & V )

Symmetric Eigenproblems (SEP).

Computes all the eigen values and eigen vectors of a symmetric matrix \( A \mathbf{x} = \lambda \mathbf{x} \) such that \( A = V D V^T \). The eigen values are sorted in ascending order. This function uses LAPACK dsyevr.

Parameters
[in]AThe \( N \times N \) column major matrix. The matrix A is modified during the evaluation. The matrix must be in column major.
[out]DThe vector of \( N \) eigen vectors. The vector must be allocated prior to calling.
[out]VThe \( N \times N \) matrix of eigen vectors. Eigen vectors are stored in the columns of D. The matrix must be column major and allocated prior to calling.
Returns
ESUCCESS if the computation was successful. EFAILURE otherwise.

◆ nmrSymmetricEigenProblem() [2/2]

nmrSymmetricEigenProblem::Errno CISST_EXPORT nmrSymmetricEigenProblem ( vctDynamicMatrix< double > & A,
vctDynamicVector< double > & D,
vctDynamicMatrix< double > & V,
nmrSymmetricEigenProblem::Data & data )

Symmetric Eigenproblems (SEP).

Computes all the eigen values and eigen vectors of a symmetric matrix \( A \mathbf{x} = \lambda \mathbf{x} \) such that \( A = V D V^T \). The eigen values are sorted in ascending order. This function uses LAPACK dsyevr.

Parameters
[in]AThe \( N \times N \) column major matrix. The matrix A is modified during the evaluation. The matrix must be column major.
[out]DThe vector of \( N \) eigen vectors. The vector must be allocated before calling.
[out]VThe \( N \times N \) matrix of eigen vectors. Eigen vectors are stored in the columns of V. The matrix must be column major and allocated before calling.
[in]dataComputation data. This data can is filled during the initial call and can be reused in subsequent calls.
Returns
ESUCCESS if the computation was successful. EFAILURE otherwise.