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

◆ add() [1/6]

template<typename T >
template<typename S , typename = require_stan_scalar_t<S>>
void stan::math::accumulator< T, require_var_t< T > >::add ( x)
inline

Add the specified arithmetic type value to the buffer after static casting it to the class type T.

See the std library doc for std::is_arithmetic for information on what counts as an arithmetic type.

Template Parameters
SType of argument
Parameters
xValue to add

Definition at line 58 of file accumulator.hpp.