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

◆ operator-=() [2/2]

template<typename T >
template<typename S , require_st_arithmetic< S > * = nullptr>
var_value< T > & stan::math::var_value< T, internal::require_matrix_var_value< T > >::operator-= ( const S &  b)
inline

The compound subtract/assignment operator for scalars (C++).

If this variable is a and the argument is the scalar b, then (a -= b) behaves exactly the same way as (a = a - b). Note that the result is an assignable lvalue.

Parameters
bThe scalar to subtract from this variable.
Returns
The result of subtracting the specified variable from this variable.