#include <shark/LinAlg/BLAS/vector_proxy.hpp>
Public Types | |
typedef value_type const & | const_reference |
typedef const_reference | reference |
typedef value_type const * | const_pointer |
typedef const_pointer | pointer |
typedef index_type const * | const_index_pointer |
typedef const_index_pointer | index_pointer |
typedef sparse_tag | storage_category |
typedef elementwise_tag | evaluation_category |
typedef compressed_storage_iterator< value_type const, index_type const > | const_iterator |
typedef const_iterator | iterator |
Public Member Functions | |
template<class E > | |
sparse_vector_adaptor (vector_expression< E > const &expression) | |
Constructor of a self_type proxy from a Dense VectorExpression. More... | |
sparse_vector_adaptor () | |
sparse_vector_adaptor (size_type size, const_pointer values, const_index_pointer indices, size_type memoryLength) | |
Constructor of a vector proxy from a block of memory. More... | |
size_type | size () const |
Return the size of the vector. 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... | |
value_type | operator() (index_type i) const |
Return a const reference to the element \(i\). More... | |
value_type | operator[] (index_type i) const |
Return a const reference to the element \(i\). More... | |
const_iterator | begin () const |
return an iterator behind the last non-zero element of the vector More... | |
const_iterator | end () const |
return an iterator behind the last non-zero element of the vector More... | |
![]() | |
const expression_type & | operator() () const |
expression_type & | operator() () |
Definition at line 589 of file vector_proxy.hpp.
typedef index_type const* shark::blas::sparse_vector_adaptor< T, I >::const_index_pointer |
Definition at line 604 of file vector_proxy.hpp.
typedef compressed_storage_iterator<value_type const, index_type const> shark::blas::sparse_vector_adaptor< T, I >::const_iterator |
Definition at line 685 of file vector_proxy.hpp.
typedef value_type const* shark::blas::sparse_vector_adaptor< T, I >::const_pointer |
Definition at line 600 of file vector_proxy.hpp.
typedef value_type const& shark::blas::sparse_vector_adaptor< T, I >::const_reference |
Definition at line 598 of file vector_proxy.hpp.
typedef elementwise_tag shark::blas::sparse_vector_adaptor< T, I >::evaluation_category |
Definition at line 608 of file vector_proxy.hpp.
typedef const_index_pointer shark::blas::sparse_vector_adaptor< T, I >::index_pointer |
Definition at line 605 of file vector_proxy.hpp.
typedef const_iterator shark::blas::sparse_vector_adaptor< T, I >::iterator |
Definition at line 686 of file vector_proxy.hpp.
typedef const_pointer shark::blas::sparse_vector_adaptor< T, I >::pointer |
Definition at line 601 of file vector_proxy.hpp.
typedef const_reference shark::blas::sparse_vector_adaptor< T, I >::reference |
Definition at line 599 of file vector_proxy.hpp.
typedef sparse_tag shark::blas::sparse_vector_adaptor< T, I >::storage_category |
Definition at line 607 of file vector_proxy.hpp.
|
inline |
Constructor of a self_type proxy from a Dense VectorExpression.
Be aware that the expression must live longer than the proxy!
expression | Expression from which to construct the Proxy |
Definition at line 619 of file vector_proxy.hpp.
|
inline |
Definition at line 626 of file vector_proxy.hpp.
|
inline |
Constructor of a vector proxy from a block of memory.
size | the size of the vector represented by the memory |
values | the block of memory used to store the values |
indices | the block of memory used to store the indices |
memoryLength | length of the strip of memory |
Definition at line 633 of file vector_proxy.hpp.
|
inline |
return an iterator behind the last non-zero element of the vector
Definition at line 689 of file vector_proxy.hpp.
References shark::blas::vector_reference< V >::indices(), and shark::blas::vector_reference< V >::values().
|
inline |
return an iterator behind the last non-zero element of the vector
Definition at line 694 of file vector_proxy.hpp.
References shark::blas::vector_reference< V >::indices(), shark::blas::vector_reference< V >::nnz(), and shark::blas::vector_reference< V >::values().
|
inline |
Array of indices of the nonzero elements.
Definition at line 660 of file vector_proxy.hpp.
|
inline |
Number of nonzero elements of the vector.
Definition at line 652 of file vector_proxy.hpp.
|
inline |
Return a const reference to the element \(i\).
i | index of the element |
Definition at line 666 of file vector_proxy.hpp.
References shark::blas::vector_reference< V >::indices(), shark::blas::vector_reference< V >::nnz(), SIZE_CHECK, and shark::blas::vector_reference< V >::values().
|
inline |
Return a const reference to the element \(i\).
i | index of the element |
Definition at line 677 of file vector_proxy.hpp.
|
inline |
Return the size of the vector.
Definition at line 643 of file vector_proxy.hpp.
|
inline |
Array of values of the nonzero elements.
Definition at line 656 of file vector_proxy.hpp.