classPiiTransposedMatrix
#include <PiiTransposedMatrix.h>
Transposed matrix.
Inherits PiiConceptualMatrix< PiiTransposedMatrix< Matrix >, Pii::RandomAccessMatrix >
Description
This class is a wrapper that exchanges the roles of rows and columns of another matrix. PiiTransposedMatrix makes it possible to use matrix transposes in calculations without actually creating a transposed matrix in memory.
PiiMatrix<int> mat(5,4); mat = Pii::transpose(mat) * mat;
Public types
|
typedef PiiMatrixTraits< PiiTransposedMatrix<
Matrix >, Pii::RandomAccessMatrix >
|
Constructors and destructor
|
(
|
|
|
|
Public member functions
|
Traits::const_iterator
|
( )
|
|
Traits::const_column_iterator
|
(
|
|
Traits::const_column_iterator
|
(
|
|
int
|
( )
|
|
Traits::const_iterator
|
( )
|
|
Traits::value_type
|
(
|
|
|
|
|
Traits::const_row_iterator
|
(
|
|
Traits::const_row_iterator
|
(
|
|
int
|
( )
|
|
template<class Matrix>
PiiTransposedMatrix<
Matrix >
|
(
Returns the transpose of mat. |
Function details
-
PiiTransposedMatrix
(- const Matrix & matrix
[inline] -
-
Traits::const_iterator begin
()[inline]Reimplemented from PiiConceptualMatrix.
-
Traits::const_column_iterator columnBegin
(- int index
[inline] -
Traits::const_column_iterator columnEnd
(- int index
[inline] -
int columns
()[inline]Reimplemented from PiiConceptualMatrix.
-
Traits::const_iterator end
()[inline]Reimplemented from PiiConceptualMatrix.
-
Traits::value_type operator()
(- int r
- int c
[inline] -
-
Traits::const_row_iterator rowBegin
(- int index
[inline] -
Traits::const_row_iterator rowEnd
(- int index
[inline] -
int rows
()[inline]Reimplemented from PiiConceptualMatrix.
-
template<class Matrix>
PiiTransposedMatrix< Matrix > transpose
(- const PiiRandomAccessMatrix & mat
[inline]Returns the transpose of mat.
This function will neither reserve memory for a transposed matrix nor copy the values. Instead, it creates a wrapper that exchanges the roles of rows and columns in mat.
Add a note
Not a single note added yet. Be the first, add yours.