ug4
additional_math.h File Reference

Go to the source code of this file.

Namespaces

 ug
 the ug namespace
 

Functions

template<typename TMatrix >
void ug::BlockMatrixToDoubleMatrix (DenseMatrix< VariableArray2< double > > &Ad, TMatrix &Ab)
 
template<typename T1 , typename T2 >
double ug::EnergyProd (const T1 &v1, const DenseMatrix< T2 > &M, const T1 &v2)
 
double ug::EnergyProd (double v1, double M, double v2)
 
void ug::GetDiag (double &a, double b)
 
template<typename T1 , typename T2 >
void ug::GetDiag (T1 &m1, const T2 &m)
 
void ug::GetDiagSqrt (double &a, double b)
 
template<typename T1 , typename T2 >
void ug::GetDiagSqrt (T1 &v, const T2 &m)
 
template<typename T1 >
double ug::matDiagMax (const DenseMatrix< T1 > &mat)
 
double ug::matDiagMax (const double d)
 
void ug::matSum (double &erg, double alpha, double vec)
 
template<typename T1 , typename T2 >
T1 ug::matSum (double alpha, T2 &mat)
 
template<typename T1 , typename T2 >
void ug::matSum (T1 &erg, double alpha, T2 &mat)
 
template<typename T1 >
double ug::matTrace (const DenseMatrix< T1 > &mat)
 
double ug::matTrace (const double d)
 
template<typename T1 >
DenseMatrix< T1 >::value_type ug::Sum1Mat1 (const DenseMatrix< T1 > &mat)
 
double ug::Sum1Mat1 (double d)
 
void ug::vecSum (double &erg, double alpha, double vec)
 
template<typename T >
T::value_type ug::vecSum (double alpha, const T &vec)
 
double ug::vecSum (double alpha, double vec)
 
template<typename T >
void ug::vecSum (typename T::value_type &erg, double alpha, const T &vec)