ext/numo/narray/gen/tmpl_bit/bit_count.c in numo-narray-0.9.0.5 vs ext/numo/narray/gen/tmpl_bit/bit_count.c in numo-narray-0.9.0.6

- old
+ new

@@ -64,21 +64,22 @@ } /* Returns the number of bits. If argument is supplied, return Int-array counted along the axes. - @overload <%=op_map%>(axis:nil) - @param [Integer,Array,Range] axis axes to be counted. + @overload <%=op_map%>(axis:nil, keepdims:false) + @param [Integer,Array,Range] axis (keyword) axes to be counted. + @param [TrueClass] keepdims (keyword) If true, the reduced axes are left in the result array as dimensions with size one. @return [Numo::Int64] */ static VALUE <%=c_func(-1)%>(int argc, VALUE *argv, VALUE self) { VALUE v, reduce; ndfunc_arg_in_t ain[3] = {{cT,0},{sym_reduce,0},{sym_init,0}}; ndfunc_arg_out_t aout[1] = {{numo_cInt64,0}}; ndfunc_t ndf = { <%=c_iter%>, FULL_LOOP_NIP, 3, 1, ain, aout }; - reduce = na_reduce_dimension(argc, argv, 1, &self, 0); + reduce = na_reduce_dimension(argc, argv, 1, &self, &ndf, 0); v = na_ndloop(&ndf, 3, self, reduce, INT2FIX(0)); return rb_funcall(v,rb_intern("extract"),0); }