Skip to content

Commit

Permalink
chg: count factors only in debug version
Browse files Browse the repository at this point in the history
  • Loading branch information
mmklee committed Apr 4, 2012
1 parent 67ed745 commit ea1d44c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions libpolys/polys/clapsing.cc
Original file line number Diff line number Diff line change
Expand Up @@ -792,28 +792,39 @@ ideal singclap_factorize ( poly f, intvec ** v , int with_exps, const ring r)
#endif
else if (rField_is_Extension(r)) /* Q(a), Fp(a) */
{
#ifndef NDEBUG
intvec *w=NULL;
if (v!=NULL) w=*v;
#endif
if (r->cf->extRing->qideal==NULL)
{
#ifdef NDEBUG
res->m[j]= convFactoryPSingTrP( J.getItem().factor(),r );
#else
if(!count_Factors(res,w,j,ff,convFactoryPSingTrP( J.getItem().factor(),r ),r))
{
if (w!=NULL)
(*w)[j]=1;
res->m[j]=p_One(r);
}
#endif
}
else
{
#ifdef NDEBUG
res->m[j]= convFactoryAPSingAP( J.getItem().factor(),r );
#else
if (!count_Factors(res,w,j,ff,convFactoryAPSingAP( J.getItem().factor(),r ),r))
{
if (w!=NULL)
(*w)[j]=1;
res->m[j]=p_One(r);
}
#endif
}
}
}
#ifndef NDEBUG
if (rField_is_Extension(r) && (!p_IsConstantPoly(ff,r)))
{
singclap_factorize_retry++;
Expand Down Expand Up @@ -862,6 +873,7 @@ ideal singclap_factorize ( poly f, intvec ** v , int with_exps, const ring r)
res->m[1]=ff; ff=NULL;
}
}
#endif
p_Delete(&ff,r);
if (N!=NULL)
{
Expand Down

0 comments on commit ea1d44c

Please sign in to comment.