parses command line arguments and sets the corresponding perf variables
| 26 | |
| 27 | // parses command line arguments and sets the corresponding perf variables |
| 28 | inline void perf_parse_args(int argc, char *argv[]) |
| 29 | { |
| 30 | if(argc >= 2){ |
| 31 | PERF_N = boost::lexical_cast<size_t>(argv[1]); |
| 32 | } |
| 33 | |
| 34 | if(argc >= 3){ |
| 35 | PERF_TRIALS = boost::lexical_cast<size_t>(argv[2]); |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | // generates a vector of random numbers |
| 40 | template<class T> |