mtl::matrix::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>

Inheritance diagram for mtl::matrix::base_matrix< Elt, Parameters >:

Inheritance graph
[legend]

List of all members.

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.


Detailed Description

template<class Elt, class Parameters>
struct mtl::matrix::base_matrix< Elt, Parameters >

Base class for other matrices, contains only very simple functionality that is used in all matrices.

Member Function Documentation

template<class Elt, class Parameters>
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.

template<class Elt, class Parameters>
void mtl::matrix::base_matrix< Elt, Parameters >::change_dim ( mtl::non_fixed::dimensions  d  )  [inline, protected]

Will fail for fixed::dimension


The documentation for this struct was generated from the following file:





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.