| 1 | #include "elementwise_operations_with_constants_test.hpp" |
| 2 | #include <boost/numeric/ublas/matrix.hpp> |
| 3 | |
| 4 | int main() |
| 5 | { |
| 6 | |
| 7 | ///testing row major flaot prod |
| 8 | bench_elementwise_constant<float, ublas::basic_row_major<>, 10, 10> b1; |
| 9 | |
| 10 | ///testing row major complex float prod |
| 11 | bench_elementwise_constant<std::complex<float>, ublas::basic_row_major<>, 10, 10> b2; |
| 12 | |
| 13 | |
| 14 | ///testing row major double prod |
| 15 | bench_elementwise_constant<double, ublas::basic_row_major<>, 10, 10> b3; |
| 16 | |
| 17 | ///testing row major complex float elementwise operations with constants |
| 18 | bench_elementwise_constant<std::complex<double>, ublas::basic_row_major<>, 10, 10> b4; |
| 19 | |
| 20 | |
| 21 | ///testing column major flaot elementwise operations with constants |
| 22 | bench_elementwise_constant<float, ublas::basic_column_major<>, 10, 10> b5; |
| 23 | |
| 24 | ///testing column major complex float elementwise operations with constants |
| 25 | bench_elementwise_constant<std::complex<float>, ublas::basic_column_major<>, 10, 10> b6; |
| 26 | |
| 27 | ///testing column major double elementwise operations with constants |
| 28 | bench_elementwise_constant<double, ublas::basic_column_major<>, 10, 10> b7; |
| 29 | |
| 30 | ///testing column major complex double elementwise operations with constants |
| 31 | bench_elementwise_constant<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 | } |