Prev Next

@(@\newcommand{\B}[1]{{\bf #1}} \newcommand{\R}[1]{{\rm #1}}@)@
Create an Object With One Lower Level of AD

Syntax
x = value(a_x)

Purpose
Returns an object with one lower level of AD recording.

a_x
The argument a_x must be an a_float (AD level 1), or an a2float (AD level 2). The argument a_x may also be a numpy.array with one of the element types listed in the previous sentence.

x
If a_x is an a_float, x is a float (AD level 0). If a_x is an a2float, x is an a_float (AD level 1). If a_x is an numpy.array, x is also an numpy.array with the same shape as a_x .

Example
The file value.py contains an example and test of this function.
Input File: pycppad/__init__.py