aimstil  5.0.5
misc_scalar_functions.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 til
 Belongs to package Box Do not include directly, include til/Box.h instead.
 

Functions

template<typename T >
INLINE const T til::square (const T &a)
 < Square of a number More...
 
template<typename T >
INLINE const T til::cube (const T &a)
 Max of two numbers. More...
 
template<typename T >
INLINE const T til::max (const T &a, const T &b)
 Min of two numbers. More...
 
template<typename T >
INLINE const T til::min (const T &a, const T &b)
 Max of three numbers. More...
 
template<typename T >
INLINE const T til::max (const T &a, const T &b, const T &c)
 Min of three numbers. More...
 
template<typename T >
INLINE const T til::min (const T &a, const T &b, const T &c)
 Min of four numbers. More...
 
template<typename T >
INLINE const T til::min (const T &a, const T &b, const T &c, const T &d)
 Force x into [a, b]. More...
 
template<typename T >
const T til::crop (const T &x, const T &a, const T &b)
 Force x into [0, dim-1]. More...
 
template<typename T , typename TInt >
const T til::rangecrop (const T &x, TInt dim)
 Absolute value of a number. More...
 
template<typename T >
INLINE double til::norm (const T &a, const T &b)
 < Euclidean norm of 2D vector (a, b) More...
 
template<typename T >
INLINE double til::norm (const T &a, const T &b, const T &c)
 
template<typename T >
til::integer_pow (T x, unsigned int n)