| ||||||
| ||||||
| Prototype | ||||||
|
template <class Matrix> block_view<Matrix, 0, 0>::type blocked(const Matrix& A, int bm, int bn) ; | ||||||
| Description | ||||||
block_viewNote: currently not supported for egcs (internal compiler error). | ||||||
| Definition | ||||||
| matrix.h | ||||||
| Preconditions | ||||||
|
| ||||||
| Complexity | ||||||
| Example | ||||||
In blocked_matrix.cc:
const int M = 4; const int N = 4; typedef matrix<double, rectangle<>, dense<>, column_major >::type Matrix; Matrix A(M,N); for (int i = 0; i < M; ++i) for (int j = 0; j < N; ++j) A(i, j) = i * N + j; print_all_matrix(A); block_view<Matrix,2,2>::type bA = blocked(A, blk<2,2>()); print_partitioned_matrix(bA); block_view<Matrix>::type cA = blocked(A, 2, 2); print_partitioned_by_column(cA); | ||||||
| Notes | ||||||
| See also | ||||||

Copyright ©
1998,1999 University of Notre Dame. All Rights Reserved.