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

◆ operator++() [1/2]

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

Prefix increment 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 increment.
Returns
Reference the result of incrementing this input variable.

Definition at line 22 of file operator_unary_increment.hpp.