Sha256: 814ed577e1fc9489234b26818487b0fac56fc5b43d07a862a784fe325115207f
Contents?: true
Size: 482 Bytes
Versions: 3
Compression:
Stored size: 482 Bytes
Contents
<% set name: "new" set singleton: true define_singleton_method(:define){nil} %> /* :nodoc: */ static VALUE <%=c_func(:nodef)%>(VALUE self, const gsl_splinalg_itersolve_type *t, VALUE v1, VALUE v2) { <%=struct%> *w; size_t n, m; n = NUM2SIZET(v1); m = NUM2SIZET(v2); w = <%=func_name%>(t, n, m); if (!w) { rb_raise(rb_eNoMemError,"fail to allocate struct"); } return TypedData_Wrap_Struct(<%=class_var%>, &<%=data_type_var%>, (void*)w); }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
numo-gsl-0.1.2 | ext/numo/gsl/spmatrix/tmpl/itersolve_new.c |
numo-gsl-0.1.1 | ext/numo/gsl/spmatrix/tmpl/itersolve_new.c |
numo-gsl-0.1.0 | ext/numo/gsl/spmatrix/tmpl/itersolve_new.c |