Changeset eca225 in git for libpolys/coeffs/modulop.cc


Ignore:
Timestamp:
May 6, 2011, 2:06:50 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
a934fc81ed0805bcf6e3c2c3cd59b3b0c6fa8146
Parents:
e25a9942ffbe09b3e9cd1348617f1c1886c896bd
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-05-06 14:06:50+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:31:36+01:00
Message:
factory to number: Z/p
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/modulop.cc

    re25a99 reca225  
    321321  return (n==n_Zp) && (r->ch==(int)(long)parameter);
    322322}
     323#ifdef HAVE_FACTORY
     324CanonicalForm npConvSingNFactoryN( number n, const coeffs r )
     325{
     326  CanonicalForm term(npInt( n,r ));
     327  return term;
     328}
     329
     330number npConvFactoryNSingN( const CanonicalForm n, const coeffs r)
     331{
     332  if (n.isImm())
     333  {
     334    return n_Init(n.intval(),r);
     335  }
     336  else
     337  {
     338    assume(0);
     339  }
     340}
     341#endif
     342
    323343
    324344BOOLEAN npInitChar(coeffs r, void* p)
     
    396416  r->cfDBTest=npDBTest;
    397417#endif
     418
     419#ifdef HAVE_FACTORY
     420  r->convSingNFactoryN=npConvSingNFactoryN;
     421  r->convFactoryNSingN=npConvFactoryNSingN;
     422#endif
    398423 
    399424  // the variables:
Note: See TracChangeset for help on using the changeset viewer.