00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef MTL_MATRIX_BANDS_INCLUDE
00013 #define MTL_MATRIX_BANDS_INCLUDE
00014
00015 #include <boost/numeric/mtl/matrix/banded_view.hpp>
00016
00017 namespace mtl { namespace matrix {
00018
00019 namespace traits {
00020
00021 template <typename Matrix>
00022 struct bands
00023 {
00024 typedef banded_view<Matrix> type;
00025 };
00026 }
00027
00028 template <typename Matrix>
00029 typename traits::bands<Matrix>::type
00030 inline bands(const Matrix& A, long begin, long end)
00031 {
00032 typedef typename traits::bands<Matrix>::type result;
00033 return result(A, begin, end);
00034 }
00035
00036 }
00037
00038 using matrix::bands;
00039
00040 }
00041
00042 #endif // MTL_MATRIX_BANDS_INCLUDE