SpECTRE  v2026.04.01
Loading...
Searching...
No Matches
ContinuedFractionSummer< Fraction > Class Template Reference

Sum a continued fraction. More...

#include <FractionUtilities.hpp>

Public Types

using Term_t = std::decay_t<decltype(std::declval<Fraction>().numerator())>

Public Member Functions

Fraction value () const
 Sum of the supplied continued fraction terms. If the exact sum cannot be represented by the Fraction type, a semiconvergent may be returned instead.
void insert (Term_t term)
 Insert a new term. Terms should be supplied from most to least significant.

Detailed Description

template<class Fraction>
class ContinuedFractionSummer< Fraction >

Sum a continued fraction.

Template Parameters
Fractionthe result type, which must be a fraction type

The documentation for this class was generated from the following file:
  • src/Utilities/FractionUtilities.hpp