#include <matrix.hh>
Public Types | |
typedef T | value_type |
Remember the storage type. | |
typedef value_type & | reference |
Reference to an object. | |
typedef const value_type & | const_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 | |
Matrix & | operator= (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 |