Alsvinn  0.5.3
The fast FVM simulator with UQ support
Public Member Functions | List of all members
alsfvm::gpu_array< T, N > Class Template Reference

The gpu_array class is akin to the std::array, only also works for gpus. More...

#include <alsfvm/gpu_array.hpp>

Public Member Functions

__host__ __device__ gpu_array ()
 
__host__ __device__ gpu_array (std::initializer_list< T > initializerList)
 
__host__ __device__ T & operator[] (int i)
 
__host__ __device__ const T & operator[] (int i) const
 
size_t size () const
 

Detailed Description

template<class T, size_t N>
class alsfvm::gpu_array< T, N >

The gpu_array class is akin to the std::array, only also works for gpus.

Constructor & Destructor Documentation

◆ gpu_array() [1/2]

template<class T , size_t N>
__host__ __device__ alsfvm::gpu_array< T, N >::gpu_array ( )
inline

◆ gpu_array() [2/2]

template<class T , size_t N>
__host__ __device__ alsfvm::gpu_array< T, N >::gpu_array ( std::initializer_list< T >  initializerList)
inline

Member Function Documentation

◆ operator[]() [1/2]

template<class T , size_t N>
__host__ __device__ T& alsfvm::gpu_array< T, N >::operator[] ( int  i)
inline

◆ operator[]() [2/2]

template<class T , size_t N>
__host__ __device__ const T& alsfvm::gpu_array< T, N >::operator[] ( int  i) const
inline

◆ size()

template<class T , size_t N>
size_t alsfvm::gpu_array< T, N >::size ( ) const
inline

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