Class: Matrix
- Inherits:
-
Object
- Object
- Matrix
- Defined in:
- lib/daru/monkeys.rb
Instance Method Summary collapse
Instance Method Details
#elementwise_division(other) ⇒ Object
80 81 82 83 84 |
# File 'lib/daru/monkeys.rb', line 80 def elementwise_division other map.with_index do |e, index| e / other.to_a.flatten[index] end end |