Changeset 40f802d in git


Ignore:
Timestamp:
Feb 4, 2010, 10:53:41 AM (13 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
Children:
42099834c4d0154ac63fda8120c1c194d59c35f6
Parents:
6c4db177774ccdc1c1ded7c80da737278e3161da
Message:
libsingular: fast_map and zero-div.

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

Legend:

Unmodified
Added
Removed
  • kernel/fast_maps.cc

    r6c4db17 r40f802d  
    453453  poly p=NULL;
    454454  poly pp;
     455  BOOLEAN is_const=TRUE; // to check for zero-div in p_Mult_q
    455456  for(i=1;i<=src_r->N;i++)
    456457  {
     
    458459    if (e>0)
    459460    {
     461      is_const=FALSE;
    460462      pp=dest_id[i-1];
    461463      if (pp==NULL)
     
    476478    }
    477479  }
    478   if (p==NULL) p=p_ISet(1,dest_r);
     480  if (is_const)
     481  {
     482    assume(p==NULL);
     483    p=p_ISet(1,dest_r);
     484  }
    479485  return p;
    480486}
Note: See TracChangeset for help on using the changeset viewer.