Sha256: b435dfda95ae9342701a13cbad4eb5e9c8bc6563b74134e3d2b60d2e23d87d41
Contents?: true
Size: 433 Bytes
Versions: 1
Compression:
Stored size: 433 Bytes
Contents
static VALUE <%=c_func%>(VALUE rary) { VALUE vnc, nary; narray_t *na; na_compose_t *nc; vnc = na_ary_composition(rary); Data_Get_Struct(vnc, na_compose_t, nc); nary = rb_narray_new(cT, nc->ndim, nc->shape); RB_GC_GUARD(vnc); GetNArray(nary,na); if (na->size > 0) { <%=find_tmpl("allocate").c_func%>(nary); <%=find_tmpl("store_array").c_func%>(nary,rary); } return nary; }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
numo-narray-0.9.0.4 | ext/numo/narray/gen/tmpl/cast_array.c |