Stan Math Library
5.0.0
Automatic Differentiation
|
|
inline |
Return the base scalar raised to the power of the exponent matrix elementwise.
The derivative for the variable is
\(\frac{d}{d y} \mbox{pow}(c, y) = c^y \log c \).
Mat1 | An Eigen type deriving from Eigen::EigenBase or a var_value with inner Eigen type as defined above. The scalar_type must be a var . |
Scal1 | An arithmetic type or a var_value with inner arithmetic type. |
base | Base scalar. |
exponent | Exponent variable. |