eLynx SDK
v3.3.0 C++ image processing API reference |
Adapter, that provides matrix-like read/write access to the vector. More...
#include <SingleColMatrix.h>
Public Member Functions | |
SingleColMatrix (IVector &iVector) | |
Constructor, creates matrix adapter for specified vector. | |
SingleColMatrix (const SingleColMatrix &iC) | |
Copy constructor. | |
SingleColMatrix & | operator= (SingleColMatrix &iC) |
An assignement operator. | |
virtual uint32 | GetWidth () const |
Returns the matrix width (number of columns) = 1. | |
virtual uint32 | GetHeight () const |
Returns the matrix height (number of rows) = size of the vector. | |
virtual const double & | operator() (uint32 iRow, uint32 iCol) const |
Matrix content access operator. | |
virtual double & | operator() (uint32 iRow, uint32 iCol) |
Matrix content access operator. | |
virtual void | SwapRows (uint32 iRow1, uint32 iRow2) |
Swaps specified rows (vector values) of the matrix. | |
virtual void | SwapCols (uint32 iCol1, uint32 iCol2) |
Swaps specified columns. |
Adapter, that provides matrix-like read/write access to the vector.
The vector is represented and M x 1 (single column) matrix.
eLynx::Math::SingleColMatrix::SingleColMatrix | ( | IVector & | iVector ) |
Constructor, creates matrix adapter for specified vector.
iVector | the vector object |
eLynx::Math::SingleColMatrix::SingleColMatrix | ( | const SingleColMatrix & | iC ) |
Copy constructor.
iC | the object to copy |
virtual uint32 eLynx::Math::SingleColMatrix::GetHeight | ( | ) | const [inline, virtual] |
Returns the matrix height (number of rows) = size of the vector.
Implements eLynx::Math::IMatrix.
virtual uint32 eLynx::Math::SingleColMatrix::GetWidth | ( | ) | const [inline, virtual] |
Returns the matrix width (number of columns) = 1.
Implements eLynx::Math::IMatrix.
virtual const double& eLynx::Math::SingleColMatrix::operator() | ( | uint32 | iRow, |
uint32 | iCol | ||
) | const [inline, virtual] |
Matrix content access operator.
Can be used in form Matrix(r, c).
iRow | the row index (vector index) |
iCol | the column index (matrix has only one column) |
Implements eLynx::Math::IMatrix.
virtual double& eLynx::Math::SingleColMatrix::operator() | ( | uint32 | iRow, |
uint32 | iCol | ||
) | [inline, virtual] |
Matrix content access operator.
Can be used in form Matrix(r, c).
iRow | the row index (vector index) |
iCol | the column index (matrix has only one column) |
Implements eLynx::Math::IMatrix.
SingleColMatrix& eLynx::Math::SingleColMatrix::operator= | ( | SingleColMatrix & | iC ) |
An assignement operator.
iC | the object to copy |
virtual void eLynx::Math::SingleColMatrix::SwapCols | ( | uint32 | iCol1, |
uint32 | iCol2 | ||
) | [inline, virtual] |
Swaps specified columns.
As the matrix has only one column, it does nothing.
Implements eLynx::Math::IMatrix.
virtual void eLynx::Math::SingleColMatrix::SwapRows | ( | uint32 | iRow1, |
uint32 | iRow2 | ||
) | [inline, virtual] |
Swaps specified rows (vector values) of the matrix.
iRow1 | the first row to swap |
iRow2 | the second row to swap |
Implements eLynx::Math::IMatrix.