preCICE v3.1.2
Loading...
Searching...
No Matches
Namespaces | Functions | Variables
differences.hpp File Reference
#include <Eigen/Core>
#include "utils/assertion.hpp"
Include dependency graph for differences.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  precice
 Main namespace of the precice library.
 
namespace  precice::math
 provides general mathematical constants and functions.
 

Functions

template<class DerivedA , class DerivedB >
constexpr bool precice::math::equals (const Eigen::MatrixBase< DerivedA > &A, const Eigen::MatrixBase< DerivedB > &B, double tolerance=NUMERICAL_ZERO_DIFFERENCE)
 Compares two Eigen::MatrixBase for equality up to tolerance.
 
template<class Scalar >
std::enable_if< std::is_arithmetic< Scalar >::value, bool >::type precice::math::equals (const Scalar a, const Scalar b, const Scalar tolerance=NUMERICAL_ZERO_DIFFERENCE)
 Compares two scalar (arithmetic) types.
 
template<class DerivedA , class DerivedB >
bool precice::math::oneGreater (const Eigen::MatrixBase< DerivedA > &A, const Eigen::MatrixBase< DerivedB > &B, double tolerance=math::NUMERICAL_ZERO_DIFFERENCE)
 
template<class DerivedA , class DerivedB >
bool precice::math::oneGreaterEquals (const Eigen::MatrixBase< DerivedA > &A, const Eigen::MatrixBase< DerivedB > &B, double tolerance=math::NUMERICAL_ZERO_DIFFERENCE)
 
template<class DerivedA , class DerivedB >
bool precice::math::allGreater (const Eigen::MatrixBase< DerivedA > &A, const Eigen::MatrixBase< DerivedB > &B, double tolerance=math::NUMERICAL_ZERO_DIFFERENCE)
 
template<class DerivedA , class DerivedB >
bool precice::math::allGreaterEquals (const Eigen::MatrixBase< DerivedA > &A, const Eigen::MatrixBase< DerivedB > &B, double tolerance=math::NUMERICAL_ZERO_DIFFERENCE)
 
template<class Scalar >
std::enable_if< std::is_arithmetic< Scalar >::value, bool >::type precice::math::greater (Scalar A, Scalar B, Scalar tolerance=NUMERICAL_ZERO_DIFFERENCE)
 
template<class Scalar >
std::enable_if< std::is_arithmetic< Scalar >::value, bool >::type precice::math::greaterEquals (Scalar A, Scalar B, Scalar tolerance=NUMERICAL_ZERO_DIFFERENCE)
 
template<class Scalar >
std::enable_if< std::is_arithmetic< Scalar >::value, bool >::type precice::math::smaller (Scalar A, Scalar B, Scalar tolerance=NUMERICAL_ZERO_DIFFERENCE)
 
template<class Scalar >
std::enable_if< std::is_arithmetic< Scalar >::value, bool >::type precice::math::smallerEquals (Scalar A, Scalar B, Scalar tolerance=NUMERICAL_ZERO_DIFFERENCE)
 

Variables

constexpr double precice::math::NUMERICAL_ZERO_DIFFERENCE = 1.0e-14