Module: RType::Helper::MatrixMultiply
Instance Method Summary collapse
Instance Method Details
#*(val) ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/r_type/helper/matrix_multiply.rb', line 2 def * val if val.respond_to?(:is_robj_matrix_multiply?) && val.is_robj_matrix_multiply? R['%*%'].call self, val else super end end |
#is_robj_matrix_multiply? ⇒ Boolean
10 11 12 |
# File 'lib/r_type/helper/matrix_multiply.rb', line 10 def is_robj_matrix_multiply? true end |