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

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