Class: Matrix
- Inherits:
-
Object
- Object
- Matrix
- Defined in:
- lib/daru/monkeys.rb
Instance Method Summary collapse
Instance Method Details
#elementwise_division(other) ⇒ Object
92 93 94 95 96 |
# File 'lib/daru/monkeys.rb', line 92 def elementwise_division other self.map.with_index do |e, index| e / other.to_a.flatten[index] end end |