ViennaCL - The Vienna Computing Library  1.5.2
Public Types | Public Member Functions | Static Public Attributes
vector_slice< VectorType > Class Template Reference

Class for representing strided subvectors of a bigger vector x. More...

#include <vector_proxy.hpp>

Inheritance diagram for vector_slice< VectorType >:
vector_base< VectorType::cpu_value_type >

Public Types

typedef VectorType::value_type value_type
typedef slice::size_type size_type
typedef slice::difference_type difference_type
typedef value_type reference
typedef const value_typeconst_reference
typedef VectorType::const_iterator const_iterator
typedef VectorType::iterator iterator
typedef VectorType::cpu_value_type cpu_value_type

Public Member Functions

 vector_slice (VectorType &v, slice const &entry_slice)

Static Public Attributes

static const int alignment = VectorType::alignment

Detailed Description

template<typename VectorType>
class viennacl::vector_slice< VectorType >

Class for representing strided subvectors of a bigger vector x.

In MATLAB notation, this could for example refer to the subvector x(3:2:8) of a vector x.


Member Typedef Documentation

typedef VectorType::const_iterator const_iterator
typedef const value_type& const_reference
typedef VectorType::cpu_value_type cpu_value_type
typedef VectorType::iterator iterator
typedef VectorType::value_type value_type

Constructor & Destructor Documentation

vector_slice ( VectorType &  v,
slice const &  entry_slice 
) [inline]

Field Documentation

const int alignment = VectorType::alignment [static]

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