diff -aur contrib/examples/banded_view_test.cc contrib/examples/banded_view_test.cc
--- contrib/examples/banded_view_test.cc 2005-07-05 15:11:50.000000000 +0000
+++ contrib/examples/banded_view_test.cc 2005-08-30 11:18:34.000000000 +0000
- typedef rows_type<Matrix>::type RowMatrix;
+ typedef typename rows_type<Matrix>::type RowMatrix;
std::cout << "rows banded" << std::endl;
- band_view<RowMatrix>::type B(2, 1, A);
+ typename band_view<RowMatrix>::type B(2, 1, A);
print_all_banded(B, 2, 1);
std::cout << "columns banded" << std::endl;
- typedef columns_type<Matrix>::type ColMatrix;
- band_view<ColMatrix>::type C(2, 1, columns(A));
+ typedef typename columns_type<Matrix>::type ColMatrix;
+ typename band_view<ColMatrix>::type C(2, 1, columns(A));
print_all_banded(C, 2, 1);
std::cout << "rows lower triangle" << std::endl;
- triangle_view<RowMatrix, lower>::type L(A);
+ typename triangle_view<RowMatrix, lower>::type L(A);
print_all_banded(L, M-1, 0);
std::cout << "rows unit upper triangle" << std::endl;
- triangle_view<RowMatrix, unit_upper>::type U(A);
+ typename triangle_view<RowMatrix, unit_upper>::type U(A);
print_all_banded(U, -1, N-1);
std::cout << "columns lower triangle" << std::endl;
- triangle_view<ColMatrix, lower>::type CL(columns(A));
+ typename triangle_view<ColMatrix, lower>::type CL(columns(A));
print_all_banded(CL, M-1, 0);
std::cout << "columns unit upper triangle" << std::endl;
- triangle_view<ColMatrix, unit_upper>::type CU(columns(A));
+ typename triangle_view<ColMatrix, unit_upper>::type CU(columns(A));
print_all_banded(CU, -1, N-1);
diff -aur mtl/dimension.h mtl/dimension.h
--- mtl/dimension.h 2005-07-05 15:11:49.000000000 +0000
+++ mtl/dimension.h 2005-08-30 11:10:27.000000000 +0000
inline dimension(size_type m_, size_type n_) : m(m_), n(n_) { }
inline dimension& operator=(const dimension& x) {
m = x.m; n = x.n; return *this; }
- inline size_type first() const { return M ? M : m; }