I have a 145×145 distance matrix where: (1,1)=0 (2,2)=0 … Can I replace just the diagonal with infinity values? There are other zeros in the matrix, but I may or may not want to keep those. Is there a process that could replace this diagonal of all zeros with a diagonal of all infinities?
thanx
Best Answer