Sha256: 3a08b43ccf003de58b13ed546925ee6e2ab822c4e5ef5c193b5a3bc26d2ea1c8

Contents?: true

Size: 579 Bytes

Versions: 20

Compression:

Stored size: 579 Bytes

Contents

static VALUE
<%=c_func(0)%>_cpu(VALUE self);

/*
  Returns self.
  @overload extract
  @return [Cumo::NArray]
  --- Note that Cumo::NArray always returns NArray and does not
  return a Ruby numeric object as Numo::NArray does to avoid
  synchronization between CPU and GPU for performance.

  Call `Cumo.enable_compatible_mode` to make this method behave
  compatible with Numo, or you can use `extract_cpu` method instead.
*/
static VALUE
<%=c_func(0)%>(VALUE self)
{
    if (cumo_compatible_mode_enabled_p()) {
        return <%=c_func(0)%>_cpu(self);
    }
    return self;
}

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
cumo-0.4.3 ext/cumo/narray/gen/tmpl/extract.c
cumo-0.4.2 ext/cumo/narray/gen/tmpl/extract.c
cumo-0.4.1 ext/cumo/narray/gen/tmpl/extract.c
cumo-0.4.0 ext/cumo/narray/gen/tmpl/extract.c
cumo-0.3.5 ext/cumo/narray/gen/tmpl/extract.c
cumo-0.3.4 ext/cumo/narray/gen/tmpl/extract.c
cumo-0.3.3 ext/cumo/narray/gen/tmpl/extract.c
cumo-0.3.2 ext/cumo/narray/gen/tmpl/extract.c
cumo-0.3.1 ext/cumo/narray/gen/tmpl/extract.c
cumo-0.3.0 ext/cumo/narray/gen/tmpl/extract.c
cumo-0.3.0.pre1 ext/cumo/narray/gen/tmpl/extract.c
cumo-0.2.5 ext/cumo/narray/gen/tmpl/extract.c
cumo-0.2.4 ext/cumo/narray/gen/tmpl/extract.c
cumo-0.2.3 ext/cumo/narray/gen/tmpl/extract.c
cumo-0.2.2 ext/cumo/narray/gen/tmpl/extract.c
cumo-0.2.1 ext/cumo/narray/gen/tmpl/extract.c
cumo-0.2.0 ext/cumo/narray/gen/tmpl/extract.c
cumo-0.1.2 ext/cumo/narray/gen/tmpl/extract.c
cumo-0.1.1 ext/cumo/narray/gen/tmpl/extract.c
cumo-0.1.0 ext/cumo/narray/gen/tmpl/extract.c