|
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)
|
|
provides general mathematical constants and functions.
template<int iexp, typename T >
constexpr T precice::math::pow_int |
( |
const T | x | ) |
|
|
inlineconstexpr |
Computes the power of a given number by an integral exponent given at compile time, which is much faster than std::pow(x, iexp)
Definition at line 23 of file math.hpp.