• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include "elementwise_operations_test.hpp"
2 
main()3 int main()
4 {
5 
6   ///testing row major flaot elementwise operations
7   bench_elementwise <float, ublas::basic_row_major<>, 10, 10> b1;
8 
9   ///testing row major complex float elementwise operations
10   bench_elementwise <std::complex<float>, ublas::basic_row_major<>, 10, 10> b2;
11 
12   ///testing row major double elementwise operations
13   bench_elementwise <double, ublas::basic_row_major<>, 10, 10> b5;
14 
15   ///testing row major complex double elementwise operations
16   bench_elementwise <std::complex<double>, ublas::basic_row_major<>, 10, 10> b6;
17 
18   ///testing column major flaot elementwise operations
19   bench_elementwise <float, ublas::basic_column_major<>, 10, 10> b3;
20 
21   ///testing column major complex float elementwise operations
22   bench_elementwise <std::complex<float>, ublas::basic_column_major<>, 10, 10> b4;
23 
24   ///testing column major double elementwise operations
25   bench_elementwise <double, ublas::basic_column_major<>, 10, 10> b7;
26 
27   ///testing column major complex double elementwise operations
28   bench_elementwise <std::complex<double>, ublas::basic_column_major<>, 10, 10> b8;
29 
30 
31   std::cout << "row major:" << std::endl;
32   b1.run();
33   b2.run();
34   b5.run();
35   b6.run();
36 
37 
38   std::cout << "column major:" << std::endl;
39   b3.run();
40   b4.run();
41   b7.run();
42   b8.run();
43 
44 }
45