![]() |
Stan
2.14.0
probability, sampling & optimization
|
#include <stan/math/rev/mat.hpp>
#include <iostream>
#include <vector>
Go to the source code of this file.
Namespaces | |
stan | |
Probability, optimization and sampling library. | |
stan::model | |
For compiling models. | |
Functions | |
template<bool propto, bool jacobian_adjust_transform, class M > | |
double | stan::model::log_prob_grad (const M &model, std::vector< double > ¶ms_r, std::vector< int > ¶ms_i, std::vector< double > &gradient, std::ostream *msgs=0) |
Compute the gradient using reverse-mode automatic differentiation, writing the result into the specified gradient, using the specified perturbation. More... | |
template<bool propto, bool jacobian_adjust_transform, class M > | |
double | stan::model::log_prob_grad (const M &model, Eigen::VectorXd ¶ms_r, Eigen::VectorXd &gradient, std::ostream *msgs=0) |
Compute the gradient using reverse-mode automatic differentiation, writing the result into the specified gradient, using the specified perturbation. More... | |