Stan  1.0
probability, sampling & optimization
Namespaces | Functions
special_functions.hpp File Reference
#include <stdexcept>
#include <boost/math/special_functions/gamma.hpp>
#include <boost/math/special_functions/beta.hpp>
#include <boost/math/tools/promotion.hpp>
#include <boost/throw_exception.hpp>
#include <stan/math/constants.hpp>
#include <stan/math/error_handling.hpp>
#include <stan/meta/traits.hpp>

Go to the source code of this file.

Namespaces

 stan
 Probability, optimization and sampling library.
 
 stan::math
 Matrices and templated mathematical functions.
 

Functions

template<typename T >
boost::math::tools::promote_args< T >::type stan::math::exp2 (T y)
 Return the exponent base 2 of the specified argument (C99). More...
 
template<typename T1 , typename T2 >
boost::math::tools::promote_args< T1, T2 >::type stan::math::fdim (T1 a, T2 b)
 The positive difference function (C99). More...
 
template<typename T1 , typename T2 , typename T3 >
boost::math::tools::promote_args< T1, T2, T3 >::type stan::math::fma (T1 a, T2 b, T3 c)
 The fused multiply-add operation (C99). More...
 
template<typename T >
boost::math::tools::promote_args< T >::type stan::math::log2 (T a)
 Returns the base 2 logarithm of the argument (C99). More...
 
template<typename T >
unsigned int stan::math::int_step (T y)
 The integer step, or Heaviside, function. More...
 
template<typename T >
int stan::math::step (T y)
 The step, or Heaviside, function. More...
 
template<typename T1 , typename T2 >
boost::math::tools::promote_args< T1, T2 >::type stan::math::lbeta (T1 a, T2 b)
 Return the log of the beta function applied to the specified arguments. More...
 
template<typename T_N , typename T_n >
boost::math::tools::promote_args< T_N, T_n >::type stan::math::binomial_coefficient_log (T_N N, T_n n)
 Return the log of the binomial coefficient for the specified arguments. More...
 
template<typename T >
boost::math::tools::promote_args< T >::type stan::math::inv_logit (T a)
 Returns the inverse logit function applied to the argument. More...
 
template<typename T >
boost::math::tools::promote_args< T >::type stan::math::logit (T a)
 Returns the logit function applied to the argument. More...
 
template<typename T >
boost::math::tools::promote_args< T >::type stan::math::Phi (T x)
 The unit normal cumulative distribution function. More...
 
template<typename T >
boost::math::tools::promote_args< T >::type stan::math::inv_cloglog (T x)
 The inverse complementary log-log function. More...
 
template<typename T >
boost::math::tools::promote_args< T >::type stan::math::binary_log_loss (int y, T y_hat)
 Returns the log loss function for binary classification with specified reference and response values. More...
 
template<typename Vector , typename Scalar >
void stan::math::softmax (const Vector &x, Vector &simplex)
 Write the values of the softmax transformed first argument into the second argument. More...
 
template<typename Vector >
void stan::math::inverse_softmax (const Vector &simplex, Vector &y)
 Writes the inverse softmax of the simplex argument into the second argument. More...
 
template<typename T >
boost::math::tools::promote_args< T >::type stan::math::log1p (T x)
 Return the natural logarithm of one plus the specified value. More...
 
template<typename T >
boost::math::tools::promote_args< T >::type stan::math::log1m (T x)
 Return the natural logarithm of one minus the specified value. More...
 
template<typename T >
boost::math::tools::promote_args< T >::type stan::math::lmgamma (unsigned int k, T x)
 Return the natural logarithm of the multivariate gamma function with the speciifed dimensions and argument. More...
 
double stan::math::if_else (bool c, double y_true, double y_false)
 Return the second argument if the first argument is true and otherwise return the second argument. More...
 
template<typename T >
stan::math::square (T x)
 Return the square of the specified argument. More...
 
template<typename T_a , typename T_b >
boost::math::tools::promote_args< T_a, T_b >::type stan::math::multiply_log (T_a a, T_b b)
 
double stan::math::log1p_exp (const double &a)
 Calculates the log of 1 plus the exponential of the specified value without overflow. More...
 
template<typename T >
boost::math::tools::promote_args< T >::type stan::math::log_inv_logit (const T &u)
 Returns the natural logarithm of the inverse logit of the specified argument. More...
 
template<typename T >
boost::math::tools::promote_args< T >::type stan::math::log1m_inv_logit (const T &u)
 Returns the natural logarithm of 1 minus the inverse logit of the specified argument. More...
 
double stan::math::log_sum_exp (const double &a, const double &b)
 Calculates the log sum of exponetials without overflow. More...
 
double stan::math::ibeta (const double &a, const double &b, const double &x)
 The normalized incomplete beta function of a, b, and x. More...
 
double stan::math::log_sum_exp (const std::vector< double > &x)
 Return the log of the sum of the exponentiated values of the specified sequence of values. More...
 
template<typename T >
int stan::math::logical_negation (T x)
 The logical negation function which returns 1 if the input is equal to zero and 0 otherwise. More...
 
template<typename T1 , typename T2 >
int stan::math::logical_or (T1 x1, T2 x2)
 The logical or function which returns 1 if either argument is unequal to zero and 0 otherwise. More...
 
template<typename T1 , typename T2 >
int stan::math::logical_and (T1 x1, T2 x2)
 The logical and function which returns 1 if both arguments are unequal to zero and 0 otherwise. More...
 
template<typename T1 , typename T2 >
int stan::math::logical_eq (T1 x1, T2 x2)
 Return 1 if the first argument is equal to the second. More...
 
template<typename T1 , typename T2 >
int stan::math::logical_neq (T1 x1, T2 x2)
 Return 1 if the first argument is unequal to the second. More...
 
template<typename T1 , typename T2 >
int stan::math::logical_lt (T1 x1, T2 x2)
 Return 1 if the first argument is strictly less than the second. More...
 
template<typename T1 , typename T2 >
int stan::math::logical_lte (T1 x1, T2 x2)
 Return 1 if the first argument is less than or equal to the second. More...
 
template<typename T1 , typename T2 >
int stan::math::logical_gt (T1 x1, T2 x2)
 Return 1 if the first argument is strictly greater than the second. More...
 
template<typename T1 , typename T2 >
int stan::math::logical_gte (T1 x1, T2 x2)
 Return 1 if the first argument is greater than or equal to the second. More...
 
template<typename T1 , typename T2 , typename T3 >
double stan::math::simple_var (double v, const T1 &, const T1 &, const T2 &, const T2 &, const T3 &, const T3 &)
 Return the scalar value and ignore the remaining arguments. More...
 
template<typename T >
double stan::math::value_of (T x)
 Return the value of the specified scalar argument converted to a double value. More...
 
template<>
double stan::math::value_of< double > (double x)
 Return the specified argument. More...
 
double stan::math::pi ()
 Return the value of pi. More...
 
double stan::math::e ()
 Return the base of the natural logarithm. More...
 
double stan::math::sqrt2 ()
 Return the square root of two. More...
 
double stan::math::log2 ()
 Return natural logarithm of two. More...
 
double stan::math::log10 ()
 Return natural logarithm of ten. More...
 
double stan::math::positive_infinity ()
 Return positive infinity. More...
 
double stan::math::negative_infinity ()
 Return negative infinity. More...
 
double stan::math::not_a_number ()
 Return (quiet) not-a-number. More...
 
double stan::math::epsilon ()
 Return minimum positive number representable. More...
 
double stan::math::negative_epsilon ()
 Return maximum negative number (i.e., negative number with smallest absolute value). More...
 
int stan::math::as_bool (int x)
 Return an integer with an equivalent boolean value to specified input. More...
 
int stan::math::as_bool (double x)
 Return 1 if the argument is unequal to zero and 0 otherwise. More...
 

     [ Stan Home Page ] © 2011–2012, Stan Development Team.