Changeset 0e32c7 in git for libpolys


Ignore:
Timestamp:
Oct 13, 2015, 4:21:23 PM (9 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
Children:
cb427d15799d8214ecc0459ec9fc1f26a95af019
Parents:
89e8e300a7d1c18822941b78e057846df2296ef4
Message:
changed: ntSize
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/ext_fields/transext.cc

    r89e8e3 r0e32c7  
    17551755  int noOfTerms = 0;
    17561756  int numDegree = 0;
    1757   while (p != NULL)
    1758   {
    1759     noOfTerms++;
    1760     int d = 0;
    1761     for (int i = 1; i <= rVar(ntRing); i++)
    1762       d += p_GetExp(p, i, ntRing);
    1763     if (d > numDegree) numDegree = d;
    1764     pIter(p);
     1757  if (p!=NULL)
     1758  {
     1759    numDegree = p_Totaldegree(p,ntRing);
     1760    noOfTerms = pLength(p);
    17651761  }
    17661762  int denDegree = 0;
    17671763  if (!DENIS1(f))
    17681764  {
    1769     p = DEN(f);
    1770     while (p != NULL)
    1771     {
    1772       noOfTerms++;
    1773       int d = 0;
    1774       for (int i = 1; i <= rVar(ntRing); i++)
    1775         d += p_GetExp(p, i, ntRing);
    1776       if (d > denDegree) denDegree = d;
    1777       pIter(p);
    1778     }
     1765    denDegree =  p_Totaldegree(DEN(f),ntRing);
     1766    noOfTerms += pLength(DEN(f));
    17791767  }
    17801768  ntTest(a); // !!!!
Note: See TracChangeset for help on using the changeset viewer.