Sha256: 21c85638e801b5e66f3d4fa987dcc6c1b28644a3a2fad9338e016b694042fd28

Contents?: true

Size: 537 Bytes

Versions: 3

Compression:

Stored size: 537 Bytes

Contents

<%
h_struct = struct.sub(/_pdf/,"")
h_data_type_var = data_type_var.sub(/_pdf/,"")
%>
/*
  @overload <%=name%>(<%=args[1][1]%>)
  @param  [<%=class_name%>] <%=args[1][1]%>
  @return [Bool]

  <%= description %>
*/
static VALUE
<%=c_func(1)%>(VALUE self, VALUE v1)
{
    int stat;
    <%=struct%> *w;
    <%=h_struct%> *w1;

    TypedData_Get_Struct(self, <%=struct%>, &<%=data_type_var%>, w);
    TypedData_Get_Struct(v1, <%=h_struct%>, &<%=h_data_type_var%>, w1);

    stat = <%=func_name%>(w, w1);
    return (stat) ? Qtrue: Qfalse;
}

Version data entries

3 entries across 3 versions & 1 rubygems

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