Sha256: 561df70cefbcbc73602014b0f3d0890e517fad96d61c4775d471f6078ec51436

Contents?: true

Size: 418 Bytes

Versions: 3

Compression:

Stored size: 418 Bytes

Contents

/*
  @overload <%=name%>(<%=args[1..-1].map{|a| a[1]}.join(",")%>)
  @param  [Integer]  <%=args[1][1]%>
  @param  [Integer]  <%=args[2][1]%>
  @return [Float]    result

  <%= description %>
*/
static VALUE
<%=c_func(2)%>(VALUE self, VALUE v1, VALUE v2)
{
    <%=struct%> *w;

    TypedData_Get_Struct(self, <%=struct%>, &<%=data_type_var%>, w);

    return DBL2NUM(<%=func_name%>(w, NUM2SIZET(v1), NUM2SIZET(v2)));
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
numo-gsl-0.1.2 ext/numo/gsl/gen/tmpl/c_double_f_sizet_x2.c
numo-gsl-0.1.1 ext/numo/gsl/gen/tmpl/c_double_f_sizet_x2.c
numo-gsl-0.1.0 ext/numo/gsl/gen/tmpl/c_double_f_sizet_x2.c