Home Online Manual
Top
Back: grview
Forward: grzero
FastBack: gitfan_lib
FastForward: hess_lib
Up: gradedModules_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.15.10.5 grshift

Procedure from library gradedModules.lib (see gradedModules_lib).

Usage:
grshift(A, d), graded objects A, int d

Return:
shifted graded object

Purpose:
shift the grading on A by d: A_i -> A_{i+/-d}?

Example:
 
LIB "gradedModules.lib";
ring r=32003,(x,y,z),dp;
module A = grobj( module([x+y, x, 0, 0], [0, x+y, y, 0]), intvec(0,0,0,1) );
grview(A);
==>        1   2     
==>      --------    
==>   0 :  1   . |  1
==>   0 :  1   1 |  2
==>   0 :  .   1 |  3
==>   1 :  .   . |  4
==>      ========    
==>        1   1     
module S = grshift( A,  6);
grview(S);
==>        1   2     
==>      --------    
==>  -6 :  1   . |  1
==>  -6 :  1   1 |  2
==>  -6 :  .   1 |  3
==>  -5 :  .   . |  4
==>      ========    
==>       -5  -5