OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
Classes | Public Types | Public Member Functions | Private Attributes | List of all members
SymTenzor< T, D > Class Template Reference

#include <SymTenzor.h>

Classes

class  DontInitialize
 

Public Types

enum  { ElemDim = 2 }
 
enum  { Size = D*(D+1)/2 }
 
typedef T Element_t
 

Public Member Functions

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

Private Attributes

X [Size]
 

Detailed Description

template<class T, unsigned D>
class SymTenzor< T, D >

Definition at line 37 of file SymTenzor.h.

Member Typedef Documentation

◆ Element_t

template<class T , unsigned D>
typedef T SymTenzor< T, D >::Element_t

Definition at line 41 of file SymTenzor.h.

Member Enumeration Documentation

◆ anonymous enum

template<class T , unsigned D>
anonymous enum
Enumerator
Size 

Definition at line 43 of file SymTenzor.h.

◆ anonymous enum

template<class T , unsigned D>
anonymous enum
Enumerator
ElemDim 

Definition at line 42 of file SymTenzor.h.

Constructor & Destructor Documentation

◆ SymTenzor() [1/7]

template<class T , unsigned D>
SymTenzor< T, D >::SymTenzor ( )
inline

Definition at line 46 of file SymTenzor.h.

References Attrib::Legacy::Distribution::T.

◆ SymTenzor() [2/7]

template<class T , unsigned D>
SymTenzor< T, D >::SymTenzor ( DontInitialize  )
inline

Definition at line 52 of file SymTenzor.h.

◆ SymTenzor() [3/7]

template<class T , unsigned D>
SymTenzor< T, D >::SymTenzor ( const T &  x00)
inline

Definition at line 55 of file SymTenzor.h.

References Attrib::Legacy::Distribution::T.

◆ SymTenzor() [4/7]

template<class T , unsigned D>
SymTenzor< T, D >::SymTenzor ( const T &  x00,
const T &  x10,
const T &  x11 
)
inline

Definition at line 60 of file SymTenzor.h.

References PInsist, and SymTenzor< T, D >::X.

◆ SymTenzor() [5/7]

template<class T , unsigned D>
SymTenzor< T, D >::SymTenzor ( const T &  x00,
const T &  x10,
const T &  x11,
const T &  x20,
const T &  x21,
const T &  x22 
)
inline

Definition at line 65 of file SymTenzor.h.

References PInsist, and SymTenzor< T, D >::X.

◆ SymTenzor() [6/7]

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

Definition at line 73 of file SymTenzor.h.

◆ SymTenzor() [7/7]

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

Definition at line 80 of file SymTenzor.h.

◆ ~SymTenzor()

template<class T , unsigned D>
SymTenzor< T, D >::~SymTenzor ( )
inline

Definition at line 89 of file SymTenzor.h.

Member Function Documentation

◆ diagonal()

template<class T , unsigned D>
void SymTenzor< T, D >::diagonal ( const T &  rhs)
inline

Definition at line 175 of file SymTenzor.h.

References SymTenzor< T, D >::X.

◆ get_Size()

template<class T , unsigned D>
int SymTenzor< T, D >::get_Size ( void  ) const
inline

Definition at line 183 of file SymTenzor.h.

References SymTenzor< T, D >::Size.

◆ getMessage()

template<class T , unsigned D>
Message& SymTenzor< T, D >::getMessage ( Message m)
inline

Definition at line 267 of file SymTenzor.h.

References SymTenzor< T, D >::X.

◆ HL() [1/2]

template<class T , unsigned D>
Element_t& SymTenzor< T, D >::HL ( unsigned int  hi,
unsigned int  lo 
)
inline

Definition at line 220 of file SymTenzor.h.

References PAssert_GE, PAssert_LT, and SymTenzor< T, D >::X.

◆ HL() [2/2]

template<class T , unsigned D>
Element_t SymTenzor< T, D >::HL ( unsigned int  hi,
unsigned int  lo 
) const
inline

◆ len()

template<class T , unsigned D>
int SymTenzor< T, D >::len ( void  ) const
inline

Definition at line 181 of file SymTenzor.h.

References SymTenzor< T, D >::Size.

◆ operator!=()

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

Definition at line 255 of file SymTenzor.h.

◆ operator()() [1/6]

template<class T , unsigned D>
Element_t& SymTenzor< T, D >::operator() ( std::pair< int, int >  a)
inline

Definition at line 199 of file SymTenzor.h.

References a, and SymTenzor< T, D >::X.

◆ operator()() [2/6]

template<class T , unsigned D>
Element_t SymTenzor< T, D >::operator() ( std::pair< int, int >  a) const
inline

Definition at line 207 of file SymTenzor.h.

References a, and SymTenzor< T, D >::X.

◆ operator()() [3/6]

template<class T , unsigned D>
Element_t& SymTenzor< T, D >::operator() ( unsigned int  i)
inline

Definition at line 239 of file SymTenzor.h.

References PAssert, SymTenzor< T, D >::Size, and SymTenzor< T, D >::X.

◆ operator()() [4/6]

template<class T , unsigned D>
Element_t SymTenzor< T, D >::operator() ( unsigned int  i) const
inline

Definition at line 244 of file SymTenzor.h.

References PAssert, SymTenzor< T, D >::Size, and SymTenzor< T, D >::X.

◆ operator()() [5/6]

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

Definition at line 193 of file SymTenzor.h.

References SymTenzor< T, D >::X.

◆ operator()() [6/6]

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

Definition at line 187 of file SymTenzor.h.

References SymTenzor< T, D >::X.

◆ operator*=() [1/2]

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

Definition at line 146 of file SymTenzor.h.

◆ operator*=() [2/2]

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

Definition at line 152 of file SymTenzor.h.

References Attrib::Legacy::Distribution::T.

◆ operator+=() [1/2]

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

Definition at line 118 of file SymTenzor.h.

◆ operator+=() [2/2]

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

Definition at line 124 of file SymTenzor.h.

References Attrib::Legacy::Distribution::T.

◆ operator-=() [1/2]

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

Definition at line 132 of file SymTenzor.h.

◆ operator-=() [2/2]

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

Definition at line 138 of file SymTenzor.h.

References Attrib::Legacy::Distribution::T.

◆ operator/=() [1/2]

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

Definition at line 160 of file SymTenzor.h.

◆ operator/=() [2/2]

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

Definition at line 166 of file SymTenzor.h.

References Attrib::Legacy::Distribution::T.

◆ operator=() [1/4]

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

Definition at line 92 of file SymTenzor.h.

◆ operator=() [2/4]

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

Definition at line 98 of file SymTenzor.h.

◆ operator=() [3/4]

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

Definition at line 103 of file SymTenzor.h.

References Attrib::Legacy::Distribution::T.

◆ operator=() [4/4]

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

Definition at line 107 of file SymTenzor.h.

◆ operator==()

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

Definition at line 252 of file SymTenzor.h.

References Attrib::Legacy::Distribution::T, and SymTenzor< T, D >::X.

◆ operator[]() [1/2]

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

Definition at line 226 of file SymTenzor.h.

References PAssert_LT, SymTenzor< T, D >::Size, and SymTenzor< T, D >::X.

◆ operator[]() [2/2]

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

Definition at line 231 of file SymTenzor.h.

References PAssert_LT, SymTenzor< T, D >::Size, and SymTenzor< T, D >::X.

◆ putMessage()

template<class T , unsigned D>
Message& SymTenzor< T, D >::putMessage ( Message m) const
inline

Definition at line 261 of file SymTenzor.h.

References Message::setCopy(), and SymTenzor< T, D >::X.

Here is the call graph for this function:

◆ size()

template<class T , unsigned D>
int SymTenzor< T, D >::size ( void  ) const
inline

Definition at line 182 of file SymTenzor.h.

Member Data Documentation

◆ X

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

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