Top
Back: setModuleGrading
Forward: mDeg
FastBack: monomialideal_lib
FastForward: paraplanecurves_lib
Up: multigrading_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.15.5.5 getModuleGrading

Procedure from library multigrading.lib (see multigrading_lib).

Usage:
getModuleGrading(m), 'm' module/vector

Return:
integer matrix of the multiweights of free module generators attached to 'm'

Example:
 
LIB "multigrading.lib";
ring R = 0, (x,y), dp;
intmat M[2][2]=
1, 1,
0, 2;
intmat T[2][5]=
1,  2,  3,  4, 0,
0, 10, 20, 30, 1;
setBaseMultigrading(M, T);
ideal I = x, y, xy^5;
isHomogenous(I);
==> 1
intmat V = mDeg(I); print(V);
==>      1     1    10
==>      0     2    10
module S = syz(I); print(S);
==> -y,x4y5,
==> x, 0,   
==> 0, -1   
S = setModuleGrading(S, V);
getModuleGrading(S) == V;
==> 1
vector v = setModuleGrading(S[1], V);
getModuleGrading(v) == V;
==> 1
isHomogenous(v);
==> 1
print( mDeg(v) );
==> 2,
==> 2 
isHomogenous(S);
==> 1
print( mDeg(S) );
==>      2    10
==>      2    10


Top Back: setModuleGrading Forward: mDeg FastBack: monomialideal_lib FastForward: paraplanecurves_lib Up: multigrading_lib Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 3-1-2, Oct 2010, generated by texi2html.