Hello all,
This is my first time here and I am working on issue #28823. I found a 
mistake in the implementation of _flatten function in array_expressions.py 
and I believe that I have fixed it. I just wanted to confirm my 
understanding of what the _flatten function was intended to do, before 
submitting a PR.

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

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/sympy/5508c5d7-2877-46b6-91c8-49f64063f1d1n%40googlegroups.com.

Reply via email to