Stan  2.10.0
probability, sampling & optimization
Public Member Functions | Protected Attributes | List of all members
stan::model::prob_grad Class Reference

The prob_grad class represents the basic parameter holders for a model. More...

#include <prob_grad.hpp>

Public Member Functions

 prob_grad (size_t num_params_r)
 
 prob_grad (size_t num_params_r, std::vector< std::pair< int, int > > &param_ranges_i)
 
virtual ~prob_grad ()
 
size_t num_params_r () const
 
size_t num_params_i () const
 
std::pair< int, int > param_range_i (size_t idx) const
 

Protected Attributes

size_t num_params_r__
 
std::vector< std::pair< int, int > > param_ranges_i__
 

Detailed Description

The prob_grad class represents the basic parameter holders for a model.

The command bin/stanc builds Models extending this base helper class.

Definition at line 17 of file prob_grad.hpp.

Constructor & Destructor Documentation

stan::model::prob_grad::prob_grad ( size_t  num_params_r)
inlineexplicit

Definition at line 23 of file prob_grad.hpp.

stan::model::prob_grad::prob_grad ( size_t  num_params_r,
std::vector< std::pair< int, int > > &  param_ranges_i 
)
inline

Definition at line 28 of file prob_grad.hpp.

virtual stan::model::prob_grad::~prob_grad ( )
inlinevirtual

Definition at line 34 of file prob_grad.hpp.

Member Function Documentation

size_t stan::model::prob_grad::num_params_i ( ) const
inline

Definition at line 40 of file prob_grad.hpp.

size_t stan::model::prob_grad::num_params_r ( ) const
inline

Definition at line 36 of file prob_grad.hpp.

std::pair<int, int> stan::model::prob_grad::param_range_i ( size_t  idx) const
inline

Definition at line 44 of file prob_grad.hpp.

Member Data Documentation

size_t stan::model::prob_grad::num_params_r__
protected

Definition at line 19 of file prob_grad.hpp.

std::vector<std::pair<int, int> > stan::model::prob_grad::param_ranges_i__
protected

Definition at line 20 of file prob_grad.hpp.


The documentation for this class was generated from the following file:

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