shark::blas::vector_reference< V > Class Template Reference

#include <shark/LinAlg/BLAS/fwd.hpp>

+ Inheritance diagram for shark::blas::vector_reference< V >:

Public Types

typedef V::const_reference const_reference
 
typedef reference< V >::type reference
 
typedef V::const_pointer const_pointer
 
typedef pointer< V >::type pointer
 
typedef V::const_index_pointer const_index_pointer
 
typedef index_pointer< V >::type index_pointer
 
typedef V::storage_category storage_category
 
typedef elementwise_tag evaluation_category
 
typedef V::const_iterator const_iterator
 
typedef boost::mpl::if_< boost::is_const< V >, typename V::const_iterator, typename V::iterator >::type iterator
 

Public Member Functions

 vector_reference (V &v)
 
template<class E >
 vector_reference (vector_reference< E > const &other)
 
V & expression () const
 
size_type size () const
 Return the size of the vector. More...
 
void clear ()
 
pointer storage () const
 Returns the pointer to the beginning of the vector storage. More...
 
difference_type stride () const
 Returns th stride between the elements in storage() More...
 
size_type nnz () const
 Number of nonzero elements of the vector. More...
 
const_pointer values () const
 Array of values of the nonzero elements. More...
 
index_pointer indices () const
 Array of indices of the nonzero elements. More...
 
reference operator() (index_type i) const
 
reference operator[] (index_type i) const
 
vector_referenceoperator= (vector_reference const &v)
 
template<class E >
vector_referenceoperator= (vector_expression< E > const &e)
 
const_iterator begin () const
 
const_iterator end () const
 
iterator begin ()
 
iterator end ()
 
iterator set_element (iterator pos, index_type index, value_type value)
 
iterator clear_element (iterator pos)
 
iterator clear_range (iterator start, iterator end)
 
void reserve (size_type non_zeros)
 
- Public Member Functions inherited from shark::blas::vector_expression< vector_reference< V > >
const expression_type & operator() () const
 
expression_type & operator() ()
 

Detailed Description

template<class V>
class shark::blas::vector_reference< V >

Definition at line 44 of file fwd.hpp.

Member Typedef Documentation

§ const_index_pointer

template<class V >
typedef V::const_index_pointer shark::blas::vector_reference< V >::const_index_pointer

Definition at line 56 of file vector_proxy.hpp.

§ const_iterator

template<class V >
typedef V::const_iterator shark::blas::vector_reference< V >::const_iterator

Definition at line 143 of file vector_proxy.hpp.

§ const_pointer

template<class V >
typedef V::const_pointer shark::blas::vector_reference< V >::const_pointer

Definition at line 52 of file vector_proxy.hpp.

§ const_reference

template<class V >
typedef V::const_reference shark::blas::vector_reference< V >::const_reference

Definition at line 50 of file vector_proxy.hpp.

§ evaluation_category

template<class V >
typedef elementwise_tag shark::blas::vector_reference< V >::evaluation_category

Definition at line 62 of file vector_proxy.hpp.

§ index_pointer

template<class V >
typedef index_pointer<V>::type shark::blas::vector_reference< V >::index_pointer

Definition at line 57 of file vector_proxy.hpp.

§ iterator

template<class V >
typedef boost::mpl::if_<boost::is_const<V>, typename V::const_iterator, typename V::iterator>::type shark::blas::vector_reference< V >::iterator

Definition at line 146 of file vector_proxy.hpp.

§ pointer

template<class V >
typedef pointer<V>::type shark::blas::vector_reference< V >::pointer

Definition at line 53 of file vector_proxy.hpp.

§ reference

template<class V >
typedef reference<V>::type shark::blas::vector_reference< V >::reference

Definition at line 51 of file vector_proxy.hpp.

§ storage_category

template<class V >
typedef V::storage_category shark::blas::vector_reference< V >::storage_category

Definition at line 61 of file vector_proxy.hpp.

Constructor & Destructor Documentation

§ vector_reference() [1/2]

template<class V >
shark::blas::vector_reference< V >::vector_reference ( V &  v)
inline

Definition at line 65 of file vector_proxy.hpp.

§ vector_reference() [2/2]

template<class V >
template<class E >
shark::blas::vector_reference< V >::vector_reference ( vector_reference< E > const &  other)
inline

Definition at line 68 of file vector_proxy.hpp.

Member Function Documentation

§ begin() [1/2]

template<class V >
const_iterator shark::blas::vector_reference< V >::begin ( ) const
inline

§ begin() [2/2]

template<class V >
iterator shark::blas::vector_reference< V >::begin ( )
inline

§ clear()

template<class V >
void shark::blas::vector_reference< V >::clear ( )
inline

Definition at line 81 of file vector_proxy.hpp.

References shark::blas::vector_reference< V >::expression().

§ clear_element()

template<class V >
iterator shark::blas::vector_reference< V >::clear_element ( iterator  pos)
inline

§ clear_range()

template<class V >
iterator shark::blas::vector_reference< V >::clear_range ( iterator  start,
iterator  end 
)
inline

§ end() [1/2]

§ end() [2/2]

template<class V >
iterator shark::blas::vector_reference< V >::end ( )
inline

§ expression()

§ indices()

§ nnz()

template<class V >
size_type shark::blas::vector_reference< V >::nnz ( ) const
inline

§ operator()()

template<class V >
reference shark::blas::vector_reference< V >::operator() ( index_type  i) const
inline

§ operator=() [1/2]

template<class V >
vector_reference& shark::blas::vector_reference< V >::operator= ( vector_reference< V > const &  v)
inline

§ operator=() [2/2]

template<class V >
template<class E >
vector_reference& shark::blas::vector_reference< V >::operator= ( vector_expression< E > const &  e)
inline

§ operator[]()

template<class V >
reference shark::blas::vector_reference< V >::operator[] ( index_type  i) const
inline

§ reserve()

template<class V >
void shark::blas::vector_reference< V >::reserve ( size_type  non_zeros)
inline

§ set_element()

template<class V >
iterator shark::blas::vector_reference< V >::set_element ( iterator  pos,
index_type  index,
value_type  value 
)
inline

§ size()

§ storage()

template<class V >
pointer shark::blas::vector_reference< V >::storage ( ) const
inline

Returns the pointer to the beginning of the vector storage.

Low-level access to the vectors internals. Elements storage()[i*stride()] for i=1,...,size()-1 are valid

Definition at line 92 of file vector_proxy.hpp.

References shark::blas::vector_reference< V >::expression().

§ stride()

template<class V >
difference_type shark::blas::vector_reference< V >::stride ( ) const
inline

Returns th stride between the elements in storage()

In general elements of dense storage entities are spaced like storage()[i*stride()] for i=1,...,size()-1

Definition at line 99 of file vector_proxy.hpp.

References shark::blas::vector_reference< V >::expression().

Referenced by shark::blas::dense_vector_adaptor< T >::end(), and shark::blas::vector_range< V >::storage().

§ values()


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