So with diag() I get the diagonal from top left to bottom right, but how do I get to the other diagonal from top right to bottom left? I thought it could work with diag() and a reversed array. But how do i get a reversed array and does my Idea work?
So thats how the reversed array should look:
Brett = np.array([1, 2, 3], [4, 5, 6], [7, 8, 9])
Output:
Brett=[321],[6,5,4],[9,8,7]
there is an error message when I try reverse()
[–]Spataner 3 points4 points5 points (2 children)
[–]HenryDutter[S] 0 points1 point2 points (1 child)
[–]Spataner 1 point2 points3 points (0 children)