ViennaCL - The Vienna Computing Library
1.5.1
|
Represents a vector consisting of 1 at a given index and zeros otherwise. More...
#include <vector.hpp>
Public Types | |
typedef base_type::size_type | size_type |
Public Member Functions | |
unit_vector (size_type s, size_type ind, viennacl::context ctx=viennacl::context()) |
Represents a vector consisting of 1 at a given index and zeros otherwise.
typedef base_type::size_type size_type |
Reimplemented from implicit_vector_base< SCALARTYPE >.
unit_vector | ( | size_type | s, |
size_type | ind, | ||
viennacl::context | ctx = viennacl::context() |
||
) | [inline] |