1 | // |
---|
2 | // Copyright (c) 2000-2002 |
---|
3 | // Joerg Walter, Mathias Koch |
---|
4 | // |
---|
5 | // Permission to use, copy, modify, distribute and sell this software |
---|
6 | // and its documentation for any purpose is hereby granted without fee, |
---|
7 | // provided that the above copyright notice appear in all copies and |
---|
8 | // that both that copyright notice and this permission notice appear |
---|
9 | // in supporting documentation. The authors make no representations |
---|
10 | // about the suitability of this software for any purpose. |
---|
11 | // It is provided "as is" without express or implied warranty. |
---|
12 | // |
---|
13 | // The authors gratefully acknowledge the support of |
---|
14 | // GeNeSys mbH & Co. KG in producing this work. |
---|
15 | // |
---|
16 | |
---|
17 | #include "test2.hpp" |
---|
18 | |
---|
19 | int main () { |
---|
20 | #ifdef USE_FLOAT |
---|
21 | std::cout << "float" << std::endl; |
---|
22 | test_blas_1<ublas::vector<float>, 3> ().test (); |
---|
23 | #endif |
---|
24 | |
---|
25 | #ifdef USE_DOUBLE |
---|
26 | std::cout << "double" << std::endl; |
---|
27 | test_blas_1<ublas::vector<double>, 3> ().test (); |
---|
28 | #endif |
---|
29 | |
---|
30 | #ifdef USE_STD_COMPLEX |
---|
31 | #ifdef USE_FLOAT |
---|
32 | std::cout << "std::complex<float>" << std::endl; |
---|
33 | test_blas_1<ublas::vector<std::complex<float> >, 3> ().test (); |
---|
34 | #endif |
---|
35 | |
---|
36 | #ifdef USE_DOUBLE |
---|
37 | std::cout << "std::complex<double>" << std::endl; |
---|
38 | test_blas_1<ublas::vector<std::complex<double> >, 3> ().test (); |
---|
39 | #endif |
---|
40 | #endif |
---|
41 | |
---|
42 | std::cout << "test_blas_2" << std::endl; |
---|
43 | |
---|
44 | #ifdef USE_FLOAT |
---|
45 | std::cout << "float" << std::endl; |
---|
46 | test_blas_2<ublas::vector<float>, ublas::matrix<float>, 3> ().test (); |
---|
47 | #endif |
---|
48 | |
---|
49 | #ifdef USE_DOUBLE |
---|
50 | std::cout << "double" << std::endl; |
---|
51 | test_blas_2<ublas::vector<double>, ublas::matrix<double>, 3> ().test (); |
---|
52 | #endif |
---|
53 | |
---|
54 | #ifdef USE_STD_COMPLEX |
---|
55 | #ifdef USE_FLOAT |
---|
56 | std::cout << "std::complex<float>" << std::endl; |
---|
57 | test_blas_2<ublas::vector<std::complex<float> >, ublas::matrix<std::complex<float> >, 3> ().test (); |
---|
58 | #endif |
---|
59 | |
---|
60 | #ifdef USE_DOUBLE |
---|
61 | std::cout << "std::complex<double>" << std::endl; |
---|
62 | test_blas_2<ublas::vector<std::complex<double> >, ublas::matrix<std::complex<double> >, 3> ().test (); |
---|
63 | #endif |
---|
64 | #endif |
---|
65 | |
---|
66 | std::cout << "test_blas_3" << std::endl; |
---|
67 | |
---|
68 | #ifdef USE_FLOAT |
---|
69 | std::cout << "float" << std::endl; |
---|
70 | test_blas_3<ublas::matrix<float>, 3> ().test (); |
---|
71 | #endif |
---|
72 | |
---|
73 | #ifdef USE_DOUBLE |
---|
74 | std::cout << "double" << std::endl; |
---|
75 | test_blas_3<ublas::matrix<double>, 3> ().test (); |
---|
76 | #endif |
---|
77 | |
---|
78 | #ifdef USE_STD_COMPLEX |
---|
79 | #ifdef USE_FLOAT |
---|
80 | std::cout << "std::complex<float>" << std::endl; |
---|
81 | test_blas_3<ublas::matrix<std::complex<float> >, 3> ().test (); |
---|
82 | #endif |
---|
83 | |
---|
84 | #ifdef USE_DOUBLE |
---|
85 | std::cout << "std::complex<double>" << std::endl; |
---|
86 | test_blas_3<ublas::matrix<std::complex<double> >, 3> ().test (); |
---|
87 | #endif |
---|
88 | #endif |
---|
89 | |
---|
90 | return 0; |
---|
91 | } |
---|