Stan  2.14.0
probability, sampling & optimization
index_op_sliced_def.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_NODE_INDEX_OP_SLICED_DEF_HPP
2 #define STAN_LANG_AST_NODE_INDEX_OP_SLICED_DEF_HPP
3 
4 #include <stan/lang/ast.hpp>
5 #include <vector>
6 
7 namespace stan {
8  namespace lang {
9 
11 
13  const std::vector<idx>& idxs)
14  : expr_(expr), idxs_(idxs), type_(indexed_type(expr_, idxs_)) { }
15 
18  }
19 
20  }
21 }
22 #endif
Probability, optimization and sampling library.
index_op_sliced()
Construct a default indexed expression (all nil).
expr_type indexed_type(const expression &e, const std::vector< idx > &idxs)
Return the type of the expression indexed by the generalized index sequence.
expr_type type_
Type of result.
std::vector< idx > idxs_
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.