Get a pointer to tape that records AD<Base> operations for the current thread.
- Template Parameters:
-
Base | is the base type corresponding to AD<Base> operations. |
- thread
- is the index that identifes the current OpenMP thread. If
_OPENMP
is not defined, thread
is zero. 0 <= thread < omp_max_thread(0)
.
- id_
- This routine uses AD<Base>::id_ to determine the tape identifier corresponding to the current object. It must hold that
thread = id_ % CPPAD_MAX_NUM_THREADS
. Note this routine should be faster when NDEBUG is defined (?) than calling tape_ptr
without the id
argument.
- Returns:
- The return value
r
is a pointer to the tape that records AD<Base> operations for the current thread. If r == CPPAD_NULL
, there is no tape currently recording AD<Base> operations for the specified thread.
Definition at line 326 of file tape_link.hpp.
Referenced by discrete< Base >::ad(), CppAD::CondExpOp(), CppAD::operator!=(), CppAD::operator==(), CppAD::operator>(), and CppAD::operator>=().