![]() |
Stan
2.14.0
probability, sampling & optimization
|
AST structure for a range object with a low and high value. More...
#include <range.hpp>
Public Member Functions | |
range () | |
Construct a default range object. More... | |
range (const expression &low, const expression &high) | |
Construct a range object with the specified bounds. More... | |
bool | has_low () const |
Return true if the lower bound is non-nil. More... | |
bool | has_high () const |
Return true if the upper bound is non-nil. More... | |
Public Attributes | |
expression | low_ |
Lower bound of range with nil value if only upper bound. More... | |
expression | high_ |
Upper bound of range with nil value if only upper bound. More... | |
AST structure for a range object with a low and high value.
stan::lang::range::range | ( | ) |
Construct a default range object.
Definition at line 9 of file range_def.hpp.
stan::lang::range::range | ( | const expression & | low, |
const expression & | high | ||
) |
Construct a range object with the specified bounds.
low | lower bound |
high | upper bound |
Definition at line 11 of file range_def.hpp.
bool stan::lang::range::has_high | ( | ) | const |
Return true if the upper bound is non-nil.
Definition at line 18 of file range_def.hpp.
bool stan::lang::range::has_low | ( | ) | const |
Return true if the lower bound is non-nil.
Definition at line 14 of file range_def.hpp.
expression stan::lang::range::high_ |
expression stan::lang::range::low_ |