Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ add() [3/4]

template<typename T , typename = void>
template<typename S >
void stan::math::accumulator< T, typename >::add ( const std::vector< S > &  xs)
inline

Recursively add each entry in the specified standard vector to the buffer.

This will allow vectors of primitives, autodiff variables to be added; if the vector entries are collections, their elements are recursively added.

Template Parameters
SType of value to recursively add.
Parameters
xsVector of entries to add

Definition at line 66 of file accumulator.hpp.