primitive_value.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_FWD_SCAL_FUN_PRIMITIVE_VALUE_HPP
#define STAN_MATH_FWD_SCAL_FUN_PRIMITIVE_VALUE_HPP
#include <stan/math/fwd/core.hpp>
#include <stan/math/prim/scal/fun/primitive_value.hpp>
namespace stan {
namespace math {
template <typename T>
inline double primitive_value(const fvar<T>& v) {
return primitive_value(v.val_);
}
}
}
#endif
core.hpp
stan
Definition: log_sum_exp.hpp:8
stan::math::fvar::val_
T val_
Definition: fvar.hpp:15
stan::math::primitive_value
double primitive_value(const fvar< T > &v)
Return the primitive value of the specified forward-mode autodiff variable.
Definition: primitive_value.hpp:20
primitive_value.hpp
stan::math::fvar
Definition: fvar.hpp:14

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