Peano
Loading...
Searching...
No Matches
Scalar.h File Reference
#include <limits>
Include dependency graph for Scalar.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  tarch
 Have to include this header, as I need access to the SYCL_EXTERNAL keyword.
 
namespace  tarch::la
 My collection of tiny vector operations.
 

Functions

double tarch::la::relativeEpsNormaledAgainstValueGreaterOne (double valueA, double valueB=std::numeric_limits< double >::min(), double eps=NUMERICAL_ZERO_DIFFERENCE)
 Determine a relative tolerance from one or two values.
 
double tarch::la::relativeEps (double valueA, double valueB=std::numeric_limits< double >::min(), double eps=NUMERICAL_ZERO_DIFFERENCE)
 Determine a relative tolerance from one or two values.
 
double tarch::la::max (double a, double b, double c)
 I need the maximum of three values all the time, to I decided to write a function for this.
 
double tarch::la::pow (double base, double exponent)
 Wrapper around std::pow which is redirected to Intel's implementation on Intel machines.
 
double tarch::la::convertAbsoluteIntoRelativeValue (double referenceValue, double value)
 Convert an absolute value into a relative one.
 

Variables

constexpr double tarch::la::PI = 3.1415926535897932384626433832795028841972
 
constexpr double tarch::la::E = 2.7182818284590452353602874713526624977572
 
constexpr double tarch::la::NUMERICAL_ZERO_DIFFERENCE = 1.0e-8