ext/numo/narray/index.c in numo-narray-0.9.1.5 vs ext/numo/narray/index.c in numo-narray-0.9.1.6

- old
+ new

@@ -1048,15 +1048,12 @@ # [[0, 1, 99, 3, 4], # [5, 6, 99, 8, 9], # [10, 11, 99, 13, 14], # [15, 16, 99, 18, 19]] */ -static VALUE na_aref(int argc, VALUE *argv, VALUE self) -{ - // implemented in subclasses - return rb_f_notimplement(argc,argv,self); -} +// implemented in subclasses +#define na_aref rb_f_notimplement /* Multi-dimensional element assignment. Replace element(s) at `dim0`, `dim1`, ... . Broadcasting mechanism is applied. @@ -1092,14 +1089,11 @@ # [[0, 1, 2, 3], # [99, 99, 99, 99], # [8, 9, 10, 11]] */ -static VALUE na_aset(int argc, VALUE *argv, VALUE self) -{ - // implemented in subclasses - return rb_f_notimplement(argc,argv,self); -} +// implemented in subclasses +#define na_aset rb_f_notimplement /* Multi-dimensional array indexing. Similar to numpy's tuple indexing, i.e., `a[[1,2,..],[3,4,..]]` Same as Numo::NArray#[] for one-dimensional NArray.