ext/numo/narray/gen/tmpl/each_with_index.c in numo-narray-0.9.0.4 vs ext/numo/narray/gen/tmpl/each_with_index.c in numo-narray-0.9.0.5
- old
+ new
@@ -46,16 +46,16 @@
}
/*
Invokes the given block once for each element of self,
passing that element and indices along each axis as parameters.
- @overload <%=method%>
+ @overload <%=name%>
@return [Numo::NArray] self
For a block {|x,i,j,...| ... }
@yield [x,i,j,...] x is an element, i,j,... are multidimensional indices.
*/
static VALUE
-<%=c_func%>(VALUE self)
+<%=c_func(0)%>(VALUE self)
{
ndfunc_arg_in_t ain[1] = {{Qnil,0}};
ndfunc_t ndf = {<%=c_iter%>, FULL_LOOP_NIP, 1,0, ain,0};
na_ndloop_with_index(&ndf, 1, self);