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

◆ operator/() [17/20]

template<typename Arith , require_arithmetic_t< Arith > * = nullptr>
var stan::math::operator/ ( const var dividend,
Arith  divisor 
)
inline

Division operator for dividing a variable by a scalar (C++).

The derivative with respect to the variable is

\(\frac{\partial}{\partial x} (x/c) = 1/c\).

Template Parameters
Varvalue type of a var
ArithAn arithmetic type
Parameters
dividendVariable operand.
divisorScalar operand.
Returns
Variable result of dividing the variable by the scalar.

Definition at line 84 of file operator_division.hpp.