CoCoA:MatConcatDiag

From ApCoCoAWiki

MatConcatDiag

create a simple block matrix

Description

This function creates a simple block matrix. The two entries are

matrices (or lists cast-able to a matrix).

MatrixConcatDiag(A,B) will return a matrix of the form <verbatim>

               | A 0 |
               | 0 B |

</verbatim>

Example

  A := [[1,2,3],   [4,5,6]];
  B := [[101,102], [103,104]];
  MatConcatDiag(A,B);
Mat([
  [1, 2, 3, 0, 0],
  [4, 5, 6, 0, 0],
  [0, 0, 0, 101, 102],
  [0, 0, 0, 103, 104]
])
-------------------------------

Syntax

MatConcatDiag(A:LIST,MAT, B:LIST,MAT):MAT

BlockMatrix

MatConcatAntiDiag

MatConcatHor

MatConcatVer

DiagonalMat

   <type>list</type>
   <type>matrix</type>