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

#include <line/num/number.h>

Inheritance diagram for line::num_traits< double >:
Collaboration diagram for line::num_traits< double >:

Public Types

using type = double

Static Public Member Functions

static const char * name ()
static double from_int (long v)
static double from_rational (long num, long den)
static double from_double (double v)
static double to_double (const double &v)
static double log_as_double (const double &v)
 log of the value, always returned as a double.
static std::string to_string (const double &v)

Static Public Attributes

static constexpr bool is_exact = false
static constexpr bool has_transcendental = true

Detailed Description

Definition at line 114 of file number.h.

Member Typedef Documentation

◆ type

using line::num_traits< double >::type = double

Definition at line 115 of file number.h.

Member Function Documentation

◆ from_double()

double line::num_traits< double >::from_double ( double v)
inlinestatic

Definition at line 124 of file number.h.

◆ from_int()

double line::num_traits< double >::from_int ( long v)
inlinestatic

Definition at line 120 of file number.h.

◆ from_rational()

double line::num_traits< double >::from_rational ( long num,
long den )
inlinestatic

Definition at line 121 of file number.h.

◆ log_as_double()

double line::num_traits< double >::log_as_double ( const double & v)
inlinestatic

log of the value, always returned as a double.

Definition at line 127 of file number.h.

◆ name()

const char * line::num_traits< double >::name ( )
inlinestatic

Definition at line 118 of file number.h.

◆ to_double()

double line::num_traits< double >::to_double ( const double & v)
inlinestatic

Definition at line 125 of file number.h.

◆ to_string()

std::string line::num_traits< double >::to_string ( const double & v)
inlinestatic

Definition at line 128 of file number.h.

Member Data Documentation

◆ has_transcendental

bool line::num_traits< double >::has_transcendental = true
staticconstexpr

Definition at line 117 of file number.h.

◆ is_exact

bool line::num_traits< double >::is_exact = false
staticconstexpr

Definition at line 116 of file number.h.


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