Prev Next

AD Constructors

Syntax
AD<Basey()
AD<Basey(x)
AD<Basey = x

Purpose
creates a new AD<Base> object y and initializes its value as equal to x .

x
The argument x has prototype
     const 
Type &x
where Type is VecAD<Base>::reference , AD<Base> , Base , or any type that has a constructor of the form Base(x) .

y
The target y has prototype
     AD<
Basey

Example
The files ad_ctor.cpp contain examples and tests of these operations. It test returns true if it succeeds and false otherwise.
Input File: cppad/local/ad_ctor.hpp