Prev Next RevLogOp

Reverse Mode Logarithm Function

Syntax
inline void RevLogOp(size_t d,
     const 
Base *z, const Base *x,
      
Base *pzBase *px)

Description
We are given the partial derivatives for a function  G(z, x) and we wish to compute the partial derivatives for the function  \[
     H(x) = G [ Z(x) , x ]
\]
where  Z(x) is defined as the d-th order Taylor coefficient row vector for Z as a function of the corresponding row vector for X and  \[
     Z = Log(X)
\]
Note that Z has been used both the original logarithm function and for the corresponding mapping of Taylor coefficients.

x
The vector x has length  d+1 and contains the d-th order Taylor coefficient row vector for X.

z
The vector z has length  d+1 and contains d-th order Taylor coefficient row vector for Z.

On Input

px
The vector px has length  d+1 and px[j] contains the partial for G with respect to the j-th order Taylor coefficient for X.

pz
The vector pz has length  d+1 and pz[j] contains the partial for G with respect to the j-th order Taylor coefficient for Z.

On Output

px
The vector px has length  d+1 and px[j] contains the partial for H with respect to the j-th order Taylor coefficient for X.

pz
The vector pz has length  d+1 and its contents are no longer specified; i.e., it has been used for work space.
Input File: cppad/local/log_op.hpp