lines 28-54 of file: cpp/include/cmpad/cppad/gradient.hpp {xrst_begin cppad_gradient_special.hpp} {xrst_spell valvector std valarray } Special Version of Gradient Using CppAD ####################################### valvector ********* This version of the CppAD gradient handles the case where the base type for differentiation is ``valvector`` instead of ``double``. This is a CppAD example type that evaluates numerical operations on vectors (similar to ``std::valarray`` numerical operators). One important difference is that a scalar (one element vector) does not allocate any memory and can operate with any sized vector. Source Code *********** {xrst_literal BEGIN SPECIAL END SPECIAL } {xrst_end cppad_gradient_special.hpp}