ext/numo/narray/gen/tmpl/binary2.c in numo-narray-0.9.0.4 vs ext/numo/narray/gen/tmpl/binary2.c in numo-narray-0.9.0.5

- old
+ new

@@ -11,17 +11,17 @@ INIT_PTR(lp, 2, p3, s3); INIT_PTR(lp, 3, p4, s4); for (i=n; i--;) { GET_DATA_STRIDE(p1,s1,dtype,x); GET_DATA_STRIDE(p2,s2,dtype,y); -<% if is_int and %w[divmod].include? method %> +<% if is_int and %w[divmod].include? name %> if (y==0) { lp->err_type = rb_eZeroDivError; return; } <% end %> - m_<%=method%>(x,y,a,b); + m_<%=name%>(x,y,a,b); SET_DATA_STRIDE(p3,s3,dtype,a); SET_DATA_STRIDE(p4,s4,dtype,b); } } @@ -34,16 +34,16 @@ return na_ndloop(&ndf, 2, self, other); } /* - Binary <%=method%>. + Binary <%=name%>. @overload <%=op_map%> other @param [Numo::NArray,Numeric] other - @return [Numo::NArray] <%=method%> of self and other. + @return [Numo::NArray] <%=name%> of self and other. */ static VALUE -<%=c_func%>(VALUE self, VALUE other) +<%=c_func(1)%>(VALUE self, VALUE other) { <% if is_object %> return <%=c_func%>_self(self, other); <% else %> VALUE klass, v;