/**************************************************************** **** **** This file belongs with the course **** Introduction to Scientific Programming in C++/Fortran2003 **** copyright 2020-2023 Victor Eijkhout eijkhout@tacc.utexas.edu **** **** walk.css : random walks, naive implementation **** ****************************************************************/ #include "walk_lib_vec.cpp" #include using namespace std::chrono; int main() { const int experiments = 5; for ( auto dim : {3} ) { auto start_time = high_resolution_clock::now(); for ( auto steps : { 10000,100000,1000000 } ) { //codesnippet walkrun float avg_dist{0.f}; for ( int x=0; x(end_time - start_time).count(); cout << "run took: " << duration << " milliseconds" << '\n'; } return 0; }