CoCoA:Identity

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)

Identity

the identity matrix

Description

This function returns the NxN identity matrix.

Example

  Identity(3);
Mat([
  [1, 0, 0],
  [0, 1, 0],
  [0, 0, 1]
])
-------------------------------

Syntax

Identity(N:INT):MAT
   <type>matrix</type>