Stan  2.14.0
probability, sampling & optimization
variable.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_NODE_VARIABLE_HPP
2 #define STAN_LANG_AST_NODE_VARIABLE_HPP
3 
5 #include <cstddef>
6 #include <string>
7 
8 namespace stan {
9  namespace lang {
10 
14  struct variable {
18  std::string name_;
19 
24 
28  variable();
29 
35  variable(const std::string& name); // NOLINT(runtime/explicit)
36 
44  void set_type(const base_expr_type& base_type, std::size_t num_dims);
45  };
46 
47  }
48 }
49 #endif
std::string name_
Name of variable.
Definition: variable.hpp:18
Probability, optimization and sampling library.
int base_expr_type
The type of a base expression.
Structure of the type of an expression, which consists of a base type and a number of dimensions...
Definition: expr_type.hpp:14
expr_type type_
Type of variable.
Definition: variable.hpp:23
Structure to hold a variable.
Definition: variable.hpp:14
void set_type(const base_expr_type &base_type, std::size_t num_dims)
Set the type of the variable to the expression type with the specified base type and number of dimens...
variable()
Construct a default variable.

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