2 # ifndef CPPAD_CORE_SUB_HPP
3 # define CPPAD_CORE_SUB_HPP
29 if( tape == CPPAD_NULL )
35 bool var_left = left.
tape_id_ == tape_id;
36 bool var_right = right.
tape_id_ == tape_id;
CPPAD_TAPE_ADDR_TYPE addr_t
#define CPPAD_FOLD_AD_VALUED_BINARY_OPERATOR(Op)
Declares automatic coercion for certain binary operations with AD result.
size_t NumArg(OpCode op)
Number of arguments for a specified operator.
size_t NumRes(OpCode op)
Number of variables resulting from the specified operation.
bool IdenticalZero(const std::complex< double > &x)
AD< Base > operator-(const AD< Base > &left, const AD< Base > &right)
static local::ADTape< Base > * tape_ptr(void)
Pointer for the tape for this AD<Base> class and the current thread.
#define CPPAD_ASSERT_UNKNOWN(exp)
Check that exp is true, if not terminate execution.
local::recorder< Base > Rec_
This is where the information is recorded.
Class used to hold tape that records AD<Base> operations.
CPPAD_INLINE_FRIEND_TEMPLATE_FUNCTION bool Parameter(const AD< Base > &x)
void make_variable(tape_id_t id, addr_t taddr)
tape_id_t id_
Unique identifier for this tape.
CPPAD_TAPE_ID_TYPE tape_id_t