eLynx SDK v3.0.1
C++ image processing API reference

eLynx::Math::TransposedMatrix Class Reference

#include <TransposedMatrix.h>

Inheritance diagram for eLynx::Math::TransposedMatrix:

eLynx::Math::IMatrix

List of all members.


Public Member Functions

 TransposedMatrix (IMatrix &iMatrix)
 TransposedMatrix (const TransposedMatrix &iOther)
TransposedMatrixoperator= (const TransposedMatrix &iOther)
virtual uint32 GetWidth () const
virtual uint32 GetHeight () const
virtual const double & operator() (uint32 iRow, uint32 iCol) const
virtual double & operator() (uint32 iRow, uint32 iCol)
virtual void SwapRows (uint32 iRow1, uint32 iRow2)
virtual void SwapCols (uint32 iCol1, uint32 iCol2)

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

Definition at line 31 of file TransposedMatrix.h.


Constructor & Destructor Documentation

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

Constructor, creates transposed adapter for specified matrix.

Parameters:
iMatrix the matrix to be transposed

Definition at line 37 of file TransposedMatrix.h.

eLynx::Math::TransposedMatrix::TransposedMatrix ( const TransposedMatrix iOther  )  [inline]

Copy constructor

Parameters:
iOther the object to copy

Definition at line 41 of file TransposedMatrix.h.


Member Function Documentation

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

An assignement operator

Parameters:
iOther the object to copy
Returns:
the reference to this object

Definition at line 46 of file TransposedMatrix.h.

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.

Definition at line 52 of file TransposedMatrix.h.

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.

Definition at line 57 of file TransposedMatrix.h.

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:
iRow the row index (column in the original matrix)
iCol the column index (row in the original matrix)
Returns:
the const reference to specified matrix value

Implements eLynx::Math::IMatrix.

Definition at line 63 of file TransposedMatrix.h.

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:
iRow the row index (column in the original matrix)
iCol the column index (row in the original matrix)
Returns:
the reference to specified matrix value

Implements eLynx::Math::IMatrix.

Definition at line 70 of file TransposedMatrix.h.

virtual void eLynx::Math::TransposedMatrix::SwapRows ( uint32  iRow1,
uint32  iRow2 
) [inline, virtual]

Swap matrix rows (columns in the original matrix)

Parameters:
iRow1 the first row to swap
iRow2 the second row to swap

Implements eLynx::Math::IMatrix.

Definition at line 76 of file TransposedMatrix.h.

virtual void eLynx::Math::TransposedMatrix::SwapCols ( uint32  iCol1,
uint32  iCol2 
) [inline, virtual]

Swap matrix columns (rows in the original matrix)

Parameters:
iCol1 the first column to swap
iCol2 the second column to swap

Implements eLynx::Math::IMatrix.

Definition at line 82 of file TransposedMatrix.h.


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

Generated on 14 Apr 2009 by doxygen 1.5.8