hdnum::Matrix< T > Class Template Reference

A flexible matrix class. More...

#include <matrix.hh>

List of all members.

Public Types

typedef T value_type
 Remember the storage type.
typedef value_typereference
 Reference to an object.
typedef const value_typeconst_reference
 Const reference to an object.
typedef std::size_t size_type
 Type used for array indices.
typedef std::ptrdiff_t difference_type
 Difference type.

Public Member Functions

 Matrix ()
 make empty matrix
 Matrix (size_type _m, size_type _n)
 make _m x _n matrix uninitialized
 Matrix (size_type _m, size_type _n, const T &_t)
 make _m x _n matrix initialized
 Matrix (const Matrix &A)
 copy constructor with reference semantics
Matrixoperator= (const Matrix &A)
 assignment operator with reference semantics
Matrix< T > sub (size_type i, size_type j, size_type rows, size_type cols) const
 submatrix extraction
T * operator[] (size_type i)
 Component access.
const T * operator[] (size_type i) const
 Component access.
size_type rowsize () const
 get number of rows
size_type colsize () const
 get number of columns
int iwidth () const
 get index field width for pretty-printing
int width () const
 get data field width for pretty-printing
int precision () const
 get data precision for pretty-printing
void iwidth (int i) const
 set index field width for pretty-printing
void width (int i) const
 set data field width for pretty-printing
void precision (int i) const
 set data precision for pretty-printing


Detailed Description

template<class T>
class hdnum::Matrix< T >

A flexible matrix class.
The documentation for this class was generated from the following file:

Generated on Mon Oct 12 21:45:50 2009 for Heidelberg Educational Numerics Library by  doxygen 1.5.5