Sha256: 1c8eda26c06f8d7790a83dfe7d0d76306b805d3345f83f16b37c2001a59686f3

Contents?: true

Size: 413 Bytes

Versions: 8

Compression:

Stored size: 413 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]
*/
VALUE
<%=c_func(0)%>(VALUE ary)
{
    return na_ndloop_inspect(ary, <%=c_iter%>, Qnil);
}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
numo-narray-0.9.1.2 ext/numo/narray/gen/tmpl/inspect.c
numo-narray-0.9.1.1 ext/numo/narray/gen/tmpl/inspect.c
numo-narray-0.9.1.0 ext/numo/narray/gen/tmpl/inspect.c
numo-narray-0.9.0.9 ext/numo/narray/gen/tmpl/inspect.c
numo-narray-0.9.0.8 ext/numo/narray/gen/tmpl/inspect.c
numo-narray-0.9.0.7 ext/numo/narray/gen/tmpl/inspect.c
numo-narray-0.9.0.6 ext/numo/narray/gen/tmpl/inspect.c
numo-narray-0.9.0.5 ext/numo/narray/gen/tmpl/inspect.c