Numpy Get Diagonal Matrix de la matrice

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