OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Classes | Public Types | Public Member Functions | Private Attributes | List of all members
Tenzor< class, unsigned > Class Template Reference

#include <Quaternion.h>

Classes

class  DontInitialize
 

Public Types

enum  { ElemDim = 2 }
 
enum  { Size = D*D }
 
typedef T Element_t
 

Public Member Functions

 Tenzor ()
 
 Tenzor (DontInitialize)
 
 Tenzor (const Tenzor< T, D > &rhs)
 
 Tenzor (const T &x00)
 
 Tenzor (const T &x00, const T &x10, const T &x01, const T &x11)
 
 Tenzor (const T &x00, const T &x10, const T &x20, const T &x01, const T &x11, const T &x21, const T &x02, const T &x12, const T &x22)
 
 Tenzor (const SymTenzor< T, D > &)
 
 Tenzor (const AntiSymTenzor< T, D > &)
 
 ~Tenzor ()
 
const Tenzor< T, D > & operator= (const Tenzor< T, D > &rhs)
 
template<class T1 >
const Tenzor< T, D > & operator= (const Tenzor< T1, D > &rhs)
 
const Tenzor< T, D > & operator= (const T &rhs)
 
template<class T1 >
Tenzor< T, D > & operator+= (const Tenzor< T1, D > &rhs)
 
Tenzor< T, D > & operator+= (const T &rhs)
 
template<class T1 >
Tenzor< T, D > & operator-= (const Tenzor< T1, D > &rhs)
 
Tenzor< T, D > & operator-= (const T &rhs)
 
template<class T1 >
Tenzor< T, D > & operator*= (const Tenzor< T1, D > &rhs)
 
Tenzor< T, D > & operator*= (const T &rhs)
 
template<class T1 >
Tenzor< T, D > & operator/= (const Tenzor< T1, D > &rhs)
 
Tenzor< T, D > & operator/= (const T &rhs)
 
void diagonal (const T &rhs)
 
int len (void) const
 
int size (void) const
 
Element_toperator[] (unsigned int i)
 
Element_t operator[] (unsigned int i) const
 
Element_toperator() (unsigned int i)
 
Element_t operator() (unsigned int i) const
 
Element_t operator() (unsigned int i, unsigned int j) const
 
Element_toperator() (unsigned int i, unsigned int j)
 
Element_t operator() (const std::pair< int, int > i) const
 
Element_toperator() (const std::pair< int, int > i)
 
bool operator== (const Tenzor< T, D > &that) const
 
bool operator!= (const Tenzor< T, D > &that) const
 
MessageputMessage (Message &m) const
 
MessagegetMessage (Message &m)
 

Private Attributes

T X [Size]
 

Detailed Description

template<class, unsigned>
class Tenzor< class, unsigned >

Definition at line 8 of file Quaternion.h.

Member Typedef Documentation

template<class , unsigned >
typedef T Tenzor< class, unsigned >::Element_t

Definition at line 38 of file Tenzor.h.

Member Enumeration Documentation

template<class , unsigned >
anonymous enum
Enumerator
ElemDim 

Definition at line 39 of file Tenzor.h.

template<class , unsigned >
anonymous enum
Enumerator
Size 

Definition at line 40 of file Tenzor.h.

Constructor & Destructor Documentation

template<class , unsigned >
Tenzor< class, unsigned >::Tenzor ( )
inline

Definition at line 43 of file Tenzor.h.

template<class , unsigned >
Tenzor< class, unsigned >::Tenzor ( DontInitialize  )
inline

Definition at line 49 of file Tenzor.h.

template<class , unsigned >
Tenzor< class, unsigned >::Tenzor ( const Tenzor< T, D > &  rhs)
inline

Definition at line 52 of file Tenzor.h.

template<class , unsigned >
Tenzor< class, unsigned >::Tenzor ( const T x00)
inline

Definition at line 57 of file Tenzor.h.

template<class , unsigned >
Tenzor< class, unsigned >::Tenzor ( const T x00,
const T x10,
const T x01,
const T x11 
)
inline

Definition at line 62 of file Tenzor.h.

template<class , unsigned >
Tenzor< class, unsigned >::Tenzor ( const T x00,
const T x10,
const T x20,
const T x01,
const T x11,
const T x21,
const T x02,
const T x12,
const T x22 
)
inline

Definition at line 69 of file Tenzor.h.

template<class T , unsigned D>
Tenzor< T, D >::Tenzor ( const SymTenzor< T, D > &  rhs)

Definition at line 480 of file Tenzor.h.

template<class T , unsigned D>
Tenzor< T, D >::Tenzor ( const AntiSymTenzor< T, D > &  rhs)

Definition at line 487 of file Tenzor.h.

template<class , unsigned >
Tenzor< class, unsigned >::~Tenzor ( )
inline

Definition at line 90 of file Tenzor.h.

Member Function Documentation

template<class , unsigned >
void Tenzor< class, unsigned >::diagonal ( const T rhs)
inline

Definition at line 166 of file Tenzor.h.

template<class , unsigned >
Message& Tenzor< class, unsigned >::getMessage ( Message m)
inline

Definition at line 241 of file Tenzor.h.

Referenced by Tenzor< double, 3 >::getMessage().

template<class , unsigned >
int Tenzor< class, unsigned >::len ( void  ) const
inline

Definition at line 171 of file Tenzor.h.

template<class , unsigned >
bool Tenzor< class, unsigned >::operator!= ( const Tenzor< T, D > &  that) const
inline

Definition at line 228 of file Tenzor.h.

template<class , unsigned >
Element_t& Tenzor< class, unsigned >::operator() ( unsigned int  i)
inline

Definition at line 191 of file Tenzor.h.

template<class , unsigned >
Element_t Tenzor< class, unsigned >::operator() ( unsigned int  i) const
inline

Definition at line 196 of file Tenzor.h.

template<class , unsigned >
Element_t Tenzor< class, unsigned >::operator() ( unsigned int  i,
unsigned int  j 
) const
inline

Definition at line 202 of file Tenzor.h.

template<class , unsigned >
Element_t& Tenzor< class, unsigned >::operator() ( unsigned int  i,
unsigned int  j 
)
inline

Definition at line 207 of file Tenzor.h.

template<class , unsigned >
Element_t Tenzor< class, unsigned >::operator() ( const std::pair< int, int >  i) const
inline

Definition at line 212 of file Tenzor.h.

template<class , unsigned >
Element_t& Tenzor< class, unsigned >::operator() ( const std::pair< int, int >  i)
inline

Definition at line 217 of file Tenzor.h.

template<class , unsigned >
template<class T1 >
Tenzor<T,D>& Tenzor< class, unsigned >::operator*= ( const Tenzor< T1, D > &  rhs)
inline

Definition at line 137 of file Tenzor.h.

template<class , unsigned >
Tenzor<T,D>& Tenzor< class, unsigned >::operator*= ( const T rhs)
inline

Definition at line 143 of file Tenzor.h.

template<class , unsigned >
template<class T1 >
Tenzor<T,D>& Tenzor< class, unsigned >::operator+= ( const Tenzor< T1, D > &  rhs)
inline

Definition at line 109 of file Tenzor.h.

template<class , unsigned >
Tenzor<T,D>& Tenzor< class, unsigned >::operator+= ( const T rhs)
inline

Definition at line 115 of file Tenzor.h.

template<class , unsigned >
template<class T1 >
Tenzor<T,D>& Tenzor< class, unsigned >::operator-= ( const Tenzor< T1, D > &  rhs)
inline

Definition at line 123 of file Tenzor.h.

template<class , unsigned >
Tenzor<T,D>& Tenzor< class, unsigned >::operator-= ( const T rhs)
inline

Definition at line 129 of file Tenzor.h.

template<class , unsigned >
template<class T1 >
Tenzor<T,D>& Tenzor< class, unsigned >::operator/= ( const Tenzor< T1, D > &  rhs)
inline

Definition at line 151 of file Tenzor.h.

template<class , unsigned >
Tenzor<T,D>& Tenzor< class, unsigned >::operator/= ( const T rhs)
inline

Definition at line 157 of file Tenzor.h.

template<class , unsigned >
const Tenzor<T,D>& Tenzor< class, unsigned >::operator= ( const Tenzor< T, D > &  rhs)
inline

Definition at line 93 of file Tenzor.h.

template<class , unsigned >
template<class T1 >
const Tenzor<T,D>& Tenzor< class, unsigned >::operator= ( const Tenzor< T1, D > &  rhs)
inline

Definition at line 98 of file Tenzor.h.

template<class , unsigned >
const Tenzor<T,D>& Tenzor< class, unsigned >::operator= ( const T rhs)
inline

Definition at line 102 of file Tenzor.h.

template<class , unsigned >
bool Tenzor< class, unsigned >::operator== ( const Tenzor< T, D > &  that) const
inline

Definition at line 225 of file Tenzor.h.

template<class , unsigned >
Element_t& Tenzor< class, unsigned >::operator[] ( unsigned int  i)
inline

Definition at line 176 of file Tenzor.h.

template<class , unsigned >
Element_t Tenzor< class, unsigned >::operator[] ( unsigned int  i) const
inline

Definition at line 182 of file Tenzor.h.

template<class , unsigned >
Message& Tenzor< class, unsigned >::putMessage ( Message m) const
inline

Definition at line 234 of file Tenzor.h.

Referenced by Tenzor< double, 3 >::putMessage().

template<class , unsigned >
int Tenzor< class, unsigned >::size ( void  ) const
inline

Definition at line 172 of file Tenzor.h.

Member Data Documentation

template<class , unsigned >
T Tenzor< class, unsigned >::X[Size]
private

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