#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "cf_assert.h"
#include "cf_defs.h"
#include "gf_tabutil.h"
#include "cf_util.h"
#include "canonicalform.h"
#include "variable.h"
#include "gfops.h"
#include "singext.h"
Go to the source code of this file.
◆ gf_get_table()
Definition at line 76 of file gfops.cc.
77{
80
81
83 {
84 return;
85 }
86
89
90
94 {
95 sprintf( buffer,
"gftables/%d", q);
101 }
102 else
103 {
104 sprintf( buffer,
"gftables/%d", q );
106#ifndef SINGULAR
108#else
110#endif
111 }
113 {
116 }
117
118
120 char * success;
123 STICKYASSERT(
strcmp( buffer,
"@@ factory GF(q) table @@\n" ) == 0,
"illegal table" );
124
127 STICKYASSERT( success,
"illegal table (reading p and n)" );
130
131
133
139 {
142 }
143
148
149
153 {
158 while (
i <
gf_q &&
k < 30 )
159 {
163 {
166 else
168 }
170 }
171 }
174
176}
#define STICKYASSERT(expression, message)
int ipower(int b, int m)
int ipower ( int b, int m )
FILE * feFopen(const char *path, const char *mode, char *where, short useWerror, short path_only)
int convertback62(char *p, int n)
int gf_tab_numdigits62(int q)
STATIC_VAR char * gftable_dir
VAR unsigned short * gf_table
static CanonicalForm intVec2CF(int degree, int *coeffs, int level)
INST_VAR CanonicalForm gf_mipo
◆ gf_gf2ff() [1/2]
Definition at line 231 of file gfops.cc.
232{
234 return 0;
235 else
236 {
237
238
239
240
242 do
243 {
249 return -1;
250 }
251}
◆ gf_gf2ff() [2/2]
Definition at line 209 of file gfops.cc.
210{
212 return 0;
213 else
214 {
215
216
217
218
220 do
221 {
227 return -1;
228 }
229}
◆ gf_isff() [1/2]
Definition at line 264 of file gfops.cc.
265{
267 return true;
268 else
269 {
270
272 }
273}
int gf_power(int a, int n)
◆ gf_isff() [2/2]
Definition at line 253 of file gfops.cc.
254{
256 return true;
257 else
258 {
259
261 }
262}
◆ gf_setcharacteristic()
Definition at line 202 of file gfops.cc.
203{
207}
#define ASSERT(expression, message)
char name(const Variable &v)
static void gf_get_table(int p, int n)
◆ intVec2CF()
Definition at line 58 of file gfops.cc.
59{
63 {
65 }
67}
factory's class for variables
The main handler for Singular numbers which are suitable for Singular polynomials.
◆ set_gftable_dir()
◆ gf_m1
◆ gf_maxbuffer
◆ gf_maxtable
◆ gf_mipo
◆ gf_n
◆ gf_name
◆ gf_p
◆ gf_primes_len
◆ gf_q
◆ gf_q1
◆ gf_table
◆ gftable_dir