| 
 | ||||||
| 
 | ||||||
|  | ||||||
| Prototype | ||||||
| template <class Matrix, int BM, int BN> block_view<Matrix, BM, BN>::type blocked(const Matrix& A, blk<BM,BN>) ; | ||||||
|  | ||||||
| Description | ||||||
| This version of the blocked matrix generator is for statically
 sized blocks. 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 | ||||||

![[MTL Home]](./ndtoclogo.gif) Copyright ©
1998,1999 University of Notre Dame.  All Rights Reserved.
Copyright ©
1998,1999 University of Notre Dame.  All Rights Reserved.