Skip to content
Joris Gillis edited this page Sep 16, 2022 · 2 revisions

Standard documentation for constpow,erfinv,simplify,is_equal,if_else:

 CasADi additions.

 constpow(float x, float y) -> float
 constpow(DM x, DM y) -> DM
 constpow(SX x, SX y) -> SX
 constpow(MX x, MX y) -> MX

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

Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/calculus.hpp#L266

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/calculus.hpp#L266-L266

 throw ()

 erfinv(float x) -> float
 erfinv(DM x) -> DM
 erfinv(SX x) -> SX
 erfinv(MX x) -> MX

CasADi additions.

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

Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/calculus.hpp#L294

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/calculus.hpp#L294-L321

 CasADi additions.

 simplify(float x) -> float
 simplify(DM x) -> DM
 simplify(SX x) -> SX
 simplify(MX x) -> MX

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

Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/calculus.hpp#L265

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/calculus.hpp#L265-L265

 CasADi additions.

 is_equal(float x, float y, int depth) -> bool
 is_equal(DM x, DM y, int depth) -> bool
 is_equal(SX x, SX y, int depth) -> bool
 is_equal(MX x, MX y, int depth) -> bool

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

Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/calculus.hpp#L275

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/calculus.hpp#L275-L275

 CasADi additions.

 if_else(DM cond, DM if_true, DM if_false, bool short_circuit) -> DM
 if_else(SX cond, SX if_true, SX if_false, bool short_circuit) -> SX
 if_else(MX cond, MX if_true, MX if_false, bool short_circuit) -> MX

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

Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/calculus.hpp#L290

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/calculus.hpp#L290-L290

Extra documentation

To edit, see writing tips.

Clone this wiki locally