1 #ifndef STAN_LANG_AST_FUN_IS_MULTI_INDEX_DEF_HPP 2 #define STAN_LANG_AST_FUN_IS_MULTI_INDEX_DEF_HPP 5 #include <boost/variant/apply_visitor.hpp> 12 return boost::apply_visitor(v, idx.
idx_);
Probability, optimization and sampling library.
bool is_multi_index(const idx &idx)
Return true if the specified index potentially takes more than one value.
Visitor for callback to determine if an index is a multiple index or a single index.
AST variant structure for indexes, holding any of a unary, multi, omni, lower-bound, upper-bound, or lower- and upper-bound index.
idx_t idx_
The index variant object.