ViennaCL - The Vienna Computing Library  1.5.2
Public Types | Public Member Functions
unit_vector< SCALARTYPE > Class Template Reference

Represents a vector consisting of 1 at a given index and zeros otherwise. More...

#include <vector.hpp>

Inheritance diagram for unit_vector< SCALARTYPE >:
implicit_vector_base< SCALARTYPE >

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())

Detailed Description

template<typename SCALARTYPE>
class viennacl::unit_vector< SCALARTYPE >

Represents a vector consisting of 1 at a given index and zeros otherwise.


Member Typedef Documentation


Constructor & Destructor Documentation

unit_vector ( size_type  s,
size_type  ind,
viennacl::context  ctx = viennacl::context() 
) [inline]

The documentation for this class was generated from the following file: