CppAD: A C++ Algorithmic Differentiation Package 20110419
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.

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

Definition at line 68 of file identical.hpp.