Joel Andersson

Results 189 comments of Joel Andersson

Not sure when, but this appears to have been fixed: ``` --------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) Cell In[4], line 4 2 y = cs.MX.sym('y') 3 f = cs.Function('f',...

Not sure why this wasn't closed earlier

Sorry for the late answer. If I recall correctly, the `int` data type was originally chosen for efficiency reasons after some experimenting about what ran faster in practice. I think...

I can confirm that `spsolve` behaves strangely in the example above. If I use the simpler seeding, ```c++ // First bit: Seed second to last entry in rhs Y[12] |=...

I pushed a fix to the issue_3489 branch. Can be merged with main if it passes all tests

The example above now gets the following output: ``` Function order flag, nnz number: True 70 0 1 2 3 4 0 -2.335806e+00 -8.663698e-19 7.243621e-01 2.382517e-18 6.262216e+00 1 -2.599111e-18 -2.335806e+00...

Why 6? I would expect 0-by-0, just like in MATLAB

```matlab octave:2> [] + 6 ans = [](0x0) ```

The linear solvers might not handle non-square systems well. For overdetermined systems, you should be able to solve the normal equations. For underdetermined systems, maybe use QR: ```python import casadi...

It looks like a 3-by-2 matrix where each element is sum of three different symbolic expressions. The "@..."etc variables define shared subexpressions, i.e. expressions that appear more than once in...