nmn::Matrix< Element, _dimension_count > Class Template Reference

Template class for n-dimensional matrix definition. More...

#include <matrix.h>

List of all members.

Public Member Functions

 Matrix ()
 Constructor.
 ~Matrix ()
 Destructor.
void resize (const std::vector< UnsignedInt > &new_size)
 Resizes the dimension's extents.


Detailed Description

template<typename Element, UnsignedInt _dimension_count>
class nmn::Matrix< Element, _dimension_count >

Template class for n-dimensional matrix definition.

An n-dimensional matrix could be defined as a vector of homogeneous (n-1)-dimensional sub-matrices, as this class do it by recursive template definition. Matrix class inherits from STL vector class.


Constructor & Destructor Documentation

template<typename Element, UnsignedInt _dimension_count>
nmn::Matrix< Element, _dimension_count >::Matrix (  ) 

Constructor.

Creates an stl vector of (_dimension_count-1)-dimensional matrices.

template<typename Element, UnsignedInt _dimension_count>
nmn::Matrix< Element, _dimension_count >::~Matrix (  ) 

Destructor.


Member Function Documentation

template<typename Element, UnsignedInt _dimension_count>
void nmn::Matrix< Element, _dimension_count >::resize ( const std::vector< UnsignedInt > &  new_size  ) 

Resizes the dimension's extents.

Parameters:
new_size new size for the dimension's extents (note that the new_size vector length must be equal to the dimension count of the matrix).
As a matrix is a vector of sub-matrices, this method is called recursively for each element (sub-matrix) of that vector.


The documentation for this class was generated from the following files:
Generated on Sun Nov 18 21:29:40 2007 for nmnurbs by  doxygen 1.4.7