Top
Back: isWeyl
Forward: AltVarStart
FastBack: ncpreim_lib
FastForward: perron_lib
Up: nctools_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document
7.7.15.0. UpOneMatrix
Procedure from library nctools.lib (see nctools_lib).

Usage:
UpOneMatrix(n); n an integer

Return:
intmat

Purpose:
compute an n x n matrix with 1's in the whole upper triangle

Note:
helpful for setting noncommutative algebras with complicated coefficient matrices

Example:
 
LIB "nctools.lib";
ring   r = (0,q),(x,y,z),dp;
matrix C = UpOneMatrix(3);
C[1,3]   = q;
print(C);
==> 0,1,(q),
==> 0,0,1,  
==> 0,0,0   
def S = nc_algebra(C,0); setring S;
S;
==> //   characteristic : 0
==> //   1 parameter    : q 
==> //   minpoly        : 0
==> //   number of vars : 3
==> //        block   1 : ordering dp
==> //                  : names    x y z
==> //        block   2 : ordering C
==> //   noncommutative relations:
==> //    zx=(q)*xz


Top Back: isWeyl Forward: AltVarStart FastBack: ncpreim_lib FastForward: perron_lib Up: nctools_lib Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 4-0-3, 2016, generated by texi2html.