Function am_if

Function Documentation

mlhsInnerSubst< matlabtypesubstitute > am_if(::sym condition, ::sym truepart, ::sym falsepart)

am_if is the amici implementation of the symbolic if function

param condition:

logical value

param truepart:

value if condition is true

param falsepart:

value if condition is false

retval fun:

if condition is true truepart, else falsepart