source: git/libpolys/coeffs/ffields.h @ 22a09d

jengelh-datetimespielwiese
Last change on this file since 22a09d was 22a09d, checked in by Hans Schoenemann <hannes@…>, 12 years ago
order of includes
  • 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
12typedef struct 
13{
14  int GFChar;
15  int GFDegree;
16  char* GFPar_name;
17} GFInfo;
18
19
20BOOLEAN nfInitChar(coeffs r, void*);
21
22//static BOOLEAN nfCoeffsEqual(const coeffs r, n_coeffType n, void* parameter);
23
24BOOLEAN nfGreaterZero (number k, const coeffs r);
25number  nfMult        (number a, number b, const coeffs r);
26number  nfInit        (int i, const coeffs r);
27number  nfPar         (int i, const coeffs r);
28int     nfParDeg      (number n, const coeffs r);
29int     nfInt         (number &n, const coeffs r);
30number  nfAdd         (number a, number b, const coeffs r);
31number  nfSub         (number a, number b, const coeffs r);
32void    nfPower       (number a, int i, number * result, const coeffs r);
33BOOLEAN nfIsZero      (number a, const coeffs r);
34BOOLEAN nfIsOne       (number a, const coeffs r);
35BOOLEAN nfIsMOne      (number a, const coeffs r);
36number  nfDiv         (number a, number b, const coeffs r);
37number  nfNeg         (number c, const coeffs r);
38number  nfInvers      (number c, const coeffs r);
39BOOLEAN nfGreater     (number a, number b, const coeffs r);
40BOOLEAN nfEqual       (number a, number b, const coeffs r);
41void    nfWrite       (number &a, const coeffs r);
42const char *  nfRead  (const char *s, number *a, const coeffs r);
43#ifdef LDEBUG
44BOOLEAN nfDBTest      (number a, const char *f, const int l, const coeffs r);
45#endif
46//void    nfSetChar     (const coeffs r);
47
48nMapFunc nfSetMap     (const coeffs src, const coeffs dst);
49char *  nfName        (number n, const coeffs r);
50void    nfReadTable   (const int c, const coeffs r);
51
52void    nfCoeffWrite(const coeffs r);
53void    nfShowMipo(const coeffs r);
54#endif
55
Note: See TracBrowser for help on using the repository browser.