|
ViennaCL - The Vienna Computing Library
1.5.1
|
Common base class for representing vectors where the entries are not all stored explicitly. More...
#include <vector.hpp>
Public Types | |
| typedef SCALARTYPE const & | const_reference |
| typedef SCALARTYPE | cpu_value_type |
Public Member Functions | |
| viennacl::context | context () const |
| size_type | size () const |
| cpu_value_type | value () const |
| bool | is_value_static () const |
| vcl_size_t | index () const |
| bool | has_index () const |
| cpu_value_type | operator() (size_type i) const |
| cpu_value_type | operator[] (size_type i) const |
Protected Types | |
| typedef vcl_size_t | size_type |
Protected Member Functions | |
| implicit_vector_base (size_type s, vcl_size_t i, std::pair< SCALARTYPE, bool > v, viennacl::context ctx) | |
| implicit_vector_base (size_type s, std::pair< SCALARTYPE, bool > v, viennacl::context ctx) | |
Protected Attributes | |
| size_type | size_ |
| std::pair< bool, vcl_size_t > | index_ |
| std::pair< SCALARTYPE, bool > | value_ |
| viennacl::context | ctx_ |
Common base class for representing vectors where the entries are not all stored explicitly.
Typical examples are zero_vector or scalar_vector.
| typedef SCALARTYPE const& const_reference |
Reimplemented in scalar_vector< SCALARTYPE >, one_vector< SCALARTYPE >, and zero_vector< SCALARTYPE >.
| typedef SCALARTYPE cpu_value_type |
typedef vcl_size_t size_type [protected] |
Reimplemented in scalar_vector< SCALARTYPE >, one_vector< SCALARTYPE >, zero_vector< SCALARTYPE >, and unit_vector< SCALARTYPE >.
| implicit_vector_base | ( | size_type | s, |
| vcl_size_t | i, | ||
| std::pair< SCALARTYPE, bool > | v, | ||
| viennacl::context | ctx | ||
| ) | [inline, protected] |
| implicit_vector_base | ( | size_type | s, |
| std::pair< SCALARTYPE, bool > | v, | ||
| viennacl::context | ctx | ||
| ) | [inline, protected] |
| viennacl::context context | ( | ) | const [inline] |
| bool has_index | ( | ) | const [inline] |
| vcl_size_t index | ( | ) | const [inline] |
| bool is_value_static | ( | ) | const [inline] |
| cpu_value_type operator() | ( | size_type | i | ) | const [inline] |
| cpu_value_type operator[] | ( | size_type | i | ) | const [inline] |
| cpu_value_type value | ( | ) | const [inline] |
viennacl::context ctx_ [protected] |
std::pair<bool, vcl_size_t> index_ [protected] |
std::pair<SCALARTYPE, bool> value_ [protected] |
1.7.6.1