AD Output Stream Operator
Keywords: ad output stream operator >> input write syntax purpose is x result operation sequence example

| Prev | Next |  |  |  |  |  |  |

AD Output Stream Operator
Syntax
`is >> x`
Purpose
Sets `x` to a parameter with value `b` corresponding to `
is >> b
` where `b` is a `Base` object. It is assumed that this `Base` input operation returns a reference to `is` .
is
The operand `is` has prototype `
std::istream& is
`
x
The operand `x` has one of the following prototypes `
AD<Base>& x
`
Result
The result of this operation can be used as a reference to `is` . For example, if the operand `y` has prototype `
AD<Base> y
` then the syntax `
is >> x >> y
` will first read the `Base` value of `x` from `is` , and then read the `Base` value to `y` .
Operation Sequence
The result of this operation is not an AD of Base object. Thus it will not be recorded as part of an AD of `Base` operation sequence .
Example
The file ad_input.cpp contains an example and test of this operation. It returns true if it succeeds and false otherwise.

Input File: cppad/local/ad_io.hpp