#include <CTBmatrixDsc.hxx>
Inheritance diagram for CTBmatrixCDsc:
Public Methods | |
CTBmatrixCDsc () | |
CTBmatrixCDsc (const T *p_data, CTBint i_nrow, CTBint i_ncol) | |
CTBmatrixCDsc (const T *p_data, CTBint i_nrow, CTBint i_ncol, CTBint i_strrow, CTBint i_strcol=1) | |
CTBmatrixCDsc (const T *p_data, CTBint i_ncol, const CTBrange &rrow, const CTBrange &rcol) | |
const T * | Data () const |
CTBint | NRow () const |
CTBint | NColumn () const |
CTBint | Size () const |
CTBint | StrideRow () const |
CTBint | StrideColumn () const |
CTBvectorCDsc< T > | Row (CTBint i_row) const |
CTBvectorCDsc< T > | Column (CTBint i_col) const |
CTBvectorCDsc< T > | Diagonal () const |
void | Dump (int i_indent=0, ostream &os=cout, const char *p_text=0) const |
CTBvectorCDsc< T > | operator[] (CTBint i_row) const |
const T & | operator() (CTBint i_row, CTBint i_col) const |
bool | operator! () const |
operator void * () const | |
Protected Attributes | |
T * | mp_data |
CTBint | mi_nrow |
CTBint | mi_ncol |
CTBint | mi_strrow |
CTBint | mi_strcol |
Related Functions | |
(Note that these are not member functions.) | |
ostream & | operator<< (ostream &os, CTBmatrixCDsc< T > obj) |
Definition at line 20 of file CTBmatrixDsc.hxx.
|
Construct descriptor for empty (nrow=ncol=0) matrix.
Definition at line 28 of file CTBmatrixDsc.icc. |
|
Construct descriptor from data pointer and dimensions. A compact matrix at p_data with i_nrow rows and i_ncol columns in normal C storage order is assumed. The row stride is thus set to i_ncol and the column stride to 1.
The value of p_data is ignored and a Definition at line 50 of file CTBmatrixDsc.icc. |
|
Construct descriptor from data pointer, dimensions and strides. This allows to represent a non-compact matrix in any storage order. p_data points to element (0,0), while p_data[i_strrow] refers to element (1,0) and p_data[i_strcol] to element (0,1).
The value of p_data and a Definition at line 73 of file CTBmatrixDsc.icc. |
|
Construct descriptor from data pointer, number of columns and ranges.
Definition at line 87 of file CTBmatrixDsc.icc. |
|
Returns pointer to first element of matrix.
Reimplemented in CTBmatrixDsc. Definition at line 112 of file CTBmatrixDsc.icc. Referenced by CTBmatrixDsc::operator=().
|
|
Returns number of rows.
Definition at line 121 of file CTBmatrixDsc.icc. Referenced by CTBprintfMD::Dimension1(), CTBmatrixDsc::operator=(), and CTBmatrix::operator=().
|
|
Returns number of columns.
Definition at line 130 of file CTBmatrixDsc.icc. Referenced by CTBprintfMD::Dimension2(), and CTBmatrix::operator=().
|
|
Returns size of matrix ( equivalent to NRow() * NColumn() ).
Definition at line 139 of file CTBmatrixDsc.icc. |
|
Returns row stride of matrix.
Definition at line 148 of file CTBmatrixDsc.icc. Referenced by CTBmatrixDsc::operator=().
|
|
Returns column stride of matrix.
Definition at line 157 of file CTBmatrixDsc.icc. |
|
Constant access row (index checked if CTB__IndexCheck defined).
Reimplemented in CTBmatrixDsc. Definition at line 166 of file CTBmatrixDsc.icc. |
|
Constant access column (index checked if CTB__IndexCheck defined).
Reimplemented in CTBmatrixDsc. Definition at line 178 of file CTBmatrixDsc.icc. |
|
Constant access diagonal.
Reimplemented in CTBmatrixDsc. Definition at line 190 of file CTBmatrixDsc.icc. |
|
Dump.
Definition at line 199 of file CTBmatrixDsc.icc. |
|
Constant access row (index checked if CTB__IndexCheck defined).
Reimplemented in CTBmatrixDsc. Definition at line 219 of file CTBmatrixDsc.icc. |
|
Constant access element (index checked if CTB__IndexCheck defined).
Reimplemented in CTBmatrixDsc. Definition at line 231 of file CTBmatrixDsc.icc. |
|
Returns
Definition at line 244 of file CTBmatrixDsc.icc. |
|
Returns 0 if matrix empty, otherwise a non zero pointer.
Definition at line 253 of file CTBmatrixDsc.icc. |
|
ostream insertion.
Definition at line 265 of file CTBmatrixDsc.icc. |
|
pointer to data.
Definition at line 53 of file CTBmatrixDsc.hxx. |
|
number of rows.
Definition at line 54 of file CTBmatrixDsc.hxx. |
|
number of columns.
Definition at line 55 of file CTBmatrixDsc.hxx. |
|
row stride.
Definition at line 56 of file CTBmatrixDsc.hxx. |
|
column stride.
Definition at line 57 of file CTBmatrixDsc.hxx. |