test2.cpp 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. #if defined(__GNUC__) && (__GNUC__ >= 9)
  13. #pragma GCC diagnostic ignored "-Wdeprecated-copy"
  14. #endif
  15. #include "test2.hpp"
  16. int main()
  17. {
  18. #ifdef USE_FLOAT
  19. std::cout << "mp_test_type" << std::endl;
  20. test_blas_1<ublas::vector<mp_test_type>, 3>().test();
  21. #endif
  22. #ifdef USE_DOUBLE
  23. std::cout << "double" << std::endl;
  24. test_blas_1<ublas::vector<double>, 3>().test();
  25. #endif
  26. #ifdef USE_STD_COMPLEX
  27. #ifdef USE_FLOAT
  28. std::cout << "std::complex<mp_test_type>" << std::endl;
  29. test_blas_1<ublas::vector<std::complex<mp_test_type> >, 3>().test();
  30. #endif
  31. #ifdef USE_DOUBLE
  32. std::cout << "std::complex<double>" << std::endl;
  33. test_blas_1<ublas::vector<std::complex<double> >, 3>().test();
  34. #endif
  35. #endif
  36. std::cout << "test_blas_2" << std::endl;
  37. #ifdef USE_FLOAT
  38. std::cout << "mp_test_type" << std::endl;
  39. test_blas_2<ublas::vector<mp_test_type>, ublas::matrix<mp_test_type>, 3>().test();
  40. #endif
  41. #ifdef USE_DOUBLE
  42. std::cout << "double" << std::endl;
  43. test_blas_2<ublas::vector<double>, ublas::matrix<double>, 3>().test();
  44. #endif
  45. #ifdef USE_STD_COMPLEX
  46. #ifdef USE_FLOAT
  47. std::cout << "std::complex<mp_test_type>" << std::endl;
  48. test_blas_2<ublas::vector<std::complex<mp_test_type> >, ublas::matrix<std::complex<mp_test_type> >, 3>().test();
  49. #endif
  50. #ifdef USE_DOUBLE
  51. std::cout << "std::complex<double>" << std::endl;
  52. test_blas_2<ublas::vector<std::complex<double> >, ublas::matrix<std::complex<double> >, 3>().test();
  53. #endif
  54. #endif
  55. std::cout << "test_blas_3" << std::endl;
  56. #ifdef USE_FLOAT
  57. std::cout << "mp_test_type" << std::endl;
  58. test_blas_3<ublas::matrix<mp_test_type>, 3>().test();
  59. #endif
  60. #ifdef USE_DOUBLE
  61. std::cout << "double" << std::endl;
  62. test_blas_3<ublas::matrix<double>, 3>().test();
  63. #endif
  64. #ifdef USE_STD_COMPLEX
  65. #ifdef USE_FLOAT
  66. std::cout << "std::complex<mp_test_type>" << std::endl;
  67. test_blas_3<ublas::matrix<std::complex<mp_test_type> >, 3>().test();
  68. #endif
  69. #ifdef USE_DOUBLE
  70. std::cout << "std::complex<double>" << std::endl;
  71. test_blas_3<ublas::matrix<std::complex<double> >, 3>().test();
  72. #endif
  73. #endif
  74. return 0;
  75. }