\(\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_compound_op¶
View page sourceThe valvector Numeric Compound Assignment Operators¶
Computes the element-by-element result of the numeric compound assignment operators.
Syntax¶
op¶
The compound operator op is
+=
(compound addition) ,
-=
(compound subtraction),
*=
(compound multiplication) , or
/=
(compound division) .
x¶
The operand x is a const
valvector.
y¶
The operand and result y is a valvector.
Return¶
The value returned by each of these operators is a reference to y .
Example¶
The file valvector_compound_op.cpp is an example and test of the valvector compound assignment operators.