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

Standard documentation for ramp:

 ramp function

::

 ramp(DM x) -> DM
 ramp(SX x) -> SX

[ \begin {cases} R(x) = 0 & x <= 1 \ R(x) = x & x > 1

\ \end {cases} ]

Also called: slope function

Extra doc: https://github.com/casadi/casadi/wiki/L_23p

Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/matrix_decl.hpp#L717

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/matrix_decl.hpp#L717-L719

Extra documentation

To edit, see writing tips.

Clone this wiki locally