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

#include <line/num/complex_number.h>

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

Public Types

using type = Complex

Static Public Member Functions

static const char * name ()
static Complex from_int (long v)
static Complex from_rational (long num, long den)
static Complex from_double (double v)
static double to_double (const Complex &v)
 The real part: the Laplace quadrature keeps Re and discards Im.
static double log_as_double (const Complex &v)
 Log of the modulus.
static std::string to_string (const Complex &v)

Static Public Attributes

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

Detailed Description

Definition at line 46 of file complex_number.h.

Member Typedef Documentation

◆ type

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

Definition at line 47 of file complex_number.h.

Member Function Documentation

◆ from_double()

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

Definition at line 56 of file complex_number.h.

◆ from_int()

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

Definition at line 52 of file complex_number.h.

◆ from_rational()

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

Definition at line 53 of file complex_number.h.

◆ log_as_double()

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

Log of the modulus.

Definition at line 60 of file complex_number.h.

◆ name()

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

Definition at line 50 of file complex_number.h.

◆ to_double()

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

The real part: the Laplace quadrature keeps Re and discards Im.

Definition at line 58 of file complex_number.h.

◆ to_string()

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

Definition at line 61 of file complex_number.h.

Member Data Documentation

◆ has_transcendental

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

Definition at line 49 of file complex_number.h.

◆ is_exact

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

Definition at line 48 of file complex_number.h.


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