Prev | Next |
z = x Op y
x
or
y
has type
AD<Base>
or
VecAD<Base>::reference
.
Op
is one of the following
Op | Meaning |
+ |
z
is
x
plus
y
|
- |
z
is
x
minus
y
|
* |
z
is
x
times
y
|
/ |
z
is
x
divided by
y
|
Base
is determined by the operand that
has type
AD<Base>
or
VecAD<Base>::reference
.
x
has the following prototype
const Type &x
where
Type
is
VecAD<Base>::reference
,
AD<Base>
,
Base
, or
double
.
y
has the following prototype
const Type &y
where
Type
is
VecAD<Base>::reference
,
AD<Base>
,
Base
, or
double
.
z
has the following prototype
Type z
where
Type
is
AD<Base>
.
Base
operation sequence
.
add.cpp | AD Binary Addition: Example and Test |
sub.cpp | AD Binary Subtraction: Example and Test |
mul.cpp | AD Binary Multiplication: Example and Test |
div.cpp | AD Binary Division: Example and Test |