source: git/factory/singext.h @ 26da1d

spielwiese
Last change on this file since 26da1d was 341696, checked in by Hans Schönemann <hannes@…>, 14 years ago
Adding Id property to all files git-svn-id: file:///usr/local/Singular/svn/trunk@12231 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 1021 bytes
Line 
1/* emacs edit mode for this file is -*- C++ -*- */
2/* $Id$ */
3
4#ifndef INCL_SINGEXT_H
5#define INCL_SINGEXT_H
6
7#include <config.h>
8
9#include "cf_gmp.h"
10
11#include "canonicalform.h"
12
13// we need this to copy singulars GF(q) table to ours
14extern int nfCharQ;
15extern int nfM1;
16extern int nfMinPoly[];
17extern short nfPlus1Table[];
18
19// to use Singular error reporting:
20
21extern int errorreported;
22extern "C" void  WerrorS(const char *s);
23extern "C" void  Werror(const char *s, ...);
24
25// used to open the GF(q) tables from Singular
26extern FILE * feFopen ( const char * path, const char * mode, char *where = 0, int useWerror = 0, int path_only = 0);
27
28/*BEGINPUBLIC*/
29
30MP_INT gmp_numerator ( const CanonicalForm & f );
31
32MP_INT gmp_denominator ( const CanonicalForm & f );
33
34int gf_value (const CanonicalForm & f );
35
36CanonicalForm make_cf ( const MP_INT & n );
37
38CanonicalForm make_cf ( const MP_INT & n, const MP_INT & d, bool normalize );
39
40CanonicalForm make_cf_from_gf ( const int z );
41
42/*ENDPUBLIC*/
43
44#endif /* ! INCL_SINGEXT_H */
Note: See TracBrowser for help on using the repository browser.