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

#include <matrix_permuted.hpp>

Inheritance diagram for tu::matrix_permuted< M >:

Public Types

typedef matrix_permuted< 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 permutation permutation_type
 
typedef M::orientation_category orientation_category
 
typedef M::storage_category storage_category
 
typedef boost::numeric::ublas::detail::indexed_iterator1< self_type, typename matrix_type::iterator1::iterator_category > iterator1
 
typedef boost::numeric::ublas::detail::indexed_iterator2< self_type, typename matrix_type::iterator2::iterator_category > iterator2
 
typedef boost::numeric::ublas::detail::indexed_const_iterator1< self_type, typename matrix_type::const_iterator1::iterator_category > const_iterator1
 
typedef boost::numeric::ublas::detail::indexed_const_iterator2< self_type, typename matrix_type::const_iterator2::iterator_category > const_iterator2
 

Public Member Functions

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

Detailed Description

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

A matrix proxy with permuted rows and columns.

Member Typedef Documentation

◆ closure_type

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

◆ const_closure_type

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

◆ const_iterator1

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

◆ const_iterator2

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

◆ const_reference

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

◆ difference_type

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

◆ iterator1

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

◆ iterator2

template<typename M >
typedef boost::numeric::ublas::detail::indexed_iterator2<self_type, typename matrix_type::iterator2::iterator_category> tu::matrix_permuted< 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_permuted< M >::matrix_closure_type

◆ matrix_type

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

◆ orientation_category

template<typename M >
typedef M::orientation_category tu::matrix_permuted< M >::orientation_category

◆ permutation_type

template<typename M >
typedef permutation tu::matrix_permuted< M >::permutation_type

◆ reference

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

◆ self_type

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

◆ size_type

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

◆ storage_category

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

◆ value_type

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

Constructor & Destructor Documentation

◆ matrix_permuted()

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

Constructs the matrix proxy.

Parameters
matrixThe original matrix

Member Function Documentation

◆ data() [1/2]

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

◆ data() [2/2]

template<typename M >
const matrix_type& tu::matrix_permuted< M >::data ( ) const
inline
Returns
Read-only reference to original matrix

◆ operator()() [1/2]

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

Access operator

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

◆ operator()() [2/2]

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

Read-only access operator

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

◆ perm1() [1/2]

template<typename M >
permutation_type& tu::matrix_permuted< M >::perm1 ( )
inline
Returns
Reference to the row permutation

◆ perm1() [2/2]

template<typename M >
const permutation_type& tu::matrix_permuted< M >::perm1 ( ) const
inline
Returns
Reference to the row permutation

◆ perm2() [1/2]

template<typename M >
permutation_type& tu::matrix_permuted< M >::perm2 ( )
inline
Returns
Reference to the column permutation

◆ perm2() [2/2]

template<typename M >
const permutation_type& tu::matrix_permuted< M >::perm2 ( ) const
inline
Returns
Reference to the column permutation

◆ size1()

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

◆ size2()

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

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