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#include "test2.hpp"
14
15int main () {
16#ifdef USE_FLOAT
17 std::cout << "float" << std::endl;
18 test_blas_1<ublas::vector<float>, 3> ().test ();
19#endif
20
21#ifdef USE_DOUBLE
22 std::cout << "double" << std::endl;
23 test_blas_1<ublas::vector<double>, 3> ().test ();
24#endif
25
26#ifdef USE_STD_COMPLEX
27#ifdef USE_FLOAT
28 std::cout << "std::complex<float>" << std::endl;
29 test_blas_1<ublas::vector<std::complex<float> >, 3> ().test ();
30#endif
31
32#ifdef USE_DOUBLE
33 std::cout << "std::complex<double>" << std::endl;
34 test_blas_1<ublas::vector<std::complex<double> >, 3> ().test ();
35#endif
36#endif
37
38 std::cout << "test_blas_2" << std::endl;
39
40#ifdef USE_FLOAT
41 std::cout << "float" << std::endl;
42 test_blas_2<ublas::vector<float>, ublas::matrix<float>, 3> ().test ();
43#endif
44
45#ifdef USE_DOUBLE
46 std::cout << "double" << std::endl;
47 test_blas_2<ublas::vector<double>, ublas::matrix<double>, 3> ().test ();
48#endif
49
50#ifdef USE_STD_COMPLEX
51#ifdef USE_FLOAT
52 std::cout << "std::complex<float>" << std::endl;
53 test_blas_2<ublas::vector<std::complex<float> >, ublas::matrix<std::complex<float> >, 3> ().test ();
54#endif
55
56#ifdef USE_DOUBLE
57 std::cout << "std::complex<double>" << std::endl;
58 test_blas_2<ublas::vector<std::complex<double> >, ublas::matrix<std::complex<double> >, 3> ().test ();
59#endif
60#endif
61
62 std::cout << "test_blas_3" << std::endl;
63
64#ifdef USE_FLOAT
65 std::cout << "float" << std::endl;
66 test_blas_3<ublas::matrix<float>, 3> ().test ();
67#endif
68
69#ifdef USE_DOUBLE
70 std::cout << "double" << std::endl;
71 test_blas_3<ublas::matrix<double>, 3> ().test ();
72#endif
73
74#ifdef USE_STD_COMPLEX
75#ifdef USE_FLOAT
76 std::cout << "std::complex<float>" << std::endl;
77 test_blas_3<ublas::matrix<std::complex<float> >, 3> ().test ();
78#endif
79
80#ifdef USE_DOUBLE
81 std::cout << "std::complex<double>" << std::endl;
82 test_blas_3<ublas::matrix<std::complex<double> >, 3> ().test ();
83#endif
84#endif
85
86 return 0;
87}
88

source code of boost/libs/numeric/ublas/test/test2.cpp