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

◆ operator+() [14/16]

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

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

The derivative with respect to the variable is

\(\frac{d}{dy} (c + y) = 1\).

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

Definition at line 96 of file operator_addition.hpp.