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

◆ operator*() [15/20]

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

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

The partial derivative for the variable is

\(\frac{\partial}{\partial x} (x * c) = c\), and

Template Parameters
ArithAn arithmetic type
Parameters
aVariable operand.
bScalar operand.
Returns
Variable result of multiplying operands.

Definition at line 93 of file operator_multiplication.hpp.