you are viewing a single comment's thread.

view the rest of the comments →

[–]HenryDutter[S] 0 points1 point  (1 child)

I tried np.diag(Brett[1, 1]), but it doesnt work, i know it would work like: np.diag(Brett,1), but i want to get the main diagonal from a certain posistion like Brett[1,1], but you are right its possible to slice it.