Number of Variables that Can be Skipped
Keywords: number variables that can be skipped number_skip syntax see also purpose n f example

| Prev | Next |  |  |  |  |  |  |

Number of Variables that Can be Skipped
Syntax
`n = f.number_skip()`
See Also
seq_property
Purpose
The conditional expressions use either the if_true or if_false . This leads to the fact that some terms only need to be evaluated depending on the value of the comparison in the conditional expression. The optimize option is capable of detecting some of these case and determining variables that can be skipped. This routine returns the number such variables.
n
The return value `n` has type `size_t` is the number of variables that the optimizer has determined can be skipped (given the independent variable values specified by the previous call to f.Forward for order zero).
f
The object `f` has prototype `
ADFun<Base> f
`
Example
The file number_skip.cpp contains an example and test of this function. It returns true if it succeeds and false otherwise.

Input File: cppad/local/num_skip.hpp