Numpy Get diagonale Matrix aus der Matrix

np.diag(np.diag(x))
Clumsy Capuchin