All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SYS_Math.h File Reference
#include "SYS_API.h"
#include "SYS_Types.h"
#include <float.h>
#include <limits>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
+ Include dependency graph for SYS_Math.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


#define srand48(X)   static_assert(0, "Use SYSsrand48() instead")
#define drand48(X)   0; { static_assert(0, "Use SYSdrand48() instead"); }
#define SYSmax(a, b)   ((a) > (b) ? (a) : (b))
#define SYSmin(a, b)   ((a) < (b) ? (a) : (b))
#define SYSabs(a)   ((a) < 0 ? (a) : -(a))


SYS_API void SYSsrand48 (long seed)
SYS_API double SYSdrand48 ()
template<typename F >
int SYSsignum (const F a)
template<typename F >
bool SYSisNan (const F f)
bool SYSisNan (const fpreal16 f)
SYS_API bool SYSisNan (const char *number)
 SYSisNan() checks whether the string represents a non-finite number. More...
SYS_API bool SYSisInt (const char *str)
SYS_API bool SYSisFloat (const char *str)
SYS_API fpreal32 SYSroundAngle (fpreal32 base, fpreal32 source)
SYS_API fpreal64 SYSroundAngle (fpreal64 base, fpreal64 source)
SYS_API fpreal64 SYSroundAngle (int32 base, int32 source)
SYS_API fpreal64 SYSroundAngle (int64 base, int64 source)
SYS_API bool SYSisPrime (uint num)
SYS_API bool SYSisPrime (uint64 num)
SYS_API uint SYSmakePrime (uint num)
SYS_API uint64 SYSmakePrime (uint64 num)
bool SYSisFinite (fpreal16 f)

Macro Definition Documentation

#define drand48 (   X)    0; { static_assert(0, "Use SYSdrand48() instead"); }

Definition at line 158 of file SYS_Math.h.

#define srand48 (   X)    static_assert(0, "Use SYSsrand48() instead")

Definition at line 157 of file SYS_Math.h.

#define SYSabs (   a)    ((a) < 0 ? (a) : -(a))
CHOP/CHOP_Spring.C, RAY/RAY_DemoStamp.C, and SOP/SOP_BouncyAgent.C.

Definition at line 1367 of file SYS_Math.h.

#define SYSmax (   a,
)    ((a) > (b) ? (a) : (b))

Function Documentation

SYS_API double SYSdrand48 ( )
bool SYSisFinite ( fpreal16  f)

Check whether a number is finite. That is, not Nan and not infinity.

See Also

Definition at line 198 of file SYS_Math.h.

SYS_API bool SYSisFloat ( const char *  str)
SYS_API bool SYSisInt ( const char *  str)
template<typename F >
bool SYSisNan ( const f)

Definition at line 173 of file SYS_Math.h.

bool SYSisNan ( const fpreal16  f)

Definition at line 179 of file SYS_Math.h.

SYS_API bool SYSisNan ( const char *  number)

SYSisNan() checks whether the string represents a non-finite number.

SYS_API bool SYSisPrime ( uint  num)
SYS_API bool SYSisPrime ( uint64  num)
SYS_API uint SYSmakePrime ( uint  num)
SYS_API uint64 SYSmakePrime ( uint64  num)
SYS_API fpreal32 SYSroundAngle ( fpreal32  base,
fpreal32  source 
SYS_API fpreal64 SYSroundAngle ( fpreal64  base,
fpreal64  source 
SYS_API fpreal64 SYSroundAngle ( int32  base,
int32  source 
SYS_API fpreal64 SYSroundAngle ( int64  base,
int64  source 
template<typename F >
int SYSsignum ( const a)

Definition at line 166 of file SYS_Math.h.

SYS_API void SYSsrand48 ( long  seed)