Simbody
Public Member Functions | Protected Attributes

SimTK::FactorSVD Class Reference

Class to compute a singular value decomposition of a matrix. More...

#include <LinearAlgebra.h>

Inheritance diagram for SimTK::FactorSVD:

List of all members.

Public Member Functions

 ~FactorSVD ()
 FactorSVD ()
 default constructor
 FactorSVD (const FactorSVD &c)
 copy constructor
FactorSVDoperator= (const FactorSVD &rhs)
 copy assign
template<class ELT >
 FactorSVD (const Matrix_< ELT > &m)
 constructor
template<class ELT >
 FactorSVD (const Matrix_< ELT > &m, float rcond)
 singular value decomposition of a matrix using the specified reciprocal of the condition number rcond
template<class ELT >
 FactorSVD (const Matrix_< ELT > &m, double rcond)
 singular value decomposition of a matrix using the specified reciprocal of the condition number rcond
template<class ELT >
void factor (const Matrix_< ELT > &m)
 supply the matrix to do a singular value decomposition
template<class ELT >
void factor (const Matrix_< ELT > &m, float rcond)
 supply the matrix to do a singular value decomposition using the specified reciprocal of the condition number rcond
template<class ELT >
void factor (const Matrix_< ELT > &m, double rcond)
 supply the matrix to do a singular value decomposition using the specified reciprocal of the condition reciprocal of the condition number rcond
template<class T >
void getSingularValuesAndVectors (Vector_< typename CNT< T >::TReal > &values, Matrix_< T > &leftVectors, Matrix_< T > &rightVectors)
 get the singular values and singular vectors of the matrix
template<class T >
void getSingularValues (Vector_< T > &values)
 get just the singular values of the matrix
int getRank ()
 get rank of the matrix
template<class ELT >
void inverse (Matrix_< ELT > &m)
 get inverse of the matrix using singular value decomposition (sometimes called the pseudo inverse)
template<class ELT >
void solve (const Vector_< ELT > &b, Vector_< ELT > &x)
 solve for x given a right hand side vector using the singular value decomposition
template<class ELT >
void solve (const Matrix_< ELT > &b, Matrix_< ELT > &x)
 solve for a set of x vectors given multiple right hand side vectors using the singular value decomposition

Protected Attributes

class FactorSVDRepBase * rep

Detailed Description

Class to compute a singular value decomposition of a matrix.


Constructor & Destructor Documentation

SimTK::FactorSVD::~FactorSVD ( )
SimTK::FactorSVD::FactorSVD ( )

default constructor

SimTK::FactorSVD::FactorSVD ( const FactorSVD c)

copy constructor

template<class ELT >
SimTK::FactorSVD::FactorSVD ( const Matrix_< ELT > &  m)

constructor

template<class ELT >
SimTK::FactorSVD::FactorSVD ( const Matrix_< ELT > &  m,
float  rcond 
)

singular value decomposition of a matrix using the specified reciprocal of the condition number rcond

template<class ELT >
SimTK::FactorSVD::FactorSVD ( const Matrix_< ELT > &  m,
double  rcond 
)

singular value decomposition of a matrix using the specified reciprocal of the condition number rcond


Member Function Documentation

FactorSVD& SimTK::FactorSVD::operator= ( const FactorSVD rhs)

copy assign

template<class ELT >
void SimTK::FactorSVD::factor ( const Matrix_< ELT > &  m)

supply the matrix to do a singular value decomposition

template<class ELT >
void SimTK::FactorSVD::factor ( const Matrix_< ELT > &  m,
float  rcond 
)

supply the matrix to do a singular value decomposition using the specified reciprocal of the condition number rcond

template<class ELT >
void SimTK::FactorSVD::factor ( const Matrix_< ELT > &  m,
double  rcond 
)

supply the matrix to do a singular value decomposition using the specified reciprocal of the condition reciprocal of the condition number rcond

template<class T >
void SimTK::FactorSVD::getSingularValuesAndVectors ( Vector_< typename CNT< T >::TReal > &  values,
Matrix_< T > &  leftVectors,
Matrix_< T > &  rightVectors 
)

get the singular values and singular vectors of the matrix

template<class T >
void SimTK::FactorSVD::getSingularValues ( Vector_< T > &  values)

get just the singular values of the matrix

int SimTK::FactorSVD::getRank ( )

get rank of the matrix

template<class ELT >
void SimTK::FactorSVD::inverse ( Matrix_< ELT > &  m)

get inverse of the matrix using singular value decomposition (sometimes called the pseudo inverse)

template<class ELT >
void SimTK::FactorSVD::solve ( const Vector_< ELT > &  b,
Vector_< ELT > &  x 
)

solve for x given a right hand side vector using the singular value decomposition

template<class ELT >
void SimTK::FactorSVD::solve ( const Matrix_< ELT > &  b,
Matrix_< ELT > &  x 
)

solve for a set of x vectors given multiple right hand side vectors using the singular value decomposition


Member Data Documentation

class FactorSVDRepBase* SimTK::FactorSVD::rep [protected]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines