Print operation for variables; i.e., op = PrivOp.
The C++ source code corresponding to this operation is
PrintFor(text, y)
f.Forward(0, x)
where y is a variable. The PrintFor call puts the print operation on the tape and the print occurs during the zero order forward mode computation.
- std::cout
- the results are printed on the C++ standard output stream.
- Template Parameters:
-
Base | base type for the operator; i.e., this operation was recorded using AD< Base > and computations by this routine are done using type Base . |
- Parameters:
-
i_z | is the index of the next variable on the tape (only used for error checking). |
arg | arg[0]
index of the text that this operation will print.
arg[1]
index of the variable that this operation will print. |
num_text | is the total number of text characters on the tape (only used for error checking). |
text | Input: text[ arg[0] ] is the first character of the text that will be printed. All the characters from there to (but not including) the first '\0' are printed. |
nc_taylor | number of colums in the matrix containing all the Taylor coefficients. |
taylor | Input: taylor [ arg[1] * nc_taylor + 0 ] is zero order taylor coefficient that will be printed. |
- Checked Assertions:
- text != CPPAD_NULL
- NumArg(PrivOp) == 2
- NumRes(PrivOp) == 0
- arg[0] < num_test
- arg[1] <= i_z
Definition at line 157 of file print_op.hpp.
Referenced by forward0sweep(), and forward_sweep().