Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Classes | Functions
MortonReducedSet.hpp File Reference
#include "shamtree/CellIterator.hpp"
#include "shamtree/LeafCellIterator.hpp"
#include "shamtree/MortonCodeSortedSet.hpp"
+ Include dependency graph for MortonReducedSet.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  shamtree::MortonReducedSet< Tmorton, Tvec, dim >
 Class representing a set of Morton codes with associated bounding box and position data that was reduced. More...
 

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)
 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, 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.
 

Detailed Description

Author
Timothée David–Cléris (tim.s.nosp@m.hamr.nosp@m.ock@p.nosp@m.roto.nosp@m.n.me)

Definition in file MortonReducedSet.hpp.

Function Documentation

◆ reduce_morton_set() [1/2]

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.

Parameters
dev_schedThe device scheduler to use for the reduction
morton_codes_setThe set of Morton codes to reduce
reduction_levelThe amount of reduction to apply
Returns
The reduced set of Morton codes

Definition at line 76 of file MortonReducedSet.cpp.

+ Here is the call graph for this function:

◆ reduce_morton_set() [2/2]

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.

Parameters
dev_schedThe device scheduler to use for the reduction
morton_codes_setThe set of Morton codes to reduce
reduction_levelThe amount of reduction to apply
cache_buf_reduc_index_mapA device buffer to be reused for the reduction index map
cache_reduced_morton_codesA device buffer to be reused for the reduced Morton codes
Returns
The reduced set of Morton codes

Definition at line 25 of file MortonReducedSet.cpp.

+ Here is the call graph for this function: