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

◆ operator--() [1/2]

var & stan::math::operator-- ( var a)
inline

Prefix decrement operator for variables (C++).

Following C++, (–a) is defined to behave exactly as

a = a - 1.0)

does, but is faster and uses less memory. In particular, the result is an assignable lvalue.

Parameters
aVariable to decrement.
Returns
Reference the result of decrementing this input variable.

Definition at line 26 of file operator_unary_decrement.hpp.