NuTo
Numerics Tool
Classes | Public Member Functions | Friends | List of all members
NuTo::DofMatrixContainer< T > Class Template Reference

dof container that is also capable of performing calculations. More...

#include <DofMatrixContainer.h>

Public Member Functions

T & operator() (DofType d0, DofType d1)
 
const T & operator() (DofType d0, DofType d1) const
 
DofMatrixContaineroperator+= (const DofMatrixContainer &rhs)
 performs uninitialized addition that resizes the data to the length of rhs More...
 
DofMatrixContaineroperator*= (double scalar)
 
void AddScaled (const DofMatrixContainer &rhs, double scalar)
 calculates (*this) += rhs * scalar More...
 
std::vector< DofTypeDofTypes () const
 

Friends

DofMatrixContainer operator+ (DofMatrixContainer lhs, const DofMatrixContainer &rhs)
 
DofMatrixContainer operator* (DofMatrixContainer lhs, double scalar)
 
std::ostream & operator<< (std::ostream &out, const DofMatrixContainer< T > &dofMatrix)
 

Detailed Description

template<typename T>
class NuTo::DofMatrixContainer< T >

dof container that is also capable of performing calculations.

Member Function Documentation

template<typename T>
void NuTo::DofMatrixContainer< T >::AddScaled ( const DofMatrixContainer< T > &  rhs,
double  scalar 
)
inline

calculates (*this) += rhs * scalar

Remarks
This is the common case in the numerical integration - summing up all integration point contributions scaled with DetJ and the integration point weight.
template<typename T>
std::vector<DofType> NuTo::DofMatrixContainer< T >::DofTypes ( ) const
inline
template<typename T>
T& NuTo::DofMatrixContainer< T >::operator() ( DofType  d0,
DofType  d1 
)
inline
template<typename T>
const T& NuTo::DofMatrixContainer< T >::operator() ( DofType  d0,
DofType  d1 
) const
inline
template<typename T>
DofMatrixContainer& NuTo::DofMatrixContainer< T >::operator*= ( double  scalar)
inline
template<typename T>
DofMatrixContainer& NuTo::DofMatrixContainer< T >::operator+= ( const DofMatrixContainer< T > &  rhs)
inline

performs uninitialized addition that resizes the data to the length of rhs

Friends And Related Function Documentation

template<typename T>
DofMatrixContainer operator* ( DofMatrixContainer< T >  lhs,
double  scalar 
)
friend
template<typename T>
DofMatrixContainer operator+ ( DofMatrixContainer< T >  lhs,
const DofMatrixContainer< T > &  rhs 
)
friend
template<typename T>
std::ostream& operator<< ( std::ostream &  out,
const DofMatrixContainer< T > &  dofMatrix 
)
friend

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