| |||||||
| |||||||
![]() | |||||||
Description | |||||||
A helper class for creating a banded_view into an existing dense matrix. | |||||||
![]() | |||||||
Example | |||||||
In banded_view_test.cc:
template <class Matrix> void print_banded_views(Matrix& A) { using namespace mtl; band_view<RowMatrix>::type B(2, 1, A); } int main(int argc, char* argv[]) { using namespace mtl; int M, N; if (argc < 2) { M = 10; N = 10; } else { M = atoi(argv[1]); N = atoi(argv[2]); } typedef matrix<double>::type Matrix; Matrix A(M, N); print_banded_views(A); return 0; } | |||||||
![]() | |||||||
Definition | |||||||
matrix.h | |||||||
![]() | |||||||
Template Parameters | |||||||
| |||||||
![]() | |||||||
Model of | |||||||
![]() | |||||||
Members | |||||||
| |||||||
![]() | |||||||
New members | |||||||
![]() | |||||||
Notes | |||||||
![]() | |||||||
See also | |||||||
Copyright ©
1998,1999 University of Notre Dame. All Rights Reserved.