Closed Giulero closed 2 months ago
Thanks @GiulioRomualdi!
Cc @traversaro, @S-Dafarra I had to revert #84, the MX support needs more development.
Also, MX and SX cannot be converted to each other.
I think that the conversion from MX to SX should be possible with expand
🤔
I did some tests using
casadi.MX
, and I figured out that that MX is not really elastic. For example, a "numeric MX" (an MX filled with numbers) cannot be converted to a DM, while a "numeric SX" can. Also, MX and SX cannot be converted to each other.On the other hand, passing through a
casadi.Function
allows the user to choose the type of the input and have the output of the same type, i.e.For this reason (and also because I've not implemented sufficient tests) I want to revert #84, for now, and just do the computation with
casadi.SX
and exploit thecasadi.Function
.