Lazy_array.t have been variously called in the code la, arr, nd, ptr, xhs (generalizing from lhs, rhs).
I'm also not sure if Lazy_array is a good name. The so-called hosted array is lazy but only to delay creation till the shape is inferred. But it is also optional (for non-hosted arrays). And the type also stores information enabling a 3-way categorization: hosted, device-only, virtual -- with 3 boolean option flags. This can probably be converted to a variant option -- the optimization code that modifies them might need some refactoring though.
Lazy_array.t
have been variously called in the codela
,arr
,nd
,ptr
,xhs
(generalizing fromlhs
,rhs
). I'm also not sure ifLazy_array
is a good name. The so-called hosted array is lazy but only to delay creation till the shape is inferred. But it is also optional (for non-hosted arrays). And the type also stores information enabling a 3-way categorization: hosted, device-only, virtual -- with 3 boolean option flags. This can probably be converted to a variant option -- the optimization code that modifies them might need some refactoring though.