CppAD: A C++ Algorithmic Differentiation Package  20171217
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
#define CPPAD_ASSERT_NARG_NRES (   op,
  n_arg,
  n_res 
)
Value:
CPPAD_ASSERT_UNKNOWN( NumArg(op) == n_arg ) \
size_t NumArg(OpCode op)
Number of arguments for a specified operator.
Definition: op_code.hpp:175
size_t NumRes(OpCode op)
Number of variables resulting from the specified operation.
Definition: op_code.hpp:281
#define CPPAD_ASSERT_UNKNOWN(exp)
Check that exp is true, if not terminate execution.

Check that operator op has the specified number of of arguments and results.

If NDEBUG is not defined and either the number of arguments or the number of results are not as expected, execution is terminated and the source code line number is reported.

Definition at line 158 of file cppad_assert.hpp.

Referenced by CppAD::ADFun< Base >::abs_normal_fun(), CppAD::local::for_hes_sweep(), CppAD::local::for_jac_sweep(), CppAD::local::forward0sweep(), CppAD::local::forward1sweep(), CppAD::local::forward2sweep(), CppAD::local::forward_pri_0(), CppAD::local::player< double >::get(), CppAD::local::subgraph::get_argument_variable(), CppAD::local::optimize::get_opt_op_info(), CppAD::local::player< double >::get_user_info(), CppAD::local::ADTape< Base >::Independent(), CppAD::local::optimize::optimize_run(), CppAD::PrintFor(), CppAD::local::printOp(), CppAD::local::rev_hes_sweep(), CppAD::local::rev_jac_sweep(), CppAD::local::reverse_sweep(), and CppAD::local::subgraph::subgraph_sparsity().