-
Notifications
You must be signed in to change notification settings - Fork 391
L_195
Joris Gillis edited this page Apr 4, 2023
·
2 revisions
Heaviside function.
::
heaviside(DM x) -> DM heaviside(SX x) -> SX
[ \begin {cases} H(x) = 0 & x<0 \ H(x) = 1/2 & x=0 \ H(x) = 1 & x>0 \ \end {cases} ]
Extra doc: https://github.com/casadi/casadi/wiki/L_195
Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/matrix_decl.hpp#L668
Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/matrix_decl.hpp#L668-L670
To edit, see writing tips.