eLynx SDK
v3.3.0 C++ image processing API reference |
Adapter, that provides transposed interface to given matrix. More...
#include <TransposedMatrix.h>
Public Member Functions | |
TransposedMatrix (IMatrix &iMatrix) | |
Constructor, creates transposed adapter for specified matrix. | |
TransposedMatrix (const TransposedMatrix &iOther) | |
Copy constructor. | |
TransposedMatrix & | operator= (const TransposedMatrix &iOther) |
An assignement operator. | |
virtual uint32 | GetWidth () const |
Returns transposed matrix width (number of columns = number of rows of the original matrix). | |
virtual uint32 | GetHeight () const |
Returns transposed matrix height (number of rows = number of columns of the original matrix). | |
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) |
Swap matrix rows (columns in the original matrix) | |
virtual void | SwapCols (uint32 iCol1, uint32 iCol2) |
Swap matrix columns (rows in the original matrix) |
Adapter, that provides transposed interface to given matrix.
For the transposed matrix, rows and columns are interchanged (M x N matrix becomes N x M matrix).
eLynx::Math::TransposedMatrix::TransposedMatrix | ( | IMatrix & | iMatrix ) | [inline] |
Constructor, creates transposed adapter for specified matrix.
iMatrix | the matrix to be transposed |
eLynx::Math::TransposedMatrix::TransposedMatrix | ( | const TransposedMatrix & | iOther ) | [inline] |
Copy constructor.
iOther | the object to copy |
virtual uint32 eLynx::Math::TransposedMatrix::GetHeight | ( | ) | const [inline, virtual] |
Returns transposed matrix height (number of rows = number of columns of the original matrix).
Implements eLynx::Math::IMatrix.
virtual uint32 eLynx::Math::TransposedMatrix::GetWidth | ( | ) | const [inline, virtual] |
Returns transposed matrix width (number of columns = number of rows of the original matrix).
Implements eLynx::Math::IMatrix.
virtual const double& eLynx::Math::TransposedMatrix::operator() | ( | uint32 | iRow, |
uint32 | iCol | ||
) | const [inline, virtual] |
Matrix content access operator.
Can be used in form Matrix(r, c).
iRow | the row index (column in the original matrix) |
iCol | the column index (row in the original matrix) |
Implements eLynx::Math::IMatrix.
virtual double& eLynx::Math::TransposedMatrix::operator() | ( | uint32 | iRow, |
uint32 | iCol | ||
) | [inline, virtual] |
Matrix content access operator.
Can be used in form Matrix(r, c).
iRow | the row index (column in the original matrix) |
iCol | the column index (row in the original matrix) |
Implements eLynx::Math::IMatrix.
TransposedMatrix& eLynx::Math::TransposedMatrix::operator= | ( | const TransposedMatrix & | iOther ) | [inline] |
An assignement operator.
iOther | the object to copy |
virtual void eLynx::Math::TransposedMatrix::SwapCols | ( | uint32 | iCol1, |
uint32 | iCol2 | ||
) | [inline, virtual] |
Swap matrix columns (rows in the original matrix)
iCol1 | the first column to swap |
iCol2 | the second column to swap |
Implements eLynx::Math::IMatrix.
virtual void eLynx::Math::TransposedMatrix::SwapRows | ( | uint32 | iRow1, |
uint32 | iRow2 | ||
) | [inline, virtual] |
Swap matrix rows (columns in the original matrix)
iRow1 | the first row to swap |
iRow2 | the second row to swap |
Implements eLynx::Math::IMatrix.