Stan  2.14.0
probability, sampling & optimization
variable_dims.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_NODE_VARIABLE_DIMS_HPP
2 #define STAN_LANG_AST_NODE_VARIABLE_DIMS_HPP
3 
4 #include <string>
5 #include <vector>
6 
7 namespace stan {
8  namespace lang {
9 
10  struct expression;
11 
16  struct variable_dims {
20  std::string name_;
21 
25  std::vector<expression> dims_;
26 
30  variable_dims();
31 
38  variable_dims(const std::string& name,
39  const std::vector<expression>& dims);
40  };
41 
42  }
43 }
44 #endif
Structure for holding a variable with its dimension declarations.
Probability, optimization and sampling library.
std::vector< expression > dims_
Sequence of expressions for dimensions.
std::string name_
Name of the variable.
variable_dims()
Construct a default object.

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