inv_cloglog.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_FWD_SCAL_FUN_INV_CLOGLOG_HPP
#define STAN_MATH_FWD_SCAL_FUN_INV_CLOGLOG_HPP
#include <stan/math/fwd/core.hpp>
#include <stan/math/prim/scal/fun/inv_cloglog.hpp>
namespace stan {
namespace math {
template <typename T>
inline
fvar<T>
inv_cloglog(const fvar<T>& x) {
using std::exp;
return fvar<T>(inv_cloglog(x.val_), x.d_ * exp(x.val_ - exp(x.val_)));
}
}
}
#endif
core.hpp
stan::math::fvar::d_
T d_
Definition: fvar.hpp:16
stan
Definition: log_sum_exp.hpp:8
inv_cloglog.hpp
stan::math::fvar::val_
T val_
Definition: fvar.hpp:15
stan::math::exp
fvar< T > exp(const fvar< T > &x)
Definition: exp.hpp:10
stan::math::inv_cloglog
fvar< T > inv_cloglog(const fvar< T > &x)
Definition: inv_cloglog.hpp:14
stan::math::fvar
Definition: fvar.hpp:14

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