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

◆ operator/() [18/20]

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

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

The derivative with respect to the variable is

\(\frac{d}{d y} (c/y) = -c / y^2\).

Template Parameters
ArithAn arithmetic type
Parameters
dividendScalar operand.
divisorVariable operand.
Returns
Quotient of the dividend and divisor.

Definition at line 106 of file operator_division.hpp.