Class: Matrix

Inherits:
Object show all
Defined in:
lib/daru/monkeys.rb

Instance Method Summary collapse

Instance Method Details

#elementwise_division(other) ⇒ Object


51
52
53
54
55
# File 'lib/daru/monkeys.rb', line 51

def elementwise_division other
  map.with_index do |e, index|
    e / other.to_a.flatten[index]
  end
end