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)
.
- Parameters:
-
id | is the identifier for the tape that is currently recording AD<Base> operations for the current thread. 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 162 of file tape_link.hpp.