Changeset 6a7368 in git


Ignore:
Timestamp:
Jul 11, 2011, 4:39:38 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '4188d308699580d975efd0f6cca8dcb41c396f70')
Children:
0afa076b284b40edfd3ac479c184b33b3cdc12b6
Parents:
5469a9d738cfe2ecd03a4f63851540bda965e9c3
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-07-11 16:39:38+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:39:14+01:00
Message:
FIX: IsRing should be available for DivBy!?
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/coeffs.h

    r5469a9 r6a7368  
    309309#endif
    310310
    311 /// Test whether a can be divided by b?
    312 static inline BOOLEAN n_DivBy(number a, number b, const coeffs r)
    313 {
    314   assume(r != NULL);
    315 #ifdef HAVE_RINGS
    316   if( nCoeff_is_Ring(r) )
    317   {
    318     assume(r->cfDivBy!=NULL); return r->cfDivBy(a,b,r);
    319   }
    320 #endif
    321   return !n_IsZero(b, r);
    322 }
    323 
    324 
    325311/// init with an integer
    326312static inline number n_Init(int i,       const coeffs r)
     
    444430  return TRUE;
    445431#endif
     432}
     433
     434/// Test whether a can be divided by b?
     435static inline BOOLEAN n_DivBy(number a, number b, const coeffs r)
     436{
     437  assume(r != NULL);
     438#ifdef HAVE_RINGS
     439  if( nCoeff_is_Ring(r) )
     440  {
     441    assume(r->cfDivBy!=NULL); return r->cfDivBy(a,b,r);
     442  }
     443#endif
     444  return !n_IsZero(b, r);
    446445}
    447446
Note: See TracChangeset for help on using the changeset viewer.