Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Public Attributes | List of all members
shamalgs::numeric::BinnedCompute< T > Struct Template Reference

Structure holding the result of binning values for further computation. More...

#include <shamalgs/include/shamalgs/details/numeric/numeric.hpp>

+ Collaboration diagram for shamalgs::numeric::BinnedCompute< T >:

Public Attributes

sham::DeviceBuffer< T > valid_values
 Values that are within the bin range, sorted by bin.
 
sham::DeviceBuffer< u32offsets_bins
 Offsets for each bin (size nbins+1).
 

Detailed Description

template<class T>
struct shamalgs::numeric::BinnedCompute< T >

Structure holding the result of binning values for further computation.

This struct contains the valid values that fall within the specified bins and the offsets for each bin, allowing efficient per-bin computation.

Template Parameters
TThe data type of the values.

Definition at line 216 of file numeric.hpp.

Member Data Documentation

◆ offsets_bins

template<class T >
sham::DeviceBuffer<u32> shamalgs::numeric::BinnedCompute< T >::offsets_bins

Offsets for each bin (size nbins+1).

Definition at line 219 of file numeric.hpp.

◆ valid_values

template<class T >
sham::DeviceBuffer<T> shamalgs::numeric::BinnedCompute< T >::valid_values

Values that are within the bin range, sorted by bin.

Definition at line 218 of file numeric.hpp.


The documentation for this struct was generated from the following file: