Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::numeric::ublas::diagonal_adaptor< M > Class Template Reference

A diagonal matrix adaptator: convert a any matrix into a diagonal matrix expression. More...

#include <banded.hpp>

Inheritance diagram for boost::numeric::ublas::diagonal_adaptor< M >:
Collaboration diagram for boost::numeric::ublas::diagonal_adaptor< M >:

Public Types

typedef M matrix_type
 
typedef banded_adaptor< M > adaptor_type
 
typedef const M const_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
storage_restrict_traits
< typename M::storage_category,
packed_proxy_tag >
::storage_category 
storage_category
 
typedef M::orientation_category orientation_category
 
typedef reverse_iterator_base1
< const_iterator1
const_reverse_iterator1
 
typedef reverse_iterator_base1
< iterator1
reverse_iterator1
 
typedef reverse_iterator_base2
< const_iterator2
const_reverse_iterator2
 
typedef reverse_iterator_base2
< iterator2
reverse_iterator2
 
typedef banded_adaptor< M > expression_type
 
typedef matrix_tag type_category
 

Public Member Functions

BOOST_UBLAS_INLINE diagonal_adaptor ()
 
BOOST_UBLAS_INLINE diagonal_adaptor (matrix_type &data)
 
BOOST_UBLAS_INLINE ~diagonal_adaptor ()
 
BOOST_UBLAS_INLINE
diagonal_adaptor
operator= (const diagonal_adaptor &m)
 
template<class AE >
BOOST_UBLAS_INLINE
diagonal_adaptor
operator= (const matrix_expression< AE > &ae)
 
BOOST_UBLAS_INLINE size_type size1 () const
 
BOOST_UBLAS_INLINE size_type size2 () const
 
BOOST_UBLAS_INLINE size_type lower () const
 
BOOST_UBLAS_INLINE size_type upper () const
 
BOOST_UBLAS_INLINE const
matrix_closure_type
data () const
 
BOOST_UBLAS_INLINE
matrix_closure_type
data ()
 
BOOST_UBLAS_INLINE bool is_element_in_band (size_type i, size_type j) const
 
BOOST_UBLAS_INLINE const_reference operator() (size_type i, size_type j) const
 
BOOST_UBLAS_INLINE reference operator() (size_type i, size_type j)
 
BOOST_UBLAS_INLINE const
expression_type
operator() () const
 
BOOST_UBLAS_INLINE
expression_type
operator() ()
 
BOOST_UBLAS_INLINE banded_adaptorassign_temporary (banded_adaptor &m)
 
template<class AE >
BOOST_UBLAS_INLINE banded_adaptorassign (const matrix_expression< AE > &ae)
 
template<class AE >
BOOST_UBLAS_INLINE banded_adaptoroperator+= (const matrix_expression< AE > &ae)
 
template<class AE >
BOOST_UBLAS_INLINE banded_adaptorplus_assign (const matrix_expression< AE > &ae)
 
template<class AE >
BOOST_UBLAS_INLINE banded_adaptoroperator-= (const matrix_expression< AE > &ae)
 
template<class AE >
BOOST_UBLAS_INLINE banded_adaptorminus_assign (const matrix_expression< AE > &ae)
 
template<class AT >
BOOST_UBLAS_INLINE banded_adaptoroperator*= (const AT &at)
 
template<class AT >
BOOST_UBLAS_INLINE banded_adaptoroperator/= (const AT &at)
 
BOOST_UBLAS_INLINE bool same_closure (const banded_adaptor &ba) const
 
BOOST_UBLAS_INLINE void swap (banded_adaptor &m)
 
BOOST_UBLAS_INLINE const_iterator1 find1 (int rank, size_type i, size_type j) const
 
BOOST_UBLAS_INLINE iterator1 find1 (int rank, size_type i, size_type j)
 
BOOST_UBLAS_INLINE const_iterator2 find2 (int rank, size_type i, size_type j) const
 
BOOST_UBLAS_INLINE iterator2 find2 (int rank, size_type i, size_type j)
 
BOOST_UBLAS_INLINE const_iterator1 begin1 () const
 
BOOST_UBLAS_INLINE iterator1 begin1 ()
 
BOOST_UBLAS_INLINE const_iterator1 cbegin1 () const
 
BOOST_UBLAS_INLINE const_iterator1 end1 () const
 
BOOST_UBLAS_INLINE iterator1 end1 ()
 
BOOST_UBLAS_INLINE const_iterator1 cend1 () const
 
BOOST_UBLAS_INLINE const_iterator2 begin2 () const
 
BOOST_UBLAS_INLINE iterator2 begin2 ()
 
BOOST_UBLAS_INLINE const_iterator2 cbegin2 () const
 
BOOST_UBLAS_INLINE const_iterator2 end2 () const
 
BOOST_UBLAS_INLINE iterator2 end2 ()
 
BOOST_UBLAS_INLINE const_iterator2 cend2 () const
 
BOOST_UBLAS_INLINE
const_reverse_iterator1 
rbegin1 () const
 
BOOST_UBLAS_INLINE
reverse_iterator1 
rbegin1 ()
 
BOOST_UBLAS_INLINE
const_reverse_iterator1 
crbegin1 () const
 
BOOST_UBLAS_INLINE
const_reverse_iterator1 
rend1 () const
 
BOOST_UBLAS_INLINE
reverse_iterator1 
rend1 ()
 
BOOST_UBLAS_INLINE
const_reverse_iterator1 
crend1 () const
 
BOOST_UBLAS_INLINE
const_reverse_iterator2 
rbegin2 () const
 
BOOST_UBLAS_INLINE
reverse_iterator2 
rbegin2 ()
 
BOOST_UBLAS_INLINE
const_reverse_iterator2 
crbegin2 () const
 
BOOST_UBLAS_INLINE
const_reverse_iterator2 
rend2 () const
 
BOOST_UBLAS_INLINE
reverse_iterator2 
rend2 ()
 
BOOST_UBLAS_INLINE
const_reverse_iterator2 
crend2 () const
 

Static Public Attributes

static const unsigned complexity
 

Detailed Description

template<class M>
class boost::numeric::ublas::diagonal_adaptor< M >

A diagonal matrix adaptator: convert a any matrix into a diagonal matrix expression.

For a $(m\times m)$-dimensional matrix, the diagonal_adaptor will provide a diagonal matrix with $0 \leq i < m$ and $0 \leq j < m$, if $i\neq j$ then $b_{i,j}=0$.

Storage and location are based on those of the underlying matrix. This is important because a diagonal_adaptor does not copy the matrix data to a new place. Therefore, modifying values in a diagonal_adaptor matrix will also modify the underlying matrix too.

Template Parameters
Mthe type of matrix used to generate the diagonal matrix

Member Typedef Documentation

template<class M>
typedef self_type boost::numeric::ublas::banded_adaptor< M >::closure_type
inherited
template<class M>
typedef const self_type boost::numeric::ublas::banded_adaptor< M >::const_closure_type
inherited
template<class M>
typedef const M boost::numeric::ublas::banded_adaptor< M >::const_matrix_type
inherited
template<class M>
typedef M::const_reference boost::numeric::ublas::banded_adaptor< M >::const_reference
inherited
template<class M>
typedef reverse_iterator_base1<const_iterator1> boost::numeric::ublas::banded_adaptor< M >::const_reverse_iterator1
inherited
template<class M>
typedef reverse_iterator_base2<const_iterator2> boost::numeric::ublas::banded_adaptor< M >::const_reverse_iterator2
inherited
template<class M>
typedef M::difference_type boost::numeric::ublas::banded_adaptor< M >::difference_type
inherited
template<class M>
typedef boost::mpl::if_<boost::is_const<M>, typename M::const_closure_type, typename M::closure_type>::type boost::numeric::ublas::banded_adaptor< M >::matrix_closure_type
inherited
template<class M >
typedef M boost::numeric::ublas::diagonal_adaptor< M >::matrix_type
template<class M>
typedef M::orientation_category boost::numeric::ublas::banded_adaptor< M >::orientation_category
inherited
template<class M>
typedef boost::mpl::if_<boost::is_const<M>, typename M::const_reference, typename M::reference>::type boost::numeric::ublas::banded_adaptor< M >::reference
inherited
template<class M>
typedef reverse_iterator_base1<iterator1> boost::numeric::ublas::banded_adaptor< M >::reverse_iterator1
inherited
template<class M>
typedef reverse_iterator_base2<iterator2> boost::numeric::ublas::banded_adaptor< M >::reverse_iterator2
inherited
template<class M>
typedef M::size_type boost::numeric::ublas::banded_adaptor< M >::size_type
inherited
template<class M>
typedef storage_restrict_traits<typename M::storage_category, packed_proxy_tag>::storage_category boost::numeric::ublas::banded_adaptor< M >::storage_category
inherited
template<class M>
typedef M::value_type boost::numeric::ublas::banded_adaptor< M >::value_type
inherited

Constructor & Destructor Documentation

template<class M >
BOOST_UBLAS_INLINE boost::numeric::ublas::diagonal_adaptor< M >::diagonal_adaptor ( )
inline
template<class M >
BOOST_UBLAS_INLINE boost::numeric::ublas::diagonal_adaptor< M >::diagonal_adaptor ( matrix_type data)
inline
template<class M >
BOOST_UBLAS_INLINE boost::numeric::ublas::diagonal_adaptor< M >::~diagonal_adaptor ( )
inline

Member Function Documentation

template<class M>
template<class AE >
BOOST_UBLAS_INLINE banded_adaptor& boost::numeric::ublas::banded_adaptor< M >::assign ( const matrix_expression< AE > &  ae)
inlineinherited
template<class M>
BOOST_UBLAS_INLINE banded_adaptor& boost::numeric::ublas::banded_adaptor< M >::assign_temporary ( banded_adaptor< M > &  m)
inlineinherited
template<class M>
BOOST_UBLAS_INLINE iterator1 boost::numeric::ublas::banded_adaptor< M >::begin1 ( )
inlineinherited
template<class M>
BOOST_UBLAS_INLINE iterator2 boost::numeric::ublas::banded_adaptor< M >::begin2 ( )
inlineinherited
template<class M>
BOOST_UBLAS_INLINE const_iterator1 boost::numeric::ublas::banded_adaptor< M >::cbegin1 ( ) const
inlineinherited
template<class M>
BOOST_UBLAS_INLINE const_iterator2 boost::numeric::ublas::banded_adaptor< M >::cbegin2 ( ) const
inlineinherited
template<class M>
BOOST_UBLAS_INLINE const_iterator1 boost::numeric::ublas::banded_adaptor< M >::cend1 ( ) const
inlineinherited
template<class M>
BOOST_UBLAS_INLINE const_iterator2 boost::numeric::ublas::banded_adaptor< M >::cend2 ( ) const
inlineinherited
template<class M>
BOOST_UBLAS_INLINE const_reverse_iterator1 boost::numeric::ublas::banded_adaptor< M >::crbegin1 ( ) const
inlineinherited
template<class M>
BOOST_UBLAS_INLINE const_reverse_iterator2 boost::numeric::ublas::banded_adaptor< M >::crbegin2 ( ) const
inlineinherited
template<class M>
BOOST_UBLAS_INLINE const_reverse_iterator1 boost::numeric::ublas::banded_adaptor< M >::crend1 ( ) const
inlineinherited
template<class M>
BOOST_UBLAS_INLINE const_reverse_iterator2 boost::numeric::ublas::banded_adaptor< M >::crend2 ( ) const
inlineinherited
template<class M>
BOOST_UBLAS_INLINE matrix_closure_type& boost::numeric::ublas::banded_adaptor< M >::data ( )
inlineinherited
template<class M>
BOOST_UBLAS_INLINE bool boost::numeric::ublas::banded_adaptor< M >::is_element_in_band ( size_type  i,
size_type  j 
) const
inlineinherited
template<class M>
BOOST_UBLAS_INLINE size_type boost::numeric::ublas::banded_adaptor< M >::lower ( ) const
inlineinherited
template<class M>
template<class AE >
BOOST_UBLAS_INLINE banded_adaptor& boost::numeric::ublas::banded_adaptor< M >::minus_assign ( const matrix_expression< AE > &  ae)
inlineinherited
BOOST_UBLAS_INLINE const expression_type& boost::numeric::ublas::matrix_expression< banded_adaptor< M > >::operator() ( ) const
inlineinherited
BOOST_UBLAS_INLINE expression_type& boost::numeric::ublas::matrix_expression< banded_adaptor< M > >::operator() ( )
inlineinherited
template<class M>
template<class AT >
BOOST_UBLAS_INLINE banded_adaptor& boost::numeric::ublas::banded_adaptor< M >::operator*= ( const AT &  at)
inlineinherited

References boost::xpressive::at.

template<class M>
template<class AE >
BOOST_UBLAS_INLINE banded_adaptor& boost::numeric::ublas::banded_adaptor< M >::operator+= ( const matrix_expression< AE > &  ae)
inlineinherited
template<class M>
template<class AE >
BOOST_UBLAS_INLINE banded_adaptor& boost::numeric::ublas::banded_adaptor< M >::operator-= ( const matrix_expression< AE > &  ae)
inlineinherited
template<class M>
template<class AT >
BOOST_UBLAS_INLINE banded_adaptor& boost::numeric::ublas::banded_adaptor< M >::operator/= ( const AT &  at)
inlineinherited

References boost::xpressive::at.

template<class M >
BOOST_UBLAS_INLINE diagonal_adaptor& boost::numeric::ublas::diagonal_adaptor< M >::operator= ( const diagonal_adaptor< M > &  m)
inline
template<class M >
template<class AE >
BOOST_UBLAS_INLINE diagonal_adaptor& boost::numeric::ublas::diagonal_adaptor< M >::operator= ( const matrix_expression< AE > &  ae)
inline
template<class M>
template<class AE >
BOOST_UBLAS_INLINE banded_adaptor& boost::numeric::ublas::banded_adaptor< M >::plus_assign ( const matrix_expression< AE > &  ae)
inlineinherited
template<class M>
BOOST_UBLAS_INLINE reverse_iterator1 boost::numeric::ublas::banded_adaptor< M >::rbegin1 ( )
inlineinherited
template<class M>
BOOST_UBLAS_INLINE reverse_iterator2 boost::numeric::ublas::banded_adaptor< M >::rbegin2 ( )
inlineinherited
template<class M>
BOOST_UBLAS_INLINE reverse_iterator1 boost::numeric::ublas::banded_adaptor< M >::rend1 ( )
inlineinherited
template<class M>
BOOST_UBLAS_INLINE reverse_iterator2 boost::numeric::ublas::banded_adaptor< M >::rend2 ( )
inlineinherited
template<class M>
BOOST_UBLAS_INLINE bool boost::numeric::ublas::banded_adaptor< M >::same_closure ( const banded_adaptor< M > &  ba) const
inlineinherited
template<class M>
BOOST_UBLAS_INLINE void boost::numeric::ublas::banded_adaptor< M >::swap ( banded_adaptor< M > &  m)
inlineinherited

References BOOST_UBLAS_CHECK.

template<class M>
BOOST_UBLAS_INLINE size_type boost::numeric::ublas::banded_adaptor< M >::upper ( ) const
inlineinherited

Member Data Documentation

const unsigned boost::numeric::ublas::matrix_expression< banded_adaptor< M > >::complexity
staticinherited

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