source: git/factory/fac_util.h @ 7b4bfe6

spielwiese
Last change on this file since 7b4bfe6 was 7b4bfe6, checked in by Rüdiger Stobbe <stobbe@…>, 27 years ago
"New organization of the factorization stuff. Some functions moved from fac_diophand.cc which no longer exists. " git-svn-id: file:///usr/local/Singular/svn/trunk@40 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 1.7 KB
Line 
1// emacs edit mode for this file is -*- C++ -*-
2// $Id: fac_util.h,v 1.2 1996-07-08 08:22:02 stobbe Exp $
3
4#ifndef INCL_FAC_UTIL_H
5#define INCL_FAC_UTIL_H
6
7/*
8$Log: not supported by cvs2svn $
9Revision 1.1  1996/06/27 11:34:25  stobbe
10"New function dviremainder.
11"
12
13Revision 1.0  1996/05/17 10:59:40  stobbe
14Initial revision
15
16*/
17
18#include "canonicalform.h"
19#include "cf_eval.h"
20
21/*BEGINPUBLIC*/
22
23class modpk
24{
25private:
26    CanonicalForm pk;
27    CanonicalForm pkhalf;
28    int p;
29    int k;
30public:
31    modpk();
32    modpk( int q, int l );
33    modpk( const modpk & m );
34    modpk& operator= ( const modpk& m );
35    ~modpk() {}
36    int getp() const { return p; }
37    int getk() const { return k; }
38    CanonicalForm inverse( const CanonicalForm & f, bool symmetric = true ) const;
39    CanonicalForm getpk() const { return pk; }
40    CanonicalForm operator() ( const CanonicalForm & f, bool symmetric = true ) const;
41};
42
43
44CanonicalForm replaceLc( const CanonicalForm & f, const CanonicalForm & c );
45
46CanonicalForm remainder( const CanonicalForm & f, const CanonicalForm & g, const modpk & pk );
47
48void divremainder( const CanonicalForm & f, const CanonicalForm & g, CanonicalForm & quot, CanonicalForm & rem, const modpk & pk );
49
50CanonicalForm maxCoeff( const CanonicalForm & f );
51
52bool Hensel ( const CanonicalForm & U, CFArray & G, const CFArray & lcG, const Evaluation & A, const modpk & bound, const Variable & x );
53
54/*ENDPUBLIC*/
55
56bool gcd_test_one ( const CanonicalForm & f, const CanonicalForm & g, bool swap );
57
58CanonicalForm ezgcd ( const CanonicalForm & f, const CanonicalForm & g );
59
60void extgcd ( const CanonicalForm & a, const CanonicalForm & b, CanonicalForm & S, CanonicalForm & T, const modpk & pk );
61
62#endif /* INCL_FAC_UTIL_H */
Note: See TracBrowser for help on using the repository browser.