#include <matrix.h>
Inheritance diagram for CMatrix:

Public Types | |
| typedef T | Type |
| typedef CMatrixIterator< T > | Iterator |
| typedef CMatrixIteratorConst< T > | ConstIterator |
Public Member Functions | |
| CMatrix< T > & | operator *= (T S) |
| CMatrix () | |
| CMatrix (int W, int H) | |
| CMatrix (const CMatrix< T > &M) | |
| ~CMatrix () | |
| CMatrix< T > | Clone () const |
| CMatrix< T > & | operator= (const CMatrix &M) |
| int | Width () const |
| int | Height () const |
| bool | IsShared () const |
| T & | operator() (int Col, int Row) |
| const T & | operator() (int Col, int Row) const |
| Iterator | Begin () |
| ConstIterator | Begin () const |
| Iterator | End () |
| ConstIterator | End () const |
| Iterator | BeginRow (int Row) |
| ConstIterator | BeginRow (int Row) const |
| Iterator | BeginColumn (int Col) |
| ConstIterator | BeginColumn (int Col) const |
| CMatrix | SubMatrix (int Col, int Row, int W, int H) |
| const CMatrix | SubMatrix (int Col, int Row, int W, int H) const |
| void | Zero () |
| void | Resize (int W, int H) |
|
|
Const row or column iterator that can be used to examine but not to modify the matrix contents.
|
|
|
Row or column iterator that can be used to examine and modify the matrix contents.
|
|
|
The data type.
|
|
|
Create empty matrix of size 0x0.
|
|
||||||||||||
|
Create a zero matrix of size WxH.
|
|
|
Create a shared copy of M.
|
|
|
Destroy matrix, keep data if shared.
|
|
|
Return const iterator pointing to the beginning of the matrix.
|
|
|
Return iterator pointing to the beginning of the matrix.
|
|
|
Return const column iterator.
|
|
|
Return column iterator.
|
|
|
Return const row iterator.
|
|
|
Return row iterator.
|
|
|
Return a new copy of this matrix (with unshared data buffer).
|
|
|
Return iterator pointing to the end of the matrix.
|
|
|
Return iterator pointing to the end of the matrix.
|
|
|
Return height of the matrix.
|
|
|
Return
|
|
|
Scalar multiplication.
|
|
||||||||||||
|
Const member access.
|
|
||||||||||||
|
Member access.
|
|
|
Assignment operator. Matrices become shared. |
|
||||||||||||
|
Resize the matrix to new dimensions.
|
|
||||||||||||||||||||
|
Create a view on this matrix. Both matrices share data.
|
|
||||||||||||||||||||
|
Create a view on this matrix. Both matrices share data.
|
|
|
Return width of the matrix.
|
|
|
Set the matrix to zero matrix.
|
1.4.6