Changeset 08daea in git for factory/cf_gcd_smallp.h


Ignore:
Timestamp:
Nov 22, 2010, 11:12:46 AM (13 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
fb8ba2756f35787214f1a0b5702e31e4b853de97
Parents:
cde7084dc141670809afd29cafbd9c571bd9fc3a
Message:
new ezgcd, heuristic which gcd to choose and sparse modular gcd all for finite fields


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

Legend:

Unmodified
Added
Removed
  • factory/cf_gcd_smallp.h

    rcde708 r08daea  
    6363}
    6464
     65CanonicalForm sparseGCDFp (const CanonicalForm& F, const CanonicalForm& G,
     66                           bool& topLevel, CFList& l);
     67
     68/// Zippel's sparse GCD over Fp
     69static inline
     70CanonicalForm sparseGCDFp (const CanonicalForm& A, const CanonicalForm& B)
     71{
     72  ASSERT (CFFactory::gettype() == GaloisFieldDomain,
     73          "GF as base field expected");
     74  CFList list;
     75  bool topLevel= true;
     76  return sparseGCDFp (A, B, topLevel, list);
     77}
     78
     79/// Zippel's sparse GCD over Fq
     80CanonicalForm
     81sparseGCDFq (const CanonicalForm& F, const CanonicalForm& G,
     82             const Variable& alpha, CFList& l, bool& topLevel);
     83
     84static inline
     85CanonicalForm sparseGCDFq (const CanonicalForm& A, const CanonicalForm& B,
     86                           const Variable& alpha)
     87{
     88  CFList list;
     89  bool topLevel= true;
     90  return sparseGCDFq (A, B, alpha, list, topLevel);
     91}
     92
     93/// extended Zassenhaus GCD
     94CanonicalForm
     95EZGCD_P (const CanonicalForm& A, const CanonicalForm& B);
     96
    6597CanonicalForm
    6698randomIrredpoly (int i, const Variable & x) ;
Note: See TracChangeset for help on using the changeset viewer.