Stan  2.14.0
probability, sampling & optimization
conditional_op.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_AST_NODE_CONDITIONAL_OP_HPP
2 #define STAN_LANG_AST_NODE_CONDITIONAL_OP_HPP
3 
7 
8 namespace stan {
9  namespace lang {
10 
14  struct conditional_op {
19 
24 
29 
34 
40  bool has_var_;
41 
46 
51 
60  conditional_op(const expression& cond,
61  const expression& true_val,
62  const expression& false_val);
63  };
64 
65  }
66 }
67 #endif
Probability, optimization and sampling library.
conditional_op()
Construct a default conditional operator expression.
bool has_var_
True if the conditional operator contains a variable that is declared as a parameter, transformed parameter, or local variable.
Structure of the type of an expression, which consists of a base type and a number of dimensions...
Definition: expr_type.hpp:14
expression cond_
Condition (integer).
expression true_val_
Return value if condition is true.
var_origin var_origin_
Origin of this conditional operator expression.
int var_origin
The type of a variable indicating where a variable was declared.
Definition: var_origin.hpp:12
Structure for the conditional operator.
expression false_val_
Return value if condition is false.
expr_type type_
Type of result.

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