Home Online Manual
Top
Back: modules_lib
Forward: zero
FastBack:
FastForward:
Up: modules_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.15.21.1 id

Procedure from library modules.lib (see modules_lib).

Usage:
id(n); n integer

Return:
returns the n x n identity matrix, with nongraded free modules for source and target

Example:
 
LIB "modules.lib";
ring r;
int n=4;
id(n);
==>     {0} {0} {0} {0}
==> {0}   1   0   0   0
==> {0}   0   1   0   0
==> {0}   0   0   1   0
==> {0}   0   0   0   1
==>