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

◆ pow() [19/31]

template<typename Mat1 , typename Mat2 , require_all_st_var_or_arithmetic< Mat1, Mat2 > * = nullptr, require_any_matrix_st< is_var, Mat1, Mat2 > * = nullptr, require_all_not_stan_scalar_t< Mat1, Mat2 > * = nullptr>
auto stan::math::pow ( const Mat1 &  base,
const Mat2 &  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, a standard vector, or a var_value with inner Eigen type as defined above. The scalar_type must be a var.
Mat2An Eigen type deriving from Eigen::EigenBase, a standard vector, or a var_value with inner Eigen type as defined above. The scalar_type must be a var.
Parameters
baseBase variable.
exponentExponent variable.
Returns
Base raised to the exponent.

Definition at line 122 of file pow.hpp.