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

◆ if_else() [2/4]

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

If the specified condition is true, return the first variable, otherwise return the second variable.

Parameters
cBoolean condition.
y_trueVariable to return if condition is true.
y_falseVariable to return if condition is false.

Definition at line 18 of file if_else.hpp.