CppAD: A C++ Algorithmic Differentiation Package
20130918
|
bool IdenticalPar | ( | const AD< Base > & | x | ) | [friend] |
Determine if an AD<Base> object is a parameter, and could never have a different value during any tape playback.
An AD<Base> object x
is identically a parameter if and only if all of the objects in the following chain are parameters:
x , x.value , x.value.value , ...
In such a case, the value of the object will always be the same no matter what the independent variable values are at any level.
x | values that we are checking for identically a pamameter. |
x
is identically a parameter.