NEURON
math.h File Reference
#include <OS/enter-scope.h>

Go to the source code of this file.

Classes

class  Math
 

Macros

#define declare_binary_minmax(Type)
 
#define implement_binary_minmax(Type)
 
#define declare_4_minmax(Type)
 
#define implement_4_minmax(Type)
 

Functions

 implement_binary_minmax (int) implement_binary_minmax(unsigned) implement_binary_minmax(long) implement_binary_minmax(unsigned long) implement_binary_minmax(float) implement_binary_minmax(double) implement_4_minmax(int) implement_4_minmax(float) implement_4_minmax(double) inline int Math
 

Macro Definition Documentation

◆ declare_4_minmax

#define declare_4_minmax (   Type)
Value:
static Type min(Type a, Type b, Type c, Type d); \
static Type max(Type a, Type b, Type c, Type d)
double max(double a, double b)
Definition: geometry3d.cpp:22
#define min(a, b)
Definition: matrix.h:157
#define c

Definition at line 51 of file math.h.

◆ declare_binary_minmax

#define declare_binary_minmax (   Type)
Value:
static Type min(Type a, Type b); \
static Type max(Type a, Type b)
double max(double a, double b)
Definition: geometry3d.cpp:22
#define min(a, b)
Definition: matrix.h:157

Definition at line 43 of file math.h.

◆ implement_4_minmax

#define implement_4_minmax (   Type)
Value:
inline Type Math::min(Type a, Type b, Type c, Type d) { \
Type r1 = min(a, b), r2 = min(c, d); \
return min(r1, r2); \
} \
\
inline Type Math::max(Type a, Type b, Type c, Type d) { \
Type r1 = max(a, b), r2 = max(c, d); \
return max(r1, r2); \
}
double max(double a, double b)
Definition: geometry3d.cpp:22
#define min(a, b)
Definition: matrix.h:157
#define c

Definition at line 60 of file math.h.

◆ implement_binary_minmax

#define implement_binary_minmax (   Type)
Value:
inline Type Math::min(Type a, Type b) { return a < b ? a : b; } \
inline Type Math::max(Type a, Type b) { return a > b ? a : b; }
double max(double a, double b)
Definition: geometry3d.cpp:22
#define min(a, b)
Definition: matrix.h:157

Definition at line 47 of file math.h.

Function Documentation

◆ implement_binary_minmax()

implement_binary_minmax ( int  )

Definition at line 94 of file math.h.