Changeset 512a2b in git for Singular/pDebug.cc


Ignore:
Timestamp:
Sep 18, 2000, 11:19:39 AM (24 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
d1655e92ca71fb37d1b57af88efdff5b65b8988b
Parents:
f3398d316400fe1ee1677fc397cacb80566ac664
Message:
p_polys.h


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

Legend:

Unmodified
Added
Removed
  • Singular/pDebug.cc

    rf3398d r512a2b  
    77 *  Author:  obachman (Olaf Bachmann)
    88 *  Created: 8/00
    9  *  Version: $Id: pDebug.cc,v 1.3 2000-09-14 14:20:44 obachman Exp $
     9 *  Version: $Id: pDebug.cc,v 1.4 2000-09-18 09:19:23 obachman Exp $
    1010 *******************************************************************/
    1111
     
    1818#ifdef PDEBUG
    1919
    20 #include "polys.h"
     20#include "p_polys.h"
    2121#include "febase.h"
    2222#include "omalloc.h"
    2323#include "ring.h"
     24#include "numbers.h"
    2425
    2526
     
    6869    if (custom != NULL)
    6970    {
    70       pPolyAssumeReturn(custom == r);
     71      pPolyAssumeReturnMsg(custom == r || rEqual((ring) custom, r, FALSE),
     72                           "monomial not from specified ring");
    7173      return TRUE;
    7274    }
     
    101103static int pDivisibleBy_FALSE = 1;
    102104static int pDivisibleBy_ShortFalse = 1;
    103 BOOLEAN pDebugShortDivisibleBy(poly p1, unsigned long sev_1, ring r_1,
     105BOOLEAN pDebugLmShortDivisibleBy(poly p1, unsigned long sev_1, ring r_1,
    104106                               poly p2, unsigned long not_sev_2, ring r_2)
    105107{
     
    108110
    109111  pDivisibleBy_number++;
    110   BOOLEAN ret = _p_DivisibleBy1(p1, r_1, p2, r_2);
     112  BOOLEAN ret = p_LmDivisibleBy(p1, r_1, p2, r_2);
    111113  if (! ret) pDivisibleBy_FALSE++;
    112114  if (sev_1 & not_sev_2)
     
    205207
    206208    // special check for ringorder_s/S
    207     if (currRing->order[1] == ringorder_S)
     209    if (r->order[1] == ringorder_S)
    208210    {
    209211      long c1, cc1, ccc1, ec1;
    210       sro_ord* o = &(currRing->typ[1]);
    211 
    212       c1 = pGetComp(p);
     212      sro_ord* o = &(r->typ[1]);
     213
     214      c1 = p_GetComp(p, r);
    213215      cc1 = o->data.syzcomp.Components[c1];
    214216      ccc1 = o->data.syzcomp.ShiftedComponents[cc1];
    215217      pPolyAssumeReturnMsg(c1 == 0 || cc1 != 0, "Component <-> TrueComponent zero mismatch");
    216218      pPolyAssumeReturnMsg(c1 == 0 || ccc1 != 0,"Component <-> ShiftedComponent zero mismatch");
    217       ec1 = p->exp[currRing->typ[1].data.syzcomp.place];
     219      ec1 = p->exp[r->typ[1].data.syzcomp.place];
    218220      pPolyAssumeReturnMsg(ec1 == ccc1, "Shifted comp out of sync. should %d, is %d");
    219221    }
     
    224226      poly p_should_equal = p_DebugInit(p, r, r);
    225227      pPolyAssumeReturnMsg(p_ExpVectorEqual(p, p_should_equal, r), "p_Setm field(s) out of sync");
    226       p_Free(p_should_equal, r);
     228      p_LmFree(p_should_equal, r);
    227229    }
    228230   
     
    280282    poly pnext = pNext(lm);
    281283    pNext(lm) = tail;
    282     BOOLEAN cmp = p_LmCmp(lm, tail);
     284    BOOLEAN cmp = p_LmCmp(lm, tail, lmRing);
    283285    if (cmp != 1)
    284286      dPolyReportError(lm, lmRing, "wrong order: lm <= Lm(tail)");
Note: See TracChangeset for help on using the changeset viewer.