Stan  2.14.0
probability, sampling & optimization
hessian.hpp
Go to the documentation of this file.
1 #ifndef STAN_MODEL_HESSIAN_HPP
2 #define STAN_MODEL_HESSIAN_HPP
3 
4 #include <stan/math/mix/mat.hpp>
6 #include <iostream>
7 
8 namespace stan {
9  namespace model {
10 
11  template <class M>
12  void hessian(const M& model,
13  const Eigen::Matrix<double, Eigen::Dynamic, 1>& x,
14  double& f,
15  Eigen::Matrix<double, Eigen::Dynamic, 1>& grad_f,
16  Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic>& hess_f,
17  std::ostream* msgs = 0) {
19  x, f, grad_f, hess_f);
20  }
21 
22  }
23 }
24 #endif
Probability, optimization and sampling library.
void hessian(const M &model, const Eigen::Matrix< double, Eigen::Dynamic, 1 > &x, double &f, Eigen::Matrix< double, Eigen::Dynamic, 1 > &grad_f, Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > &hess_f, std::ostream *msgs=0)
Definition: hessian.hpp:12

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