Open eschnett opened 11 months ago
As far as I can tell, ReinterpretArray
is simply yet another wrapper, whose parent can be any of the other kind of arrays, so Array
, but also some not dense (or even not strided) SubArray
, …
The best way to support ReinterpretArray
for StridedViews.jl, would be to reimplement the behaviour so that the reinterpretation can also be captured in the StridedView
type (similar to how it can capture the conj
flag). As I have not needed this much myself, I have not really studied how difficult that would be.
I see that
StridedArray
requires aDenseArray
as target.Base.ReinterpretArray
is dense (possibly depending on how it was constructed), but it is not declared as subtype ofDenseArray
. It would be convenient ifStridedArray
supported this as well.