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
RevLine 
[49f1f45]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:
[3fd1ff]13    CFArray start; // random point
[49f1f45]14  public:
[3fd1ff]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++ )
[c4f4fd]19        values[i] = start[i] = gen->generate();  //generate random point
20
21      nextpoint();
[3fd1ff]22    }
[49f1f45]23    FFREvaluation& operator= ( const FFREvaluation & e );
[3fd1ff]24    void nextpoint();
25    bool hasNext();
[49f1f45]26};
27
28CanonicalForm fin_ezgcd ( const CanonicalForm & FF, const CanonicalForm & GG );
29
30#endif
Note: See TracBrowser for help on using the repository browser.