SyTen
high_precision.h File Reference

High-precision scalar, uses Boost under the hood. More...

#include <cstddef>
#include <iostream>
#include "inc/util/types.h"
#include "inc/util/configuration.h"
+ Include dependency graph for high_precision.h:
+ This graph shows which files directly or indirectly include this file:

Classes

struct  syten::HighPrec
 High-precision data type to be used for Clebsch-Gordan coefficients etc. More...
 
struct  syten::is_number< HighPrec >
 Explicit instantiation that a HighPrec is a numeric type. More...
 

Namespaces

 syten
 Syten namespace.
 

Functions

HighPrec syten::abs (HighPrec const &)
 Absolute value of a HighPrec value. More...
 
template<>
std::string syten::describe_scalar_type< HighPrec > ()
 Specialisation of describe_scalar_type() for HighPrec values. More...
 
bool syten::isnan (HighPrec const &)
 Returns true if the HighPrec value represents a NaN. More...
 
bool syten::operator!= (HighPrec const &, SYTEN_SRDEF_TYPE const)
 Not-equals comparison with SYTEN_SRDEF_TYPEs. More...
 
bool syten::operator!= (SYTEN_SRDEF_TYPE const, HighPrec const &)
 Not-equals comparison with SYTEN_SRDEF_TYPEs. More...
 
HighPrec syten::operator* (HighPrec const &, HighPrec const &)
 Multiplication of two HighPrec values. More...
 
HighPrec syten::operator+ (HighPrec const &, HighPrec const &)
 Addition of two HighPrec values. More...
 
HighPrec syten::operator- (HighPrec const &, HighPrec const &)
 Subtraction of two HighPrec values. More...
 
HighPrec syten::operator/ (HighPrec const &, HighPrec const &)
 Division of two HighPrec values. More...
 
bool syten::operator< (HighPrec const &, SYTEN_SRDEF_TYPE const)
 Less-than comparison with SYTEN_SRDEF_TYPEs. More...
 
bool syten::operator< (SYTEN_SRDEF_TYPE const, HighPrec const &)
 Less-than comparison with SYTEN_SRDEF_TYPEs. More...
 
std::ostreamsyten::operator<< (std::ostream &, HighPrec const &)
 Output of a HighPrec value. More...
 
bool syten::operator== (HighPrec const &, SYTEN_SRDEF_TYPE const)
 Equals-comparison with SYTEN_SRDEF_TYPEs. More...
 
bool syten::operator== (SYTEN_SRDEF_TYPE const, HighPrec const &)
 Equals-comparison with SYTEN_SRDEF_TYPEs. More...
 
bool syten::operator> (HighPrec const &, SYTEN_SRDEF_TYPE const)
 Greater-than comparison with SYTEN_SRDEF_TYPEs. More...
 
bool syten::operator> (SYTEN_SRDEF_TYPE const, HighPrec const &)
 Greater-than comparison with SYTEN_SRDEF_TYPEs. More...
 
HighPrec syten::pow (HighPrec const &, int)
 Integer power of a HighPrec value. More...
 
HighPrec syten::sqrt (HighPrec const &)
 Square root of a HighPrec value. More...
 

Detailed Description

High-precision scalar, uses Boost under the hood.

The indirection here avoids the Boost multiprecision library spilling into the entire toolkit.