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