source: git/factory/fac_util.h @ 1343d6

spielwiese
Last change on this file since 1343d6 was fcae67, checked in by Rüdiger Stobbe <stobbe@…>, 27 years ago
"New function dviremainder. " git-svn-id: file:///usr/local/Singular/svn/trunk@31 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 1.1 KB
Line 
1// emacs edit mode for this file is -*- C++ -*-
2// $Id: fac_util.h,v 1.1 1996-06-27 11:34:25 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.0  1996/05/17 10:59:40  stobbe
10Initial revision
11
12*/
13
14#include "canonicalform.h"
15
16/*BEGINPUBLIC*/
17
18class modpk
19{
20private:
21    CanonicalForm pk;
22    CanonicalForm pkhalf;
23    int p;
24    int k;
25public:
26    modpk();
27    modpk( int q, int l );
28    modpk( const modpk & m );
29    modpk& operator= ( const modpk& m );
30    ~modpk() {}
31    int getp() const { return p; }
32    int getk() const { return k; }
33    CanonicalForm inverse( const CanonicalForm & f, bool symmetric = true ) const;
34    CanonicalForm getpk() const { return pk; }
35    CanonicalForm operator() ( const CanonicalForm & f, bool symmetric = true ) const;
36};
37
38
39CanonicalForm replaceLc( const CanonicalForm & f, const CanonicalForm & c );
40
41CanonicalForm remainder( const CanonicalForm & f, const CanonicalForm & g, const modpk & pk );
42
43void divremainder( const CanonicalForm & f, const CanonicalForm & g, CanonicalForm & quot, CanonicalForm & rem, const modpk & pk );
44
45/*ENDPUBLIC*/
46
47#endif /* INCL_FAC_UTIL_H */
Note: See TracBrowser for help on using the repository browser.