Functions vector_range¶
-
template<class
dat_t
>
dat_t *o2scl
::
vector_range
(dat_t *v, size_t start, size_t last)¶ Vector range function for pointers.
- Note
In this case, the return type is the same as the type of the first parameter.
-
template<class
dat_t
>
boost::numeric::ublas::vector_range<boost::numeric::ublas::vector<dat_t>>o2scl
::
vector_range
(boost::numeric::ublas::vector<dat_t> &v, size_t start, size_t last)¶ Vector range function template for ublas vectors.
The element with index
start
in the original vector will become the first argument in the new vector, and the new vector will have sizelast-start
.- Note
In this case, the return type is not the same as the type of the first parameter.
-
template<class
dat_t
>
boost::numeric::ublas::vector_range<boost::numeric::ublas::vector_range<boost::numeric::ublas::vector<dat_t>>>o2scl
::
vector_range
(boost::numeric::ublas::vector_range<boost::numeric::ublas::vector<dat_t>> &v, size_t start, size_t last)¶ Vector range function template for ublas vector ranges of ublas vectors.
The element with index
start
in the original vector will become the first argument in the new vector, and the new vector will have sizelast-start
.- Note
In this case, the return type is not the same as the type of the first parameter.
-
template<class
data_t
>
vector_range_gen<std::vector<data_t>>o2scl
::
vector_range
(std::vector<data_t> &v, size_t start, size_t last)¶ Create a o2scl::vector_range_gen object from a
std::vector
-
template<class
vec_t
>
vector_range_gen<vec_t>o2scl
::
vector_range
(vector_range_gen<vec_t> &v, size_t start, size_t last)¶ Recursively create a o2scl::vector_range_gen object from a vector range.