ext/nmatrix/nmatrix.h in nmatrix-0.1.0.rc3 vs ext/nmatrix/nmatrix.h in nmatrix-0.1.0.rc4
- old
+ new
@@ -177,11 +177,11 @@
NM_DECL_ENUM(dtype_t, dtype); \
size_t dim; \
size_t* shape; \
size_t* offset; \
int count; \
- STORAGE* src;
+ STORAGE* src;
#define NM_DEF_STORAGE_CHILD_STRUCT_PRE(name) typedef struct NM_ ## name { \
NM_DEF_STORAGE_ELEMENTS;
#define NM_DEF_STORAGE_STRUCT_POST(name) } NM_ ## name;
@@ -326,10 +326,10 @@
#define NM_DENSE_COUNT(val) (nm_storage_count_max_elements(NM_STORAGE_DENSE(val)))
#define NM_DENSE_ELEMENTS(val) (NM_STORAGE_DENSE(val)->elements)
#define NM_SIZEOF_DTYPE(val) (DTYPE_SIZES[NM_DTYPE(val)])
#define NM_REF(val,slice) (RefFuncs[NM_STYPE(val)]( NM_STORAGE(val), slice, NM_SIZEOF_DTYPE(val) ))
-
+
#define NM_MAX(a,b) (((a)>(b))?(a):(b))
#define NM_MIN(a,b) (((a)>(b))?(b):(a))
#define NM_SWAP(a,b,tmp) {(tmp)=(a);(a)=(b);(b)=(tmp);}
#define NM_CHECK_ALLOC(x) if (!x) rb_raise(rb_eNoMemError, "insufficient memory");