Sha256: 06138482461cb591ded923091755cc291c8da83f44f4614a14418ed46d44e101

Contents?: true

Size: 481 Bytes

Versions: 1

Compression:

Stored size: 481 Bytes

Contents

static VALUE
<%=c_iter%>(char *ptr, size_t pos, VALUE fmt)
{
<% if is_object %>
    return rb_inspect(*(VALUE*)(ptr+pos));
<% else %>
    return format_<%=type_name%>(fmt, (dtype*)(ptr+pos));
<% end %>
}

/*
  Returns a string containing a human-readable representation of NArray.
  @overload inspect
  @return [String]
*/
static VALUE
<%=c_func(0)%>(VALUE ary)
{
    cumo_cuda_runtime_check_status(cudaDeviceSynchronize());
    return na_ndloop_inspect(ary, <%=c_iter%>, Qnil);
}

Version data entries

1 entries across 1 versions & 1 rubygems

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