remora::dense_vector_adaptor< T, gpu_tag > Class Template Reference

#include <shark/LinAlg/BLAS/gpu/vector_proxy.hpp>

+ Inheritance diagram for remora::dense_vector_adaptor< T, gpu_tag >:

Public Types

typedef value_type const & const_reference
 
typedef T & reference
 
typedef elementwise< dense_tag > evaluation_category
 
typedef boost::compute::strided_iterator< boost::compute::buffer_iterator< T > > iterator
 
typedef boost::compute::strided_iterator< boost::compute::buffer_iterator< T > > const_iterator
 

Public Member Functions

template<class E >
 dense_vector_adaptor (vector_expression< E, gpu_tag > const &expression)
 Constructor of a proxy from a Dense VectorExpression. More...
 
template<class E >
 dense_vector_adaptor (vector_expression< E, gpu_tag > &expression)
 Constructor of a proxy from a Dense VectorExpression. More...
 
template<class E >
 dense_vector_adaptor (matrix_expression< E, gpu_tag > const &expression)
 
template<class E >
 dense_vector_adaptor (matrix_expression< E, gpu_tag > &expression)
 
template<class U >
 dense_vector_adaptor (dense_vector_adaptor< U > const &v)
 Copy-constructor. More...
 
size_type size () const
 Return the size of the vector. More...
 
storage_type raw_storage () const
 Returns the underlying storage_type structure for low level access. More...
 
boost::compute::command_queue & queue ()
 
template<class IndexExpr >
induced_vector_adaptor_element< IndexExpr, T > operator() (IndexExpr const &i)
 Return a const reference to the element \(i\). More...
 
const_iterator begin () const
 return an iterator on the first element of the vector More...
 
const_iterator end () const
 return an iterator after the last element of the vector More...
 
iterator begin ()
 Return an iterator on the first element of the vector. More...
 
iterator end ()
 Return an iterator at the end of the vector. More...
 
- Public Member Functions inherited from remora::vector_expression< dense_vector_adaptor< T, gpu_tag >, gpu_tag >
const expression_type & operator() () const
 
expression_type & operator() ()
 

Detailed Description

template<class T>
class remora::dense_vector_adaptor< T, gpu_tag >

Definition at line 57 of file vector_proxy.hpp.

Member Typedef Documentation

◆ const_iterator

template<class T >
typedef boost::compute::strided_iterator<boost::compute::buffer_iterator<T> > remora::dense_vector_adaptor< T, gpu_tag >::const_iterator

Definition at line 149 of file vector_proxy.hpp.

◆ const_reference

template<class T >
typedef value_type const& remora::dense_vector_adaptor< T, gpu_tag >::const_reference

Definition at line 61 of file vector_proxy.hpp.

◆ evaluation_category

template<class T >
typedef elementwise<dense_tag> remora::dense_vector_adaptor< T, gpu_tag >::evaluation_category

Definition at line 68 of file vector_proxy.hpp.

◆ iterator

template<class T >
typedef boost::compute::strided_iterator<boost::compute::buffer_iterator<T> > remora::dense_vector_adaptor< T, gpu_tag >::iterator

Definition at line 148 of file vector_proxy.hpp.

◆ reference

template<class T >
typedef T& remora::dense_vector_adaptor< T, gpu_tag >::reference

Definition at line 62 of file vector_proxy.hpp.

Constructor & Destructor Documentation

◆ dense_vector_adaptor() [1/5]

template<class T >
template<class E >
remora::dense_vector_adaptor< T, gpu_tag >::dense_vector_adaptor ( vector_expression< E, gpu_tag > const &  expression)
inline

Constructor of a proxy from a Dense VectorExpression.

Be aware that the expression must live longer than the proxy!

Parameters
expressionThe Expression from which to construct the Proxy

Definition at line 77 of file vector_proxy.hpp.

◆ dense_vector_adaptor() [2/5]

template<class T >
template<class E >
remora::dense_vector_adaptor< T, gpu_tag >::dense_vector_adaptor ( vector_expression< E, gpu_tag > &  expression)
inline

Constructor of a proxy from a Dense VectorExpression.

Be aware that the expression must live longer than the proxy!

Parameters
expressionThe Expression from which to construct the Proxy

Definition at line 87 of file vector_proxy.hpp.

◆ dense_vector_adaptor() [3/5]

template<class T >
template<class E >
remora::dense_vector_adaptor< T, gpu_tag >::dense_vector_adaptor ( matrix_expression< E, gpu_tag > const &  expression)
inline

◆ dense_vector_adaptor() [4/5]

template<class T >
template<class E >
remora::dense_vector_adaptor< T, gpu_tag >::dense_vector_adaptor ( matrix_expression< E, gpu_tag > &  expression)
inline

◆ dense_vector_adaptor() [5/5]

template<class T >
template<class U >
remora::dense_vector_adaptor< T, gpu_tag >::dense_vector_adaptor ( dense_vector_adaptor< U > const &  v)
inline

Copy-constructor.

Parameters
vis the proxy to be copied

Definition at line 114 of file vector_proxy.hpp.

Member Function Documentation

◆ begin() [1/2]

template<class T >
const_iterator remora::dense_vector_adaptor< T, gpu_tag >::begin ( ) const
inline

return an iterator on the first element of the vector

Definition at line 152 of file vector_proxy.hpp.

◆ begin() [2/2]

template<class T >
iterator remora::dense_vector_adaptor< T, gpu_tag >::begin ( )
inline

Return an iterator on the first element of the vector.

Definition at line 165 of file vector_proxy.hpp.

◆ end() [1/2]

template<class T >
const_iterator remora::dense_vector_adaptor< T, gpu_tag >::end ( ) const
inline

return an iterator after the last element of the vector

Definition at line 157 of file vector_proxy.hpp.

◆ end() [2/2]

template<class T >
iterator remora::dense_vector_adaptor< T, gpu_tag >::end ( )
inline

Return an iterator at the end of the vector.

Definition at line 170 of file vector_proxy.hpp.

◆ operator()()

template<class T >
template<class IndexExpr >
induced_vector_adaptor_element<IndexExpr,T> remora::dense_vector_adaptor< T, gpu_tag >::operator() ( IndexExpr const &  i)
inline

Return a const reference to the element \(i\).

Parameters
iindex of the element

Definition at line 139 of file vector_proxy.hpp.

◆ queue()

template<class T >
boost::compute::command_queue& remora::dense_vector_adaptor< T, gpu_tag >::queue ( )
inline

Definition at line 129 of file vector_proxy.hpp.

◆ raw_storage()

template<class T >
storage_type remora::dense_vector_adaptor< T, gpu_tag >::raw_storage ( ) const
inline

Returns the underlying storage_type structure for low level access.

Definition at line 125 of file vector_proxy.hpp.

◆ size()

template<class T >
size_type remora::dense_vector_adaptor< T, gpu_tag >::size ( ) const
inline

Return the size of the vector.

Definition at line 120 of file vector_proxy.hpp.


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