WarpX
Public Member Functions | Private Attributes | List of all members
copyAndReorder< T > Class Template Reference

Functor that copies the elements of src into dst, while reordering them according to indices More...

#include <SortingUtils.H>

Public Member Functions

 copyAndReorder (amrex::Gpu::DeviceVector< T > const &src, amrex::Gpu::DeviceVector< T > &dst, amrex::Gpu::DeviceVector< int > const &indices)
 
AMREX_GPU_DEVICE AMREX_FORCE_INLINE void operator() (const int ip) const
 

Private Attributes

T const * m_src_ptr
 
T * m_dst_ptr
 
int const * m_indices_ptr
 

Detailed Description

template<typename T>
class copyAndReorder< T >

Functor that copies the elements of src into dst, while reordering them according to indices

Parameters
[in]srcSource vector
[out]dstDestination vector
[in]indicesArray of indices that indicate how to reorder elements

Constructor & Destructor Documentation

◆ copyAndReorder()

template<typename T >
copyAndReorder< T >::copyAndReorder ( amrex::Gpu::DeviceVector< T > const &  src,
amrex::Gpu::DeviceVector< T > &  dst,
amrex::Gpu::DeviceVector< int > const &  indices 
)
inline

Member Function Documentation

◆ operator()()

template<typename T >
AMREX_GPU_DEVICE AMREX_FORCE_INLINE void copyAndReorder< T >::operator() ( const int  ip) const
inline

Member Data Documentation

◆ m_dst_ptr

template<typename T >
T* copyAndReorder< T >::m_dst_ptr
private

◆ m_indices_ptr

template<typename T >
int const* copyAndReorder< T >::m_indices_ptr
private

◆ m_src_ptr

template<typename T >
T const* copyAndReorder< T >::m_src_ptr
private

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