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

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:
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:
i_zis the index of the next variable on the tape (only used for error checking).
argarg[0]
index of the text that this operation will print.

arg[1]
index of the variable 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.
nc_taylornumber of colums in the matrix containing all the Taylor coefficients.
taylorInput: 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().