LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
line::num_traits< Real< D > > Struct Template Reference

#include <line/num/number.h>

Inheritance diagram for line::num_traits< Real< D > >:
Collaboration diagram for line::num_traits< Real< D > >:

Public Types

using type = Real<D>

Static Public Member Functions

static const char * name ()
static Real< D > from_int (long v)
static Real< D > from_rational (long num, long den)
static Real< D > from_double (double v)
static double to_double (const Real< D > &v)
static double log_as_double (const Real< D > &v)
static std::string to_string (const Real< D > &v)

Static Public Attributes

static constexpr bool is_exact = false
static constexpr bool has_transcendental = true
static constexpr unsigned digits10 = D

Detailed Description

template<unsigned D>
struct line::num_traits< Real< D > >

Definition at line 152 of file number.h.

Member Typedef Documentation

◆ type

template<unsigned D>
using line::num_traits< Real< D > >::type = Real<D>

Definition at line 153 of file number.h.

Member Function Documentation

◆ from_double()

template<unsigned D>
Real< D > line::num_traits< Real< D > >::from_double ( double v)
inlinestatic

Definition at line 161 of file number.h.

◆ from_int()

template<unsigned D>
Real< D > line::num_traits< Real< D > >::from_int ( long v)
inlinestatic

Definition at line 159 of file number.h.

◆ from_rational()

template<unsigned D>
Real< D > line::num_traits< Real< D > >::from_rational ( long num,
long den )
inlinestatic

Definition at line 160 of file number.h.

◆ log_as_double()

template<unsigned D>
double line::num_traits< Real< D > >::log_as_double ( const Real< D > & v)
inlinestatic

Definition at line 163 of file number.h.

◆ name()

template<unsigned D>
const char * line::num_traits< Real< D > >::name ( )
inlinestatic

Definition at line 157 of file number.h.

◆ to_double()

template<unsigned D>
double line::num_traits< Real< D > >::to_double ( const Real< D > & v)
inlinestatic

Definition at line 162 of file number.h.

◆ to_string()

template<unsigned D>
std::string line::num_traits< Real< D > >::to_string ( const Real< D > & v)
inlinestatic

Definition at line 164 of file number.h.

Member Data Documentation

◆ digits10

template<unsigned D>
unsigned line::num_traits< Real< D > >::digits10 = D
staticconstexpr

Definition at line 156 of file number.h.

◆ has_transcendental

template<unsigned D>
bool line::num_traits< Real< D > >::has_transcendental = true
staticconstexpr

Definition at line 155 of file number.h.

◆ is_exact

template<unsigned D>
bool line::num_traits< Real< D > >::is_exact = false
staticconstexpr

Definition at line 154 of file number.h.


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