Sha256: 02c31922fc22b7a8750345c5d8756bf2ba15714a745dee92a32a442ebe4b57ad
Contents?: true
Size: 470 Bytes
Versions: 3
Compression:
Stored size: 470 Bytes
Contents
typedef VALUE dtype; typedef VALUE rtype; #define cT numo_cRObject #define cRT cT //#define mTM mRObjectMath #include "float_def.h" #include "robj_macro.h" #define m_min_init (0.0/0.0) #define m_max_init (0.0/0.0) #define m_extract(x) (*(VALUE*)x) #define m_nearly_eq(x,y) robj_nearly_eq(x,y) inline static int robj_nearly_eq(VALUE vx, VALUE vy) { double x, y; x = NUM2DBL(vx); y = NUM2DBL(vy); return (fabs(x-y)<=(fabs(x)+fabs(y))*DBL_EPSILON*2); }
Version data entries
3 entries across 3 versions & 1 rubygems