1 //
2 // Copyright (c) 2000-2002
3 // Joerg Walter, Mathias Koch
4 //
5 // Distributed under the Boost Software License, Version 1.0. (See
6 // accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
8 //
9 // The authors gratefully acknowledge the support of
10 // GeNeSys mbH & Co. KG in producing this work.
11 //
12
13 #if defined(__GNUC__) && (__GNUC__ >= 9)
14 #pragma GCC diagnostic ignored "-Wdeprecated-copy"
15 #endif
16
17 #include "test2.hpp"
18
main()19 int main()
20 {
21 #ifdef USE_FLOAT
22 std::cout << "mp_test_type" << std::endl;
23 test_blas_1<ublas::vector<mp_test_type>, 3>().test();
24 #endif
25
26 #ifdef USE_DOUBLE
27 std::cout << "double" << std::endl;
28 test_blas_1<ublas::vector<double>, 3>().test();
29 #endif
30
31 #ifdef USE_STD_COMPLEX
32 #ifdef USE_FLOAT
33 std::cout << "std::complex<mp_test_type>" << std::endl;
34 test_blas_1<ublas::vector<std::complex<mp_test_type> >, 3>().test();
35 #endif
36
37 #ifdef USE_DOUBLE
38 std::cout << "std::complex<double>" << std::endl;
39 test_blas_1<ublas::vector<std::complex<double> >, 3>().test();
40 #endif
41 #endif
42
43 std::cout << "test_blas_2" << std::endl;
44
45 #ifdef USE_FLOAT
46 std::cout << "mp_test_type" << std::endl;
47 test_blas_2<ublas::vector<mp_test_type>, ublas::matrix<mp_test_type>, 3>().test();
48 #endif
49
50 #ifdef USE_DOUBLE
51 std::cout << "double" << std::endl;
52 test_blas_2<ublas::vector<double>, ublas::matrix<double>, 3>().test();
53 #endif
54
55 #ifdef USE_STD_COMPLEX
56 #ifdef USE_FLOAT
57 std::cout << "std::complex<mp_test_type>" << std::endl;
58 test_blas_2<ublas::vector<std::complex<mp_test_type> >, ublas::matrix<std::complex<mp_test_type> >, 3>().test();
59 #endif
60
61 #ifdef USE_DOUBLE
62 std::cout << "std::complex<double>" << std::endl;
63 test_blas_2<ublas::vector<std::complex<double> >, ublas::matrix<std::complex<double> >, 3>().test();
64 #endif
65 #endif
66
67 std::cout << "test_blas_3" << std::endl;
68
69 #ifdef USE_FLOAT
70 std::cout << "mp_test_type" << std::endl;
71 test_blas_3<ublas::matrix<mp_test_type>, 3>().test();
72 #endif
73
74 #ifdef USE_DOUBLE
75 std::cout << "double" << std::endl;
76 test_blas_3<ublas::matrix<double>, 3>().test();
77 #endif
78
79 #ifdef USE_STD_COMPLEX
80 #ifdef USE_FLOAT
81 std::cout << "std::complex<mp_test_type>" << std::endl;
82 test_blas_3<ublas::matrix<std::complex<mp_test_type> >, 3>().test();
83 #endif
84
85 #ifdef USE_DOUBLE
86 std::cout << "std::complex<double>" << std::endl;
87 test_blas_3<ublas::matrix<std::complex<double> >, 3>().test();
88 #endif
89 #endif
90
91 return 0;
92 }
93