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_st_var< Scal1, Scal2 > * = nullptr, require_all_stan_scalar_t< Scal1, Scal2 > * = nullptr>
var 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.
 
std::complex< varstan::math::pow (const std::complex< var > &x, const std::complex< var > &y)
 Return the first argument raised to the power of the second argument.
 
template<typename T , typename = require_arithmetic_t<T>>
std::complex< varstan::math::pow (const std::complex< var > &x, const std::complex< T > y)
 Return the first argument raised to the power of the second argument.
 
std::complex< varstan::math::pow (const std::complex< var > &x, const var &y)
 Return the first argument raised to the power of the second argument.
 
template<typename T , typename = require_arithmetic_t<T>>
std::complex< varstan::math::pow (const std::complex< var > &x, T y)
 Return the first argument raised to the power of the second argument.
 
template<typename T , typename = require_arithmetic_t<T>>
std::complex< varstan::math::pow (std::complex< T > x, const std::complex< var > &y)
 Return the first argument raised to the power of the second argument.
 
template<typename T , typename = require_arithmetic_t<T>>
std::complex< varstan::math::pow (std::complex< T > x, const var &y)
 Return the first argument raised to the power of the second argument.
 
std::complex< varstan::math::pow (const var &x, const std::complex< var > &y)
 Return the first argument raised to the power of the second argument.
 
template<typename T , typename = require_arithmetic_t<T>>
std::complex< varstan::math::pow (const var &x, std::complex< T > y)
 Return the first argument raised to the power of the second argument.
 
template<typename T , typename = require_arithmetic_t<T>>
std::complex< varstan::math::pow (T x, const std::complex< var > &y)
 Return the first argument raised to the power of the second argument.
 
std::complex< varstan::math::pow (const std::complex< var > &x, int y)
 Return the first argument raised to the power of the second argument.