Closed blegat closed 2 months ago
The current definition doesn’t depend on the index, it just defers to the object being indexed. I think it hasn’t come up before since usually all elements in the vector have the same vexity.
This isn't incorrect so much as inexact: could be improved, but it won't give wrong answers.
We discussed this in the JuMP-dev call, the conclusion was that we should try adding a vcat
atom and specialize getindex
for the vcat
atom to try and see if the indices fit in one of the argument in the vcat
in which case we remove the vcat
atom and propagage getindex
The
vexity
of theIndexAtom
is incorrect: