Celeritas  0.5.0-86+4a8eea4
Public Member Functions | List of all members
celeritas::SegmentIntegrator< I > Class Template Reference

Integrate a piecewise function. More...

#include <CdfUtils.hh>

Public Member Functions

 SegmentIntegrator (I &&integrate)
 Construct with integrator.
 
template<class T , std::size_t N, std::size_t M>
void operator() (Span< T const, N > x, Span< T const, N > f, Span< T, M > dst, T init={})
 Integrate a function.
 

Detailed Description

template<class I>
class celeritas::SegmentIntegrator< I >

Integrate a piecewise function.

To construct a CDF, init should be zero, and the destination should be normalized by its final value afterward.


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