mtl::matrix< T, Shape, Storage, Orientation >::base_matrix< Elt, Parameters > Struct Template Reference
Base class for other matrices, contains only very simple functionality that is used in all matrices. More...
#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. |
Base class for other matrices, contains only very simple functionality that is used in all matrices.
void mtl::matrix< T, Shape, Storage, Orientation >::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< T, Shape, Storage, Orientation >::base_matrix< Elt, Parameters > 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.