]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
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 | #ifndef TEST3_H | |
14 | #define TEST3_H | |
15 | ||
16 | #ifdef _MSC_VER | |
92f5a8d4 | 17 | #pragma warning(disable : 4800 4996 4127 4100) |
7c673cae FG |
18 | #endif |
19 | ||
20 | #include <boost/multiprecision/cpp_dec_float.hpp> | |
21 | ||
22 | #ifdef TEST_ET | |
23 | typedef boost::multiprecision::number<boost::multiprecision::cpp_dec_float<50>, boost::multiprecision::et_on> mp_test_type; | |
24 | #else | |
25 | typedef boost::multiprecision::number<boost::multiprecision::cpp_dec_float<50>, boost::multiprecision::et_off> mp_test_type; | |
26 | #endif | |
27 | //typedef double mp_test_type; | |
28 | ||
29 | #define USE_RANGE | |
30 | #define USE_SLICE | |
31 | #define USE_FLOAT | |
92f5a8d4 TL |
32 | #define USE_UNBOUNDED_ARRAY |
33 | #define USE_STD_VECTOR | |
7c673cae FG |
34 | #define USE_BOUNDED_VECTOR USE_MATRIX |
35 | #define USE_UNBOUNDED_ARRAY | |
92f5a8d4 | 36 | #define USE_MAP_ARRAY |
7c673cae | 37 | #define USE_STD_MAP |
92f5a8d4 TL |
38 | #define USE_MAPPED_VECTOR |
39 | #define USE_COMPRESSED_VECTOR | |
7c673cae | 40 | #define USE_COORDINATE_VECTOR |
92f5a8d4 TL |
41 | #define USE_MAPPED_MATRIX |
42 | #define USE_COMPRESSED_MATRIX | |
7c673cae FG |
43 | #define USE_COORDINATE_MATRIX |
44 | ||
45 | #include <iostream> | |
46 | ||
47 | #include <boost/numeric/ublas/vector.hpp> | |
48 | #include <boost/numeric/ublas/vector_proxy.hpp> | |
49 | #include <boost/numeric/ublas/vector_sparse.hpp> | |
50 | #include <boost/numeric/ublas/matrix.hpp> | |
51 | #include <boost/numeric/ublas/matrix_proxy.hpp> | |
52 | #include <boost/numeric/ublas/matrix_sparse.hpp> | |
53 | #include <boost/numeric/ublas/vector_sparse.hpp> | |
54 | #ifdef USE_GENERALIZED_VECTOR_OF_VECTOR | |
55 | #include <boost/numeric/ublas/vector_of_vector.hpp> | |
56 | #endif | |
57 | #include <boost/numeric/ublas/io.hpp> | |
58 | ||
59 | namespace ublas = boost::numeric::ublas; | |
60 | ||
61 | #include "common/init.hpp" | |
62 | ||
92f5a8d4 TL |
63 | void test_vector(); |
64 | void test_matrix_vector(); | |
65 | void test_matrix(); | |
7c673cae FG |
66 | |
67 | #endif |