\(\newcommand{\W}[1]{ \; #1 \; }\) \(\newcommand{\R}[1]{ {\rm #1} }\) \(\newcommand{\B}[1]{ {\bf #1} }\) \(\newcommand{\D}[2]{ \frac{\partial #1}{\partial #2} }\) \(\newcommand{\DD}[3]{ \frac{\partial^2 #1}{\partial #2 \partial #3} }\) \(\newcommand{\Dpow}[2]{ \frac{\partial^{#1}}{\partial {#2}^{#1}} }\) \(\newcommand{\dpow}[2]{ \frac{ {\rm d}^{#1}}{{\rm d}\, {#2}^{#1}} }\)
valvector_resize¶
View page sourceResize a valvector¶
Sets the size of this valvector.
Prototype¶
void resize(size_t n)
Use¶
This size of a valvector directly after its constructor is always one. This function must be used to create valvectors with other sizes.
n¶
The argument n must not be zero and specifies the number of elements in the valvector.
Element Values¶
Directly after this operation, none of the element values are specified.
Example¶
The file valvector_resize.cpp is an example and test of valvector resize.