Top
Back: D.3.1.13 tensor
Forward: D.3.1.15 gauss_col
FastBack: D. SINGULAR libraries
FastForward: E. Release Notes
Up: D.3.1 matrix_lib
Top: Singular 2-0-4 Manual
Contents: Table of Contents
Index: F. Index
About: About This Document

D.3.1.14 unitmat

Procedure from library matrix.lib (see matrix_lib).

Usage:

unitmat(n); n integer >= 0

Return:

nxn unit matrix

Note:

needs a basering, diagonal entries are numbers (=1) in the basering

Example:

 
LIB "matrix.lib";
ring r=32003,(x,y,z),lp;
print(xyz*unitmat(4));
→ xyz,0,  0,  0, 
→ 0,  xyz,0,  0, 
→ 0,  0,  xyz,0, 
→ 0,  0,  0,  xyz
print(unitmat(5));
→ 1,0,0,0,0,
→ 0,1,0,0,0,
→ 0,0,1,0,0,
→ 0,0,0,1,0,
→ 0,0,0,0,1 

Top Back: D.3.1.13 tensor Forward: D.3.1.15 gauss_col FastBack: D. SINGULAR libraries FastForward: E. Release Notes Up: D.3.1 matrix_lib Top: Singular 2-0-4 Manual Contents: Table of Contents Index: F. Index About: About This Document
            User manual for Singular version 2-0-4, October 2002, generated by texi2html.