1 #ifndef STAN_LANG_AST_NODE_VAR_DECL_DEF_HPP 2 #define STAN_LANG_AST_NODE_VAR_DECL_DEF_HPP 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.
Variable declaration visitor functor for determining if a variable declaration includes 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.
Structure for visitor to extract the dimension sizes in a variable declaration variant type...
A visitor for the variant type of variable declarations that returns the name of the variable...
Visitor to extract base variable declaration from the variant types of 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.
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.
Visitor to return the definition in a variable declaration.