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

◆ if_else() [3/4]

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

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

Parameters
cBoolean condition.
y_trueValue to promote to variable and return if condition is true.
y_falseVariable to return if condition is false.

Definition at line 30 of file if_else.hpp.