LevelS C++ support library
3.83
|
Go to the source code of this file.
Functions | |
template<typename F > | |
bool | approx (F a, F b, F epsilon=1e-5) |
template<typename F > | |
bool | abs_approx (F a, F b, F epsilon=1e-5) |
template<typename I , typename F > | |
I | ifloor (F arg) |
template<typename I , typename F > | |
I | nearest (F arg) |
double | fmodulo (double v1, double v2) |
template<typename I > | |
I | imodulo (I v1, I v2) |
template<typename T > | |
T | sign (const T &signvalue) |
template<typename T , typename I > | |
T | xpow (I m, T val) |
template<typename I > | |
uint32 | isqrt (I arg) |
template<typename I > | |
int | ilog2 (I arg) |
double | safe_atan2 (double y, double x) |
template<typename T , typename Iter , typename Comp > | |
void | interpol_helper (const Iter &begin, const Iter &end, const T &val, Comp comp, tsize &idx, T &frac) |
template<typename T , typename Iter > | |
void | interpol_helper (const Iter &begin, const Iter &end, const T &val, tsize &idx, T &frac) |
Various convenience mathematical functions.
Copyright (C) 2002-2015 Max-Planck-Society
Definition in file math_utils.h.