Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ if_else() [4/4]

var stan::math::if_else ( bool  c,
const var y_true,
double  y_false 
)
inline

If the specified condition is true, return the first variable, otherwise return a new variable constructed from the second scalar.

Parameters
cBoolean condition.
y_trueVariable to return if condition is true.
y_falseValue to promote to variable and return if condition is false.

Definition at line 46 of file if_else.hpp.