Stan  2.14.0
probability, sampling & optimization
var_decl_def_vis.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_FUN_VAR_DECL_DEF_VIS_HPP
2 #define STAN_LANG_AST_FUN_VAR_DECL_DEF_VIS_HPP
3 
19 #include <boost/variant/static_visitor.hpp>
20 
21 namespace stan {
22  namespace lang {
23 
28  : public boost::static_visitor<expression> {
33 
40  expression operator()(const nil& x) const;
41 
48  expression operator()(const int_var_decl& x) const;
49 
56  expression operator()(const double_var_decl& x) const;
57 
64  expression operator()(const vector_var_decl& x) const;
65 
73 
80  expression operator()(const matrix_var_decl& x) const;
81 
88  expression operator()(const simplex_var_decl& x) const;
89 
97 
104  expression operator()(const ordered_var_decl& x) const;
105 
113 
121 
129 
136  expression operator()(const cov_matrix_var_decl& x) const;
137 
145  };
146 
147  }
148 }
149 #endif
An integer variable declaration and optional definition.
Structure to hold the declaration of a positive ordered vector.
var_decl_def_vis()
Construct a variable declaration definition visitor.
Structure to hold a row vector variable declaration.
Probability, optimization and sampling library.
Structure to hold a covariance matrix variable declaration.
Structure to hold the declaration of a simplex.
Structure to hold a Cholesky factor for a correlation matrix variable declaration.
expression operator()(const nil &x) const
Return the definition for the specified variable declaration (in this case nil for nil input)...
Structure to hold the declaration of a unit vector.
Structure to hold a matrix variable declaration.
Structure to hold a Cholesky factor variable declaration.
Structure to hold a column vector variable declaration.
Structure to hold a correlation matrix variable declaration.
An integer variable declaration and optional definition.
Structure to hold the declaration of an ordered vector.
The nil structure used as a placeholder for undefined or empty values in several structures.
Definition: nil.hpp:11
Visitor to return the definition in a variable declaration.

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