\(\newcommand{\B}[1]{ {\bf #1} }\) \(\newcommand{\R}[1]{ {\rm #1} }\)
vector_set_get#
View page sourceSetting and Getting Vector Elements#
Syntax#
u [ i ] = x
y = v [ i ]
element_type#
We use element_type to denote the type of elements in the
vector. It must be one of the following types:
bool , int , double , a_double .
i#
This argument has c++ prototype
size_t iIt must be between zero and the size of the vector minus one.
u#
The object u has c++ prototype
vec_element_type& ux#
The argument x has c++ prototype
const element_type& xv#
The object v has c++ prototype
const vec_element_type& vy#
The result y has c++ prototype
element_type y