Changeset 96992c in git for factory/cfNewtonPolygon.cc


Ignore:
Timestamp:
Jun 17, 2011, 12:36:05 PM (12 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
Children:
17b1f38991879169b4720d2a02eff9739f37cf90
Parents:
0777eaa5b4d2cac6ca8635f3d96e331a60032554
Message:
minor change


git-svn-id: file:///usr/local/Singular/svn/trunk@14286 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/cfNewtonPolygon.cc

    r0777ea r96992c  
    174174int* getDegrees (const CanonicalForm& F, int& sizeOfOutput)
    175175{
    176   ASSERT (F.isUnivariate(), "univariate poly expected");
     176  if (F.inCoeffDomain())
     177  {
     178    int* result= new int [1];
     179    result [0]= 0;
     180    sizeOfOutput= 1;
     181    return result;
     182  }
    177183  sizeOfOutput= size (F);
    178184  int* result= new int [sizeOfOutput];
Note: See TracChangeset for help on using the changeset viewer.