Skip to content
Joris Gillis edited this page Apr 4, 2023 · 2 revisions

Standard documentation for heaviside:

 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

Extra documentation

To edit, see writing tips.

Clone this wiki locally