Stan  2.14.0
probability, sampling & optimization
range.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_NODE_RANGE_HPP
2 #define STAN_LANG_AST_NODE_RANGE_HPP
3 
5 
6 namespace stan {
7  namespace lang {
8 
9  struct expression;
10 
14  struct range {
20 
26 
30  range();
31 
38  range(const expression& low, const expression& high);
39 
45  bool has_low() const;
46 
52  bool has_high() const;
53  };
54 
55  }
56 }
57 #endif
expression high_
Upper bound of range with nil value if only upper bound.
Definition: range.hpp:25
bool has_low() const
Return true if the lower bound is non-nil.
Definition: range_def.hpp:14
Probability, optimization and sampling library.
bool has_high() const
Return true if the upper bound is non-nil.
Definition: range_def.hpp:18
AST structure for a range object with a low and high value.
Definition: range.hpp:14
expression low_
Lower bound of range with nil value if only upper bound.
Definition: range.hpp:19
range()
Construct a default range object.
Definition: range_def.hpp:9

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