CppAD: A C++ Algorithmic Differentiation Package 20110419
template<class Base >
void forward_prip_0 ( const size_t *  arg,
size_t  num_text,
const char *  text,
size_t  num_par,
const Base *  parameter 
) [inline]

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:
Basebase type for the operator; i.e., this operation was recorded using AD< Base > and computations by this routine are done using type Base .
Parameters:
argarg[0]
index of the text that this operation will print.

arg[1]
index of the parameter that this operation will print.
num_textis the total number of text characters on the tape (only used for error checking).
textInput: 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_paris the total number of parameters on the tape (only used for error checking).
parameterInput: 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().