![]() |
Stan
2.14.0
probability, sampling & optimization
|
#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 > | |
void | stan::model::finite_diff_grad (const M &model, std::vector< double > ¶ms_r, std::vector< int > ¶ms_i, std::vector< double > &grad, double epsilon=1e-6, std::ostream *msgs=0) |
Compute the gradient using finite differences for the specified parameters, writing the result into the specified gradient, using the specified perturbation. More... | |