Good morning everyone,
I would like to be able to make the diagonal of a matrix equal to 0 with some type of command, does anyone know how? Is there any numpy that can do it? for example SO:
[,0] [,1] [,2] [,3] [,4]
[0,] 0 0 1 1 0
[1,] 1 0 1 1 0
[2,] 0 1 0 1 1
[3,] 1 1 1 0 1
[4,] 0 0 0 0 0
The diagonal is composed of 0
Thank you very much.