ug4
ug::DenseMatrixInverse< TStorage > Class Template Reference

#include <lapack_densematrix_inverse.h>

Public Member Functions

template<typename vector_t >
void apply (DenseVector< vector_t > &vec) const
 
template<typename vector_t >
void apply (DenseVector< vector_t > &vec) const
 
bool invert ()
 
bool invert ()
 
size_t num_cols () const
 
size_t num_cols () const
 
size_t num_rows () const
 
size_t num_rows () const
 
double & operator() (int r, int c)
 
double & operator() (int r, int c)
 
const double & operator() (int r, int c) const
 
const double & operator() (int r, int c) const
 
void resize (size_t k)
 
void resize (size_t k)
 
void resize (size_t k, size_t k2)
 
void resize (size_t k, size_t k2)
 
bool set_as_inverse_of (const DenseMatrix< TStorage > &mat)
 initializes this object as inverse of mat More...
 
bool set_as_inverse_of (const DenseMatrix< TStorage > &mat)
 initializes this object as inverse of mat More...
 

Private Attributes

DenseMatrix< TStorage > densemat
 
std::vector< lapack_intinterchange
 
std::vector< size_t > interchange
 

Friends

template<typename T >
std::ostream & operator<< (std::ostream &out, const DenseMatrixInverse< T > &mat)
 
template<typename T >
std::ostream & operator<< (std::ostream &out, const DenseMatrixInverse< T > &mat)
 

Detailed Description

template<typename TStorage>
class ug::DenseMatrixInverse< TStorage >

smallInverse<size_t n> A class to hold a inverse of a smallMatrix<n> implemented with LAPACKs LU-Decomposition dgetrf (uses double[n*n] for LU and interchange[n] for pivoting

smallInverse<size_t n> A class to hold a inverse of a smallMatrix<n>

Member Function Documentation

◆ apply() [1/2]

template<typename TStorage >
template<typename vector_t >
void ug::DenseMatrixInverse< TStorage >::apply ( DenseVector< vector_t > &  vec) const
inline

◆ apply() [2/2]

template<typename TStorage >
template<typename vector_t >
void ug::DenseMatrixInverse< TStorage >::apply ( DenseVector< vector_t > &  vec) const
inline

◆ invert() [1/2]

◆ invert() [2/2]

template<typename TStorage >
bool ug::DenseMatrixInverse< TStorage >::invert ( )
inline

◆ num_cols() [1/2]

template<typename TStorage >
size_t ug::DenseMatrixInverse< TStorage >::num_cols ( ) const
inline

◆ num_cols() [2/2]

template<typename TStorage >
size_t ug::DenseMatrixInverse< TStorage >::num_cols ( ) const
inline

◆ num_rows() [1/2]

template<typename TStorage >
size_t ug::DenseMatrixInverse< TStorage >::num_rows ( ) const
inline

◆ num_rows() [2/2]

template<typename TStorage >
size_t ug::DenseMatrixInverse< TStorage >::num_rows ( ) const
inline

◆ operator()() [1/4]

template<typename TStorage >
double& ug::DenseMatrixInverse< TStorage >::operator() ( int  r,
int  c 
)
inline

◆ operator()() [2/4]

template<typename TStorage >
double& ug::DenseMatrixInverse< TStorage >::operator() ( int  r,
int  c 
)
inline

◆ operator()() [3/4]

template<typename TStorage >
const double& ug::DenseMatrixInverse< TStorage >::operator() ( int  r,
int  c 
) const
inline

◆ operator()() [4/4]

template<typename TStorage >
const double& ug::DenseMatrixInverse< TStorage >::operator() ( int  r,
int  c 
) const
inline

◆ resize() [1/4]

template<typename TStorage >
void ug::DenseMatrixInverse< TStorage >::resize ( size_t  k)
inline

◆ resize() [2/4]

template<typename TStorage >
void ug::DenseMatrixInverse< TStorage >::resize ( size_t  k)
inline

◆ resize() [3/4]

template<typename TStorage >
void ug::DenseMatrixInverse< TStorage >::resize ( size_t  k,
size_t  k2 
)
inline

◆ resize() [4/4]

template<typename TStorage >
void ug::DenseMatrixInverse< TStorage >::resize ( size_t  k,
size_t  k2 
)
inline

◆ set_as_inverse_of() [1/2]

template<typename TStorage >
bool ug::DenseMatrixInverse< TStorage >::set_as_inverse_of ( const DenseMatrix< TStorage > &  mat)
inline

◆ set_as_inverse_of() [2/2]

template<typename TStorage >
bool ug::DenseMatrixInverse< TStorage >::set_as_inverse_of ( const DenseMatrix< TStorage > &  mat)
inline

Friends And Related Function Documentation

◆ operator<< [1/2]

template<typename TStorage >
template<typename T >
std::ostream& operator<< ( std::ostream &  out,
const DenseMatrixInverse< T > &  mat 
)
friend

◆ operator<< [2/2]

template<typename TStorage >
template<typename T >
std::ostream& operator<< ( std::ostream &  out,
const DenseMatrixInverse< T > &  mat 
)
friend

Member Data Documentation

◆ densemat

◆ interchange [1/2]

template<typename TStorage >
std::vector<lapack_int> ug::DenseMatrixInverse< TStorage >::interchange
private

◆ interchange [2/2]

template<typename TStorage >
std::vector<size_t> ug::DenseMatrixInverse< TStorage >::interchange
private

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