mtl::matrix< T, Shape, Storage, Orientation >::recursator< Matrix > Struct Template Reference
#include <matrix_recursator.hpp>

Public Member Functions | |
| recursator (Matrix const &matrix, size_type bound=0) | |
| sub_matrix_type | operator* () const |
| Compute the sub-matrix corresponding to this recursator. | |
| size_type | bound () const |
| Return the bound of the recursator. | |
| void | set_bound (size_type b) |
Protected Attributes | |
| size_type | my_bound |
| Referred matrix (from which the sub-matrices are built) | |
| size_type | my_first_row |
| Virtual matrix size, i.e. upper bound for size of sub-matrix. | |
| size_type | my_first_col |
| Row of first entry in submatrix. | |
Class for matrix recursator
How to use this class is described in the recursion introduction.
| mtl::matrix< T, Shape, Storage, Orientation >::recursator< Matrix >::recursator | ( | Matrix const & | matrix, |
| size_type | bound = 0 |
||
| ) | [inline, explicit] |
Construct a recursator from a matrix.
| matrix | The matrix to which the recursator refers. |
| bound | Explicit bound declaration; must not be smaller than the numbers of rows and the number of columns; must also be a power of 2. |
Constructor takes the entire matrix as sub-matrix. This allows to have different type for the matrix and the sub-matrix.
| void mtl::matrix< T, Shape, Storage, Orientation >::recursator< Matrix >::set_bound | ( | size_type | b | ) | [inline] |
Set the bound of the recursator.
| bound | The new virtual bound; must be a power of 2. |
This function allows to declare a virtual bound smaller than the number of rows and/or columns. It must be used with uttermost care.
mtl::matrix< T, Shape, Storage, Orientation >::recursator< Matrix > Struct Template Reference -- MTL 4 -- Peter Gottschling and Andrew Lumsdaine
-- Gen. with
rev. 7542
on Sat Aug 11 2012 by doxygen 1.7.6.1 -- © 2010 by SimuNova UG.