Theoretica
A C++ numerical and automatic mathematical library
chebyshev::prec::equation_options< T > Class Template Reference

Structure holding options for equivalence evaluation. More...

#include <prec_structures.h>

Public Member Functions

 equation_options ()
 Default constructor for equation options.
 
 equation_options (long double tolerance)
 Construct equation options from the tolerance, setting the distance function to a simple Euclidean distance.
 
 equation_options (long double tolerance, DistanceFunction< T > dist, bool quiet=false)
 Construct equation options from the tolerance, the distance function and the quiet flag (defaults to false).
 

Public Attributes

long double tolerance = CHEBYSHEV_PREC_TOLERANCE
 Tolerance on the absolute difference.
 
DistanceFunction< T > distance
 Distance function to measure the distance between the expected and evaluated value. More...
 
bool quiet = false
 Print to standard output or not.
 

Detailed Description

template<typename T>
class chebyshev::prec::equation_options< T >

Structure holding options for equivalence evaluation.

Member Data Documentation

◆ distance

template<typename T >
DistanceFunction<T> chebyshev::prec::equation_options< T >::distance
Initial value:
= [](T x, T y) {
const auto diff = x - y;
return (long double) (diff > 0 ? diff : -diff);
}

Distance function to measure the distance between the expected and evaluated value.


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