Changeset 5f9b47 in git for factory/facBivar.h


Ignore:
Timestamp:
Oct 13, 2011, 4:28:33 PM (12 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
a6423611ab89e02788fee9f049f4e6b2e2dac782
Parents:
c79a9d3a83d34151b67ba9ac3b63b827a07b792f
Message:
use sqrfree factorization instead of sqrfree part extraction for factorization ove Q(a)


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

Legend:

Unmodified
Added
Removed
  • factory/facBivar.h

    rc79a9d r5f9b47  
    126126  vec_ZZ S;
    127127  F= compress (F, M, S);
    128   CanonicalForm sqrfP= sqrfPart (F);
    129   CFList buf;
    130   buf= biFactorize (sqrfP, v);
    131   result= multiplicity (F, buf);
    132   for (CFFListIterator i= result; i.hasItem(); i++)
    133     i.getItem()= CFFactor (N (decompress (i.getItem().factor(), M, S)),
    134                              i.getItem().exp());
     128  CFFList sqrfFactors= sqrFree (F);
     129  for (CFFListIterator i= sqrfFactors; i.hasItem(); i++)
     130  {
     131    CFList tmp= ratBiSqrfFactorize (i.getItem().factor(), v);
     132    for (CFListIterator j= tmp; j.hasItem(); j++)
     133    {
     134      if (j.getItem().inCoeffDomain()) continue;
     135      result.append (CFFactor (N (decompress (j.getItem(), M, S)), i.getItem().exp()));
     136    }
     137  }
    135138  result= Union (result, contentXFactors);
    136139  result= Union (result, contentYFactors);
Note: See TracChangeset for help on using the changeset viewer.