Module: NArrayMethod
- Defined in:
- ext/cumo/narray/gen/narray_def.rb
Instance Method Summary collapse
- #accum(meth, dtype, result_class) ⇒ Object
- #accum_binary(meth, ope = nil) ⇒ Object
- #accum_index(meth) ⇒ Object
- #binary(meth, ope = nil) ⇒ Object
- #binary2(meth, ope = nil) ⇒ Object
- #bit_count(meth) ⇒ Object
- #bit_count_cpu(meth) ⇒ Object
- #bit_reduce(meth, init_bit) ⇒ Object
- #cond_binary(meth, op = nil) ⇒ Object
- #cond_unary(meth) ⇒ Object
- #cum(meth, cmacro) ⇒ Object
- #pow ⇒ Object
- #qsort(type_name, dtype, dcast, suffix = "") ⇒ Object
- #set2(meth, dtype, result_class) ⇒ Object
- #unary(meth, ope = nil) ⇒ Object
- #unary2(meth, dtype, result_class) ⇒ Object
Instance Method Details
#accum(meth, dtype, result_class) ⇒ Object
57 58 59 60 |
# File 'ext/cumo/narray/gen/narray_def.rb', line 57 def accum(meth, dtype, result_class) h = {dtype:dtype, result_class:result_class} def_method(meth, "accum", **h) end |
#accum_binary(meth, ope = nil) ⇒ Object
70 71 72 73 |
# File 'ext/cumo/narray/gen/narray_def.rb', line 70 def accum_binary(meth, ope=nil) ope = meth if ope.nil? def_method(meth, "accum_binary", op:ope) end |
#accum_index(meth) ⇒ Object
62 63 64 |
# File 'ext/cumo/narray/gen/narray_def.rb', line 62 def accum_index(meth) def_method(meth, "accum_index") end |
#binary(meth, ope = nil) ⇒ Object
7 8 9 10 |
# File 'ext/cumo/narray/gen/narray_def.rb', line 7 def binary(meth, ope=nil) ope = meth if ope.nil? def_method(meth, "binary", op:ope) end |
#binary2(meth, ope = nil) ⇒ Object
12 13 14 15 |
# File 'ext/cumo/narray/gen/narray_def.rb', line 12 def binary2(meth, ope=nil) ope = meth if ope.nil? def_method(meth, "binary2", op:ope) end |
#bit_count(meth) ⇒ Object
44 45 46 |
# File 'ext/cumo/narray/gen/narray_def.rb', line 44 def bit_count(meth) def_method(meth, "bit_count") end |
#bit_count_cpu(meth) ⇒ Object
48 49 50 |
# File 'ext/cumo/narray/gen/narray_def.rb', line 48 def bit_count_cpu(meth) def_method(meth, "bit_count_cpu") end |
#bit_reduce(meth, init_bit) ⇒ Object
52 53 54 55 |
# File 'ext/cumo/narray/gen/narray_def.rb', line 52 def bit_reduce(meth, init_bit) h = {init_bit:init_bit} def_method(meth, "bit_reduce", **h) end |
#cond_binary(meth, op = nil) ⇒ Object
35 36 37 38 |
# File 'ext/cumo/narray/gen/narray_def.rb', line 35 def cond_binary(meth, op=nil) op = meth unless op def_method(meth, "cond_binary", op:op) end |
#cond_unary(meth) ⇒ Object
40 41 42 |
# File 'ext/cumo/narray/gen/narray_def.rb', line 40 def cond_unary(meth) def_method(meth, "cond_unary") end |
#cum(meth, cmacro) ⇒ Object
66 67 68 |
# File 'ext/cumo/narray/gen/narray_def.rb', line 66 def cum(meth, cmacro) def_method(meth, "cum", cmacro:cmacro) end |
#pow ⇒ Object
21 22 23 |
# File 'ext/cumo/narray/gen/narray_def.rb', line 21 def pow def_method("pow", "pow", op:"**") end |
#qsort(type_name, dtype, dcast, suffix = "") ⇒ Object
75 76 77 78 |
# File 'ext/cumo/narray/gen/narray_def.rb', line 75 def qsort(type_name, dtype, dcast, suffix="") h = {type_name:type_name, dtype:dtype, dcast:dcast, suffix:suffix} def_method("qsort", **h) end |
#set2(meth, dtype, result_class) ⇒ Object
30 31 32 33 |
# File 'ext/cumo/narray/gen/narray_def.rb', line 30 def set2(meth, dtype, result_class) h = {dtype:dtype, result_class:result_class} def_method(meth, "set2", **h) end |
#unary(meth, ope = nil) ⇒ Object
17 18 19 |
# File 'ext/cumo/narray/gen/narray_def.rb', line 17 def unary(meth, ope=nil) def_method(meth, "unary", op:ope) end |
#unary2(meth, dtype, result_class) ⇒ Object
25 26 27 28 |
# File 'ext/cumo/narray/gen/narray_def.rb', line 25 def unary2(meth, dtype, result_class) h = {dtype:dtype, result_class:result_class} def_method(meth, "unary2", **h) end |