SPH
Classes | Functions
Approx.h File Reference

Helper wrapper that allows to check whether two values are equal to some given accuracy. More...

#include "objects/geometry/TracelessTensor.h"

Go to the source code of this file.

Classes

class  Approx< Type >
 This is more or less stolen from Catch unit-testing framework. More...
 

Functions

template<typename Type >
Approx< Type > approx (const Type &value, const Float eps=EPS)
 We have to wait till c++17 for type deduction in constructors ... More...
 

Detailed Description

Helper wrapper that allows to check whether two values are equal to some given accuracy.

Author
Pavel Sevecek (sevecek at sirrah.troja.mff.cuni.cz)
Date
2016-2021

Definition in file Approx.h.

Function Documentation

◆ approx()

template<typename Type >
Approx<Type> approx ( const Type &  value,
const Float  eps = EPS 
)

We have to wait till c++17 for type deduction in constructors ...

Definition at line 59 of file Approx.h.