You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, with the latest update you cannot index structures directly for parameters, but instead have to use getp and setp. I understand that it make sense to split this into several steps for performance reasons, but stuff like:
getp(prob, k)(prob)
is both messy and confusing to the user. Furthermore, the performance cost (at least for small problems) is incredibly reliable.
Also, e.g. getp(oprob, p)really sounds like something that gets you the value of p in prob. Would it make sense to rename the current ones to something like:
So, with the latest update you cannot index structures directly for parameters, but instead have to use
getp
andsetp
. I understand that it make sense to split this into several steps for performance reasons, but stuff like:is both messy and confusing to the user. Furthermore, the performance cost (at least for small problems) is incredibly reliable.
Also, e.g.
getp(oprob, p)
really sounds like something that gets you the value ofp
inprob
. Would it make sense to rename the current ones to something like:and then one can do
Next, we could have
getp
andsetp!
which simply does what you want:something like this feels like a much more intuitive interface.
An alternative is the version where we permit indexing of
prob.ps
directly, so yo can doThe text was updated successfully, but these errors were encountered: