Is there a (N-D) contiguous data structure for non-trivial structs?
I need a data strucuture that is a 2-dimensional array of (inline) lists of pairs. That is, if
My take on solving this was to use a
However, I get the following error:
I figure that Tensors can only hold trivial data types. If so, is there a good general data structure for multi-dimensional data? I was thinking of putting
subdata = data[i][j], then subdata is a dynamic data structure that contains tuples of size 2.My take on solving this was to use a
Tensor for the 2-D data structure, an InlinedFixedVector for the flexible part, and a StaticTuple for the pair.However, I get the following error:
I figure that Tensors can only hold trivial data types. If so, is there a good general data structure for multi-dimensional data? I was thinking of putting
InlineList into a self-made 2D represntation of List, but InlineList does not implement CollectionElement (as of yet?).