Stan  2.14.0
probability, sampling & optimization
base_var_decl_def.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_NODE_BASE_VAR_DECL_DEF_HPP
2 #define STAN_LANG_AST_NODE_BASE_VAR_DECL_DEF_HPP
3 
4 #include <stan/lang/ast.hpp>
5 #include <string>
6 #include <vector>
7 
8 namespace stan {
9  namespace lang {
10 
12 
14  : base_type_(base_type) { }
15 
16  base_var_decl::base_var_decl(const std::string& name,
17  const std::vector<expression>& dims,
18  const base_expr_type& base_type)
19  : name_(name), dims_(dims), base_type_(base_type) { }
20 
21  base_var_decl::base_var_decl(const std::string& name,
22  const std::vector<expression>& dims,
23  const base_expr_type& base_type,
24  const expression& def)
25  : name_(name), dims_(dims), base_type_(base_type), def_(def) { }
26 
27  }
28 }
29 #endif
std::vector< expression > dims_
Dimension sizes for variable.
Probability, optimization and sampling library.
int base_expr_type
The type of a base expression.
base_var_decl()
Construct a default base variable declaration.
std::string name_
Name of the variable.
base_expr_type base_type_
Base type for variable.
expression def_
Definition for variable (nil if undefined).

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