ArrayD example for 7 or higher dimension
I created an 8 dimension ArrayD.
I can not find how to index the ArrayD for 8 dim.
Compiler raises
the trait NdIndex<Dim<IxDynImpl>> is not implemented for [usize; 8] error when addressing
array[[i, j, k, l, m, n, o, p]].
When tuple form is tried,
the trait NdIndex<Dim<IxDynImpl>> is not implemented for (usize, usize, usize, usize, usize, usize, usize, usize) error is raised.
See the docs for the Index implementation, which indicate that the index needs to implement NdIndex<D>. The NdIndex<D> provide a list of the implementations. The relevant ones for your case are:
impl<'a> NdIndex<Dim<IxDynImpl>> for &'a [Ix]impl<'a> NdIndex<Dim<IxDynImpl>> for &'a IxDynimpl<D> NdIndex<D> for D where D: Dimension
For example, you could use array[&[i, j, k, l, m, n, o, p][..]].
It looks like #980 will implement for [usize; T] using const generics, so in 0.16.x you should be able to use array[[i, j, k, l, m, n, o, p]], and the compiler error you got should go away :)