1 #ifndef STAN_LANG_AST_NODE_INDEX_OP_DEF_HPP 2 #define STAN_LANG_AST_NODE_INDEX_OP_DEF_HPP 13 const std::vector<std::vector<expression> >& dimss)
expr_type type_
Type of indexed expression.
Probability, optimization and sampling library.
std::size_t total_dims(const std::vector< std::vector< expression > > &dimss)
Return the total number of dimensions when the specified vectors of expressions are concatenated...
expr_type infer_type_indexing(const base_expr_type &base_type, std::size_t dims, std::size_t num_indexes)
Return the expression type resulting from indexing an expression of the specified base type and numbe...
expression expr_
Expression being indexed.
index_op()
Construct a default indexed expression.
std::vector< std::vector< expression > > dimss_
Sequence of sequences of indexes.