method
vstack
ruby latest stable - Class:
Matrix
vstack(*matrices)public
Returns a new matrix resulting by stacking vertically the receiver with the given matrices
x = Matrix [[1, 2], [3, 4]] y = Matrix [[5, 6], [7, 8]] x.vstack (y) # => Matrix[[1, 2], [3, 4], [5, 6], [7, 8]]
# File lib/matrix.rb, line 1292
def vstack(*matrices)
self.class.vstack(self, *matrices)
end