Difference between revisions of "CoCoA:NewMat"
From ApCoCoAWiki
(pushing XML rev. 1.46, again) |
(No difference)
|
Latest revision as of 10:02, 24 October 2007
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
<type>matrix</type>