VirtualFluids 0.2.0
Parallel CFD LBM Solver
Loading...
Searching...
No Matches
UbMath.h File Reference
#include <basics/utilities/UbEqual.h>
#include <basics/utilities/UbSystem.h>
#include <cassert>
#include <cmath>
#include <iostream>
#include <limits>

Go to the source code of this file.

Classes

struct  ub_math::Epsilon< T >
 
struct  ub_math::Epsilon< double >
 
struct  ub_math::Epsilon< float >
 
struct  ub_math::Epsilon< long double >
 
struct  ub_math::Epsilon< int >
 

Namespaces

namespace  ub_math
 

Functions

template<typename T >
T ub_math::log (const T &z, const T &base)
 
template<typename T >
T ub_math::getNegativeInfinity ()
 
template<typename T >
T ub_math::getPositiveInfinity ()
 
template<typename T >
bool ub_math::isInfinity (const T &value)
 
template<typename T >
T ub_math::getNaN ()
 
template<typename T >
bool ub_math::isNaN (const T &x)
 
template<typename T >
T ub_math::getEqualityEpsilon ()
 
template<typename T >
bool ub_math::zero (const T &value)
 
template<>
bool ub_math::zero (const int &value)
 
template<typename T1 , typename T2 >
bool ub_math::zero (const T1 &value1, const T2 &value2)
 
template<typename T1 , typename T2 , typename T3 >
bool ub_math::zero (const T1 &value1, const T2 &value2, const T3 &value3)
 
template<typename T >
bool ub_math::negative (const T &value)
 
template<typename T >
bool ub_math::nonPositive (const T &value)
 
template<typename T >
bool ub_math::positive (const T &value)
 
template<typename T >
bool ub_math::nonNegative (const T &value)
 
template<typename T1 , typename T2 >
bool ub_math::equal (const T1 &value, const T2 &reference)
 
template<typename T1 , typename T2 , typename T3 >
bool ub_math::equal (const T1 &val1, const T2 &val2, const T3 &val3)
 
template<typename T1 , typename T2 >
bool ub_math::less (const T1 &value, const T2 &reference)
 
template<typename T1 , typename T2 >
bool ub_math::lessEqual (const T1 &value, const T2 &reference)
 
template<typename T1 , typename T2 >
bool ub_math::greater (const T1 &value, const T2 &reference)
 
template<typename T1 , typename T2 >
bool ub_math::greaterEqual (const T1 &value, const T2 &reference)
 
template<typename T >
T ub_math::round (const T &value, const int &decimalPlaces)
 
template<typename T >
int ub_math::integerRounding (const T &value)
 
template<typename T >
T ub_math::getRad (const T &degrees)
 
template<typename T >
T ub_math::getDegrees (const T &rad)
 
template<typename T >
T ub_math::ACos (const T &fValue)
 
template<typename T >
T ub_math::ASin (const T &fValue)
 
template<typename T >
T ub_math::invSqrt (const T &fValue)
 
template<typename T1 , typename T2 , typename T3 , typename T4 >
bool ub_math::less2 (const T1 &value1, const T2 &value2, T3 toBeLessAs1, T4 toBeLessAs2)
 
template<typename T1 , typename T2 , typename T3 , typename T4 >
bool ub_math::greater2 (const T1 &value1, const T2 &value2, T3 toBeGreaterAs1, T4 toBeGreaterAs2)
 
template<typename T1 , typename T2 , typename T3 >
bool ub_math::inClosedInterval (const T1 &value, const T2 &threshold1, const T3 &threshold2)
 
template<typename T1 , typename T2 , typename T3 >
bool ub_math::inOpenInterval (const T1 &value, const T2 &threshold1, const T3 &threshold2)
 
template<typename T1 , typename T2 , typename T3 >
double ub_math::adaptToClosedInterval (const T1 &value, const T2 &threshold1, const T3 &threshold2)
 
int ub_math::calcGgt (int val1, int val2)
 
int ub_math::calcGgt (int val1, const int &val2, int val3)
 
template<typename T >
const Tub_math::max (const T &a1, const T &a2)
 
template<typename T >
const Tub_math::max (const T &a1, const T &a2, const T &a3)
 
template<typename T >
const Tub_math::max (const T &a1, const T &a2, const T &a3, const T &a4)
 
template<typename T >
const Tub_math::min (const T &a1, const T &a2)
 
template<typename T >
const Tub_math::min (const T &a1, const T &a2, const T &a3)
 
template<typename T >
const Tub_math::min (const T &a1, const T &a2, const T &a3, const T &a4)
 
template<typename T , typename U >
constexpr T ub_math::lerp (const T &a, const T &b, const U &t)
 
template<typename T , typename U >
constexpr T ub_math::lerp2 (const T &a, const T &b, const T &c, const T &d, const U &t, const U &u)
 
template<typename T , typename U >
constexpr T ub_math::lerp3 (const T &a, const T &b, const T &c, const T &d, const T &e, const T &f, const T &g, const T &h, const U &t, const U &u, const U &v)
 

Variables

const double ub_math::PI