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