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

◆ pow() [12/12]

template<typename Scal1 , typename Mat1 , require_all_st_var_or_arithmetic< Scal1, Mat1 > * = nullptr, require_stan_scalar_t< Scal1 > * = nullptr, require_all_matrix_st< is_var, Mat1 > * = nullptr>
auto stan::math::pow ( Scal1  base,
const Mat1 &  exponent 
)
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 \).

Template Parameters
Mat1An Eigen type deriving from Eigen::EigenBase or a var_value with inner Eigen type as defined above. The scalar_type must be a var.
Scal1An arithmetic type or a var_value with inner arithmetic type.
Parameters
baseBase scalar.
exponentExponent variable.
Returns
Base raised to the exponent.

Definition at line 252 of file pow.hpp.