source: git/coeffs/ffields.h @ 2d805a

fieker-DuValspielwiese
Last change on this file since 2d805a was 2d805a, checked in by Oleksandr Motsak <motsak@…>, 14 years ago
Fixed to "#include <component/header.h>" (even for config.h!)
  • Property mode set to 100644
File size: 1.9 KB
Line 
1#ifndef FFIELDS_H
2#define FFIELDS_H
3/****************************************
4*  Computer Algebra System SINGULAR     *
5****************************************/
6/* $Id$ */
7/*
8* ABSTRACT: finite fields with a none-prime number of elements (via tables)
9*/
10#include <coeffs/coeffs.h>
11
12// #define MAX_INT_VAL 0x7fffffff
13typedef struct 
14{
15  int GFChar;
16  int GFDegree;
17  char* GFPar_name;
18} GFInfo;
19
20
21BOOLEAN nfInitChar(coeffs r, void*);
22
23//static BOOLEAN nfCoeffsEqual(const coeffs r, n_coeffType n, void* parameter);
24
25BOOLEAN nfGreaterZero (number k, const coeffs r);
26number  nfMult        (number a, number b, const coeffs r);
27number  nfInit        (int i, const coeffs r);
28number  nfPar         (int i, const coeffs r);
29int     nfParDeg      (number n, const coeffs r);
30int     nfInt         (number &n, const coeffs r);
31number  nfAdd         (number a, number b, const coeffs r);
32number  nfSub         (number a, number b, const coeffs r);
33void    nfPower       (number a, int i, number * result, const coeffs r);
34BOOLEAN nfIsZero      (number a, const coeffs r);
35BOOLEAN nfIsOne       (number a, const coeffs r);
36BOOLEAN nfIsMOne      (number a, const coeffs r);
37number  nfDiv         (number a, number b, const coeffs r);
38number  nfNeg         (number c, const coeffs r);
39number  nfInvers      (number c, const coeffs r);
40BOOLEAN nfGreater     (number a, number b, const coeffs r);
41BOOLEAN nfEqual       (number a, number b, const coeffs r);
42void    nfWrite       (number &a, const coeffs r);
43const char *  nfRead  (const char *s, number *a, const coeffs r);
44#ifdef LDEBUG
45BOOLEAN nfDBTest      (number a, const char *f, const int l, const coeffs r);
46#endif
47//void    nfSetChar     (const coeffs r);
48
49nMapFunc nfSetMap     (const coeffs src, const coeffs dst);
50char *  nfName        (number n, const coeffs r);
51void    nfReadTable   (const int c, const coeffs r);
52
53void    nfShowMipo();
54#endif
55
Note: See TracBrowser for help on using the repository browser.