source: git/factory/fac_util.h @ d87069

fieker-DuValspielwiese
Last change on this file since d87069 was b52d27, checked in by Martin Lee <martinlee84@…>, 10 years ago
chg: more docu changes
  • Property mode set to 100644
File size: 1.2 KB
Line 
1/* emacs edit mode for this file is -*- C++ -*- */
2
3#ifndef INCL_FAC_UTIL_H
4#define INCL_FAC_UTIL_H
5
6// #include "config.h"
7
8#include "canonicalform.h"
9#include "cf_eval.h"
10
11/*BEGINPUBLIC*/
12
13/**
14 * class to do operations mod p^k for int's p and k
15**/
16class modpk
17{
18private:
19    CanonicalForm pk;
20    CanonicalForm pkhalf;
21    int p;
22    int k;
23public:
24    modpk();
25    modpk( int q, int l );
26    modpk( const modpk & m );
27    modpk& operator= ( const modpk& m );
28    ~modpk() {}
29    int getp() const { return p; }
30    int getk() const { return k; }
31    CanonicalForm inverse( const CanonicalForm & f, bool symmetric = true ) const;
32    CanonicalForm getpk() const { return pk; }
33    CanonicalForm operator() ( const CanonicalForm & f, bool symmetric = true ) const;
34};
35
36
37CanonicalForm replaceLc( const CanonicalForm & f, const CanonicalForm & c );
38
39/*ENDPUBLIC*/
40
41bool gcd_test_one ( const CanonicalForm & f, const CanonicalForm & g, bool swap, int & d );
42
43CanonicalForm ezgcd ( const CanonicalForm & f, const CanonicalForm & g );
44
45void extgcd ( const CanonicalForm & a, const CanonicalForm & b, CanonicalForm & S, CanonicalForm & T, const modpk & pk );
46
47#endif /* ! INCL_FAC_UTIL_H */
Note: See TracBrowser for help on using the repository browser.