ext/numo/narray/gen/tmpl/each_with_index.c in numo-narray-0.9.1.4 vs ext/numo/narray/gen/tmpl/each_with_index.c in numo-narray-0.9.1.5
- old
+ new
@@ -48,12 +48,15 @@
/*
Invokes the given block once for each element of self,
passing that element and indices along each axis as parameters.
@overload <%=name%>
+ For a block `{|x,i,j,...| ... }`,
+ @yieldparam [Numeric] x an element
+ @yieldparam [Integer] i,j,... multitimensional indices
@return [Numo::NArray] self
- For a block {|x,i,j,...| ... }
- @yield [x,i,j,...] x is an element, i,j,... are multidimensional indices.
+ @see #each
+ @see #map_with_index
*/
static VALUE
<%=c_func(0)%>(VALUE self)
{
ndfunc_arg_in_t ain[1] = {{Qnil,0}};