\(\newcommand{\W}[1]{ \; #1 \; }\) \(\newcommand{\R}[1]{ {\rm #1} }\) \(\newcommand{\B}[1]{ {\bf #1} }\) \(\newcommand{\D}[2]{ \frac{\partial #1}{\partial #2} }\) \(\newcommand{\DD}[3]{ \frac{\partial^2 #1}{\partial #2 \partial #3} }\) \(\newcommand{\Dpow}[2]{ \frac{\partial^{#1}}{\partial {#2}^{#1}} }\) \(\newcommand{\dpow}[2]{ \frac{ {\rm d}^{#1}}{{\rm d}\, {#2}^{#1}} }\)
ad_input¶
View page sourceAD Input Stream Operator¶
Syntax¶
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.