All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Groups
inv.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_PRIM_SCAL_FUN_INV_HPP
#define STAN_MATH_PRIM_SCAL_FUN_INV_HPP
#include <boost/math/tools/promotion.hpp>
namespace stan {
namespace math {
template <typename T>
inline
typename boost::math::tools::promote_args<T>::type
inv(const T x) {
return 1.0 / x;
}
}
}
#endif
stan::math::inv
fvar< T > inv(const fvar< T > &x)
Definition: inv.hpp:15

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