ViennaCL - The Vienna Computing Library  1.7.0
Free open-source GPU-accelerated linear algebra and solver library.
viennacl::basic_range< SizeT, DistanceT > Class Template Reference

A range class that refers to an interval [start, stop), where 'start' is included, and 'stop' is excluded. More...

#include <forwards.h>

Public Types

typedef SizeT size_type
 
typedef DistanceT difference_type
 
typedef size_type value_type
 
typedef value_type const_reference
 
typedef const_reference reference
 

Public Member Functions

 basic_range ()
 
 basic_range (size_type start_index, size_type stop_index)
 
size_type start () const
 
size_type size () const
 
const_reference operator() (size_type i) const
 
const_reference operator[] (size_type i) const
 
bool operator== (const basic_range &r) const
 
bool operator!= (const basic_range &r) const
 

Detailed Description

template<typename SizeT, typename DistanceT>
class viennacl::basic_range< SizeT, DistanceT >

A range class that refers to an interval [start, stop), where 'start' is included, and 'stop' is excluded.

Similar to the boost::numeric::ublas::basic_range class.

Examples:
least-squares.cpp, matrix-range.cpp, and vector-range.cpp.

Definition at line 424 of file forwards.h.

Member Typedef Documentation

template<typename SizeT , typename DistanceT >
typedef value_type viennacl::basic_range< SizeT, DistanceT >::const_reference

Definition at line 45 of file range.hpp.

template<typename SizeT , typename DistanceT >
typedef DistanceT viennacl::basic_range< SizeT, DistanceT >::difference_type

Definition at line 43 of file range.hpp.

template<typename SizeT , typename DistanceT >
typedef const_reference viennacl::basic_range< SizeT, DistanceT >::reference

Definition at line 46 of file range.hpp.

template<typename SizeT , typename DistanceT >
typedef SizeT viennacl::basic_range< SizeT, DistanceT >::size_type

Definition at line 42 of file range.hpp.

template<typename SizeT , typename DistanceT >
typedef size_type viennacl::basic_range< SizeT, DistanceT >::value_type

Definition at line 44 of file range.hpp.

Constructor & Destructor Documentation

template<typename SizeT , typename DistanceT >
viennacl::basic_range< SizeT, DistanceT >::basic_range ( )
inline

Definition at line 48 of file range.hpp.

template<typename SizeT , typename DistanceT >
viennacl::basic_range< SizeT, DistanceT >::basic_range ( size_type  start_index,
size_type  stop_index 
)
inline

Definition at line 49 of file range.hpp.

Member Function Documentation

template<typename SizeT , typename DistanceT >
bool viennacl::basic_range< SizeT, DistanceT >::operator!= ( const basic_range< SizeT, DistanceT > &  r) const
inline

Definition at line 66 of file range.hpp.

template<typename SizeT , typename DistanceT >
const_reference viennacl::basic_range< SizeT, DistanceT >::operator() ( size_type  i) const
inline

Definition at line 58 of file range.hpp.

template<typename SizeT , typename DistanceT >
bool viennacl::basic_range< SizeT, DistanceT >::operator== ( const basic_range< SizeT, DistanceT > &  r) const
inline

Definition at line 65 of file range.hpp.

template<typename SizeT , typename DistanceT >
const_reference viennacl::basic_range< SizeT, DistanceT >::operator[] ( size_type  i) const
inline

Definition at line 63 of file range.hpp.

template<typename SizeT , typename DistanceT >
size_type viennacl::basic_range< SizeT, DistanceT >::size ( ) const
inline

Definition at line 56 of file range.hpp.

template<typename SizeT , typename DistanceT >
size_type viennacl::basic_range< SizeT, DistanceT >::start ( ) const
inline

Definition at line 55 of file range.hpp.


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