:call-seq:
combine(*other_matrices) { |*elements| ... }
Creates new matrix by combining with other_matrices entrywise, using the given block.
x = Matrix[[6, 6], [4, 4]] y = Matrix[[1, 2], [3, 4]] x.combine(y) {|a, b| a - b} # => Matrix[[5, 4], [1, 0]]
315 316 317
# File 'lib/matrix.rb', line 315 def combine(*matrices, &block) Matrix.combine(self, *matrices, &block) end