Functor that copies the elements of src into dst, while reordering them according to indices
More...
#include <SortingUtils.H>
|
| | copyAndReorder (amrex::Gpu::DeviceVector< T > const &src, amrex::Gpu::DeviceVector< T > &dst, amrex::Gpu::DeviceVector< long > const &indices) |
| |
| AMREX_GPU_DEVICE AMREX_FORCE_INLINE void | operator() (const long ip) const |
| |
template<typename T>
class copyAndReorder< T >
Functor that copies the elements of src into dst, while reordering them according to indices
- Parameters
-
| [in] | src | Source vector |
| [out] | dst | Destination vector |
| [in] | indices | Array of indices that indicate how to reorder elements |
◆ copyAndReorder()
template<typename T >
| copyAndReorder< T >::copyAndReorder |
( |
amrex::Gpu::DeviceVector< T > const & |
src, |
|
|
amrex::Gpu::DeviceVector< T > & |
dst, |
|
|
amrex::Gpu::DeviceVector< long > const & |
indices |
|
) |
| |
|
inline |
◆ operator()()
template<typename T >
| AMREX_GPU_DEVICE AMREX_FORCE_INLINE void copyAndReorder< T >::operator() |
( |
const long |
ip | ) |
const |
|
inline |
◆ m_dst_ptr
◆ m_indices_ptr
◆ m_src_ptr
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/warpx/checkouts/20.10/Source/Particles/Sorting/SortingUtils.H