Public Member Functions | Public Attributes | List of all members
gnsstk::LUDecomp< T > Class Template Reference

Detailed Description

template<class T>
class gnsstk::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. LU stores both L and U (all diagonal elements of L are implied 1).

Definition at line 434 of file MatrixFunctors.hpp.

#include <MatrixFunctors.hpp>

Public Member Functions

template<class BaseClass2 >
void backSub (RefVectorBase< T, BaseClass2 > &v) const
 
det (void)
 
 LUDecomp ()
 
template<class BaseClass >
void operator() (const ConstMatrixBase< T, BaseClass > &m)
 

Public Attributes

Matrix< T > LU
 
int parity
 Parity. More...
 
Vector< int > Pivot
 The pivot array. More...
 

Constructor & Destructor Documentation

◆ LUDecomp()

template<class T >
gnsstk::LUDecomp< T >::LUDecomp ( )
inline

Definition at line 437 of file MatrixFunctors.hpp.

Member Function Documentation

◆ backSub()

template<class T >
template<class BaseClass2 >
void gnsstk::LUDecomp< T >::backSub ( RefVectorBase< T, BaseClass2 > &  v) const
inline

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

Exceptions
MatrixException

Definition at line 514 of file MatrixFunctors.hpp.

◆ det()

template<class T >
T gnsstk::LUDecomp< T >::det ( void  )
inline

compute determinant from LUD

Exceptions
MatrixException

Definition at line 548 of file MatrixFunctors.hpp.

◆ operator()()

template<class T >
template<class BaseClass >
void gnsstk::LUDecomp< T >::operator() ( const ConstMatrixBase< T, BaseClass > &  m)
inline

Does the decomposition.

Exceptions
MatrixException

Definition at line 443 of file MatrixFunctors.hpp.

Member Data Documentation

◆ LU

template<class T >
Matrix<T> gnsstk::LUDecomp< T >::LU

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

Definition at line 557 of file MatrixFunctors.hpp.

◆ parity

template<class T >
int gnsstk::LUDecomp< T >::parity

Parity.

Definition at line 561 of file MatrixFunctors.hpp.

◆ Pivot

template<class T >
Vector<int> gnsstk::LUDecomp< T >::Pivot

The pivot array.

Definition at line 559 of file MatrixFunctors.hpp.


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


gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:45