CoCoA:NewMat

From ApCoCoAWiki

NewMat

create a new matrix

Description

The second function returns an MxN matrix, filled by E. The first

function, in which E is not indicated, returns an MxN matrix filled

with "Null" values.

Example

  NewMat(2,3,<quotes>a</quotes>);
Mat([
  [<quotes>a</quotes>, <quotes>a</quotes>, <quotes>a</quotes>],
  [<quotes>a</quotes>, <quotes>a</quotes>, <quotes>a</quotes>]
])
-------------------------------
  NewMat(2,2);
Mat([
  [Null, Null],
  [Null, Null]
])
-------------------------------

Syntax

NewMat(M:INT,N:INT):MAT
NewMat(M:INT,N:INT,E:OBJECT):MAT

Mat

   <type>matrix</type>