source: git/factory/ffreval.h @ 08daea

spielwiese
Last change on this file since 08daea was 08daea, checked in by Martin Lee <martinlee84@…>, 13 years ago
new ezgcd, heuristic which gcd to choose and sparse modular gcd all for finite fields git-svn-id: file:///usr/local/Singular/svn/trunk@13661 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_reval.h"
8
9class FFREvaluation : public REvaluation
10{
11  private:
12    CFArray start; // random point
13  public:
14    FFREvaluation( ) : REvaluation(), start() {}
15    FFREvaluation( int min, int max, const FFRandom & sample ) : REvaluation( min, max, sample ), start( min, max )
16    {
17      for( int i=min; i<=max; i++ )
18        values[i] = start[i] = 0; // start with 0
19
20      nextpoint();
21    }
22    FFREvaluation( int min, int max, const GFRandom & sample ) : REvaluation( min, max, sample ), start( min, max )
23    {
24      for( int i=min; i<=max; i++ )
25        values[i] = start[i] = 0; // start with 0
26
27      nextpoint();
28    }
29    FFREvaluation( int min, int max, const AlgExtRandomF & sample ) : REvaluation( min, max, sample ), start( min, max )
30    {
31      for( int i=min; i<=max; i++ )
32        values[i] = start[i] = 0; // start with 0
33
34      nextpoint();
35    }
36    FFREvaluation& operator= ( const FFREvaluation & e );
37
38    void nextpoint();
39    bool hasNext();
40};
41
42#endif
Note: See TracBrowser for help on using the repository browser.