std::vector< _Type, _Alloc > CepsVector
C++ vector.
std::make_unsigned_t< CepsInt > CepsUInt
Unsigned version on CepsInt.
float CepsReal
Need single precision floating point.
A class that computes the integral over time of a pointed scalar. The integral is computed each time ...
TimeIntegrator(const TimeIntegrator &)=default
Copy constructor.
CepsReal get() const
Current result.
CepsVector< CepsReal > m_current
Values of f at previous time steps.
TimeIntegrator(CepsReal *f, CepsReal timeStep, CepsUInt degree)
Constructor.
CepsReal * m_f
Pointed scalar.
CepsUInt m_pos
Where to put coeff in current.
void update()
Progress in the computation of the sum.
~TimeIntegrator()
Destructor.
CepsReal m_total
The integral to be corrected in get()
CepsVector< CepsVector< CepsReal > > m_w
Integration weights.