Print operation for parameters; i.e., op = PripOp.
The C++ source code corresponding to this operation is
PrintFor(text, y)
f.Forward(0, x)
where y is a parameter. 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:
-
arg | arg[0]
index of the text that this operation will print.
arg[1]
index of the parameter 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. |
num_par | is the total number of parameters on the tape (only used for error checking). |
parameter | Input: parameter[ arg[1] ] is the parameter value that will be printed after the text. |
- Checked Assertions:
- text != CPPAD_NULL
- parameter != CPPAD_NULL
- NumArg(PripOp) == 2
- NumRes(PripOp) == 0
- arg[0] < num_text
- arg[1] < num_par
Definition at line 80 of file print_op.hpp.
Referenced by forward0sweep(), and forward_sweep().