Stan  2.14.0
probability, sampling & optimization
index_op_sliced.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_NODE_INDEX_OP_SLICED_HPP
2 #define STAN_LANG_AST_NODE_INDEX_OP_SLICED_HPP
3 
7 #include <vector>
8 
9 namespace stan {
10  namespace lang {
11 
16  struct index_op_sliced {
21 
25  std::vector<idx> idxs_;
26 
31 
36 
44  index_op_sliced(const expression& expr,
45  const std::vector<idx>& idxs);
46 
51  void infer_type();
52  };
53 
54  }
55 }
56 #endif
Probability, optimization and sampling library.
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_sliced()
Construct a default indexed expression (all nil).
expr_type type_
Type of result.
std::vector< idx > idxs_
Sequence of indexes.
AST structure for holding an expression with a sequence of indexes.
void infer_type()
Infer the type of the result.
expression expr_
Expression being indexed.

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