![]() |
Stan Math Library
5.1.0
Automatic Differentiation
|
#include <stan/math/prim/fun/Eigen.hpp>#include <stan/math/rev/core.hpp>#include <stan/math/fwd/core.hpp>#include <stdexcept>#include <vector>Go to the source code of this file.
Namespaces | |
| namespace | stan |
| The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation from C or the boost::math::lgamma implementation. | |
| namespace | stan::math |
| Matrices and templated mathematical functions. | |
Functions | |
| template<typename F > | |
| void | stan::math::hessian_times_vector (const F &f, const Eigen::Matrix< double, Eigen::Dynamic, 1 > &x, const Eigen::Matrix< double, Eigen::Dynamic, 1 > &v, double &fx, Eigen::Matrix< double, Eigen::Dynamic, 1 > &Hv) |
| template<typename T , typename F , typename EigVec , require_eigen_vector_t< EigVec > * = nullptr, require_stan_scalar_t< T > * = nullptr> | |
| void | stan::math::hessian_times_vector (const F &f, const Eigen::Matrix< T, Eigen::Dynamic, 1 > &x, const EigVec &v, T &fx, Eigen::Matrix< T, Eigen::Dynamic, 1 > &Hv) |
| template<typename F , typename XAdj , typename XVec , typename VVec , typename... Args, require_all_eigen_vector_t< XAdj, XVec, VVec > * = nullptr> | |
| void | stan::math::hessian_times_vector (const F &f, XAdj &x_adj, XVec &&x, VVec &&v, Args &&... args) |
| Overload Hessian_times_vector function, under stan/math/mix/functor to handle functions which take in arguments and pstream. | |