![]() |
Shamrock 2025.10.0
Astrophysical Code
|
#include "shamtree/MortonReducedSet.hpp"#include "shamalgs/details/algorithm/algorithm.hpp"#include "shambackends/DeviceBuffer.hpp"#include "shamtree/kernels/reduction_alg.hpp"#include <utility>
Include dependency graph for MortonReducedSet.cpp:Go to the source code of this file.
Functions | |
| template<class Tmorton , class Tvec , u32 dim> | |
| MortonReducedSet< Tmorton, Tvec, dim > | shamtree::reduce_morton_set (const sham::DeviceScheduler_ptr &dev_sched, MortonCodeSortedSet< Tmorton, Tvec, dim > &&morton_codes_set, u32 reduction_level, sham::DeviceBuffer< u32 > &&cache_buf_reduc_index_map, sham::DeviceBuffer< Tmorton > &&cache_reduced_morton_codes) |
| Reduces the given Morton code set by grouping together Morton codes that are close to each other in the tree. | |
| template<class Tmorton , class Tvec , u32 dim> | |
| MortonReducedSet< Tmorton, Tvec, dim > | shamtree::reduce_morton_set (const sham::DeviceScheduler_ptr &dev_sched, MortonCodeSortedSet< Tmorton, Tvec, dim > &&morton_codes_set, u32 reduction_level) |
| Reduces the given Morton code set by grouping together Morton codes that are close to each other in the tree. | |
Definition in file MortonReducedSet.cpp.
| MortonReducedSet< Tmorton, Tvec, dim > shamtree::reduce_morton_set | ( | const sham::DeviceScheduler_ptr & | dev_sched, |
| MortonCodeSortedSet< Tmorton, Tvec, dim > && | morton_codes_set, | ||
| u32 | reduction_level | ||
| ) |
Reduces the given Morton code set by grouping together Morton codes that are close to each other in the tree.
| dev_sched | The device scheduler to use for the reduction |
| morton_codes_set | The set of Morton codes to reduce |
| reduction_level | The amount of reduction to apply |
Definition at line 76 of file MortonReducedSet.cpp.
Here is the call graph for this function:| MortonReducedSet< Tmorton, Tvec, dim > shamtree::reduce_morton_set | ( | const sham::DeviceScheduler_ptr & | dev_sched, |
| MortonCodeSortedSet< Tmorton, Tvec, dim > && | morton_codes_set, | ||
| u32 | reduction_level, | ||
| sham::DeviceBuffer< u32 > && | cache_buf_reduc_index_map, | ||
| sham::DeviceBuffer< Tmorton > && | cache_reduced_morton_codes | ||
| ) |
Reduces the given Morton code set by grouping together Morton codes that are close to each other in the tree.
| dev_sched | The device scheduler to use for the reduction |
| morton_codes_set | The set of Morton codes to reduce |
| reduction_level | The amount of reduction to apply |
| cache_buf_reduc_index_map | A device buffer to be reused for the reduction index map |
| cache_reduced_morton_codes | A device buffer to be reused for the reduced Morton codes |
Definition at line 25 of file MortonReducedSet.cpp.
Here is the call graph for this function: