CppAD: A C++ Algorithmic Differentiation Package 20110419
op_code.hpp File Reference

Defines the OpCode enum type and functions related to it. More...

Go to the source code of this file.

Enumerations

enum  OpCode {
  AbsOp, AcosOp, AddpvOp, AddvvOp,
  AsinOp, AtanOp, BeginOp, CExpOp,
  ComOp, CosOp, CoshOp, CSumOp,
  DisOp, DivpvOp, DivvpOp, DivvvOp,
  EndOp, ExpOp, LdpOp, LdvOp,
  InvOp, LogOp, MulpvOp, MulvvOp,
  ParOp, PowvpOp, PowpvOp, PowvvOp,
  PripOp, PrivOp, SinOp, SinhOp,
  SqrtOp, StppOp, StvpOp, StpvOp,
  StvvOp, SubpvOp, SubvpOp, SubvvOp,
  UsrapOp, UsravOp, UserOp, UsrrpOp,
  UsrrvOp
}
 Type used to distinguish different AD< Base > atomic operations. More...

Functions

size_t NumArg (OpCode op)
 Fetch the number of arguments for a specified operator.
size_t NumRes (OpCode op)
 Fetch the number of variables resulting from the specified operation.
template<class Type >
void printOpField (std::ostream &os, const char *leader, const Type &value, size_t width)
 Prints a single field corresponding to an operator.
template<class Base , class Value >
void printOp (std::ostream &os, const player< Base > *Rec, size_t i_var, OpCode op, const size_t *ind, size_t nfz, const Value *fz, size_t nrz, const Value *rz)
 Prints a single operator, its operands, and the corresponding result values.

Variables

const size_t NumArgTable []
 Table containing number of arguments for the corresponding operator.
const size_t NumResTable []
 Number of variables resulting from the corresponding operation.

Detailed Description

Defines the OpCode enum type and functions related to it.

Definition in file op_code.hpp.