CoCoA:MatConcatHor

From ApCoCoAWiki

MatConcatHor

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) with the same number of

rows. MatrixConcatHor(A,B) will return a matrix of the form <verbatim>

               | A B |

</verbatim>

Example

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

Syntax

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

where A and B have the same number of rows

BlockMatrix

MakeMatByRows, MakeMatByCols

MatConcatAntiDiag

MatConcatDiag

MatConcatVer

RowMat

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