1 #include "prod_test.hpp"
2 #include <boost/numeric/ublas/matrix.hpp>
3
main()4 int main()
5 {
6
7 ///testing row major flaot prod
8 bench_prod<float, ublas::basic_row_major<>, 10, 10> b1;
9
10 ///testing row major complex float prod
11 bench_prod<std::complex<float>, ublas::basic_row_major<>, 10, 10> b2;
12
13
14 ///testing row major double prod
15 bench_prod<double, ublas::basic_row_major<>, 10, 10> b3;
16
17 ///testing row major complex float prod
18 bench_prod<std::complex<double>, ublas::basic_row_major<>, 10, 10> b4;
19
20
21 ///testing column major flaot prod
22 bench_prod<float, ublas::basic_column_major<>, 10, 10> b5;
23
24 ///testing column major complex float prod
25 bench_prod<std::complex<float>, ublas::basic_column_major<>, 10, 10> b6;
26
27 ///testing column major double prod
28 bench_prod<double, ublas::basic_column_major<>, 10, 10> b7;
29
30 ///testing column major complex double prod
31 bench_prod<std::complex<double>, ublas::basic_column_major<>, 10, 10> b8;
32
33
34 std::cout << "Row major:" << std::endl;
35 b1.run();
36 b2.run();
37 b3.run();
38 b4.run();
39
40 std::cout << "Column major:" << std::endl;
41 b5.run();
42 b6.run();
43 b7.run();
44 b8.run();
45
46 return 0;
47
48 }