Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
shamphys::TabfluxCoagK0SparseView< T, Tidx >::PairEntries Struct Reference

#include <shamphys/include/shamphys/coala_interface.hpp>

Collaboration diagram for shamphys::TabfluxCoagK0SparseView< T, Tidx >::PairEntries:

Public Member Functions

bool is_empty () const
 Whether the pair has no stored entry (it does not contribute to the flux).
template<class Func>
void for_each_sparse (Func &&func) const
 Call func(j, tensor_tabflux_coag[j,l,m]) for each stored entry of the pair.

Public Attributes

const T * values
Tidx jmin
Tidx count

Detailed Description

template<class T, class Tidx = u32>
struct shamphys::TabfluxCoagK0SparseView< T, Tidx >::PairEntries

The stored entries of one pair \((l,m)\): \(j \in [j_{\rm min}, j_{\rm min} + {\rm count})\)

Definition at line 177 of file coala_interface.hpp.

Member Function Documentation

◆ for_each_sparse()

template<class T, class Tidx = u32>
template<class Func>
void shamphys::TabfluxCoagK0SparseView< T, Tidx >::PairEntries::for_each_sparse ( Func && func) const
inline

Call func(j, tensor_tabflux_coag[j,l,m]) for each stored entry of the pair.

Definition at line 187 of file coala_interface.hpp.

◆ is_empty()

template<class T, class Tidx = u32>
bool shamphys::TabfluxCoagK0SparseView< T, Tidx >::PairEntries::is_empty ( ) const
inline

Whether the pair has no stored entry (it does not contribute to the flux).

Definition at line 183 of file coala_interface.hpp.

Member Data Documentation

◆ count

template<class T, class Tidx = u32>
Tidx shamphys::TabfluxCoagK0SparseView< T, Tidx >::PairEntries::count

Definition at line 180 of file coala_interface.hpp.

◆ jmin

template<class T, class Tidx = u32>
Tidx shamphys::TabfluxCoagK0SparseView< T, Tidx >::PairEntries::jmin

Definition at line 179 of file coala_interface.hpp.

◆ values

template<class T, class Tidx = u32>
const T* shamphys::TabfluxCoagK0SparseView< T, Tidx >::PairEntries::values

Definition at line 178 of file coala_interface.hpp.


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