Sha256: b28b88d42426be89392f922d93661049b3f0d412eb583a9a85e96eddaa334138

Contents?: true

Size: 420 Bytes

Versions: 9

Compression:

Stored size: 420 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)
{
    return na_ndloop_inspect(ary, <%=c_iter%>, Qnil);
}

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
numo-narray-0.9.2.1 ext/numo/narray/gen/tmpl/inspect.c
numo-narray-0.9.2.0 ext/numo/narray/gen/tmpl/inspect.c
numo-narray-0.9.1.9 ext/numo/narray/gen/tmpl/inspect.c
numo-narray-0.9.1.8 ext/numo/narray/gen/tmpl/inspect.c
numo-narray-0.9.1.7 ext/numo/narray/gen/tmpl/inspect.c
numo-narray-0.9.1.6 ext/numo/narray/gen/tmpl/inspect.c
numo-narray-0.9.1.5 ext/numo/narray/gen/tmpl/inspect.c
numo-narray-0.9.1.4 ext/numo/narray/gen/tmpl/inspect.c
numo-narray-0.9.1.3 ext/numo/narray/gen/tmpl/inspect.c