source: git/factory/ffreval.h @ c4f4fd

spielwiese
Last change on this file since c4f4fd was c4f4fd, checked in by Hans Schoenemann <hannes@…>, 14 years ago
going back to r13182 (facstd.tst fails) git-svn-id: file:///usr/local/Singular/svn/trunk@13206 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 705 bytes
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
9
10class FFREvaluation : public REvaluation
11{
12  private:
13    CFArray start; // random point
14  public:
15    FFREvaluation( ) : REvaluation(), start() {}
16    FFREvaluation( int min, int max, const FFRandom & sample ) : REvaluation( min, max, sample ), start( min, max )
17    {
18      for( int i=min; i<=max; i++ )
19        values[i] = start[i] = gen->generate();  //generate random point
20
21      nextpoint();
22    }
23    FFREvaluation& operator= ( const FFREvaluation & e );
24    void nextpoint();
25    bool hasNext();
26};
27
28CanonicalForm fin_ezgcd ( const CanonicalForm & FF, const CanonicalForm & GG );
29
30#endif
Note: See TracBrowser for help on using the repository browser.