CoCoA:Identity

From ApCoCoAWiki

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>