Sha256: 74e5fc2d5b26994223c80ba36d00de2f23c79e11edd836e39f50496ca2fb3aca

Contents?: true

Size: 322 Bytes

Versions: 1

Compression:

Stored size: 322 Bytes

Contents

void <%="cumo_#{c_func(:nodef)}_kernel_launch"%>(dtype *ptr, dtype x);

static VALUE
<%=c_func(:nodef)%>(dtype x)
{
    VALUE v;
    dtype *ptr;

    v = nary_new(cT, 0, NULL);
    ptr = (dtype*)na_get_pointer_for_write(v);
    <%="cumo_#{c_func(:nodef)}_kernel_launch"%>(ptr, x);

    na_release_lock(v);
    return v;
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cumo-0.1.0 ext/cumo/narray/gen/tmpl/new_dim0.c