Logo MTL4
Public Member Functions | Protected Attributes | Friends
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>

Inheritance diagram for mtl::matrix< T, Shape, Storage, Orientation >::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 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 T, class Shape = rectangle<>, class Storage = dense<>, class Orientation = row_major>
template<class Elt, class Parameters>
struct mtl::matrix< T, Shape, Storage, Orientation >::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 T , class Shape = rectangle<>, class Storage = dense<>, class Orientation = row_major>
template<class Elt, class Parameters>
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.


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


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.