Changeset 231b0fd in git for factory/ffreval.h


Ignore:
Timestamp:
Sep 13, 2010, 4:40:35 PM (14 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
018577ef150959aa2cb45fc6f4167e9ef1096972
Parents:
139b671c6c11958a1f538c95dc0ade26520e76b0
Message:
some new functions for random evaluations over finite fields


git-svn-id: file:///usr/local/Singular/svn/trunk@13184 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/ffreval.h

    r139b67 r231b0fd  
    66#include "canonicalform.h"
    77#include "cf_eval.h"
     8#include "cf_reval.h"
    89
    910
     
    1718    {
    1819      for( int i=min; i<=max; i++ )
    19         values[i] = start[i] = gen->generate();  //generate random point
    20 
    21       nextpoint();
     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;
    2231    }
    2332    FFREvaluation& operator= ( const FFREvaluation & e );
Note: See TracChangeset for help on using the changeset viewer.