OpenWalnut  1.4.0
Public Member Functions | List of all members
WTensorFunc< TensorBase_T, 4, dim, Data_T > Class Template Reference

Implements the operator () for an order of 4. More...

#include <WTensorBase.h>

+ Inheritance diagram for WTensorFunc< TensorBase_T, 4, dim, Data_T >:

Public Member Functions

 WTensorFunc ()
 Default constructor. More...
 
 WTensorFunc (const WValue< Data_T > &data)
 Initializes the tensor with the given data. More...
 
 WTensorFunc (const boost::array< Data_T, TensorBase_T< 4, dim, Data_T >::dataSize > &data)
 Initializes the tensor with the given data. More...
 
Data_T & operator() (std::size_t i0, std::size_t i1, std::size_t i2, std::size_t i3)
 Access operator. More...
 
Data_T const & operator() (std::size_t i0, std::size_t i1, std::size_t i2, std::size_t i3) const
 Access operator. More...
 

Detailed Description

template<template< std::size_t, std::size_t, typename > class TensorBase_T, std::size_t dim, typename Data_T>
class WTensorFunc< TensorBase_T, 4, dim, Data_T >

Implements the operator () for an order of 4.

Template Parameters
TensorBase_TEither WTensorBase<> or WTensorBaseSym<>
dimThe dimension of the tensor, i.e. the number of components in each direction.
Data_TThe datatype of the components, double by default.

Definition at line 1391 of file WTensorBase.h.

Constructor & Destructor Documentation

template<template< std::size_t, std::size_t, typename > class TensorBase_T, std::size_t dim, typename Data_T >
WTensorFunc< TensorBase_T, 4, dim, Data_T >::WTensorFunc ( )

Default constructor.

Definition at line 1439 of file WTensorBase.h.

template<template< std::size_t, std::size_t, typename > class TensorBase_T, std::size_t dim, typename Data_T >
WTensorFunc< TensorBase_T, 4, dim, Data_T >::WTensorFunc ( const WValue< Data_T > &  data)
explicit

Initializes the tensor with the given data.

Parameters
dataComponents in same ordering as the components of the TensorBase class.

Definition at line 1445 of file WTensorBase.h.

template<template< std::size_t, std::size_t, typename > class TensorBase_T, std::size_t dim, typename Data_T >
WTensorFunc< TensorBase_T, 4, dim, Data_T >::WTensorFunc ( const boost::array< Data_T, TensorBase_T< 4, dim, Data_T >::dataSize > &  data)
explicit

Initializes the tensor with the given data.

Parameters
dataComponents in same ordering as the components of the TensorBase class.

Definition at line 1451 of file WTensorBase.h.

Member Function Documentation

template<template< std::size_t, std::size_t, typename > class TensorBase_T, std::size_t dim, typename Data_T >
Data_T & WTensorFunc< TensorBase_T, 4, dim, Data_T >::operator() ( std::size_t  i0,
std::size_t  i1,
std::size_t  i2,
std::size_t  i3 
)

Access operator.

Parameters
i0An index.
i1An index.
i2An index.
i3An index.
Returns
A reference to the element.

Definition at line 1457 of file WTensorBase.h.

template<template< std::size_t, std::size_t, typename > class TensorBase_T, std::size_t dim, typename Data_T >
Data_T const & WTensorFunc< TensorBase_T, 4, dim, Data_T >::operator() ( std::size_t  i0,
std::size_t  i1,
std::size_t  i2,
std::size_t  i3 
) const

Access operator.

Parameters
i0An index.
i1An index.
i2An index.
i3An index.
Returns
A reference to the element.

Definition at line 1463 of file WTensorBase.h.


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