preCICE v3.2.0
|
provides general mathematical constants and functions. More...
Namespaces | |
namespace | barycenter |
Provides operations to calculate barycentric coordinates for a point's projection onto a primitive. | |
namespace | geometry |
Provides computational geometry operations. | |
Classes | |
class | Bspline |
Functions | |
template<class DerivedA , class DerivedB > | |
constexpr bool | 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 | equals (const Scalar a, const Scalar b, const Scalar tolerance=NUMERICAL_ZERO_DIFFERENCE) |
Compares two scalar (arithmetic) types. | |
template<class DerivedA , class DerivedB > | |
bool | oneGreater (const Eigen::MatrixBase< DerivedA > &A, const Eigen::MatrixBase< DerivedB > &B, double tolerance=math::NUMERICAL_ZERO_DIFFERENCE) |
template<class DerivedA , class DerivedB > | |
bool | oneGreaterEquals (const Eigen::MatrixBase< DerivedA > &A, const Eigen::MatrixBase< DerivedB > &B, double tolerance=math::NUMERICAL_ZERO_DIFFERENCE) |
template<class DerivedA , class DerivedB > | |
bool | allGreater (const Eigen::MatrixBase< DerivedA > &A, const Eigen::MatrixBase< DerivedB > &B, double tolerance=math::NUMERICAL_ZERO_DIFFERENCE) |
template<class DerivedA , class DerivedB > | |
bool | 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 | greater (Scalar A, Scalar B, Scalar tolerance=NUMERICAL_ZERO_DIFFERENCE) |
template<class Scalar > | |
std::enable_if< std::is_arithmetic< Scalar >::value, bool >::type | greaterEquals (Scalar A, Scalar B, Scalar tolerance=NUMERICAL_ZERO_DIFFERENCE) |
template<class Scalar > | |
std::enable_if< std::is_arithmetic< Scalar >::value, bool >::type | smaller (Scalar A, Scalar B, Scalar tolerance=NUMERICAL_ZERO_DIFFERENCE) |
template<class Scalar > | |
std::enable_if< std::is_arithmetic< Scalar >::value, bool >::type | smallerEquals (Scalar A, Scalar B, Scalar tolerance=NUMERICAL_ZERO_DIFFERENCE) |
template<typename DerivedA , typename DerivedB > | |
void | sumSubvectors (const Eigen::MatrixBase< DerivedA > &vector, Eigen::MatrixBase< DerivedB > &result) |
Sums up the components of subvectors in vector into result. | |
int | sign (double number) |
Return the sign, one of {-1, 0, 1}. | |
template<int iexp, typename T > | |
constexpr T | pow_int (const T x) |
Computes the power of a given number by an integral exponent given at compile time, which is much faster than std::pow(x, iexp) | |
Variables | |
constexpr double | PI = 3.1415926535897931 |
constexpr double | NUMERICAL_ZERO_DIFFERENCE = 1.0e-14 |
provides general mathematical constants and functions.
bool precice::math::allGreater | ( | const Eigen::MatrixBase< DerivedA > & | A, |
const Eigen::MatrixBase< DerivedB > & | B, | ||
double | tolerance = math::NUMERICAL_ZERO_DIFFERENCE ) |
Definition at line 49 of file differences.hpp.
bool precice::math::allGreaterEquals | ( | const Eigen::MatrixBase< DerivedA > & | A, |
const Eigen::MatrixBase< DerivedB > & | B, | ||
double | tolerance = math::NUMERICAL_ZERO_DIFFERENCE ) |
Definition at line 60 of file differences.hpp.
|
constexpr |
Compares two Eigen::MatrixBase for equality up to tolerance.
Definition at line 12 of file differences.hpp.
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.
Definition at line 21 of file differences.hpp.
std::enable_if< std::is_arithmetic< Scalar >::value, bool >::type precice::math::greater | ( | Scalar | A, |
Scalar | B, | ||
Scalar | tolerance = NUMERICAL_ZERO_DIFFERENCE ) |
Definition at line 71 of file differences.hpp.
std::enable_if< std::is_arithmetic< Scalar >::value, bool >::type precice::math::greaterEquals | ( | Scalar | A, |
Scalar | B, | ||
Scalar | tolerance = NUMERICAL_ZERO_DIFFERENCE ) |
Definition at line 77 of file differences.hpp.
bool precice::math::oneGreater | ( | const Eigen::MatrixBase< DerivedA > & | A, |
const Eigen::MatrixBase< DerivedB > & | B, | ||
double | tolerance = math::NUMERICAL_ZERO_DIFFERENCE ) |
Definition at line 27 of file differences.hpp.
bool precice::math::oneGreaterEquals | ( | const Eigen::MatrixBase< DerivedA > & | A, |
const Eigen::MatrixBase< DerivedB > & | B, | ||
double | tolerance = math::NUMERICAL_ZERO_DIFFERENCE ) |
Definition at line 38 of file differences.hpp.
|
inlineconstexpr |
|
inline |
std::enable_if< std::is_arithmetic< Scalar >::value, bool >::type precice::math::smaller | ( | Scalar | A, |
Scalar | B, | ||
Scalar | tolerance = NUMERICAL_ZERO_DIFFERENCE ) |
Definition at line 83 of file differences.hpp.
std::enable_if< std::is_arithmetic< Scalar >::value, bool >::type precice::math::smallerEquals | ( | Scalar | A, |
Scalar | B, | ||
Scalar | tolerance = NUMERICAL_ZERO_DIFFERENCE ) |
Definition at line 89 of file differences.hpp.
void precice::math::sumSubvectors | ( | const Eigen::MatrixBase< DerivedA > & | vector, |
Eigen::MatrixBase< DerivedB > & | result ) |
|
constexpr |
Definition at line 8 of file differences.hpp.
|
constexpr |
Definition at line 5 of file constants.hpp.