Prev Next

@(@\newcommand{\W}[1]{ \; #1 \; } \newcommand{\R}[1]{ {\rm #1} } \newcommand{\B}[1]{ {\bf #1} } \newcommand{\D}[2]{ \frac{\partial #1}{\partial #2} } \newcommand{\DD}[3]{ \frac{\partial^2 #1}{\partial #2 \partial #3} } \newcommand{\Dpow}[2]{ \frac{\partial^{#1}}{\partial {#2}^{#1}} } \newcommand{\dpow}[2]{ \frac{ {\rm d}^{#1}}{{\rm d}\, {#2}^{#1}} }@)@
Abort Recording of an Operation Sequence

Syntax
AD<Base>::abort_recording()

Purpose
Sometimes it is necessary to abort the recording of an operation sequence that started with a call of the form
     Independent(
x)
If such a recording is currently in progress, abort_recording will stop the recording and delete the corresponding information. Otherwise, abort_recording has no effect.

Example
The file abort_recording.cpp contains an example and test of this operation. It returns true if it succeeds and false otherwise.
Input File: cppad/core/abort_recording.hpp