Flowdock
method

combine

Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Class: Matrix
combine(*matrices) public

Create a matrix by combining matrices entrywise, using the given block

x = Matrix[[6, 6], [4, 4]]
y = Matrix[[1, 2], [3, 4]]
Matrix.combine(x, y) {|a, b| a - b} # => Matrix[[5, 4], [1, 0]]
Show source
Register or log in to add new notes.