-
Notifications
You must be signed in to change notification settings - Fork 358
L_pw
Joris Gillis edited this page Apr 4, 2023
·
2 revisions
Precision variant for 2 norm: (x,y) -> sqrt(x^2+y^2)
::
hypot(float x, float y) -> float hypot(DM x, DM y) -> DM hypot(SX x, SX y) -> SX hypot(MX x, MX y) -> MX
Extra doc: https://github.com/casadi/casadi/wiki/L_pw
Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/generic_expression.hpp#L742
Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/generic_expression.hpp#L742-L744
To edit, see writing tips.