Stan  2.14.0
probability, sampling & optimization
is_multi_index_vis_def.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_FUN_IS_MULTI_INDEX_VIS_DEF_HPP
2 #define STAN_LANG_AST_FUN_IS_MULTI_INDEX_VIS_DEF_HPP
3 
4 #include <stan/lang/ast.hpp>
5 
6 namespace stan {
7  namespace lang {
8 
10 
11  bool is_multi_index_vis::operator()(const uni_idx& i) const {
12  return false;
13  }
14 
16  return true;
17  }
18 
20  return true;
21  }
22 
23  bool is_multi_index_vis::operator()(const lb_idx& i) const {
24  return true;
25  }
26 
27  bool is_multi_index_vis::operator()(const ub_idx& i) const {
28  return true;
29  }
30 
31  bool is_multi_index_vis::operator()(const lub_idx& i) const {
32  return true;
33  }
34 
35  }
36 }
37 #endif
bool operator()(const uni_idx &i) const
Return false.
AST structure to hold a single array or matrix/vector index.
Definition: uni_idx.hpp:12
Probability, optimization and sampling library.
AST structure for lower and upper bounds.
Definition: lub_idx.hpp:12
AST structure for holding an upper-bound index.
Definition: ub_idx.hpp:12
AST structure for representing all legal indexes.
Definition: omni_idx.hpp:10
is_multi_index_vis()
Construct a multi-index visitor.
AST structure for holding a lower-bound index.
Definition: lb_idx.hpp:12

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