CMR  1.3.0
Public Types | Public Member Functions | List of all members
tu::matrix_transposed< M > Class Template Reference

#include <matrix_transposed.hpp>

Inheritance diagram for tu::matrix_transposed< M >:

Public Types

typedef matrix_transposed< M > self_type
 
typedef M matrix_type
 
typedef M::size_type size_type
 
typedef M::difference_type difference_type
 
typedef M::value_type value_type
 
typedef M::const_reference const_reference
 
typedef boost::mpl::if_< boost::is_const< M >, typename M::const_reference, typename M::reference >::type reference
 
typedef boost::mpl::if_< boost::is_const< M >, typename M::const_closure_type, typename M::closure_type >::type matrix_closure_type
 
typedef const self_type const_closure_type
 
typedef self_type closure_type
 
typedef detail::transpose_orientation< typename M::orientation_category >::orientation_category orientation_category
 
typedef M::storage_category storage_category
 
typedef boost::numeric::ublas::indexed_iterator1< self_type, typename matrix_type::iterator2::iterator_category > iterator1
 
typedef boost::numeric::ublas::indexed_iterator2< self_type, typename matrix_type::iterator1::iterator_category > iterator2
 
typedef boost::numeric::ublas::indexed_const_iterator1< self_type, typename matrix_type::const_iterator2::iterator_category > const_iterator1
 
typedef boost::numeric::ublas::indexed_const_iterator2< self_type, typename matrix_type::const_iterator1::iterator_category > const_iterator2
 

Public Member Functions

 matrix_transposed (matrix_type &matrix)
 
size_type size1 () const
 
size_type size2 () const
 
matrix_typedata ()
 
const_reference operator() (size_type i, size_type j) const
 
reference operator() (size_type i, size_type j)
 

Detailed Description

template<typename M>
class tu::matrix_transposed< M >

A matrix proxy which exchanges the meaning of rows and columns.

Member Typedef Documentation

◆ closure_type

template<typename M >
typedef self_type tu::matrix_transposed< M >::closure_type

◆ const_closure_type

template<typename M >
typedef const self_type tu::matrix_transposed< M >::const_closure_type

◆ const_iterator1

template<typename M >
typedef boost::numeric::ublas::indexed_const_iterator1<self_type, typename matrix_type::const_iterator2::iterator_category> tu::matrix_transposed< M >::const_iterator1

◆ const_iterator2

template<typename M >
typedef boost::numeric::ublas::indexed_const_iterator2<self_type, typename matrix_type::const_iterator1::iterator_category> tu::matrix_transposed< M >::const_iterator2

◆ const_reference

template<typename M >
typedef M::const_reference tu::matrix_transposed< M >::const_reference

◆ difference_type

template<typename M >
typedef M::difference_type tu::matrix_transposed< M >::difference_type

◆ iterator1

template<typename M >
typedef boost::numeric::ublas::indexed_iterator1<self_type, typename matrix_type::iterator2::iterator_category> tu::matrix_transposed< M >::iterator1

◆ iterator2

template<typename M >
typedef boost::numeric::ublas::indexed_iterator2<self_type, typename matrix_type::iterator1::iterator_category> tu::matrix_transposed< M >::iterator2

◆ matrix_closure_type

template<typename M >
typedef boost::mpl::if_<boost::is_const <M>, typename M::const_closure_type, typename M::closure_type>::type tu::matrix_transposed< M >::matrix_closure_type

◆ matrix_type

template<typename M >
typedef M tu::matrix_transposed< M >::matrix_type

◆ orientation_category

template<typename M >
typedef detail::transpose_orientation<typename M::orientation_category>::orientation_category tu::matrix_transposed< M >::orientation_category

◆ reference

template<typename M >
typedef boost::mpl::if_<boost::is_const <M>, typename M::const_reference, typename M::reference>::type tu::matrix_transposed< M >::reference

◆ self_type

template<typename M >
typedef matrix_transposed<M> tu::matrix_transposed< M >::self_type

◆ size_type

template<typename M >
typedef M::size_type tu::matrix_transposed< M >::size_type

◆ storage_category

template<typename M >
typedef M::storage_category tu::matrix_transposed< M >::storage_category

◆ value_type

template<typename M >
typedef M::value_type tu::matrix_transposed< M >::value_type

Constructor & Destructor Documentation

◆ matrix_transposed()

template<typename M >
tu::matrix_transposed< M >::matrix_transposed ( matrix_type matrix)
inline

Constructs the matrix proxy.

Parameters
matrixThe original matrix

Member Function Documentation

◆ data()

template<typename M >
matrix_type& tu::matrix_transposed< M >::data ( )
inline
Returns
Reference to the original matrix

◆ operator()() [1/2]

template<typename M >
reference tu::matrix_transposed< M >::operator() ( size_type  i,
size_type  j 
)
inline

Access operator

Parameters
iRow index
jColumn index
Returns
original(column, row)

◆ operator()() [2/2]

template<typename M >
const_reference tu::matrix_transposed< M >::operator() ( size_type  i,
size_type  j 
) const
inline

Read-only access operator

Parameters
iRow index
jColumn index
Returns
original(column, row)

◆ size1()

template<typename M >
size_type tu::matrix_transposed< M >::size1 ( ) const
inline
Returns
Height of the matrix

◆ size2()

template<typename M >
size_type tu::matrix_transposed< M >::size2 ( ) const
inline
Returns
Width of the matrix

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