#define TRIQS_ARRAYS_ENFORCE_BOUNDCHECK #include using namespace triqs::gfs; using namespace triqs::arrays; #define TEST(X) std::cout << BOOST_PP_STRINGIZE((X)) << " ---> "<< (X) < const int nl_interne = 1000; const int N = 1000; typedef double VALUE_TYPE; //typedef int VALUE_TYPE; inline VALUE_TYPE fnt(size_t i) { return i*(i+2.0)*(i-8.0);} //inline VALUE_TYPE fnt(size_t i) { return i;} //*(i+2.0)*(i-8);} //inline VALUE_TYPE fnt(size_t i) { return i*(i+2.0)*(i-8);} struct with_sliding_view { void operator()() { double beta =1; auto G = gf { {beta, Fermion,N}, {2,2}}; G() =0; //auto slv = G.data_getter.slv; for (int u =0; u { {beta, Fermion,N}, {2,2}}; G() =0; auto V = G.data(); for (int u =0; u (500); speed_tester (500); //speed_tester (5000); } TRIQS_CATCH_AND_ABORT; }