Changeset a725dae in git for kernel/kstd2.cc


Ignore:
Timestamp:
Jan 22, 2006, 5:29:37 AM (18 years ago)
Author:
Oliver Wienand <wienand@…>
Branches:
(u'spielwiese', 'ec94ef7a30b928574c0c3daf41f6804dff5f6b69')
Children:
76a71142ba90e62cb5e72eedf1029c5f98235e46
Parents:
7f06ccaffa6e5a520078549a3e37d7d51d338274
Message:
kutil.h:
---> krude twoPow Funktion

kutil.cc:
---> krude two Pow Funktion
---> alle Kriterien in HAVE_RING2TOM reaktiviert
---> krit. Element durch Multiplikation mit Nullteiler erzeugen (in enterpairs)
      ---> Protokollausgabe Z

kstd2.cc:
---> Fehler in kFindZeroPoly behoben
---> Protokollausgabe z (für ZeroPolynom)


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

Legend:

Unmodified
Added
Removed
  • kernel/kstd2.cc

    r7f06cca ra725dae  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kstd2.cc,v 1.8 2006-01-20 01:15:07 wienand Exp $ */
     4/* $Id: kstd2.cc,v 1.9 2006-01-22 04:29:37 wienand Exp $ */
    55/*
    66*  ABSTRACT -  Kernel: alg. of Buchberger
     
    164164*/
    165165
     166/* now in kutil.cc
    166167long twoPow(long arg) {
    167168  long t = arg;
     
    173174  return result;
    174175}
     176*/
    175177
    176178long factorial(long arg)
     
    242244    tmp2 = p_ISet((long) pGetCoeff(zeroPoly), leadRing);
    243245    for (int i = 1; i <= leadRing->N; i++) {
    244       pSetExp(tmp2, i, p_GetExp(zeroPoly, i, leadRing));
     246      pSetExp(tmp2, i, p_GetExp(zeroPoly, i, tailRing));
    245247    }
    246248    p_Setm(tmp2, leadRing);
     
    269271    tmp2 = p_ISet((long) pGetCoeff(zeroPoly), leadRing);
    270272    for (int i = 1; i <= leadRing->N; i++) {
    271       pSetExp(tmp2, i, p_GetExp(zeroPoly, i, leadRing));
     273      pSetExp(tmp2, i, p_GetExp(zeroPoly, i, tailRing));
    272274    }
    273275    p_Setm(tmp2, leadRing);
     
    311313//#endif
    312314
    313   h->SetShortExpVector();
     315  h->SetShortExpVector(); 
    314316  loop
    315317  {
    316     zeroPoly = NULL;// kFindDivisibleByZeroPoly(h);
     318    zeroPoly = kFindDivisibleByZeroPoly(h);
    317319    if (zeroPoly != NULL)
    318320    {
     321      if (TEST_OPT_PROT)
     322      {
     323        PrintS("z");
     324      }
    319325#ifdef KDEBUG
    320326      if (TEST_OPT_DEBUG)
     
    331337      tmp_h.sev = pGetShortExpVector(tmp_h.p);
    332338      tmp_h.SetpFDeg();
     339/*      if (TEST_OPT_PROT)
     340      {
     341        tstcount ++;
     342        if (tstcount > 49)
     343        {
     344          PrintLn();
     345          p_wrp(zeroPoly,currRing);
     346          PrintLn();
     347          tstcount = 0;
     348        }
     349      } */
    333350
    334351      enterT(tmp_h, strat, strat->tl + 1);
Note: See TracChangeset for help on using the changeset viewer.