LUDecomp Class Template Reference
[Vector and Matrix mathematics]

#include <MatrixFunctors.hpp>

Collaboration diagram for LUDecomp:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class T>
class gpstk::LUDecomp< T >

Performs the lower/upper triangular decomposition of a matrix PA = LU.

The results are put into the matricies L, U, and P (pivot), and sign (representing even (positive) or odd (negative) row swaps.

Definition at line 408 of file MatrixFunctors.hpp.

Public Member Functions

 LUDecomp ()
template<class BaseClass>
void operator() (const ConstMatrixBase< T, BaseClass > &m) throw (MatrixException)
 Does the decomposition.
template<class BaseClass2>
void backSub (RefVectorBase< T, BaseClass2 > &v) const throw (MatrixException)
 Compute inverse(m)*v, where *this is LUD(m), via back substitution Solution overwrites input Vector v.
det (void) throw (MatrixException)
 compute determinant from LUD

Public Attributes

Matrix< T > LU
 The matrix in LU-decomposed form: L and U together; all diagonal elements of L are implied 1.
Vector< int > Pivot
 The pivot array.
int parity
 Parity.


Constructor & Destructor Documentation

LUDecomp  )  [inline]
 

Definition at line 411 of file MatrixFunctors.hpp.


Member Function Documentation

void backSub RefVectorBase< T, BaseClass2 > &  v  )  const throw (MatrixException) [inline]
 

Compute inverse(m)*v, where *this is LUD(m), via back substitution Solution overwrites input Vector v.

Definition at line 486 of file MatrixFunctors.hpp.

References GPSTK_THROW, and gpstk::sum().

Referenced by MatrixTest5().

T det void   )  throw (MatrixException) [inline]
 

compute determinant from LUD

Definition at line 519 of file MatrixFunctors.hpp.

Referenced by MatrixTest5().

void operator() const ConstMatrixBase< T, BaseClass > &  m  )  throw (MatrixException) [inline]
 

Does the decomposition.

Definition at line 415 of file MatrixFunctors.hpp.

References ABS, GPSTK_THROW, and Matrix::rows().


Member Data Documentation

Matrix<T> LU
 

The matrix in LU-decomposed form: L and U together; all diagonal elements of L are implied 1.

Definition at line 530 of file MatrixFunctors.hpp.

Referenced by MatrixTest5().

int parity
 

Parity.

Definition at line 534 of file MatrixFunctors.hpp.

Vector<int> Pivot
 

The pivot array.

Definition at line 532 of file MatrixFunctors.hpp.


The documentation for this class was generated from the following file:
Generated on Wed Feb 8 03:31:40 2012 for GPS ToolKit Software Library by  doxygen 1.3.9.1