Module: R::ExecBinOp
Overview
Module for binary operators with normal elements: matrix, vector, etc.
Instance Method Summary collapse
-
#coerce(numeric) ⇒ Object
————————————————————————————–.
-
#exec_bin_oper(operator, other_object) ⇒ Object
————————————————————————————–.
Instance Method Details
#coerce(numeric) ⇒ Object
44 45 46 |
# File 'lib/R_interface/rbinary_operators.rb', line 44 def coerce(numeric) [R.c(numeric), self] end |
#exec_bin_oper(operator, other_object) ⇒ Object
36 37 38 |
# File 'lib/R_interface/rbinary_operators.rb', line 36 def exec_bin_oper(operator, other_object) R::Support.exec_function_name(operator, @r_interop, other_object) end |