spielwiese
Last change
on this file since 231b0fd was
231b0fd,
checked in by Martin Lee <martinlee84@…>, 13 years ago
|
some new functions for random evaluations over finite fields
git-svn-id: file:///usr/local/Singular/svn/trunk@13184 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | #ifndef FFREVAL_H |
---|
2 | #define FFREVAL_H |
---|
3 | |
---|
4 | #include <config.h> |
---|
5 | |
---|
6 | #include "canonicalform.h" |
---|
7 | #include "cf_eval.h" |
---|
8 | #include "cf_reval.h" |
---|
9 | |
---|
10 | |
---|
11 | class FFREvaluation : public REvaluation |
---|
12 | { |
---|
13 | private: |
---|
14 | CFArray start; // random point |
---|
15 | public: |
---|
16 | FFREvaluation( ) : REvaluation(), start() {} |
---|
17 | FFREvaluation( int min, int max, const FFRandom & sample ) : REvaluation( min, max, sample ), start( min, max ) |
---|
18 | { |
---|
19 | for( int i=min; i<=max; i++ ) |
---|
20 | values[i] = start[i] = 0; |
---|
21 | } |
---|
22 | FFREvaluation( int min, int max, const AlgExtRandomF & sample ) : REvaluation( min, max, sample ), start( min, max ) |
---|
23 | { |
---|
24 | for( int i=min; i<=max; i++ ) |
---|
25 | values[i] = start[i] = 0; |
---|
26 | } |
---|
27 | FFREvaluation( int min, int max, const GFRandom & sample ) : REvaluation( min, max, sample ), start( min, max ) |
---|
28 | { |
---|
29 | for( int i=min; i<=max; i++ ) |
---|
30 | values[i] = start[i] = 0; |
---|
31 | } |
---|
32 | FFREvaluation& operator= ( const FFREvaluation & e ); |
---|
33 | void nextpoint(); |
---|
34 | bool hasNext(); |
---|
35 | }; |
---|
36 | |
---|
37 | CanonicalForm fin_ezgcd ( const CanonicalForm & FF, const CanonicalForm & GG ); |
---|
38 | |
---|
39 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.