Changeset 6a7368 in git for libpolys/coeffs/coeffs.h


Ignore:
Timestamp:
Jul 11, 2011, 4:39:38 PM (12 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '00e2e9c41af3fde1273eb3633f4c0c7c3db2579d')
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.