Skip to content

Commit

Permalink
Seems that PrimerIter has been modified but this was not updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Neiger committed Jul 19, 2018
1 parent 2b5c07f commit 41d16c4
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions examples/bench-matpoly-mult.C
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,8 @@ int main(int argc, char** argv){
#ifdef FFT_PROFILER
FFT_PROF_LEVEL=2;
#endif
PrimeIter<IteratorCategories::HeuristicTag> Rd(b,seed);
integer p= Rd.random();
PrimeIterator<IteratorCategories::HeuristicTag> Rd(b,seed);
integer p= *Rd;
//Givaro::Modular<integer> F(p);
Givaro::Modular<RecInt::ruint128,RecInt::ruint256> F(p);
cout<<"Computation over Fp[x] with p= "<<p<<" (Generic prime)"<<endl;
Expand All @@ -519,10 +519,9 @@ int main(int argc, char** argv){
cout<<"++++++++++++++++++++++++++++++++++++"<<endl;
runTest (F,n,b,d,seed,test);
} else {
PrimeIter<IteratorCategories::HeuristicTag> Rd(b,seed);
PrimeIterator<IteratorCategories::HeuristicTag> Rd(b,seed);
//uint64_t dd=integer(d).bitsize()+1;
integer p;
Rd.random(p);
integer p = *Rd;
//Givaro::Modular<int32_t> F((int32_t)p);
Givaro::Modular<double> F((int32_t)p);
cout<<"Computation over Fp[x] with p= "<<p<<" (normal prime)"<<endl;
Expand Down

0 comments on commit 41d16c4

Please sign in to comment.