Method: Matrix#hstack

Defined in:
lib/matrix.rb

#hstack(*matrices) ⇒ Object

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]]


1388
1389
1390
# File 'lib/matrix.rb', line 1388

def hstack(*matrices)
  self.class.hstack(self, *matrices)
end