Loading...
Searching...
No Matches
gpr::extended::WorkingPrecision< long double > Struct Reference

#include <gpr/ml/gp/ExtendedReal.h>

Static Public Member Functions

static long double unitRoundoff ()
static long double nextUp (long double value)
static long double nextDown (long double value)

Static Public Attributes

static constexpr bool kBinary64

Detailed Description

Definition at line 288 of file ExtendedReal.h.

Member Function Documentation

◆ nextDown()

long double gpr::extended::WorkingPrecision< long double >::nextDown ( long double value)
inlinestatic

Definition at line 309 of file ExtendedReal.h.

◆ nextUp()

long double gpr::extended::WorkingPrecision< long double >::nextUp ( long double value)
inlinestatic

Definition at line 300 of file ExtendedReal.h.

301 {
302 if constexpr (kBinary64)
303 return std::nextafter(static_cast<double>(value),
305 return std::nextafter(value,
307 }

◆ unitRoundoff()

long double gpr::extended::WorkingPrecision< long double >::unitRoundoff ( )
inlinestatic

Definition at line 295 of file ExtendedReal.h.

296 {
298 }

Member Data Documentation

◆ kBinary64

bool gpr::extended::WorkingPrecision< long double >::kBinary64
staticconstexpr
Initial value:
=
std::numeric_limits<long double>::digits ==
std::numeric_limits<double>::digits &&
std::numeric_limits<long double>::max_exponent ==
std::numeric_limits<double>::max_exponent

Definition at line 289 of file ExtendedReal.h.


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