linear-library
Loading...
Searching...
No Matches
Public Member Functions | List of all members
LinearAlgebra::LU< T > Class Template Reference

LU decomposition with partial pivoting. More...

#include <LU.hpp>

Public Member Functions

 LU (const FlatMatrix< T > &m)
 
 LU (FlatMatrix< T > &&m)
 
T det () const
 
FlatMatrix< Tinv () const
 
const std::vector< int > & getP () const
 
const FlatMatrix< T > & getMatrix () const
 

Detailed Description

template<typename T>
class LinearAlgebra::LU< T >

LU decomposition with partial pivoting.

Decompose matrix A such that: PA = LU

Where: P is permutation matrix L is lower triangular with unit diagonal U is upper triangular

Constructor & Destructor Documentation

◆ LU() [1/2]

template<typename T >
LinearAlgebra::LU< T >::LU ( const FlatMatrix< T > &  m)
inline

◆ LU() [2/2]

template<typename T >
LinearAlgebra::LU< T >::LU ( FlatMatrix< T > &&  m)
inline

Member Function Documentation

◆ det()

template<typename T >
T LinearAlgebra::LU< T >::det ( ) const

◆ getMatrix()

template<typename T >
const FlatMatrix< T > & LinearAlgebra::LU< T >::getMatrix ( ) const
inline

◆ getP()

template<typename T >
const std::vector< int > & LinearAlgebra::LU< T >::getP ( ) const
inline

◆ inv()

template<typename T >
FlatMatrix< T > LinearAlgebra::LU< T >::inv ( ) const

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