MTL 4: mtl::matrix::base_matrix< Elt, Parameters > Struct Template Reference
#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 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.
mtl::matrix::base_matrix< Elt, Parameters > Struct Template Reference -- MTL 4 -- Peter Gottschling and Andrew Lumsdaine
-- Generated on 24 Aug 2009 by Doxygen 1.5.9 -- Copyright 2008-09 by TU Dresden and the Trustees of Indiana University.