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
This was discussed in the JuliaLab meeting today. The current behavior of JuMP.DenseAxisArray is consistent with OffsetArray in the sense that similar converts it onto an Array but Array gives an error.
Making convert work would be too much as convert is called implicitly when in setindex! or when setting fields of structs.
However, @stevengj suggested that the Array constructor should be allowed to coercing the JuMP.DenseAxisArray into dropping its dimensions would be reasonable.
We might want to follow the development on OffsetArray and follow what's decided there.
The text was updated successfully, but these errors were encountered:
This was discussed in the JuliaLab meeting today. The current behavior of
JuMP.DenseAxisArray
is consistent withOffsetArray
in the sense thatsimilar
converts it onto anArray
butArray
gives an error.Making
convert
work would be too much asconvert
is called implicitly when insetindex!
or when setting fields ofstruct
s.However, @stevengj suggested that the
Array
constructor should be allowed to coercing theJuMP.DenseAxisArray
into dropping its dimensions would be reasonable.We might want to follow the development on
OffsetArray
and follow what's decided there.The text was updated successfully, but these errors were encountered: