Public Member Functions | Private Attributes | List of all members
oomph::FixedSizeRankThreeTensor< T, N1, N2, N3 > Class Template Reference

Class for fixed-size rank-three tensor storing N1 x N2 x N3 objects of type T. More...

#include <fixed_size_vector.h>

Public Member Functions

 FixedSizeRankThreeTensor ()
 Default constructor.
 
 FixedSizeRankThreeTensor (const T &value)
 Constructor with initialisation.
 
void fill (const T &value)
 Fill all entries with specified value.
 
T & operator() (const unsigned &i, const unsigned &j, const unsigned &k)
 Read/write access to (i,j,k)-th entry.
 
const T & operator() (const unsigned &i, const unsigned &j, const unsigned &k) const
 Read access to (i,j,k)-th entry.
 

Private Attributes

T Data [N1 *N2 *N3]
 Tensor data.
 

Detailed Description

template<class T, unsigned N1, unsigned N2, unsigned N3>
class oomph::FixedSizeRankThreeTensor< T, N1, N2, N3 >

Class for fixed-size rank-three tensor storing N1 x N2 x N3 objects of type T.

Storage layout:

(0,0,0), (0,0,1), ... , (0,0,N3-1), (0,1,0), ... ... (N1-1,N2-1,N3-1)

Definition at line 277 of file fixed_size_vector.h.

Constructor & Destructor Documentation

◆ FixedSizeRankThreeTensor() [1/2]

template<class T , unsigned N1, unsigned N2, unsigned N3>
oomph::FixedSizeRankThreeTensor< T, N1, N2, N3 >::FixedSizeRankThreeTensor ( )
inline

Default constructor.

Definition at line 281 of file fixed_size_vector.h.

◆ FixedSizeRankThreeTensor() [2/2]

template<class T , unsigned N1, unsigned N2, unsigned N3>
oomph::FixedSizeRankThreeTensor< T, N1, N2, N3 >::FixedSizeRankThreeTensor ( const T &  value)
inline

Constructor with initialisation.

Definition at line 284 of file fixed_size_vector.h.

References oomph::FixedSizeRankThreeTensor< T, N1, N2, N3 >::fill().

Member Function Documentation

◆ fill()

template<class T , unsigned N1, unsigned N2, unsigned N3>
void oomph::FixedSizeRankThreeTensor< T, N1, N2, N3 >::fill ( const T &  value)
inline

Fill all entries with specified value.

Definition at line 290 of file fixed_size_vector.h.

References i.

Referenced by oomph::FixedSizeRankThreeTensor< T, N1, N2, N3 >::FixedSizeRankThreeTensor().

◆ operator()() [1/2]

template<class T , unsigned N1, unsigned N2, unsigned N3>
T & oomph::FixedSizeRankThreeTensor< T, N1, N2, N3 >::operator() ( const unsigned &  i,
const unsigned &  j,
const unsigned &  k 
)
inline

Read/write access to (i,j,k)-th entry.

Definition at line 299 of file fixed_size_vector.h.

References i.

◆ operator()() [2/2]

template<class T , unsigned N1, unsigned N2, unsigned N3>
const T & oomph::FixedSizeRankThreeTensor< T, N1, N2, N3 >::operator() ( const unsigned &  i,
const unsigned &  j,
const unsigned &  k 
) const
inline

Read access to (i,j,k)-th entry.

Definition at line 321 of file fixed_size_vector.h.

References i.

Member Data Documentation

◆ Data

template<class T , unsigned N1, unsigned N2, unsigned N3>
T oomph::FixedSizeRankThreeTensor< T, N1, N2, N3 >::Data[N1 *N2 *N3]
private

Tensor data.

Definition at line 346 of file fixed_size_vector.h.


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