1 #ifndef VIENNACL_RANGE_HPP_
2 #define VIENNACL_RANGE_HPP_
37 template<
typename SizeT ,
49 basic_range(size_type start_index, size_type stop_index) : start_(start_index), size_(stop_index - start_index)
51 assert(start_index <= stop_index);
55 size_type
start()
const {
return start_; }
56 size_type
size()
const {
return size_; }
basic_range(size_type start_index, size_type stop_index)
bool operator==(const basic_range &r) const
This file provides the forward declarations for the main types used within ViennaCL.
const_reference operator[](size_type i) const
const_reference operator()(size_type i) const
Main namespace in ViennaCL. Holds all the basic types such as vector, matrix, etc. and defines operations upon them.
const_reference reference
value_type const_reference
DistanceT difference_type
A range class that refers to an interval [start, stop), where 'start' is included, and 'stop' is excluded.
bool operator!=(const basic_range &r) const