MFEM v4.9.0
Finite element discretization library
Loading...
Searching...
No Matches
mfem::Array3D< T > Class Template Reference

#include <array.hpp>

Public Member Functions

 Array3D ()
 
 Array3D (int n1, int n2, int n3)
 Construct a 3D array of size n1 x n2 x n3.
 
void SetSize (int n1, int n2, int n3)
 Set the 3D array size to n1 x n2 x n3.
 
int GetSize1 () const
 Get the 3D array size in the first dimension.
 
int GetSize2 () const
 Get the 3D array size in the second dimension.
 
int GetSize3 () const
 Get the 3D array size in the third dimension.
 
const T & operator() (int i, int j, int k) const
 
T & operator() (int i, int j, int k)
 
void operator= (const T &a)
 Set all entries of the array to the provided constant.
 

Detailed Description

template<class T>
class mfem::Array3D< T >

Definition at line 539 of file array.hpp.

Constructor & Destructor Documentation

◆ Array3D() [1/2]

template<class T >
mfem::Array3D< T >::Array3D ( )
inline

Definition at line 546 of file array.hpp.

◆ Array3D() [2/2]

template<class T >
mfem::Array3D< T >::Array3D ( int n1,
int n2,
int n3 )
inline

Construct a 3D array of size n1 x n2 x n3.

Definition at line 549 of file array.hpp.

Member Function Documentation

◆ GetSize1()

template<class T >
int mfem::Array3D< T >::GetSize1 ( ) const
inline

Get the 3D array size in the first dimension.

Definition at line 557 of file array.hpp.

◆ GetSize2()

template<class T >
int mfem::Array3D< T >::GetSize2 ( ) const
inline

Get the 3D array size in the second dimension.

Definition at line 564 of file array.hpp.

◆ GetSize3()

template<class T >
int mfem::Array3D< T >::GetSize3 ( ) const
inline

Get the 3D array size in the third dimension.

Definition at line 567 of file array.hpp.

◆ operator()() [1/2]

template<class T >
T & mfem::Array3D< T >::operator() ( int i,
int j,
int k )
inline

Definition at line 1185 of file array.hpp.

◆ operator()() [2/2]

template<class T >
const T & mfem::Array3D< T >::operator() ( int i,
int j,
int k ) const
inline

Definition at line 1174 of file array.hpp.

◆ operator=()

template<class T >
void mfem::Array3D< T >::operator= ( const T & a)
inline

Set all entries of the array to the provided constant.

Definition at line 573 of file array.hpp.

◆ SetSize()

template<class T >
void mfem::Array3D< T >::SetSize ( int n1,
int n2,
int n3 )
inline

Set the 3D array size to n1 x n2 x n3.

Definition at line 553 of file array.hpp.


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