test4.hpp 849 B

123456789101112131415161718192021222324252627282930313233343536373839
  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 TEST4_H
  13. #define TEST4_H
  14. #include <iostream>
  15. #include <boost/numeric/ublas/vector.hpp>
  16. #include <boost/numeric/ublas/matrix.hpp>
  17. #include <boost/numeric/ublas/matrix_proxy.hpp>
  18. #include <boost/numeric/ublas/banded.hpp>
  19. #include <boost/numeric/ublas/io.hpp>
  20. namespace ublas = boost::numeric::ublas;
  21. #include "common/init.hpp"
  22. //#define USE_BANDED
  23. #define USE_DIAGONAL
  24. void test_matrix_vector ();
  25. void test_matrix ();
  26. // FIXME slice are failing in assignment to zero elements
  27. #undef USE_SLICE
  28. #endif