test_transform< func, arg1, arg2 > Struct Template Reference

Static Public Member Functions

static void run ()
 

Member Function Documentation

◆ run()

template<class func , class arg1 , class arg2 >
static void test_transform< func, arg1, arg2 >::run ( )
inlinestatic
49  {
50  arg1 a1;
51  a1.setIdentity();
52  arg2 a2;
53  a2.setIdentity();
54 
56  timer.reset();
57  for (int k = 0; k < 10; ++k) {
58  timer.start();
59  for (int k = 0; k < REPEAT; ++k) a2 = func::run(a1, a2);
60  timer.stop();
61  }
62  cout << setprecision(4) << fixed << timer.value() << "s " << endl;
63  ;
64  }
#define REPEAT
Definition: benchGeometry.cpp:11
Definition: BenchTimer.h:55
char char char int int * k
Definition: level2_impl.h:374
double timer
Definition: oomph_metis_from_parmetis_3.1.1/struct.h:210
void run(const string &dir_name, LinearSolver *linear_solver_pt, const unsigned nel_1d, bool mess_up_order)
Definition: two_d_poisson_compare_solvers.cc:317

References k, REPEAT, and run().


The documentation for this struct was generated from the following file: