#include <base_matrix.hpp>
Public Member Functions | |
base_matrix (mtl::non_fixed::dimensions d) | |
Setting dimension. | |
void | check_dim (size_type num_rows, size_type num_cols) const |
Either matrix to be changed is uninitialized (i.e. 0x0) or dimensions are equal. | |
Protected Member Functions | |
void | change_dim (mtl::non_fixed::dimensions d) |
Protected Attributes | |
dim_type | dim |
# of rows and columns | |
size_type | my_nnz |
# of non-zeros, to be set by derived matrix | |
Friends | |
void | swap (self &x, self &y) |
Swap base matrix. |
void mtl::matrix::base_matrix< Elt, Parameters >::check_dim | ( | size_type | num_rows, | |
size_type | num_cols | |||
) | const [inline] |
Either matrix to be changed is uninitialized (i.e. 0x0) or dimensions are equal.
The matrices with dimension 0 x 0 are considered like stem cells: they can still change into an arbitrary dimension and are compatible with any other matrix. Once a matrix has a non-trivial dimension it can be only changed explicitly and is only compatible with matrices of the same dimensionality.
void mtl::matrix::base_matrix< Elt, Parameters >::change_dim | ( | mtl::non_fixed::dimensions | d | ) | [inline, protected] |
Will fail for fixed::dimension
mtl::matrix::base_matrix< Elt, Parameters > Struct Template Reference -- MTL 4 -- Peter Gottschling and Andrew Lumsdaine
-- Generated on 19 May 2009 by Doxygen 1.5.5 -- Copyright 2007 by the Trustees of Indiana University.