Stan  2.14.0
probability, sampling & optimization
Namespaces | Functions
finite_diff_grad.hpp File Reference
#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 > &params_r, std::vector< int > &params_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...
 

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