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 TEST2_H 14 #define TEST2_H 15 #ifdef _MSC_VER 16 #pragma warning(disable : 4800 4996 4127 4100 4018) 17 #endif 18 19 #include <boost/multiprecision/cpp_dec_float.hpp> 20 21 #ifdef TEST_ET 22 typedef boost::multiprecision::number<boost::multiprecision::cpp_dec_float<50>, boost::multiprecision::et_on> mp_test_type; 23 #else 24 typedef boost::multiprecision::number<boost::multiprecision::cpp_dec_float<50>, boost::multiprecision::et_off> mp_test_type; 25 #endif 26 //typedef double mp_test_type; 27 28 #define USE_RANGE 29 #define USE_SLICE 30 #define USE_FLOAT 31 #define USE_UNBOUNDED_ARRAY 32 #define USE_STD_VECTOR 33 #define USE_BOUNDED_VECTOR USE_MATRIX 34 #define USE_UNBOUNDED_ARRAY 35 #define USE_MAP_ARRAY 36 #define USE_STD_MAP 37 #define USE_MAPPED_VECTOR 38 #define USE_COMPRESSED_VECTOR 39 #define USE_COORDINATE_VECTOR 40 #define USE_MAPPED_MATRIX 41 #define USE_COMPRESSED_MATRIX 42 #define USE_COORDINATE_MATRIX 43 44 #include <iostream> 45 46 #include <boost/numeric/ublas/vector.hpp> 47 #include <boost/numeric/ublas/matrix.hpp> 48 #include <boost/numeric/ublas/triangular.hpp> 49 #include <boost/numeric/ublas/io.hpp> 50 #include <boost/numeric/ublas/blas.hpp> 51 52 namespace ublas = boost::numeric::ublas; 53 54 #include "common/init.hpp" 55 56 template <class V, int N> 57 struct test_blas_1 58 { 59 typedef typename V::value_type value_type; 60 typedef typename ublas::type_traits<value_type>::real_type real_type; 61 62 void test(); 63 }; 64 65 template <class V, class M, int N> 66 struct test_blas_2 67 { 68 typedef typename V::value_type value_type; 69 70 void test(); 71 }; 72 73 template <class M, int N> 74 struct test_blas_3 75 { 76 typedef typename M::value_type value_type; 77 78 void test(); 79 }; 80 81 #endif 82