Are ArrayDiagonal(A, (2, 6), (3, 7), (0, 5), (1, 5)) and ArrayDiagonal(ArrayDiagonal(A, (2, 6), (3, 7)), (0, 3), (1, 5)) equivalent where the first one is got after flattening of second one? where
A = ArraySymbol("A", (1, 1, 1, 1, 1, 1, 1, 1)).
My understanding is that while removing the nesting it should also remap the axes indices. Can anyone confirm it? Also are there test cases for these operations?
Thank you