Prev | Next |
x Op y
x
has type
AD<Base>
.
Op
is one of the following
Op | Meaning |
+= |
x
is assigned
x
plus
y
|
-= |
x
is assigned
x
minus
y
|
*= |
x
is assigned
x
times
y
|
/= |
x
is assigned
x
divided by
y
|
Base
is determined by the operand
x
.
x
has the following prototype
AD<Base> &x
y
has the following prototype
const Type &y
where
Type
is
VecAD<Base>::reference
,
AD<Base>
,
Base
, or
double
.
x
.
For example, if
z
has the following type
AD<Base> z
then the syntax
z = x += y
will compute
x
plus
y
and then assign this value to both
x
and
z
.
Base
operation sequence
.
AddEq.cpp | AD Compound Assignment Addition: Example and Test |
sub_eq.cpp | AD Compound Assignment Subtraction: Example and Test |
mul_eq.cpp | AD Compound Assignment Multiplication: Example and Test |
div_eq.cpp | AD Compound Assignment Division: Example and Test |