ITK Function Reference

(V10000.1.0.60_20160308.00)
Macros | Functions
eq.h File Reference
#include <math.h>
#include <libugmath_exports.h>

Go to the source code of this file.

Macros

#define EQ_ask_systol   (1.0e-10)
 
#define EQ_is_2tol_eq(s, t, pos_tol, neg_tol)
 
#define EQ_is_2tol_ne(s, t, pos_tol, neg_tol)   (! EQ_is_2tol_eq(s, t, pos_tol, neg_tol))
 
#define EQ_is_eq(s, t, tol)   (EQ_is_equal( s, t, tol ))
 
#define EQ_is_equal(s, t, tol)   (fabs ((s) - (t)) <= (tol))
 
#define EQ_is_finite(s)   (fabs ((s)) < EQ_MAX_DBL)
 
#define EQ_is_ge(s, t, tol)   ((s) > ((t) - (tol)))
 
#define EQ_is_gt(s, t, tol)   ((s) > ((t) + (tol)))
 
#define EQ_is_le(s, t, tol)   ((s) < ((t) + (tol)))
 
#define EQ_is_lt(s, t, tol)   ((s) < ((t) - (tol)))
 
#define EQ_is_ne(s, t, tol)   (! EQ_is_equal(s, t, tol))
 
#define EQ_is_zero(s, tol)   (fabs ((s)) <= (tol))
 
#define EQ_MAX_DBL   (1.0e19)
 
#define EQ_MIN_DBL   (1.0e-19)
 
#define EQ_TOL_LENGTH   (EQ_ask_length_tolerance())
 
#define EQ_TOL_LENGTH_SQ   (EQ_ask_length_squared_tolerance())
 
#define EQ_TOL_NUMBER   (EQ_ask_number_tolerance())
 

Functions

UGMATHEXPORT double EQ_ask_length_squared_tolerance (void)
 
UGMATHEXPORT double EQ_ask_length_tolerance (void)
 
UGMATHEXPORT double EQ_ask_number_tolerance (void)
 

Macro Definition Documentation

#define EQ_ask_systol   (1.0e-10)

Definition at line 87 of file eq.h.

#define EQ_is_2tol_eq (   s,
  t,
  pos_tol,
  neg_tol 
)
Value:
(EQ_is_ge(s, t, neg_tol) && \
EQ_is_le(s, t, pos_tol))

Definition at line 114 of file eq.h.

#define EQ_is_2tol_ne (   s,
  t,
  pos_tol,
  neg_tol 
)    (! EQ_is_2tol_eq(s, t, pos_tol, neg_tol))

Definition at line 117 of file eq.h.

#define EQ_is_eq (   s,
  t,
  tol 
)    (EQ_is_equal( s, t, tol ))

Definition at line 108 of file eq.h.

#define EQ_is_equal (   s,
  t,
  tol 
)    (fabs ((s) - (t)) <= (tol))

Definition at line 107 of file eq.h.

#define EQ_is_finite (   s)    (fabs ((s)) < EQ_MAX_DBL)

Definition at line 120 of file eq.h.

#define EQ_is_ge (   s,
  t,
  tol 
)    ((s) > ((t) - (tol)))

Definition at line 109 of file eq.h.

#define EQ_is_gt (   s,
  t,
  tol 
)    ((s) > ((t) + (tol)))

Definition at line 110 of file eq.h.

#define EQ_is_le (   s,
  t,
  tol 
)    ((s) < ((t) + (tol)))

Definition at line 111 of file eq.h.

#define EQ_is_lt (   s,
  t,
  tol 
)    ((s) < ((t) - (tol)))

Definition at line 112 of file eq.h.

#define EQ_is_ne (   s,
  t,
  tol 
)    (! EQ_is_equal(s, t, tol))

Definition at line 113 of file eq.h.

#define EQ_is_zero (   s,
  tol 
)    (fabs ((s)) <= (tol))

Definition at line 119 of file eq.h.

#define EQ_MAX_DBL   (1.0e19)

Definition at line 84 of file eq.h.

#define EQ_MIN_DBL   (1.0e-19)

Definition at line 85 of file eq.h.

#define EQ_TOL_LENGTH   (EQ_ask_length_tolerance())

Definition at line 82 of file eq.h.

#define EQ_TOL_LENGTH_SQ   (EQ_ask_length_squared_tolerance())

Definition at line 83 of file eq.h.

#define EQ_TOL_NUMBER   (EQ_ask_number_tolerance())

Definition at line 81 of file eq.h.

Function Documentation

UGMATHEXPORT double EQ_ask_length_squared_tolerance ( void  )
UGMATHEXPORT double EQ_ask_length_tolerance ( void  )
UGMATHEXPORT double EQ_ask_number_tolerance ( void  )