Hipace
Public Member Functions | Public Attributes | List of all members
Array2< T > Struct Template Reference

#include <GPUUtil.H>

Public Member Functions

 Array2 (const amrex::Array4< T > &rhs) noexcept
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE T & operator() (int i, int j) const noexcept
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE T * ptr (int i, int j) const noexcept
 

Public Attributes

T *AMREX_RESTRICT p
 
amrex::Long jstride = 0
 
amrex::Long start = 0
 

Constructor & Destructor Documentation

◆ Array2()

template<class T >
Array2< T >::Array2 ( const amrex::Array4< T > &  rhs)
inlinenoexcept

Member Function Documentation

◆ operator()()

template<class T >
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE T& Array2< T >::operator() ( int  i,
int  j 
) const
inlinenoexcept

◆ ptr()

template<class T >
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE T* Array2< T >::ptr ( int  i,
int  j 
) const
inlinenoexcept

Member Data Documentation

◆ jstride

template<class T >
amrex::Long Array2< T >::jstride = 0

◆ p

template<class T >
T* AMREX_RESTRICT Array2< T >::p

◆ start

template<class T >
amrex::Long Array2< T >::start = 0

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