-
Notifications
You must be signed in to change notification settings - Fork 364
L_23p
Joris Gillis edited this page Apr 4, 2023
·
2 revisions
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
To edit, see writing tips.