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

◆ operator+() [13/16]

template<typename Arith , require_arithmetic_t< Arith > * = nullptr>
var stan::math::operator+ ( const var a,
Arith  b 
)
inline

Addition operator for variable and scalar (C++).

The derivative with respect to the variable is

\(\frac{d}{dx} (x + c) = 1\).

Template Parameters
ArithAn arithmetic type
Parameters
aFirst variable operand.
bSecond scalar operand.
Returns
Result of adding variable and scalar.

Definition at line 74 of file operator_addition.hpp.