Class: Matrix
Instance Method Summary collapse
Instance Method Details
#elementwise_division(other) ⇒ Object
42 43 44 45 46 |
# File 'lib/daru_lite/monkeys.rb', line 42 def elementwise_division(other) map.with_index do |e, index| e / other.to_a.flatten[index] end end |