Joel Andersson

Results 189 comments of Joel Andersson

Fixed in dab27fe46c0b56b7ac720a2aa12b9b50398c2e85.

Todo: add back `swig_this` to test suite. Cf. 8fc108f4efa58143a21426683875dd6e06f2506e.

Might be related to the SWIG version. There was a recent fix (https://github.com/casadi/casadi/pull/3540) to get CasADi to work with SWIG 4.2.1. You might want to build the `main` branch or...

> @jaeandersson, my build [two comments up](https://github.com/casadi/casadi/issues/3712#issuecomment-2147899710) does build from the main branch, and still shows the issue, right? Did you try a older SWIG build? I think that the...

MX::difference doesn't use the right pattern. Should be a static function and an inline friend function pair, like the other functions in the class

The sparsity pattern is stored as a vector of integers where: - The first two elements are the dimensions (nrow, ncol) - The following (ncol+1) entries are the nonzero offset...

> Okay, thanks for the feedback! I'll leave this open for now since it seems like a valid feature. It would be a useful feature. It's usually hard to get...

Too be clear, the risk here is that you allocate slightly too much memory (work vector size 1 instead of 0 which is what is needed).

I'm moving towards having either 1, 2, 4, 8, 16, 32 or 64 directions for the derivative calculation. This is a reasonable tradeoff of memory use and speed. Not sure...

With parallelization, going past 64 makes even less sense.