#include <shark/LinAlg/BLAS/fwd.hpp>
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_reference & | operator= (vector_reference const &v) |
template<class E > | |
vector_reference & | operator= (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) |
![]() | |
const expression_type & | operator() () const |
expression_type & | operator() () |
typedef V::const_index_pointer shark::blas::vector_reference< V >::const_index_pointer |
Definition at line 56 of file vector_proxy.hpp.
typedef V::const_iterator shark::blas::vector_reference< V >::const_iterator |
Definition at line 143 of file vector_proxy.hpp.
typedef V::const_pointer shark::blas::vector_reference< V >::const_pointer |
Definition at line 52 of file vector_proxy.hpp.
typedef V::const_reference shark::blas::vector_reference< V >::const_reference |
Definition at line 50 of file vector_proxy.hpp.
typedef elementwise_tag shark::blas::vector_reference< V >::evaluation_category |
Definition at line 62 of file vector_proxy.hpp.
typedef index_pointer<V>::type shark::blas::vector_reference< V >::index_pointer |
Definition at line 57 of file vector_proxy.hpp.
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.
typedef pointer<V>::type shark::blas::vector_reference< V >::pointer |
Definition at line 53 of file vector_proxy.hpp.
typedef reference<V>::type shark::blas::vector_reference< V >::reference |
Definition at line 51 of file vector_proxy.hpp.
typedef V::storage_category shark::blas::vector_reference< V >::storage_category |
Definition at line 61 of file vector_proxy.hpp.
|
inline |
Definition at line 65 of file vector_proxy.hpp.
|
inline |
Definition at line 68 of file vector_proxy.hpp.
|
inline |
Definition at line 149 of file vector_proxy.hpp.
References shark::blas::vector_reference< V >::expression().
Referenced by shark::blas::vector_range< V >::clear().
|
inline |
Definition at line 155 of file vector_proxy.hpp.
References shark::blas::vector_reference< V >::expression().
|
inline |
Definition at line 81 of file vector_proxy.hpp.
References shark::blas::vector_reference< V >::expression().
|
inline |
Definition at line 167 of file vector_proxy.hpp.
References shark::blas::vector_reference< V >::expression().
|
inline |
Definition at line 170 of file vector_proxy.hpp.
References shark::blas::vector_reference< V >::expression().
Referenced by shark::blas::vector_range< V >::clear().
|
inline |
Definition at line 152 of file vector_proxy.hpp.
References shark::blas::vector_reference< V >::expression().
Referenced by shark::blas::vector_range< V >::clear(), shark::blas::dense_vector_adaptor< T >::clear_element(), and shark::blas::dense_vector_adaptor< T >::clear_range().
|
inline |
Definition at line 158 of file vector_proxy.hpp.
References shark::blas::vector_reference< V >::expression().
|
inline |
Definition at line 72 of file vector_proxy.hpp.
Referenced by shark::blas::vector_reference< V >::begin(), shark::blas::vector_reference< V >::clear(), shark::blas::vector_reference< V >::clear_element(), shark::blas::vector_reference< V >::clear_range(), shark::blas::vector_reference< V >::end(), shark::blas::vector_reference< V >::indices(), shark::blas::vector_reference< V >::nnz(), shark::blas::vector_reference< V >::operator()(), shark::blas::vector_reference< V >::operator=(), shark::blas::vector_reference< V >::operator[](), shark::blas::vector_reference< V >::reserve(), shark::blas::vector_reference< V >::set_element(), shark::blas::vector_reference< V >::size(), shark::blas::vector_reference< V >::storage(), shark::blas::vector_range< V >::storage(), shark::blas::vector_reference< V >::stride(), shark::blas::vector_range< V >::stride(), and shark::blas::vector_reference< V >::values().
|
inline |
Array of indices of the nonzero elements.
Definition at line 116 of file vector_proxy.hpp.
References shark::blas::vector_reference< V >::expression().
Referenced by shark::blas::sparse_vector_adaptor< T, I >::begin(), shark::blas::sparse_vector_adaptor< T, I >::end(), and shark::blas::sparse_vector_adaptor< T, I >::operator()().
|
inline |
Number of nonzero elements of the vector.
Definition at line 108 of file vector_proxy.hpp.
References shark::blas::vector_reference< V >::expression().
Referenced by shark::blas::sparse_vector_adaptor< T, I >::end(), and shark::blas::sparse_vector_adaptor< T, I >::operator()().
|
inline |
Definition at line 125 of file vector_proxy.hpp.
References shark::blas::vector_reference< V >::expression().
|
inline |
Definition at line 132 of file vector_proxy.hpp.
References shark::blas::vector_reference< V >::expression().
|
inline |
Definition at line 137 of file vector_proxy.hpp.
References shark::blas::vector_reference< V >::expression().
|
inline |
Definition at line 128 of file vector_proxy.hpp.
References shark::blas::vector_reference< V >::expression().
|
inline |
Definition at line 174 of file vector_proxy.hpp.
References shark::blas::vector_reference< V >::expression().
|
inline |
Definition at line 163 of file vector_proxy.hpp.
References shark::blas::vector_reference< V >::expression().
|
inline |
Return the size of the vector.
Definition at line 77 of file vector_proxy.hpp.
References shark::blas::vector_reference< V >::expression().
Referenced by shark::blas::adapt_vector(), shark::blas::vector_range< V >::end(), shark::blas::dense_vector_adaptor< T >::end(), and shark::blas::vector_range< V >::vector_range().
|
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().
|
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().
|
inline |
Array of values of the nonzero elements.
Definition at line 112 of file vector_proxy.hpp.
References shark::blas::vector_reference< V >::expression().
Referenced by shark::blas::sparse_vector_adaptor< T, I >::begin(), shark::blas::sparse_vector_adaptor< T, I >::end(), and shark::blas::sparse_vector_adaptor< T, I >::operator()().