SourcePro C++ 12.0 |
SourcePro® C++ API Reference Guide |
SourcePro C++ Documentation Home |
Encapsulates the symmetric tridiagonal decomposition of a dense symmetric matrix. More...
#include <rw/lapack/td.h>
Public Types | |
typedef rw_numeric_traits < TypeT >::norm_type | rt |
Public Member Functions | |
RWDenseTriDiagDecomp (const typename rw_linear_algebra_traits< TypeT >::hermitian_type &A) | |
virtual RWMathVec< TypeT > | transform (const RWMathVec< rt > &) const |
virtual RWGenMat< TypeT > | transform (const RWGenMat< rt > &) const |
The class RWDenseTriDiagDecomp<T> encapsulates the symmetric tridiagonal decomposition of a dense symmetric matrix A, where:
and Q is orthogonal and T is real tridiagonal symmetric. These classes are used internally by the symmetric eigenvalue classes.
#include <rw/lapack/td.h> RWDenseTriDiagDecomp<double> QTQ(A); // A is a // RWSymMat<double>
#include <rw/lapack/symmat.h> #include <rw/lapack/td.h> #include <iostream> int main() { RWSymMat<double> A; std::cin >> A; RWDenseTriDiagDecomp<double> decomp(A); std::cout << "T's diagonal is" << decomp.diagonal() << std::endl; std::cout << "T's off diagonal is " << decomp.offDiagonal() << std::endl; return 0; }
typedef rw_numeric_traits<TypeT>::norm_type RWDenseTriDiagDecomp< TypeT >::rt |
Typedef for the usual return type of numerical norm
-like functions. For more information, see rw_numeric_traits<T>::norm_type.
Reimplemented from RWTriDiagDecomp< TypeT >.
RWDenseTriDiagDecomp< TypeT >::RWDenseTriDiagDecomp | ( | const typename rw_linear_algebra_traits< TypeT >::hermitian_type & | A | ) |
Constructs a tridiagonal decomposition of A.
virtual RWGenMat<TypeT> RWDenseTriDiagDecomp< TypeT >::transform | ( | const RWGenMat< rt > & | ) | const [virtual] |
Transforms the vector from tridiagonal decomposition space back to the original matrix space. This amounts to multiplying it by the matrix Q.
Implements RWTriDiagDecomp< TypeT >.
virtual RWMathVec<TypeT> RWDenseTriDiagDecomp< TypeT >::transform | ( | const RWMathVec< rt > & | ) | const [virtual] |
Transforms the vector from tridiagonal decomposition space back to the original matrix space. This amounts to multiplying it by the matrix Q.
Reimplemented from RWTriDiagDecomp< TypeT >.
© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.