![]() |
Shamrock 2025.10.0
Astrophysical Code
|
Sparse storage of tensor_tabflux_coag ( \(k=0\)). More...
#include <shamphys/include/shamphys/coala_interface.hpp>
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. | |
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}\).
| T | Floating-point scalar type |
| Tidx | Index type |
Definition at line 156 of file coala_interface.hpp.
| 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.
| 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.
| std::vector<T> shamphys::TabfluxCoagK0Sparse< T, Tidx >::values |
Stored entries.
Definition at line 162 of file coala_interface.hpp.