------------------------------------------------------------------ lines 8-49 of file: include/cppad/example/valvector/split_join.hpp ------------------------------------------------------------------ {xrst_begin valvector_ad_split} {xrst_spell asplit } Split A AD valvector #################### Split one AD into a vector of AD each with size one. Syntax ****** | valvector_ad_split *asplit* | *asplit( *ax* , *ay_vec* ) m * We use *m* to denote *ay_vec* .size() ax ** This CppAD::AD is ``const`` and passed by reference. The size *ax*.size() must be equal to one or *m* ay_vec ****** This is a :ref:`SimpleVector-name` with elements of type CppAD::AD and is passed by reference. The size of *ay_vec* is not changed. Upon return, for *i* = 0 , ... , *m* - 1 , the size *ay* [ *i* ].size() is one and:: ay[i][0] = ax[i] {xrst_toc_hidden example/valvector/ad_split.cpp } Example ******* The file :ref:`valvector_ad_split.cpp-name` is an example and test of this operation. {xrst_end valvector_ad_split}