|
WarpX
|
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 |
Functor that copies the elements of src into dst, while reordering them according to indices
| [in] | src | Source vector |
| [out] | dst | Destination vector |
| [in] | indices | Array of indices that indicate how to reorder elements |
|
inline |
|
inline |
|
private |
|
private |
|
private |