Stan  2.14.0
probability, sampling & optimization
array_expr.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_NODE_ARRAY_EXPR_HPP
2 #define STAN_LANG_AST_NODE_ARRAY_EXPR_HPP
3 
7 #include <vector>
8 
9 namespace stan {
10  namespace lang {
11 
12  struct expresssion;
13 
17  struct array_expr {
21  std::vector<expression> args_;
22 
27 
33  bool has_var_;
34 
39  // TODO(carpenter): rename to "array_expr_origin_"
41 
45  array_expr();
46 
53  array_expr(const std::vector<expression>& args); // NOLINT
54 
61  array_expr& operator=(const array_expr& al);
62  };
63 
64  }
65 }
66 #endif
std::vector< expression > args_
Sequence of expressions for array values.
Definition: array_expr.hpp:21
Probability, optimization and sampling library.
Structure to hold an array expression.
Definition: array_expr.hpp:17
Structure of the type of an expression, which consists of a base type and a number of dimensions...
Definition: expr_type.hpp:14
var_origin var_origin_
Origin of this array expression.
Definition: array_expr.hpp:40
bool has_var_
True if there is a variable within any of the expressions that is a parameter, transformed parameter...
Definition: array_expr.hpp:33
int var_origin
The type of a variable indicating where a variable was declared.
Definition: var_origin.hpp:12
array_expr()
Construct a default array expression.
expr_type type_
Type of array.
Definition: array_expr.hpp:26
array_expr & operator=(const array_expr &al)
Assign specified array expression to this array expression.

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