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

Parameters
  • condition: logical value

  • truepart: value if condition is true

  • falsepart: value if condition is false

Return Value
  • fun: if condition is true truepart, else falsepart