Module: NMathMethod
- Defined in:
- ext/numo/narray/gen/narray_def.rb
Instance Method Summary collapse
Instance Method Details
#math(meth, n = 1, tmpl = nil, **h) ⇒ Object
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'ext/numo/narray/gen/narray_def.rb', line 81 def math(meth, n=1, tmpl=nil, **h) if tmpl.nil? case n when 1 tmpl = "unary_s" when 2 tmpl = "binary_s" when 3 tmpl = "ternary_s" else raise "invalid n=#{n}" end end def_module_function(meth, tmpl, **h) end |