math_utils.h File Reference

#include <cmath>
#include <algorithm>
#include "datatypes.h"

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>
ifloor (F arg)
template<typename I, typename F>
nearest (F arg)
double fmodulo (double v1, double v2)
template<typename I>
imodulo (I v1, I v2)
template<typename T>
sign (const T &signvalue)
template<typename T, typename I>
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)


Detailed Description

Various convenience mathematical functions.

Copyright (C) 2002-2015 Max-Planck-Society

Author:
Martin Reinecke

Definition in file math_utils.h.


Generated on Thu Oct 8 14:48:51 2015 for LevelS C++ support library