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

◆ pow() [11/12]

template<typename Mat1 , typename Scal1 , require_all_st_var_or_arithmetic< Mat1, Scal1 > * = nullptr, require_all_matrix_st< is_var, Mat1 > * = nullptr, require_stan_scalar_t< Scal1 > * = nullptr>
auto stan::math::pow ( const Mat1 &  base,
const Scal1 &  exponent 
)
inline

Return the base raised to the power of the exponent (cmath).

For matrices this is performed elementwise.

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 or Arithmetic.
Scal1An arithmetic type or a var_value with inner arithmetic type.
Parameters
baseBase variable.
exponentExponent variable.
Returns
Base raised to the exponent.

Definition at line 187 of file pow.hpp.