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

eLynx::Math::SingleColMatrix Class Reference

#include <SingleColMatrix.h>

Inheritance diagram for eLynx::Math::SingleColMatrix:

eLynx::Math::IMatrix

List of all members.


Public Member Functions

 SingleColMatrix (IVector &iVector)
 SingleColMatrix (const SingleColMatrix &iC)
SingleColMatrixoperator= (SingleColMatrix &iC)
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 matrix-like read/write access to the vector. The vector is represented and M x 1 (single column) matrix.

Definition at line 31 of file SingleColMatrix.h.


Constructor & Destructor Documentation

eLynx::Math::SingleColMatrix::SingleColMatrix ( IVector iVector  ) 

Constructor, creates matrix adapter for specified vector.

Parameters:
iVector the vector object

eLynx::Math::SingleColMatrix::SingleColMatrix ( const SingleColMatrix iC  ) 

Copy constructor

Parameters:
iC the object to copy


Member Function Documentation

SingleColMatrix& eLynx::Math::SingleColMatrix::operator= ( SingleColMatrix iC  ) 

An assignement operator

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

virtual uint32 eLynx::Math::SingleColMatrix::GetWidth (  )  const [inline, virtual]

Returns the matrix width (number of columns) = 1

Returns:
the matrix width

Implements eLynx::Math::IMatrix.

Definition at line 50 of file SingleColMatrix.h.

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

Returns the matrix height (number of rows) = size of the vector.

Returns:
the matrix height

Implements eLynx::Math::IMatrix.

Definition at line 54 of file SingleColMatrix.h.

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

Parameters:
iRow the row index (vector index)
iCol the column index (matrix has only one column)
Returns:
the const reference to appropriate vector value

Implements eLynx::Math::IMatrix.

Definition at line 60 of file SingleColMatrix.h.

virtual double& eLynx::Math::SingleColMatrix::operator() ( uint32  iRow,
uint32  iCol 
) [inline, virtual]

Matrix content access operator. Can be used in form Matrix(r, c).

Parameters:
iRow the row index (vector index)
iCol the column index (matrix has only one column)
Returns:
the reference to appropriate vector value

Implements eLynx::Math::IMatrix.

Definition at line 67 of file SingleColMatrix.h.

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

Swaps specified rows (vector values) of the matrix.

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

Implements eLynx::Math::IMatrix.

Definition at line 73 of file SingleColMatrix.h.

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.

Definition at line 78 of file SingleColMatrix.h.


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

Generated on 14 Apr 2009 by doxygen 1.5.8