Index->
contents
reference
index
search
external
Up->
CppAD
AD
ADValued
Arithmetic
UnaryPlus
Prev
Next
CppAD->
Install
Introduction
AD
ADFun
library
preprocessor
Example
Appendix
AD->
Default
ad_copy
Convert
ADValued
BoolValued
VecAD
base_require
ADValued->
Arithmetic
std_math_ad
MathOther
CondExp
Discrete
Arithmetic->
UnaryPlus
UnaryMinus
ad_binary
compute_assign
UnaryPlus->
UnaryPlus.cpp
Headings->
Syntax
Purpose
x
y
Operation Sequence
Derivative
Example
AD Unary Plus Operator
Syntax
y
= +
x
Purpose
Performs the unary plus operation (the result
y
is equal to the operand
x
).
x
The operand
x
has one of the following prototypes
const AD<
Base
> &
x
const VecAD<
Base
>::reference &
x
y
The result
y
has type
AD<
Base
>
y
It is equal to the operand
x
.
Operation Sequence
This is an AD of
Base
atomic operation
and hence is part of the current AD of
Base
operation sequence
.
Derivative
If
f
is a
Base function
,
\[
\D{[ + f(x) ]}{x} = \D{f(x)}{x}
\]
Example
The file
UnaryPlus.cpp
contains an example and test of this operation.
Input File: cppad/local/unary_plus.hpp