Automatic Differentiation
 
Loading...
Searching...
No Matches
pow.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  stan
 The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation from C or the boost::math::lgamma implementation.
 
namespace  stan::math
 Matrices and templated mathematical functions.
 

Functions

template<typename Scal1 , typename Scal2 , require_any_var_t< base_type_t< Scal1 >, base_type_t< Scal2 > > * = nullptr, require_all_stan_scalar_t< Scal1, Scal2 > * = nullptr>
auto stan::math::pow (const Scal1 &base, const Scal2 &exponent)
 Return the base raised to the power of the exponent (cmath).
 
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)
 Return the base raised to the power of the exponent (cmath).
 
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)
 Return the base raised to the power of the exponent (cmath).
 
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)
 Return the base scalar raised to the power of the exponent matrix elementwise.
 
template<typename T1 , typename T2 , require_any_container_t< T1, T2 > * = nullptr, require_all_not_matrix_st< is_var, T1, T2 > * = nullptr, require_any_fvar_t< base_type_t< T1 >, base_type_t< T2 > > * = nullptr>
auto stan::math::pow (const T1 &a, const T2 &b)
 Returns the elementwise raising of the first argument to the power of the second argument.