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

Standard documentation for hypot:

 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

Extra documentation

To edit, see writing tips.

Clone this wiki locally