CoCoA:NewMat

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)

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>