Sha256: b87c51a913f221fd8e33098ea9425d0cd67e2f0f55598abd56508aba55fa4737

Contents?: true

Size: 664 Bytes

Versions: 3

Compression:

Stored size: 664 Bytes

Contents

/*
  @overload <%=name%>(<%=args[1][1]%>,<%=args[3][1]%>)
  @param  [DFloat]   <%=args[1][1]%>
  @param  [DFloat]   <%=args[3][1]%>
  @return [<%=class_name%>]  self

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

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

    v1 = cast_1d_contiguous(v1, cDF);
    p1 = (double*)na_get_pointer_for_read(v1);
    v2 = cast_1d_contiguous(v2, cDF);
    p2 = (double*)na_get_pointer_for_read(v2);

    <%=func_name%>(w, p1, RNARRAY_SIZE(v1), p2, RNARRAY_SIZE(v2));
    RB_GC_GUARD(v1);
    RB_GC_GUARD(v2);
    return self;
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
numo-gsl-0.1.2 ext/numo/gsl/histogram/tmpl/c_self_f_2d_set_ranges.c
numo-gsl-0.1.1 ext/numo/gsl/histogram/tmpl/c_self_f_2d_set_ranges.c
numo-gsl-0.1.0 ext/numo/gsl/histogram/tmpl/c_self_f_2d_set_ranges.c