rheolef  7.0
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
rheolef::tensor4_basic< T > Class Template Reference

#include <tensor4.h>

Collaboration diagram for rheolef::tensor4_basic< T >:
Collaboration graph
[legend]

Public Types

typedef size_t size_type
 
typedef T element_type
 
typedef T float_type
 

Public Member Functions

 tensor4_basic ()
 
 tensor4_basic (const T &init_val)
 
 tensor4_basic (const tensor4_basic< T > &a)
 
tensor4_basic< T > & operator= (const tensor4_basic< T > &a)
 
tensor4_basic< T > & operator= (const T &val)
 
T & operator() (size_type i, size_type j, size_type k, size_type l)
 
const T & operator() (size_type i, size_type j, size_type k, size_type l) const
 
tensor_basic< T > & operator() (size_type i, size_type j)
 
const tensor_basic< T > & operator() (size_type i, size_type j) const
 
tensor4_basic< T > & operator*= (const T &k)
 
tensor4_basic< T > & operator/= (const T &k)
 
tensor4_basic< T > operator* (const T &k) const
 
tensor4_basic< T > operator/ (const T &k) const
 
tensor4_basic< T > operator+ (const tensor4_basic< T > &b) const
 
tensor4_basic< T > operator- (const tensor4_basic< T > &b) const
 
std::ostream & put (std::ostream &out, size_type d=3) const
 

Static Public Member Functions

static tensor4_basic< T > eye (size_type d=3)
 

Protected Attributes

tensor_basic< tensor_basic< T > > _x
 

Detailed Description

template<class T>
class rheolef::tensor4_basic< T >

Definition at line 19 of file tensor4.h.

Member Typedef Documentation

◆ size_type

template<class T>
typedef size_t rheolef::tensor4_basic< T >::size_type

Definition at line 22 of file tensor4.h.

◆ element_type

template<class T>
typedef T rheolef::tensor4_basic< T >::element_type

Definition at line 23 of file tensor4.h.

◆ float_type

template<class T>
typedef T rheolef::tensor4_basic< T >::float_type

Definition at line 24 of file tensor4.h.

Constructor & Destructor Documentation

◆ tensor4_basic() [1/3]

template<class T >
rheolef::tensor4_basic< T >::tensor4_basic ( )
inline

Definition at line 80 of file tensor4.h.

◆ tensor4_basic() [2/3]

template<class T>
rheolef::tensor4_basic< T >::tensor4_basic ( const T &  init_val)
inlineexplicit

Definition at line 86 of file tensor4.h.

◆ tensor4_basic() [3/3]

template<class T>
rheolef::tensor4_basic< T >::tensor4_basic ( const tensor4_basic< T > &  a)
inline

Definition at line 92 of file tensor4.h.

Member Function Documentation

◆ eye()

template<class T >
tensor4_basic< T > rheolef::tensor4_basic< T >::eye ( size_type  d = 3)
static

Definition at line 8 of file tensor4.cc.

◆ operator=() [1/2]

template<class T>
tensor4_basic< T > & rheolef::tensor4_basic< T >::operator= ( const tensor4_basic< T > &  a)

Definition at line 103 of file tensor4.cc.

◆ operator=() [2/2]

template<class T>
tensor4_basic< T > & rheolef::tensor4_basic< T >::operator= ( const T &  val)

Definition at line 92 of file tensor4.cc.

◆ operator()() [1/4]

template<class T >
T & rheolef::tensor4_basic< T >::operator() ( size_type  i,
size_type  j,
size_type  k,
size_type  l 
)
inline

Definition at line 114 of file tensor4.h.

◆ operator()() [2/4]

template<class T >
const T & rheolef::tensor4_basic< T >::operator() ( size_type  i,
size_type  j,
size_type  k,
size_type  l 
) const
inline

Definition at line 121 of file tensor4.h.

◆ operator()() [3/4]

template<class T >
tensor_basic< T > & rheolef::tensor4_basic< T >::operator() ( size_type  i,
size_type  j 
)
inline

Definition at line 100 of file tensor4.h.

◆ operator()() [4/4]

template<class T >
const tensor_basic< T > & rheolef::tensor4_basic< T >::operator() ( size_type  i,
size_type  j 
) const
inline

Definition at line 107 of file tensor4.h.

◆ operator*=()

template<class T>
tensor4_basic< T > & rheolef::tensor4_basic< T >::operator*= ( const T &  k)
inline

Definition at line 115 of file tensor4.cc.

◆ operator/=()

template<class T>
tensor4_basic<T>& rheolef::tensor4_basic< T >::operator/= ( const T &  k)
inline

Definition at line 50 of file tensor4.h.

◆ operator*()

template<class T>
tensor4_basic< T > rheolef::tensor4_basic< T >::operator* ( const T &  k) const
inline

Definition at line 128 of file tensor4.h.

◆ operator/()

template<class T>
tensor4_basic< T > rheolef::tensor4_basic< T >::operator/ ( const T &  k) const
inline

Definition at line 148 of file tensor4.h.

◆ operator+()

template<class T>
tensor4_basic< T > rheolef::tensor4_basic< T >::operator+ ( const tensor4_basic< T > &  b) const

Definition at line 126 of file tensor4.cc.

◆ operator-()

template<class T>
tensor4_basic< T > rheolef::tensor4_basic< T >::operator- ( const tensor4_basic< T > &  b) const

Definition at line 139 of file tensor4.cc.

◆ put()

template<class T >
std::ostream & rheolef::tensor4_basic< T >::put ( std::ostream &  out,
size_type  d = 3 
) const

Definition at line 165 of file tensor4.cc.

Member Data Documentation

◆ _x

template<class T>
tensor_basic<tensor_basic<T> > rheolef::tensor4_basic< T >::_x
protected

Definition at line 59 of file tensor4.h.


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