Changeset ad59ea in git


Ignore:
Timestamp:
Feb 8, 2019, 3:04:42 PM (5 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '3720ae8bfcff4a4649ee98a15552089151d2d59b')
Children:
ea9bd50cf6b55d689e3b46142835ca92126a1c72
Parents:
6f436cee4c0e7832bca821c412cc8ca78865a460
Message:
add: convSingTrP (test possible conversion to factory)
Location:
libpolys/polys
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/clapconv.cc

    r6f436ce rad59ea  
    318318}
    319319
     320BOOLEAN convSingTrP(poly p, const ring r )
     321{
     322  while ( p!=NULL )
     323  {
     324    n_Normalize(p_GetCoeff(p, r), r->cf);
     325
     326    // test if denominator is constant
     327    if (!p_IsConstantPoly(DEN ((fraction)p_GetCoeff (p,r)),r->cf->extRing))
     328      return FALSE;
     329    pIter(p);
     330  }
     331  return TRUE;
     332}
     333
    320334poly convFactoryPSingTrP ( const CanonicalForm & f, const ring r )
    321335{
  • libpolys/polys/clapconv.h

    r6f436ce rad59ea  
    3030
    3131CanonicalForm convSingTrPFactoryP ( poly p, const ring r );
     32BOOLEAN convSingTrP(poly p, const ring r );
    3233poly convFactoryPSingTrP ( const CanonicalForm & f, const ring r );
    3334
Note: See TracChangeset for help on using the changeset viewer.