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

param piece:

value if condition is true

param condition:

logical value

param default:

value if condition is false

retval fun:

return value, piece if condition is true, default if not