A vector referencing a continuous subvector of elements of vector v
containing all elements specified by range
.
More...
#include <vector_proxy.hpp>
Classes | |
class | const_iterator |
class | iterator |
Public Types | |
typedef const V | const_vector_type |
typedef V | vector_type |
typedef V::size_type | size_type |
typedef V::difference_type | difference_type |
typedef V::value_type | value_type |
typedef V::const_reference | const_reference |
typedef boost::mpl::if_ < boost::is_const< V > , typename V::const_reference, typename V::reference >::type | reference |
typedef boost::mpl::if_ < boost::is_const< V > , typename V::const_closure_type, typename V::closure_type > ::type | vector_closure_type |
typedef basic_range< size_type, difference_type > | range_type |
typedef const self_type | const_closure_type |
typedef self_type | closure_type |
typedef storage_restrict_traits < typename V::storage_category, dense_proxy_tag > ::storage_category | storage_category |
typedef reverse_iterator_base < const_iterator > | const_reverse_iterator |
typedef reverse_iterator_base < iterator > | reverse_iterator |
typedef vector_range< V > | expression_type |
typedef vector_tag | type_category |
Public Member Functions | |
BOOST_UBLAS_INLINE | vector_range (vector_type &data, const range_type &r) |
BOOST_UBLAS_INLINE | vector_range (const vector_closure_type &data, const range_type &r, bool) |
BOOST_UBLAS_INLINE size_type | start () const |
BOOST_UBLAS_INLINE size_type | size () const |
BOOST_UBLAS_INLINE const vector_closure_type & | data () const |
BOOST_UBLAS_INLINE vector_closure_type & | data () |
BOOST_UBLAS_INLINE const_reference | operator() (size_type i) const |
BOOST_UBLAS_INLINE reference | operator() (size_type i) |
BOOST_UBLAS_INLINE const_reference | operator[] (size_type i) const |
BOOST_UBLAS_INLINE reference | operator[] (size_type i) |
BOOST_UBLAS_INLINE vector_range< vector_type > | project (const range_type &r) const |
BOOST_UBLAS_INLINE vector_range & | operator= (const vector_range &vr) |
BOOST_UBLAS_INLINE vector_range & | assign_temporary (vector_range &vr) |
template<class AE > | |
BOOST_UBLAS_INLINE vector_range & | operator= (const vector_expression< AE > &ae) |
template<class AE > | |
BOOST_UBLAS_INLINE vector_range & | assign (const vector_expression< AE > &ae) |
template<class AE > | |
BOOST_UBLAS_INLINE vector_range & | operator+= (const vector_expression< AE > &ae) |
template<class AE > | |
BOOST_UBLAS_INLINE vector_range & | plus_assign (const vector_expression< AE > &ae) |
template<class AE > | |
BOOST_UBLAS_INLINE vector_range & | operator-= (const vector_expression< AE > &ae) |
template<class AE > | |
BOOST_UBLAS_INLINE vector_range & | minus_assign (const vector_expression< AE > &ae) |
template<class AT > | |
BOOST_UBLAS_INLINE vector_range & | operator*= (const AT &at) |
template<class AT > | |
BOOST_UBLAS_INLINE vector_range & | operator/= (const AT &at) |
BOOST_UBLAS_INLINE bool | same_closure (const vector_range &vr) const |
BOOST_UBLAS_INLINE bool | operator== (const vector_range &vr) const |
BOOST_UBLAS_INLINE void | swap (vector_range vr) |
BOOST_UBLAS_INLINE const_iterator | find (size_type i) const |
BOOST_UBLAS_INLINE iterator | find (size_type i) |
BOOST_UBLAS_INLINE const_iterator | begin () const |
BOOST_UBLAS_INLINE const_iterator | cbegin () const |
BOOST_UBLAS_INLINE const_iterator | end () const |
BOOST_UBLAS_INLINE const_iterator | cend () const |
BOOST_UBLAS_INLINE iterator | begin () |
BOOST_UBLAS_INLINE iterator | end () |
BOOST_UBLAS_INLINE const_reverse_iterator | rbegin () const |
BOOST_UBLAS_INLINE const_reverse_iterator | crbegin () const |
BOOST_UBLAS_INLINE const_reverse_iterator | rend () const |
BOOST_UBLAS_INLINE const_reverse_iterator | crend () const |
BOOST_UBLAS_INLINE reverse_iterator | rbegin () |
BOOST_UBLAS_INLINE reverse_iterator | rend () |
BOOST_UBLAS_INLINE const expression_type & | operator() () const |
BOOST_UBLAS_INLINE expression_type & | operator() () |
Static Public Attributes | |
static const unsigned | complexity |
Friends | |
BOOST_UBLAS_INLINE friend void | swap (vector_range vr1, vector_range vr2) |
A vector referencing a continuous subvector of elements of vector v
containing all elements specified by range
.
A vector range can be used as a normal vector in any expression. If the specified range falls outside that of the index range of the vector, then the vector_range
is not a well formed Vector Expression and access to an element outside of index range of the vector is undefined.
V | the type of vector referenced (for example vector<double> ) |
typedef self_type boost::numeric::ublas::vector_range< V >::closure_type |
typedef const self_type boost::numeric::ublas::vector_range< V >::const_closure_type |
typedef V::const_reference boost::numeric::ublas::vector_range< V >::const_reference |
typedef reverse_iterator_base<const_iterator> boost::numeric::ublas::vector_range< V >::const_reverse_iterator |
typedef const V boost::numeric::ublas::vector_range< V >::const_vector_type |
typedef V::difference_type boost::numeric::ublas::vector_range< V >::difference_type |
|
inherited |
typedef basic_range<size_type, difference_type> boost::numeric::ublas::vector_range< V >::range_type |
typedef boost::mpl::if_<boost::is_const<V>, typename V::const_reference, typename V::reference>::type boost::numeric::ublas::vector_range< V >::reference |
typedef reverse_iterator_base<iterator> boost::numeric::ublas::vector_range< V >::reverse_iterator |
typedef V::size_type boost::numeric::ublas::vector_range< V >::size_type |
typedef storage_restrict_traits<typename V::storage_category, dense_proxy_tag>::storage_category boost::numeric::ublas::vector_range< V >::storage_category |
|
inherited |
typedef V::value_type boost::numeric::ublas::vector_range< V >::value_type |
typedef boost::mpl::if_<boost::is_const<V>, typename V::const_closure_type, typename V::closure_type>::type boost::numeric::ublas::vector_range< V >::vector_closure_type |
typedef V boost::numeric::ublas::vector_range< V >::vector_type |
|
inline |
|
inline |
|
inline |
Referenced by boost::numeric::ublas::axpy_lu_factorize().
|
inline |
|
inline |
|
inline |
References boost::numeric::ublas::vector_range< V >::find().
|
inline |
|
inline |
References boost::numeric::ublas::vector_range< V >::end().
|
inline |
|
inline |
References boost::numeric::ublas::vector_range< V >::rend().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineinherited |
|
inlineinherited |
|
inline |
References boost::xpressive::at.
|
inline |
References boost::detail::type.
|
inline |
References boost::detail::type.
|
inline |
References boost::xpressive::at.
|
inline |
References boost::detail::type.
|
inline |
References boost::detail::type.
|
inline |
|
inline |
References boost::multiprecision::backends::i.
|
inline |
References boost::multiprecision::backends::i.
|
inline |
|
inline |
|
inline |
References boost::numeric::ublas::vector_range< V >::end().
Referenced by boost::numeric::ublas::vector_range< V >::crbegin().
|
inline |
References boost::numeric::ublas::vector_range< V >::end().
|
inline |
References boost::numeric::ublas::vector_range< V >::begin().
Referenced by boost::numeric::ublas::vector_range< V >::crend().
|
inline |
|
inline |
Referenced by boost::numeric::ublas::vector_range< V >::const_iterator::operator-(), boost::numeric::ublas::vector_range< V >::iterator::operator-(), boost::numeric::ublas::vector_range< V >::const_iterator::operator<(), boost::numeric::ublas::vector_range< V >::iterator::operator<(), boost::numeric::ublas::vector_range< V >::const_iterator::operator==(), and boost::numeric::ublas::vector_range< V >::iterator::operator==().
|
inline |
References boost::numeric::ublas::basic_range< Z, D >::size().
Referenced by boost::numeric::ublas::vector_range< V >::end(), boost::numeric::ublas::vector_range< V >::const_iterator::operator*(), boost::numeric::ublas::vector_range< V >::iterator::operator*(), and boost::numeric::ublas::vector_range< V >::swap().
|
inline |
|
inline |
References BOOST_UBLAS_CHECK, and boost::numeric::ublas::vector_range< V >::size().
|
friend |
|
staticinherited |