up previous next
ConcatHor

create a simple block matrix

Syntax
ConcatHor(A: MAT, B: MAT): MAT

where A and B have the same number of rows

Description
This function creates a simple block matrix. The two entries are matrices with the same number of rows. ConcatHor(A, B) will return a matrix of the form
                | A B |


Example
/**/  A := mat([[1,2,3],   [4,5,6]]);
/**/  B := mat([[101,102], [103,104]]);
/**/  ConcatHor(A, B);
matrix(QQ,
 [[1, 2, 3, 101, 102],
  [4, 5, 6, 103, 104]])

See Also