CppAD: A C++ Algorithmic Differentiation Package  20171217
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
template<class Base >
bool CppAD::IdenticalPar ( const AD< Base > &  x)

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.

xvalues that we are checking for identically a pamameter.
returns true iff x is identically a parameter.

Definition at line 45 of file identical.hpp.