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
It's kind of weird that AbstractModel implements a Table interface but the Array interface (size, length, getindex, setindex, etc) behaves a like a vector of Params.
It would be really useful for AbstractModel to live up to its aspirations to be a real Table and allow itself to be indexed as such.
This has the potential to address #21 and #34 since it would allow for things like:
m =Model(obj)
m[.!m[:isconstant], :val] .= values
i.e. permitting both row and column indexing.
I will take a crack at it and submit a PR since this would solve a problem I am facing at the moment.
The text was updated successfully, but these errors were encountered:
It's kind of weird that
AbstractModel
implements aTable
interface but theArray
interface (size
,length
,getindex
,setindex
, etc) behaves a like a vector ofParam
s.It would be really useful for
AbstractModel
to live up to its aspirations to be a realTable
and allow itself to be indexed as such.This has the potential to address #21 and #34 since it would allow for things like:
i.e. permitting both row and column indexing.
I will take a crack at it and submit a PR since this would solve a problem I am facing at the moment.
The text was updated successfully, but these errors were encountered: