Module: R::ExecBinOp

Included in:
Matrix, RSymbol, Vector
Defined in:
lib/R_interface/rbinary_operators.rb

Overview


Module for binary operators with normal elements: matrix, vector, etc.


Instance Method Summary collapse

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