Changeset 771339 in git


Ignore:
Timestamp:
Feb 8, 2011, 5:48:32 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b52fc4b2495505785981d640dcf7eb3e456778ef')
Children:
0d79037c401120881c29d840dfc3bb8352563fbe
Parents:
96f136b5a3809e74245ac73936bcd8d05b3bffa3
Message:
FIX: fixing Frank's bug (ivTest doesn't work for ideals/DEBUG only!)

From: Oleksandr Motsak <motsak@mathematik.uni-kl.de>

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

Legend:

Unmodified
Added
Removed
  • Singular/iparith.cc

    r96f136 r771339  
    79677967    intvec* v = NULL;
    79687968    ideal i = singclap_factorize(h0, &v, 0);
     7969
     7970    ivTest(v);
     7971
    79697972    if (i == NULL) return TRUE;
    7970     ivTest(i);
     7973
     7974    idTest(i);
     7975   
    79717976    if ((v->rows() != 3) || ((*v)[0] =! 1) || (!nIsOne(pGetCoeff(i->m[0]))))
    79727977    {
  • kernel/intvec.h

    r96f136 r771339  
    9797      }
    9898    }
    99   inline void ivTEST()
     99  inline void ivTEST() const
    100100    {
    101101      omCheckAddrSize((ADDRESS)v,sizeof(int)*row*col);
     
    140140intvec * ivSolveKern(intvec * imat, int ready);
    141141
     142inline void ivTest(intvec * v)
     143{
     144#ifdef MDEBUG
     145  v->ivTEST();
     146#endif
     147}
    142148
    143 #ifdef MDEBUG
    144 #define ivTest(v) v->ivTEST()
    145 #else
    146 #define ivTest(v)   ((void)0)
    147 #endif
    148149#undef INLINE_THIS
    149150
Note: See TracChangeset for help on using the changeset viewer.