Scroll to navigation

tensor4(2rheolef) rheolef-6.1 tensor4(2rheolef)

NAME

tensor4 - a fouth order tensor

SYNOPSYS

The tensor4 class defines a fourth tensor where indices varie from zero to 2 (aka 3D physical space).

IMPLEMENTATION

template<class T>
class tensor4_basic {
public:
typedef size_t size_type; typedef T element_type;
// allocators:
tensor4_basic (const T& init_val = 0); tensor4_basic (const tensor4_basic<T>& a);
// affectation:
tensor4_basic<T>& operator= (const tensor4_basic<T>& a); tensor4_basic<T>& operator= (const T& val);
// accessors:
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;
// data: protected: T _x [3][3][3][3]; }; typedef tensor4_basic<Float> tensor4;
 
rheolef-6.1 rheolef-6.1