CppAD: A C++ Algorithmic Differentiation Package
20130102
|
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, InvOp, LdpOp, LdvOp, LogOp, MulpvOp, MulvvOp, ParOp, PowpvOp, PowvpOp, PowvvOp, PriOp, SignOp, SinOp, SinhOp, SqrtOp, StppOp, StpvOp, StvpOp, StvvOp, SubpvOp, SubvpOp, SubvvOp, TanOp, TanhOp, UserOp, UsrapOp, UsravOp, UsrrpOp, UsrrvOp, NumberOp } |
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 addr_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. |
Defines the OpCode enum type and functions related to it.
Definition in file op_code.hpp.