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

◆ operator+=() [1/2]

template<typename T >
var_value< T > & stan::math::var_value< T, internal::require_matrix_var_value< T > >::operator+= ( const var_value< T > &  b)
inline

The compound add/assignment operator for variables (C++).

If this variable is a and the argument is the variable b, then (a += b) behaves exactly the same way as (a = a + b), creating an intermediate variable representing (a + b).

Parameters
bThe variable to add to this variable.
Returns
The result of adding the specified variable to this variable.