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