Sha256: ecb3d643a8bcf52c3dfa82ec5a6efeff321dcafece7202476071eec5bf79254f

Contents?: true

Size: 352 Bytes

Versions: 3

Compression:

Stored size: 352 Bytes

Contents

/*
  @overload <%=name%>()
  @return [Array]   array of [<%=args[1][1]%>,<%=args[2][1]%>]

  <%= description %>
*/
static VALUE
<%=c_func(0)%>(VALUE self)
{
    <%=struct%> *w;
    double d1, d2;

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

    <%=func_name%>(w, &d1, &d2);
    return rb_assoc_new(DBL2NUM(d1),DBL2NUM(d2));
}

Version data entries

3 entries across 3 versions & 1 rubygems

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