![]() |
Stan
2.14.0
probability, sampling & optimization
|
Structure for the conditional operator. More...
#include <conditional_op.hpp>
Public Member Functions | |
| conditional_op () | |
| Construct a default conditional operator expression. More... | |
| conditional_op (const expression &cond, const expression &true_val, const expression &false_val) | |
| Construct a conditional operator expression from the specified condition and values. More... | |
Public Attributes | |
| expression | cond_ |
| Condition (integer). More... | |
| expression | true_val_ |
| Return value if condition is true. More... | |
| expression | false_val_ |
| Return value if condition is false. More... | |
| expr_type | type_ |
| Type of result. More... | |
| bool | has_var_ |
| True if the conditional operator contains a variable that is declared as a parameter, transformed parameter, or local variable. More... | |
| var_origin | var_origin_ |
| Origin of this conditional operator expression. More... | |
Structure for the conditional operator.
Definition at line 14 of file conditional_op.hpp.
| stan::lang::conditional_op::conditional_op | ( | ) |
Construct a default conditional operator expression.
Definition at line 9 of file conditional_op_def.hpp.
| stan::lang::conditional_op::conditional_op | ( | const expression & | cond, |
| const expression & | true_val, | ||
| const expression & | false_val | ||
| ) |
Construct a conditional operator expression from the specified condition and values.
| cond | condition expression |
| true_val | value to return if true |
| false_val | value to return if false |
Definition at line 11 of file conditional_op_def.hpp.
| expression stan::lang::conditional_op::cond_ |
Condition (integer).
Definition at line 18 of file conditional_op.hpp.
| expression stan::lang::conditional_op::false_val_ |
Return value if condition is false.
Definition at line 28 of file conditional_op.hpp.
| bool stan::lang::conditional_op::has_var_ |
True if the conditional operator contains a variable that is declared as a parameter, transformed parameter, or local variable.
Definition at line 40 of file conditional_op.hpp.
| expression stan::lang::conditional_op::true_val_ |
Return value if condition is true.
Definition at line 23 of file conditional_op.hpp.
| expr_type stan::lang::conditional_op::type_ |
Type of result.
Definition at line 33 of file conditional_op.hpp.
| var_origin stan::lang::conditional_op::var_origin_ |
Origin of this conditional operator expression.
Definition at line 45 of file conditional_op.hpp.