Go to the source code of this file.
|
| class | fillBufferFlag |
| | Functor that fills the elements of the particle array inexflag with the value of the spatial array bmasks, at the corresponding particle position. More...
|
| |
| class | fillBufferFlagRemainingParticles |
| | Functor that fills the elements of the particle array inexflag with the value of the spatial array bmasks, at the corresponding particle position. More...
|
| |
| class | copyAndReorder< T > |
| | Functor that copies the elements of src into dst, while reordering them according to indices More...
|
| |
|
| void | fillWithConsecutiveIntegers (amrex::Gpu::DeviceVector< int > &v) |
| | Fill the elements of the input vector with consecutive integer, starting from 0.
|
| |
| template<typename ForwardIterator> |
| ForwardIterator | stablePartition (ForwardIterator const index_begin, ForwardIterator const index_end, amrex::Gpu::DeviceVector< int > const &predicate) |
| | Find the indices that would reorder the elements of predicate so that the elements with non-zero value precede the other elements.
|
| |
| template<typename ForwardIterator> |
| int | iteratorDistance (ForwardIterator const first, ForwardIterator const last) |
| | Return the number of elements between first and last
|
| |
◆ fillWithConsecutiveIntegers()
Fill the elements of the input vector with consecutive integer, starting from 0.
- Parameters
-
| [in,out] | v | Vector of integers, to be filled by this routine |
◆ iteratorDistance()
template<typename ForwardIterator>
| int iteratorDistance |
( |
ForwardIterator const | first, |
|
|
ForwardIterator const | last ) |
Return the number of elements between first and last
- Template Parameters
-
| ForwardIterator | An iterator that supports std::distance |
- Parameters
-
| [in] | first | Points to a position in a vector |
| [in] | last | Points to another position in a vector |
- Returns
- The number of elements between
first and last
◆ stablePartition()
template<typename ForwardIterator>
| ForwardIterator stablePartition |
( |
ForwardIterator const | index_begin, |
|
|
ForwardIterator const | index_end, |
|
|
amrex::Gpu::DeviceVector< int > const & | predicate ) |
Find the indices that would reorder the elements of predicate so that the elements with non-zero value precede the other elements.
- Template Parameters
-
| ForwardIterator | An iterator that supports std::advance |
- Parameters
-
| [in,out] | index_begin | Point to the beginning of the vector which is to be filled with these indices |
| [in,out] | index_end | Point to the end of the vector which is to be filled with these indices |
| [in] | predicate | that indicates the elements that need to be reordered first |