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

Standard documentation for MX.attachAssert:

 [INTERNAL] 

::

 attachAssert(self, MX y, str fail_message) -> MX

returns itself, but with an assertion attached

If y does not evaluate to 1, a runtime error is raised

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

Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/mx.hpp#L851

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/mx.cpp#L699-L704

Extra documentation

To edit, see writing tips.

Clone this wiki locally