ug4
ug::DenseMatrix< TStorage > Class Template Reference

#include <densematrix.h>

+ Inheritance diagram for ug::DenseMatrix< TStorage >:

Public Types

enum  { is_static = TStorage::is_static }
 
enum  { static_num_rows = TStorage::static_num_rows }
 
enum  { static_num_cols = TStorage::static_num_cols }
 
typedef TStorage base
 
typedef TStorage::size_type size_type
 
typedef DenseMatrix< TStorage > this_type
 
typedef TStorage::value_type value_type
 

Public Member Functions

 DenseMatrix ()
 
 DenseMatrix (const this_type &rhs)
 
 DenseMatrix (double val)
 
value_typeentry (size_type r, size_type c)
 
const value_typeentry (size_type r, size_type c) const
 
void maple_print (const char *name)
 
template<typename T2 >
bool operator!= (const T2 &t) const
 
template<typename TStorage2 >
bool operator!= (const TStorage2 &t) const
 
template<typename TStorage2 >
DenseVector< TStorage2 > operator* (const DenseVector< TStorage2 > &vec) const
 
this_type operator* (const this_type &mat) const
 
this_type operator* (double alpha) const
 
this_typeoperator*= (const this_type &mat)
 
this_typeoperator*= (double alpha)
 
this_type operator+ (const this_type &other) const
 
template<typename T >
this_typeoperator+= (const T &t)
 
template<typename T2 >
DenseMatrix< TStorage > & operator+= (const T2 &t)
 
this_typeoperator+= (double alpha)
 
this_type operator- () const
 
this_type operator- (const this_type &other) const
 
template<typename T >
this_typeoperator-= (const T &t)
 
template<typename T2 >
DenseMatrix< TStorage > & operator-= (const T2 &t)
 
this_typeoperator-= (double alpha)
 
this_type operator/ (this_type &other)
 
this_typeoperator/= (double alpha)
 
this_typeoperator/= (this_type &other)
 
template<typename T >
this_typeoperator= (const T &t)
 
template<typename T2 >
DenseMatrix< TStorage > & operator= (const T2 &t)
 
this_typeoperator= (const this_type &t)
 
this_typeoperator= (double alpha)
 
template<typename TStorage2 >
bool operator== (const DenseMatrix< TStorage2 > &t) const
 
bool operator== (double t) const
 
template<typename TStorage2 >
void subassign (size_t r, size_t c, const TStorage2 &t)
 
void subassign (size_t r, size_t c, const value_type &t)
 
this_type T () const
 

Static Public Attributes

static const eMatrixOrdering ordering = TStorage::ordering
 

Detailed Description

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

DenseMatrix is a mathematical matrix class, which inherits its storage behaviour (fixed/variable size, RowMajor/ColMajor ordering) from TStorage.

Parameters
TStoragestorage policy with interface of VariableArray2.
See also
FixedArray2, VariableArray2, eMatrixOrdering

Member Typedef Documentation

◆ base

template<typename TStorage >
typedef TStorage ug::DenseMatrix< TStorage >::base

◆ size_type

template<typename TStorage >
typedef TStorage::size_type ug::DenseMatrix< TStorage >::size_type

◆ this_type

template<typename TStorage >
typedef DenseMatrix<TStorage> ug::DenseMatrix< TStorage >::this_type

◆ value_type

template<typename TStorage >
typedef TStorage::value_type ug::DenseMatrix< TStorage >::value_type

Member Enumeration Documentation

◆ anonymous enum

template<typename TStorage >
anonymous enum
Enumerator
is_static 

◆ anonymous enum

template<typename TStorage >
anonymous enum
Enumerator
static_num_rows 

◆ anonymous enum

template<typename TStorage >
anonymous enum
Enumerator
static_num_cols 

Constructor & Destructor Documentation

◆ DenseMatrix() [1/3]

template<typename TStorage >
ug::DenseMatrix< TStorage >::DenseMatrix

◆ DenseMatrix() [2/3]

template<typename TStorage >
ug::DenseMatrix< TStorage >::DenseMatrix ( double  val)

◆ DenseMatrix() [3/3]

template<typename TStorage >
ug::DenseMatrix< TStorage >::DenseMatrix ( const this_type rhs)

Member Function Documentation

◆ entry() [1/2]

template<typename TStorage >
value_type& ug::DenseMatrix< TStorage >::entry ( size_type  r,
size_type  c 
)
inline

References operator()().

◆ entry() [2/2]

template<typename TStorage >
const value_type& ug::DenseMatrix< TStorage >::entry ( size_type  r,
size_type  c 
) const
inline

◆ maple_print()

template<typename TStorage >
void ug::DenseMatrix< TStorage >::maple_print ( const char *  name)

References ug::MatlabString(), name, and UG_LOG.

◆ operator!=() [1/2]

template<typename TStorage >
template<typename T2 >
bool ug::DenseMatrix< TStorage >::operator!= ( const T2 &  t) const

References ug::operator==().

◆ operator!=() [2/2]

template<typename TStorage >
template<typename TStorage2 >
bool ug::DenseMatrix< TStorage >::operator!= ( const TStorage2 &  t) const
inline

◆ operator*() [1/3]

template<typename TStorage >
template<typename TStorage2 >
DenseVector< TStorage2 > ug::DenseMatrix< TStorage >::operator* ( const DenseVector< TStorage2 > &  vec) const

References num_cols(), num_rows(), and UG_ASSERT.

◆ operator*() [2/3]

template<typename TStorage >
DenseMatrix< TStorage > ug::DenseMatrix< TStorage >::operator* ( const this_type mat) const
inline

◆ operator*() [3/3]

template<typename TStorage >
DenseMatrix< TStorage > ug::DenseMatrix< TStorage >::operator* ( double  alpha) const
inline

References alpha, num_cols(), and num_rows().

◆ operator*=() [1/2]

template<typename TStorage >
DenseMatrix< TStorage > & ug::DenseMatrix< TStorage >::operator*= ( const this_type mat)
inline

◆ operator*=() [2/2]

template<typename TStorage >
DenseMatrix< TStorage > & ug::DenseMatrix< TStorage >::operator*= ( double  alpha)
inline

◆ operator+()

template<typename TStorage >
DenseMatrix< TStorage > ug::DenseMatrix< TStorage >::operator+ ( const this_type other) const
inline

References num_cols(), num_rows(), and UG_ASSERT.

◆ operator+=() [1/3]

template<typename TStorage >
template<typename T >
this_type& ug::DenseMatrix< TStorage >::operator+= ( const T t)
inline

◆ operator+=() [2/3]

template<typename TStorage >
template<typename T2 >
DenseMatrix<TStorage>& ug::DenseMatrix< TStorage >::operator+= ( const T2 &  t)

◆ operator+=() [3/3]

template<typename TStorage >
DenseMatrix< TStorage > & ug::DenseMatrix< TStorage >::operator+= ( double  alpha)
inline

◆ operator-() [1/2]

template<typename TStorage >
DenseMatrix< TStorage > ug::DenseMatrix< TStorage >::operator-
inline

References num_cols(), and num_rows().

◆ operator-() [2/2]

template<typename TStorage >
DenseMatrix< TStorage > ug::DenseMatrix< TStorage >::operator- ( const this_type other) const
inline

References num_cols(), num_rows(), and UG_ASSERT.

◆ operator-=() [1/3]

template<typename TStorage >
template<typename T >
this_type& ug::DenseMatrix< TStorage >::operator-= ( const T t)
inline

◆ operator-=() [2/3]

template<typename TStorage >
template<typename T2 >
DenseMatrix<TStorage>& ug::DenseMatrix< TStorage >::operator-= ( const T2 &  t)

◆ operator-=() [3/3]

template<typename TStorage >
DenseMatrix< TStorage > & ug::DenseMatrix< TStorage >::operator-= ( double  alpha)
inline

References alpha, num_cols(), and num_rows().

◆ operator/()

template<typename TStorage >
DenseMatrix< TStorage > ug::DenseMatrix< TStorage >::operator/ ( this_type other)

References ug::Invert().

◆ operator/=() [1/2]

template<typename TStorage >
DenseMatrix< TStorage > & ug::DenseMatrix< TStorage >::operator/= ( double  alpha)
inline

References alpha, num_cols(), and num_rows().

◆ operator/=() [2/2]

template<typename TStorage >
DenseMatrix< TStorage > & ug::DenseMatrix< TStorage >::operator/= ( this_type other)
inline

References ug::Invert(), and UG_COND_THROW.

◆ operator=() [1/4]

template<typename TStorage >
template<typename T >
this_type& ug::DenseMatrix< TStorage >::operator= ( const T t)
inline

◆ operator=() [2/4]

template<typename TStorage >
template<typename T2 >
DenseMatrix<TStorage>& ug::DenseMatrix< TStorage >::operator= ( const T2 &  t)

◆ operator=() [3/4]

template<typename TStorage >
DenseMatrix< TStorage > & ug::DenseMatrix< TStorage >::operator= ( const this_type t)
inline

◆ operator=() [4/4]

template<typename TStorage >
DenseMatrix< TStorage > & ug::DenseMatrix< TStorage >::operator= ( double  alpha)
inline

References num_cols(), and num_rows().

◆ operator==() [1/2]

template<typename TStorage >
template<typename TStorage2 >
bool ug::DenseMatrix< TStorage >::operator== ( const DenseMatrix< TStorage2 > &  t) const
inline

References num_cols(), and num_rows().

◆ operator==() [2/2]

template<typename TStorage >
bool ug::DenseMatrix< TStorage >::operator== ( double  t) const
inline

References num_cols(), and num_rows().

◆ subassign() [1/2]

template<typename TStorage >
template<typename TStorage2 >
void ug::DenseMatrix< TStorage >::subassign ( size_t  r,
size_t  c,
const TStorage2 &  t 
)
inline

◆ subassign() [2/2]

template<typename TStorage >
void ug::DenseMatrix< TStorage >::subassign ( size_t  r,
size_t  c,
const value_type t 
)
inline

◆ T()

template<typename TStorage >
DenseMatrix< TStorage > ug::DenseMatrix< TStorage >::T
inline

References num_cols(), and num_rows().

Member Data Documentation

◆ ordering

template<typename TStorage >
const eMatrixOrdering ug::DenseMatrix< TStorage >::ordering = TStorage::ordering
static

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