#include "./speed_tester.hpp" #include #include "./clef_common.hpp" double S =0; struct eval_exp1 { void operator()() { F1 f(2); double y=2; //double x=1,y=2; auto expr = f(x_) + 2*y_; double s=0; for (int u =0; u<500000; ++u) { s+=eval( expr,x_=u/10000.0, y_=y);} S += s/10000.0; //std::cout<< "s =" < f7; f7(x_) = f(x_) + 2*x_; triqs::clef::function f2; f2(x_) = f(x_) + 2*x_; double s=0; for (int u =0; u<500000; ++u) { s+= f2(u/10000.0);} S += s/10000.0; //std::cout<< "s =" <