Changeset 4f86a6 in git


Ignore:
Timestamp:
Jan 19, 2015, 9:15:04 PM (9 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
4f2aed6d338208a9af82e4da005570718c40093f
Parents:
0aa248bce27cf5733670e130d1c774a07cbdf251
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2015-01-19 21:15:04+01:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2015-01-19 21:18:44+01:00
Message:
Fix correct rank for modules
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/gradedModules.lib

    r0aa248 r4f86a6  
    298298
    299299  // grades & ordering permutation for N.  d[p] should be sorted!
    300 
     300 
    301301  def N = module(M[p]);  // reorder the starting ideal/module
    302302
    303303  attrib( N, "isHomog", w ); // set the grading
     304  attrib( N, "rank", size(w) ); // set the grading
    304305
    305306  d = d[p];
     
    644645 
    645646  ASSUME( 0, r == size(a) );
    646 
     647 
    647648  module T; T[r] = 0; T = T, module(transpose(B));
    648649  module AB = module(A), transpose(T);
    649650
    650651  attrib(AB, "isHomog", c);
     652  attrib(AB, "rank", size(c));
     653 
    651654  return(AB);
    652655}
     
    718721"
    719722{
    720   matrix zero[a][a]; // TODO ???
    721   module Z = zero;
     723  module Z; Z[a] = 0;
    722724  attrib(Z, "isHomog", intvec(d:a));
     725  attrib(Z, "rank", a);
    723726
    724727  ASSUME(2, grisequal(Z, grpower( grshift(grzero(), d), a ) )); // optional check
Note: See TracChangeset for help on using the changeset viewer.