Changeset 2dbf7e in git


Ignore:
Timestamp:
Jan 11, 2012, 12:53:11 PM (12 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b52fc4b2495505785981d640dcf7eb3e456778ef')
Children:
e6d914d46115be7cd5ff3fbf2059f167d89779ec
Parents:
6c98d526bf15bb5a2845bfd4fb4f54474229668c
git-author:
Martin Lee <martinlee84@web.de>2012-01-11 12:53:11+01:00
git-committer:
Martin Lee <martinlee84@web.de>2012-01-11 15:21:15+01:00
Message:
fix: some issues with leading coeff in squarefree factorization over finite fields
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/facFqSquarefree.cc

    r6c98d52 r2dbf7e  
    110110  int l= x.level();
    111111  int k;
    112   bool GF= false;
    113112  if (CFFactory::gettype() == GaloisFieldDomain)
    114113    k= getGFDegree();
     
    174173      j.getItem()= CFFactor (j.getItem().factor()/tmp, j.getItem().exp());
    175174      if (degree (tmp) > 0 && tmp.level() > 0)
    176         result.append (CFFactor (M (tmp),
     175      {
     176        tmp= M (tmp);
     177        result.append (CFFactor (tmp/Lc(tmp),
    177178                       j.getItem().exp()*p + i.getItem().exp()));
     179      }
    178180    }
    179181  }
    180182  for (CFFListIterator i= tmp2; i.hasItem(); i++)
     183  {
    181184    if (degree (i.getItem().factor()) > 0 && i.getItem().factor().level() >= 0)
    182       result.append (CFFactor (M (i.getItem().factor()), i.getItem().exp()));
     185    {
     186      tmp= M (i.getItem().factor());
     187      result.append (CFFactor (tmp/Lc(tmp), i.getItem().exp()));
     188    }
     189  }
    183190  for (CFFListIterator j= tmp1; j.hasItem(); j++)
     191  {
    184192    if (degree (j.getItem().factor()) > 0 && j.getItem().factor().level() >= 0)
    185       result.append (CFFactor (M (j.getItem().factor()), j.getItem().exp()*p));
     193    {
     194      tmp= M (j.getItem().factor());
     195      result.append (CFFactor (tmp/Lc(tmp), j.getItem().exp()*p));
     196    }
     197  }
    186198  return result;
    187199}
Note: See TracChangeset for help on using the changeset viewer.