up previous next
ConcatAntiDiag

create a simple block matrix

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

Description
This function creates a simple block matrix. The two entries are matrices. ConcatAntiDiag(A, B) will return a matrix of the form
                | 0 A |
                | B 0 |


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

See Also