Represents a vector consisting of 1 at a given index and zeros otherwise. More...
#include <vector_def.hpp>
 
  
 | Public Member Functions | |
| unit_vector (vcl_size_t s, vcl_size_t ind, viennacl::context ctx=viennacl::context()) | |
|  Public Member Functions inherited from viennacl::implicit_vector_base< NumericT > | |
| viennacl::context | context () const | 
| vcl_size_t | size () const | 
| cpu_value_type | value () const | 
| vcl_size_t | index () const | 
| bool | has_index () const | 
| cpu_value_type | operator() (vcl_size_t i) const | 
| cpu_value_type | operator[] (vcl_size_t i) const | 
| Additional Inherited Members | |
|  Public Types inherited from viennacl::implicit_vector_base< NumericT > | |
| typedef NumericT const & | const_reference | 
| typedef NumericT | cpu_value_type | 
|  Protected Member Functions inherited from viennacl::implicit_vector_base< NumericT > | |
| implicit_vector_base (vcl_size_t s, vcl_size_t i, NumericT v, viennacl::context ctx) | |
| implicit_vector_base (vcl_size_t s, NumericT v, viennacl::context ctx) | |
|  Protected Attributes inherited from viennacl::implicit_vector_base< NumericT > | |
| vcl_size_t | size_ | 
| std::pair< bool, vcl_size_t > | index_ | 
| NumericT | value_ | 
| viennacl::context | ctx_ | 
Represents a vector consisting of 1 at a given index and zeros otherwise.
Definition at line 76 of file vector_def.hpp.
| 
 | inline | 
Definition at line 78 of file vector_def.hpp.