Yes, that could be a good option, although it might just be overkill to overload indexing to access the four fields this type happens to have.
On Tuesday, May 10, 2016 at 3:20:39 PM UTC+1, Eric Forgy wrote: > > Maybe you could override getindex so that A[1,1] is the interior nxn > matrix, A[1,2] and A[2,1] are the bounding vectors and A[2,2] is the scalar?