
1 Jun
2009
1 Jun
'09
8:09 a.m.
Perhaps, but multi_array & multi_array_ref do contain the notion of a view. They're used to generate slices through the array, but I think it would be ok to construct a slice which is the whole array, and that would be your view I believe.
That might work actually... Well, at one condition: that the view doesn't hold any reference to the multi_array_ref. Let's put it differently, the view needs to be valid even after the destruction of the multi_array_ref. I'm going to give it a try but please feel free to comment on this as I might be missing something...