Sha256: 2a42cd0e7787089d00851210162db83223f659e3e81c24c3db7c513a56dae41f

Contents?: true

Size: 256 Bytes

Versions: 18

Compression:

Stored size: 256 Bytes

Contents

static VALUE
<%=c_func(:nodef)%>(VALUE rary)
{
    VALUE nary;
    narray_t *na;

    nary = na_s_new_like(cT, rary);
    GetNArray(nary,na);
    if (na->size > 0) {
        <%=find_tmpl("store").find("array").c_func%>(nary,rary);
    }
    return nary;
}

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
numo-narray-0.9.2.1 ext/numo/narray/gen/tmpl/cast_array.c
numo-narray-0.9.2.0 ext/numo/narray/gen/tmpl/cast_array.c
numo-narray-0.9.1.9 ext/numo/narray/gen/tmpl/cast_array.c
numo-narray-0.9.1.8 ext/numo/narray/gen/tmpl/cast_array.c
numo-narray-0.9.1.7 ext/numo/narray/gen/tmpl/cast_array.c
numo-narray-0.9.1.6 ext/numo/narray/gen/tmpl/cast_array.c
numo-narray-0.9.1.5 ext/numo/narray/gen/tmpl/cast_array.c
numo-narray-0.9.1.4 ext/numo/narray/gen/tmpl/cast_array.c
numo-narray-0.9.1.3 ext/numo/narray/gen/tmpl/cast_array.c
cumo-0.1.0 ext/cumo/narray/gen/tmpl/cast_array.c
numo-narray-0.9.1.2 ext/numo/narray/gen/tmpl/cast_array.c
numo-narray-0.9.1.1 ext/numo/narray/gen/tmpl/cast_array.c
numo-narray-0.9.1.0 ext/numo/narray/gen/tmpl/cast_array.c
numo-narray-0.9.0.9 ext/numo/narray/gen/tmpl/cast_array.c
numo-narray-0.9.0.8 ext/numo/narray/gen/tmpl/cast_array.c
numo-narray-0.9.0.7 ext/numo/narray/gen/tmpl/cast_array.c
numo-narray-0.9.0.6 ext/numo/narray/gen/tmpl/cast_array.c
numo-narray-0.9.0.5 ext/numo/narray/gen/tmpl/cast_array.c