Changeset a2466f in git for kernel/ringgb.cc


Ignore:
Timestamp:
Jun 12, 2006, 2:07:12 AM (17 years ago)
Author:
Oliver Wienand <wienand@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
c4c516319dd7380d23251f74e2a664cdb5664571
Parents:
30f22c1ce9b7faf89c70d82bed9c82dd6d7b4979
Message:
[oliver] @hannes: Please check changes to kutil.cc(pDivComp).

kutil.cc:
* pDivComp now distinguishes between equal and incomparable monoms
* changes to chainCritRing, in progress

ringgb.*:
* changes to testGB, now tests also inclusion of I

polys.cc:
* just doc


git-svn-id: file:///usr/local/Singular/svn/trunk@9195 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/ringgb.cc

    r30f22c ra2466f  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ringgb.cc,v 1.10 2006-06-09 23:17:04 wienand Exp $ */
     4/* $Id: ringgb.cc,v 1.11 2006-06-12 00:07:12 wienand Exp $ */
    55/*
    66* ABSTRACT: ringgb interface
     
    192192}
    193193
    194 int testGB(ideal GI) {
     194int testGB(ideal I, ideal GI) {
    195195  poly f, g, h;
    196196  int i = 0;
    197197  int j = 0;
    198   for (i = 0; i < IDELEMS(GI) - 1; i++) {
     198  for (i = 0; i < IDELEMS(I); i++) {
     199    if (ringNF(I->m[i], GI, currRing) != NULL) {
     200      Print("Not reduced to zero from I: ");
     201      wrp(I->m[i]);
     202      Print(" --> ");
     203      wrp(ringNF(I->m[i], GI, currRing));
     204      PrintLn();
     205      return(0);
     206    }
     207    pDelete(&h);
     208  }
     209  Print("I");
     210  for (i = 0; i < IDELEMS(GI); i++) {
    199211    Print("-");
    200212    for (j = i + 1; j < IDELEMS(GI); j++) {
     
    203215      h = plain_spoly(f, g);
    204216      if (ringNF(h, GI, currRing) != NULL) {
     217        Print("spoly(");
    205218        wrp(GI->m[i]);
    206         PrintLn();
     219        Print(", ");
    207220        wrp(GI->m[j]);
    208         PrintLn();
     221        Print(") = ");
    209222        wrp(h);
    210         PrintLn();
     223        Print(" --> ");
    211224        wrp(ringNF(h, GI, currRing));
    212225        PrintLn();
Note: See TracChangeset for help on using the changeset viewer.