CoCoA:MatConcatAntiDiag

From ApCoCoAWiki
Revision as of 10:02, 24 October 2007 by XMLBot (talk | contribs) (pushing XML rev. 1.46, again)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

MatConcatAntiDiag

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).

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

               | 0 A |
               | B 0 |

</verbatim>

Example

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

Syntax

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

BlockMatrix

MatConcatDiag

MatConcatHor

MatConcatVer

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