Stan  1.0
probability, sampling & optimization
Namespaces | Functions
special_functions.hpp File Reference
#include <stan/agrad/error_handling.hpp>
#include <stan/math/special_functions.hpp>
#include <boost/math/special_functions/acosh.hpp>
#include <boost/math/special_functions/asinh.hpp>
#include <boost/math/special_functions/atanh.hpp>
#include <boost/math/special_functions/digamma.hpp>
#include <boost/math/special_functions/hypot.hpp>

Go to the source code of this file.

Namespaces

 stan
 Probability, optimization and sampling library.
 
 stan::agrad
 Function gradients via reverse-mode automatic differentiation.
 

Functions

var stan::agrad::acosh (const stan::agrad::var &a)
 The inverse hyperbolic cosine function for variables (C99). More...
 
var stan::agrad::asinh (const stan::agrad::var &a)
 The inverse hyperbolic sine function for variables (C99). More...
 
var stan::agrad::atanh (const stan::agrad::var &a)
 The inverse hyperbolic tangent function for variables (C99). More...
 
var stan::agrad::erf (const stan::agrad::var &a)
 The error function for variables (C99). More...
 
var stan::agrad::erfc (const stan::agrad::var &a)
 The complementary error function for variables (C99). More...
 
var stan::agrad::exp2 (const stan::agrad::var &a)
 Exponentiation base 2 function for variables (C99). More...
 
var stan::agrad::expm1 (const stan::agrad::var &a)
 The exponentiation of the specified variable minus 1 (C99). More...
 
var stan::agrad::lgamma (const stan::agrad::var &a)
 The log gamma function for variables (C99). More...
 
var stan::agrad::log1p (const stan::agrad::var &a)
 The log (1 + x) function for variables (C99). More...
 
var stan::agrad::log1m (const stan::agrad::var &a)
 The log (1 - x) function for variables. More...
 
var stan::agrad::fma (const stan::agrad::var &a, const stan::agrad::var &b, const stan::agrad::var &c)
 The fused multiply-add function for three variables (C99). More...
 
var stan::agrad::fma (const stan::agrad::var &a, const stan::agrad::var &b, const double &c)
 The fused multiply-add function for two variables and a value (C99). More...
 
var stan::agrad::fma (const stan::agrad::var &a, const double &b, const stan::agrad::var &c)
 The fused multiply-add function for a variable, value, and variable (C99). More...
 
var stan::agrad::fma (const stan::agrad::var &a, const double &b, const double &c)
 The fused multiply-add function for a variable and two values (C99). More...
 
var stan::agrad::fma (const double &a, const stan::agrad::var &b, const double &c)
 The fused multiply-add function for a value, variable, and value (C99). More...
 
var stan::agrad::fma (const double &a, const double &b, const stan::agrad::var &c)
 The fused multiply-add function for two values and a variable, and value (C99). More...
 
var stan::agrad::fma (const double &a, const stan::agrad::var &b, const stan::agrad::var &c)
 The fused multiply-add function for a value and two variables (C99). More...
 
var stan::agrad::fmax (const stan::agrad::var &a, const stan::agrad::var &b)
 Returns the maximum of the two variable arguments (C99). More...
 
var stan::agrad::fmax (const stan::agrad::var &a, const double &b)
 Returns the maximum of the variable and scalar, promoting the scalar to a variable if it is larger (C99). More...
 
var stan::agrad::fmax (const double &a, const stan::agrad::var &b)
 Returns the maximum of a scalar and variable, promoting the scalar to a variable if it is larger (C99). More...
 
var stan::agrad::fmin (const stan::agrad::var &a, const stan::agrad::var &b)
 Returns the minimum of the two variable arguments (C99). More...
 
var stan::agrad::fmin (const stan::agrad::var &a, const double &b)
 Returns the minimum of the variable and scalar, promoting the scalar to a variable if it is larger (C99). More...
 
var stan::agrad::fmin (const double &a, const stan::agrad::var &b)
 Returns the minimum of a scalar and variable, promoting the scalar to a variable if it is larger (C99). More...
 
var stan::agrad::hypot (const stan::agrad::var &a, const stan::agrad::var &b)
 Returns the length of the hypoteneuse of a right triangle with sides of the specified lengths (C99). More...
 
var stan::agrad::hypot (const stan::agrad::var &a, const double &b)
 Returns the length of the hypoteneuse of a right triangle with sides of the specified lengths (C99). More...
 
var stan::agrad::hypot (const double &a, const stan::agrad::var &b)
 Returns the length of the hypoteneuse of a right triangle with sides of the specified lengths (C99). More...
 
var stan::agrad::log2 (const stan::agrad::var &a)
 Returns the base 2 logarithm of the specified variable (C99). More...
 
var stan::agrad::cbrt (const stan::agrad::var &a)
 Returns the cube root of the specified variable (C99). More...
 
var stan::agrad::round (const stan::agrad::var &a)
 Returns the rounded form of the specified variable (C99). More...
 
var stan::agrad::trunc (const stan::agrad::var &a)
 Returns the truncatation of the specified variable (C99). More...
 
var stan::agrad::fdim (const stan::agrad::var &a, const stan::agrad::var &b)
 Return the positive difference between the first variable's the value and the second's (C99). More...
 
var stan::agrad::fdim (const double &a, const stan::agrad::var &b)
 Return the positive difference between the first value and the value of the second variable (C99). More...
 
var stan::agrad::fdim (const stan::agrad::var &a, const double &b)
 Return the positive difference between the first variable's value and the second value (C99). More...
 
var stan::agrad::tgamma (const stan::agrad::var &a)
 Return the Gamma function applied to the specified variable (C99). More...
 
var stan::agrad::step (const stan::agrad::var &a)
 Return the step, or heaviside, function applied to the specified variable (stan). More...
 
var stan::agrad::inv_cloglog (const stan::agrad::var &a)
 Return the inverse complementary log-log function applied specified variable (stan). More...
 
var stan::agrad::Phi (const stan::agrad::var &a)
 The unit normal cumulative density function for variables (stan). More...
 
var stan::agrad::inv_logit (const stan::agrad::var &a)
 The inverse logit function for variables (stan). More...
 
var stan::agrad::log_loss (const int &y, const stan::agrad::var &y_hat)
 The log loss function for variables (stan). More...
 
var stan::agrad::log1p_exp (const stan::agrad::var &a)
 Return the log of 1 plus the exponential of the specified variable. More...
 
var stan::agrad::log_sum_exp (const stan::agrad::var &a, const stan::agrad::var &b)
 Returns the log sum of exponentials. More...
 
var stan::agrad::log_sum_exp (const stan::agrad::var &a, const double &b)
 Returns the log sum of exponentials. More...
 
var stan::agrad::log_sum_exp (const double &a, const stan::agrad::var &b)
 Returns the log sum of exponentials. More...
 
var stan::agrad::log_sum_exp (const std::vector< var > &x)
 Returns the log sum of exponentials. More...
 
var stan::agrad::square (const var &x)
 Return the square of the input variable. More...
 
var stan::agrad::multiply_log (const var &a, const var &b)
 Return the value of a*log(b). More...
 
var stan::agrad::multiply_log (const var &a, const double b)
 Return the value of a*log(b). More...
 
var stan::agrad::multiply_log (const double a, const var &b)
 Return the value of a*log(b). More...
 
var stan::agrad::if_else (bool c, const var &y_true, const var &y_false)
 If the specified condition is true, return the first variable, otherwise return the second variable. More...
 
var stan::agrad::if_else (bool c, double y_true, const var &y_false)
 If the specified condition is true, return a new variable constructed from the first scalar, otherwise return the second variable. More...
 
var stan::agrad::if_else (bool c, const var &y_true, const double y_false)
 If the specified condition is true, return the first variable, otherwise return a new variable constructed from the second scalar. More...
 
var stan::agrad::ibeta (const var &a, const var &b, const var &x)
 The normalized incomplete beta function of a, b, and x. More...
 
double stan::agrad::value_of (const agrad::var &v)
 Return the value of the specified variable. More...
 
int stan::agrad::as_bool (const agrad::var &v)
 Return 1 if the argument is unequal to zero and 0 otherwise. More...
 

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