Stan Math Library
5.0.0
Automatic Differentiation
|
|
inline |
The fused multiply-add function for a variable and two values (C99).
This function returns the product of the first two arguments plus the third argument.
The double-based version ::fma(double, double, double)
is defined in <cmath>
.
The derivative is
\(\frac{d}{d x} (x * y) + z = y\).
Tb | type of the second multiplicand |
Tc | type of the summand |
x | First multiplicand. |
y | Second multiplicand. |
z | Summand. |