eLynx SDK v3.3.0
C++ image processing API reference
Public Member Functions

eLynx::Math::TransposedMatrix Class Reference

Adapter, that provides transposed interface to given matrix. More...

#include <TransposedMatrix.h>

Inheritance diagram for eLynx::Math::TransposedMatrix:
eLynx::Math::IMatrix

List of all members.

Public Member Functions

 TransposedMatrix (IMatrix &iMatrix)
 Constructor, creates transposed adapter for specified matrix.
 TransposedMatrix (const TransposedMatrix &iOther)
 Copy constructor.
TransposedMatrixoperator= (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)

Detailed Description

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).


Constructor & Destructor Documentation

eLynx::Math::TransposedMatrix::TransposedMatrix ( IMatrix iMatrix ) [inline]

Constructor, creates transposed adapter for specified matrix.

Parameters:
iMatrixthe matrix to be transposed
eLynx::Math::TransposedMatrix::TransposedMatrix ( const TransposedMatrix iOther ) [inline]

Copy constructor.

Parameters:
iOtherthe object to copy

Member Function Documentation

virtual uint32 eLynx::Math::TransposedMatrix::GetHeight (  ) const [inline, virtual]

Returns transposed matrix height (number of rows = number of columns of the original matrix).

Returns:
the matrix height

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).

Returns:
the matrix width

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).

Parameters:
iRowthe row index (column in the original matrix)
iColthe column index (row in the original matrix)
Returns:
the const reference to specified matrix value

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).

Parameters:
iRowthe row index (column in the original matrix)
iColthe column index (row in the original matrix)
Returns:
the reference to specified matrix value

Implements eLynx::Math::IMatrix.

TransposedMatrix& eLynx::Math::TransposedMatrix::operator= ( const TransposedMatrix iOther ) [inline]

An assignement operator.

Parameters:
iOtherthe object to copy
Returns:
the reference to this object
virtual void eLynx::Math::TransposedMatrix::SwapCols ( uint32  iCol1,
uint32  iCol2 
) [inline, virtual]

Swap matrix columns (rows in the original matrix)

Parameters:
iCol1the first column to swap
iCol2the 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)

Parameters:
iRow1the first row to swap
iRow2the second row to swap

Implements eLynx::Math::IMatrix.


The documentation for this class was generated from the following file:

Generated on Thu Dec 9 2010 by doxygen 1.7.2