preCICE v3.1.2
No Matches
Namespaces | Functions
math.hpp File Reference
#include "math/constants.hpp"
#include "math/differences.hpp"
#include "math/la.hpp"
Include dependency graph for math.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


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


int precice::math::sign (double number)
 Return the sign, one of {-1, 0, 1}.
template<int iexp, typename T >
constexpr T precice::math::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)