1 #ifndef STAN_LANG_ASST_NODE_VAR_DECL_HPP 2 #define STAN_LANG_ASST_NODE_VAR_DECL_HPP 20 #include <boost/variant/recursive_variant.hpp> 34 typedef boost::variant<boost::recursive_wrapper<nil>,
35 boost::recursive_wrapper<int_var_decl>,
36 boost::recursive_wrapper<double_var_decl>,
37 boost::recursive_wrapper<vector_var_decl>,
38 boost::recursive_wrapper<row_vector_var_decl>,
39 boost::recursive_wrapper<matrix_var_decl>,
40 boost::recursive_wrapper<simplex_var_decl>,
41 boost::recursive_wrapper<unit_vector_var_decl>,
42 boost::recursive_wrapper<ordered_var_decl>,
43 boost::recursive_wrapper<positive_ordered_var_decl>,
44 boost::recursive_wrapper<cholesky_factor_var_decl>,
45 boost::recursive_wrapper<cholesky_corr_var_decl>,
46 boost::recursive_wrapper<cov_matrix_var_decl>,
47 boost::recursive_wrapper<corr_matrix_var_decl> >
181 std::string
name()
const;
195 std::vector<expression>
dims()
const;
An integer variable declaration and optional definition.
Structure to hold the declaration of a positive ordered vector.
Structure to hold a row vector variable declaration.
bool has_def() const
Return true if this declaration also contains a definition.
Probability, optimization and sampling library.
Structure to hold a covariance matrix variable declaration.
var_decl()
Construct a default variable declaration.
Structure to hold the declaration of a simplex.
Structure to hold a Cholesky factor for a correlation matrix variable declaration.
boost::variant< boost::recursive_wrapper< nil >, boost::recursive_wrapper< int_var_decl >, boost::recursive_wrapper< double_var_decl >, boost::recursive_wrapper< vector_var_decl >, boost::recursive_wrapper< row_vector_var_decl >, boost::recursive_wrapper< matrix_var_decl >, boost::recursive_wrapper< simplex_var_decl >, boost::recursive_wrapper< unit_vector_var_decl >, boost::recursive_wrapper< ordered_var_decl >, boost::recursive_wrapper< positive_ordered_var_decl >, boost::recursive_wrapper< cholesky_factor_var_decl >, boost::recursive_wrapper< cholesky_corr_var_decl >, boost::recursive_wrapper< cov_matrix_var_decl >, boost::recursive_wrapper< corr_matrix_var_decl > > var_decl_t
The variant type for a variable declaration.
var_decl_t decl_
The variable declaration variant type.
base_var_decl base_decl() const
Return the base declaration.
Structure to hold the declaration of a unit vector.
std::string name() const
Return the declaration's variable name.
Structure to hold a matrix variable declaration.
Structure to hold a Cholesky factor variable declaration.
expression def() const
Return the definition included in this declaration.
Structure to hold a column vector variable declaration.
The variant structure to hold a variable declaration.
Structure to hold a correlation matrix variable declaration.
AST base class for variable declarations, which share most of their structure.
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.
std::vector< expression > dims() const
Return the sequence of array dimension sizes.