test3.hpp 1.8 KB

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