Mathematical functions. More...
#include <limits.h>
Go to the source code of this file.
Functions | |
template<typename T > | |
T | Abs (T x) |
template<class T > | |
T | Max (T a, T b) |
double | Max (double a, double b) |
double | Max (double a, long b) |
double | Max (double a, unsigned long b) |
double | Max (double a, int b) |
double | Max (double a, unsigned b) |
double | Max (long a, double b) |
double | Max (unsigned long a, double b) |
double | Max (int a, double b) |
double | Max (unsigned a, double b) |
int | Max (int a, int b) |
unsigned long | Max (unsigned long a, int b) |
unsigned long | Max (int a, unsigned long b) |
unsigned long | Max (unsigned a, unsigned long b) |
unsigned | Max (unsigned a, unsigned b) |
unsigned | Max (int a, unsigned b) |
unsigned | Max (unsigned a, int b) |
double | Max (double a, double b, double c) |
template<typename A , typename B , typename C , typename D , typename R > | |
R | Max (A a, B b, C c, D d) |
template<class T > | |
T | Min (T a, T b) |
double | Min (double a, double b) |
double | Min (double a, long b) |
double | Min (double a, int b) |
double | Min (double a, unsigned long b) |
double | Min (double a, unsigned b) |
double | Min (long a, double b) |
double | Min (int a, double b) |
double | Min (unsigned long a, double b) |
double | Min (unsigned a, double b) |
int | Min (int a, int b) |
void * | Min (void *a, void *b) |
unsigned | Min (unsigned a, unsigned b) |
int | Min (int a, unsigned int b) |
int | Min (unsigned int a, int b) |
double | Min (double a, double b, double c) |
template<typename A , typename B , typename C , typename D , typename R > | |
R | Min (A a, B b, C c, D d) |
Mathematical functions.
Defines often used mathematical functions.
Definition in file KernelMath.h.
Calculate the absolute value
Definition at line 315 of file KernelMath.h.
Evaluates the maximum of a
and b
and returns the result.
Definition at line 53 of file KernelMath.h.
double Max | ( | double | a, |
double | b | ||
) | [inline] |
Evaluates the maximum of a
and b
and returns the result.
Definition at line 61 of file KernelMath.h.
double Max | ( | double | a, |
long | b | ||
) | [inline] |
Evaluates the maximum of a
and b
and returns the result.
Definition at line 68 of file KernelMath.h.
double Max | ( | double | a, |
unsigned long | b | ||
) | [inline] |
Evaluates the maximum of a
and b
and returns the result.
Definition at line 75 of file KernelMath.h.
double Max | ( | double | a, |
int | b | ||
) | [inline] |
Evaluates the maximum of a
and b
and returns the result.
Definition at line 82 of file KernelMath.h.
double Max | ( | double | a, |
unsigned | b | ||
) | [inline] |
Evaluates the maximum of a
and b
and returns the result.
Definition at line 89 of file KernelMath.h.
double Max | ( | long | a, |
double | b | ||
) | [inline] |
Evaluates the maximum of a
and b
and returns the result.
Definition at line 96 of file KernelMath.h.
double Max | ( | unsigned long | a, |
double | b | ||
) | [inline] |
Evaluates the maximum of a
and b
and returns the result.
Definition at line 103 of file KernelMath.h.
double Max | ( | int | a, |
double | b | ||
) | [inline] |
Evaluates the maximum of a
and b
and returns the result.
Definition at line 110 of file KernelMath.h.
double Max | ( | unsigned | a, |
double | b | ||
) | [inline] |
Evaluates the maximum of a
and b
and returns the result.
Definition at line 117 of file KernelMath.h.
int Max | ( | int | a, |
int | b | ||
) | [inline] |
Evaluates the maximum of a
and b
and returns the result.
Definition at line 124 of file KernelMath.h.
unsigned long Max | ( | unsigned long | a, |
int | b | ||
) | [inline] |
Evaluates the maximum of a
and b
and returns the result.
Definition at line 133 of file KernelMath.h.
unsigned long Max | ( | int | a, |
unsigned long | b | ||
) | [inline] |
Evaluates the maximum of a
and b
and returns the result.
Definition at line 141 of file KernelMath.h.
unsigned long Max | ( | unsigned | a, |
unsigned long | b | ||
) | [inline] |
Evaluates the maximum of a
and b
and returns the result.
Definition at line 149 of file KernelMath.h.
unsigned Max | ( | unsigned | a, |
unsigned | b | ||
) | [inline] |
Evaluates the maximum of a
and b
and returns the result.
Definition at line 157 of file KernelMath.h.
unsigned Max | ( | int | a, |
unsigned | b | ||
) | [inline] |
Evaluates the maximum of a
and b
and returns the result.
Definition at line 164 of file KernelMath.h.
unsigned Max | ( | unsigned | a, |
int | b | ||
) | [inline] |
Evaluates the maximum of a
and b
and returns the result.
Definition at line 171 of file KernelMath.h.
double Max | ( | double | a, |
double | b, | ||
double | c | ||
) | [inline] |
Evaluates the maximum of a
,b
and c
and returns the result.
Definition at line 178 of file KernelMath.h.
R Max | ( | A | a, |
B | b, | ||
C | c, | ||
D | d | ||
) | [inline] |
Evaluates the maximum of a
,b
,c
and d
and returns the result.
Definition at line 186 of file KernelMath.h.
Evaluates the minimum of a
and b
and returns the result.
Definition at line 194 of file KernelMath.h.
double Min | ( | double | a, |
double | b | ||
) | [inline] |
Evaluates the minimum of a
and b
and returns the result.
Definition at line 201 of file KernelMath.h.
double Min | ( | double | a, |
long | b | ||
) | [inline] |
Evaluates the minimum of a
and b
and returns the result.
Definition at line 208 of file KernelMath.h.
double Min | ( | double | a, |
int | b | ||
) | [inline] |
Evaluates the minimum of a
and b
and returns the result.
Definition at line 215 of file KernelMath.h.
double Min | ( | double | a, |
unsigned long | b | ||
) | [inline] |
Evaluates the minimum of a
and b
and returns the result.
Definition at line 222 of file KernelMath.h.
double Min | ( | double | a, |
unsigned | b | ||
) | [inline] |
Evaluates the minimum of a
and b
and returns the result.
Definition at line 229 of file KernelMath.h.
double Min | ( | long | a, |
double | b | ||
) | [inline] |
Evaluates the minimum of a
and b
and returns the result.
Definition at line 236 of file KernelMath.h.
double Min | ( | int | a, |
double | b | ||
) | [inline] |
Evaluates the minimum of a
and b
and returns the result.
Definition at line 243 of file KernelMath.h.
double Min | ( | unsigned long | a, |
double | b | ||
) | [inline] |
Evaluates the minimum of a
and b
and returns the result.
Definition at line 250 of file KernelMath.h.
double Min | ( | unsigned | a, |
double | b | ||
) | [inline] |
Evaluates the minimum of a
and b
and returns the result.
Definition at line 257 of file KernelMath.h.
int Min | ( | int | a, |
int | b | ||
) | [inline] |
Evaluates the minimum of a
and b
and returns the result.
Definition at line 264 of file KernelMath.h.
void* Min | ( | void * | a, |
void * | b | ||
) | [inline] |
Evaluates the minimum of a
and b
and returns the result.
Definition at line 271 of file KernelMath.h.
unsigned Min | ( | unsigned | a, |
unsigned | b | ||
) | [inline] |
Evaluates the minimum of a
and b
and returns the result.
Definition at line 278 of file KernelMath.h.
int Min | ( | int | a, |
unsigned int | b | ||
) | [inline] |
Evaluates the minimum of a
and b
and returns the result.
Definition at line 285 of file KernelMath.h.
int Min | ( | unsigned int | a, |
int | b | ||
) | [inline] |
Evaluates the minimum of a
and b
and returns the result.
Definition at line 292 of file KernelMath.h.
double Min | ( | double | a, |
double | b, | ||
double | c | ||
) | [inline] |
Evaluates the minimum of a
, b
and c
and returns the result.
Definition at line 299 of file KernelMath.h.
R Min | ( | A | a, |
B | b, | ||
C | c, | ||
D | d | ||
) | [inline] |
Evaluates the minimum of a
, b
, c
and d
and returns the result.
Definition at line 307 of file KernelMath.h.