test2.cpp 2.2 KB

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