Function am_piecewise

Function Documentation

mlhsInnerSubst< matlabtypesubstitute > am_piecewise(matlabtypesubstitute piece, matlabtypesubstitute condition, matlabtypesubstitute default)

am_piecewise is the amici implementation of the mathml piecewise function

  • piece: value if condition is true

  • condition: logical value

  • default: value if condition is false

Return Value
  • fun: return value, piece if condition is true, default if not