TBCI Numerical high perf. C++ Library  2.8.0
Functions
expm.h File Reference

Solver for linear systems by doing an exponential expansion. More...

#include "tbci/basics.h"
#include "tbci/matrix.h"
Include dependency graph for expm.h:

Go to the source code of this file.

Functions

template<typename Matrix >
NAMESPACE_TBCI double norm_1 (const Matrix &mat)
 
template<typename T >
double norm_1 (const TMatrix< T > &mat)
 We need a special implementation for TMatrix to prevent memory leak. More...
 
template<typename Matrix >
void expm (const Matrix &exponent, Matrix &E)
 
 INST2 (template< Matrix< T >, Matrix< T > > class NN friend void expm2(const Matrix< T > &exponent, Matrix< T > &erg, double);) INST2(template< BdMatrix< T >
 
Matrix< T > class NN friend void expm2 (const BdMatrix< T > &exponent, Matrix< T > &erg, double)
 
template<typename MatrixIn , typename MatrixOut >
void expm2 (const MatrixIn &exponent, MatrixOut &erg, double ERROR=1e-3)
 
 INST2 (template< Matrix< T >, Matrix< T > > class NN friend void expm3(const Matrix< T > &exponent, Matrix< T > &erg, double);) INST2(template< BdMatrix< T >
 
Matrix< T > class NN friend void expm3 (const BdMatrix< T > &exponent, Matrix< T > &erg, double)
 
template<typename MatrixIn , typename MatrixOut >
void expm3 (const MatrixIn &exponent, MatrixOut &erg, double ERROR=1e-3)
 

Detailed Description

Solver for linear systems by doing an exponential expansion.

Definition in file expm.h.

Function Documentation

template<typename Matrix >
void expm ( const Matrix exponent,
Matrix E 
)

Definition at line 57 of file expm.h.

References c, lu_solve(), MAX, norm_1(), p, pow(), TMatrix< T >::rows(), and TBCI__.

Matrix<T> class NN friend void expm2 ( const BdMatrix< T > &  exponent,
Matrix< T > &  erg,
double   
)
template<typename MatrixIn , typename MatrixOut >
void expm2 ( const MatrixIn &  exponent,
MatrixOut &  erg,
double  ERROR = 1e-3 
)

Definition at line 116 of file expm.h.

References i, MAX, norm_1(), and pow().

Matrix<T> class NN friend void expm3 ( const BdMatrix< T > &  exponent,
Matrix< T > &  erg,
double   
)
template<typename MatrixIn , typename MatrixOut >
void expm3 ( const MatrixIn &  exponent,
MatrixOut &  erg,
double  ERROR = 1e-3 
)

Definition at line 167 of file expm.h.

References std::fabs(), i, MATH__, MAX, norm_1(), pow(), and STD__.

INST2 ( template< Matrix< T >, Matrix< T > > class NN friend void expm2(const Matrix< T > &exponent, Matrix< T > &erg, double);  )
INST2 ( template< Matrix< T >, Matrix< T > > class NN friend void expm3(const Matrix< T > &exponent, Matrix< T > &erg, double);  )
template<typename Matrix >
NAMESPACE_TBCI double norm_1 ( const Matrix mat)

Definition at line 18 of file expm.h.

References TMatrix< T >::columns(), std::fabs(), TMatrix< T >::get(), i, MATH__, max(), MAX, TMatrix< T >::rows(), and sum().

Referenced by expm(), expm2(), and expm3().

template<typename T >
double norm_1 ( const TMatrix< T > &  mat)

We need a special implementation for TMatrix to prevent memory leak.

Definition at line 35 of file expm.h.

References TMatrix< T >::columns(), std::fabs(), TMatrix< T >::get(), i, TMatrix< T >::mark_destroy(), MATH__, max(), MAX, TMatrix< T >::rows(), and sum().