Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Functions
MortonCodeSortedSet.cpp File Reference
#include "shamtree/MortonCodeSortedSet.hpp"
#include "shamalgs/details/algorithm/algorithm.hpp"
#include "shamalgs/primitives/gen_buffer_index.hpp"
#include <utility>
+ Include dependency graph for MortonCodeSortedSet.cpp:

Go to the source code of this file.

Functions

template<class Tmorton , class Tvec , u32 dim>
MortonCodeSortedSet< Tmorton, Tvec, dim > shamtree::sort_morton_set (const sham::DeviceScheduler_ptr &dev_sched, MortonCodeSet< Tmorton, Tvec, dim > &&morton_codes_set, sham::DeviceBuffer< u32 > &&cached_map_morton_id_to_obj_id)
 Sorts a set of Morton codes and creates a new MortonCodeSortedSet object with the sorted codes and the associated map from sorted Morton code to object id.
 
template<class Tmorton , class Tvec , u32 dim>
MortonCodeSortedSet< Tmorton, Tvec, dim > shamtree::sort_morton_set (const sham::DeviceScheduler_ptr &dev_sched, MortonCodeSet< Tmorton, Tvec, dim > &&morton_codes_set)
 Sorts a set of Morton codes and creates a new MortonCodeSortedSet object with the sorted codes and the associated map from sorted Morton code to object id.
 

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 MortonCodeSortedSet.cpp.

Function Documentation

◆ sort_morton_set() [1/2]

template<class Tmorton , class Tvec , u32 dim>
MortonCodeSortedSet< Tmorton, Tvec, dim > shamtree::sort_morton_set ( const sham::DeviceScheduler_ptr &  dev_sched,
MortonCodeSet< Tmorton, Tvec, dim > &&  morton_codes_set 
)

Sorts a set of Morton codes and creates a new MortonCodeSortedSet object with the sorted codes and the associated map from sorted Morton code to object id.

Parameters
dev_schedThe SYCL device scheduler to use
morton_codes_setThe MortonCodeSet to be sorted
Returns
A new MortonCodeSortedSet object with the sorted codes and the associated map

Definition at line 52 of file MortonCodeSortedSet.cpp.

+ Here is the call graph for this function:

◆ sort_morton_set() [2/2]

template<class Tmorton , class Tvec , u32 dim>
MortonCodeSortedSet< Tmorton, Tvec, dim > shamtree::sort_morton_set ( const sham::DeviceScheduler_ptr &  dev_sched,
MortonCodeSet< Tmorton, Tvec, dim > &&  morton_codes_set,
sham::DeviceBuffer< u32 > &&  cached_map_morton_id_to_obj_id 
)

Sorts a set of Morton codes and creates a new MortonCodeSortedSet object with the sorted codes and the associated map from sorted Morton code to object id.

Parameters
dev_schedThe SYCL device scheduler to use
morton_codes_setThe MortonCodeSet to be sorted
cached_map_morton_id_to_obj_idA pre-allocated device buffer to store the map from sorted Morton code to object id
Returns
A new MortonCodeSortedSet object with the sorted codes and the associated map

Definition at line 24 of file MortonCodeSortedSet.cpp.

+ Here is the call graph for this function: