Stan  2.14.0
probability, sampling & optimization
index_op.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_NODE_INDEX_OP_HPP
2 #define STAN_LANG_AST_NODE_INDEX_OP_HPP
3 
6 #include <vector>
7 
8 namespace stan {
9  namespace lang {
10 
14  struct index_op {
19 
23  std::vector<std::vector<expression> > dimss_;
24 
29 
33  index_op();
34 
42  index_op(const expression& expr,
43  const std::vector<std::vector<expression> >& dimss);
44  void infer_type();
45  };
46 
47  }
48 }
49 #endif
expr_type type_
Type of indexed expression.
Definition: index_op.hpp:28
Probability, optimization and sampling library.
Structure for an indexed expression.
Definition: index_op.hpp:14
expression expr_
Expression being indexed.
Definition: index_op.hpp:18
Structure of the type of an expression, which consists of a base type and a number of dimensions...
Definition: expr_type.hpp:14
index_op()
Construct a default indexed expression.
std::vector< std::vector< expression > > dimss_
Sequence of sequences of indexes.
Definition: index_op.hpp:23

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