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

Sparse storage of tensor_tabflux_coag ( \(k=0\)). More...

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

Collaboration diagram for shamphys::TabfluxCoagK0Sparse< T, Tidx >:

Public Attributes

std::vector< Tidx > pair_offset
 Offset in values of each pair, size nbins^2 + 1.
std::vector< Tidx > pair_jmin
 First bin \(j\) stored for each pair, size nbins^2.
std::vector< T > values
 Stored entries.

Detailed Description

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

Sparse storage of tensor_tabflux_coag ( \(k=0\)).

For each ordered pair \(p = (l,m)\), enumerated as for l, for m, only the range \(j \in [{\rm pair\_jmin}[p], {\rm pair\_jmin}[p] + {\rm pair\_offset}[p+1] - {\rm pair\_offset}[p])\) containing all the non-zero entries \(\mathrm{tensor\_tabflux\_coag}[j,l,m]\) is stored, contiguously in values starting at pair_offset[p]. The range is found from the tensor itself, so no assumption is made on its sparsity pattern, nor on the symmetry of \(\mathrm{dv}\).

Template Parameters
TFloating-point scalar type
TidxIndex type

Definition at line 156 of file coala_interface.hpp.

Member Data Documentation

◆ pair_jmin

template<class T, class Tidx = u32>
std::vector<Tidx> shamphys::TabfluxCoagK0Sparse< T, Tidx >::pair_jmin

First bin \(j\) stored for each pair, size nbins^2.

Definition at line 160 of file coala_interface.hpp.

◆ pair_offset

template<class T, class Tidx = u32>
std::vector<Tidx> shamphys::TabfluxCoagK0Sparse< T, Tidx >::pair_offset

Offset in values of each pair, size nbins^2 + 1.

Definition at line 158 of file coala_interface.hpp.

◆ values

template<class T, class Tidx = u32>
std::vector<T> shamphys::TabfluxCoagK0Sparse< T, Tidx >::values

Stored entries.

Definition at line 162 of file coala_interface.hpp.


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