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

◆ operator*() [16/20]

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

Multiplication operator for a scalar and a variable (C++).

The partial derivative for the variable is

\(\frac{\partial}{\partial y} (c * y) = c\).

Template Parameters
ArithAn arithmetic type
Parameters
aScalar operand.
bVariable operand.
Returns
Variable result of multiplying the operands.

Definition at line 113 of file operator_multiplication.hpp.