I have a 12x12 matrix with diagonal values ββthat vary from zero to zero, I wonder if there is an algorithm to replace all the rows in the matrix to make sure there is no non-zero value. My matrix C must not have a nonzero value in C (i, i). Thoughts?
Example: I have a 5x5 matrix
3 4 5 0 6
1 0 4 3 0
0 5 1 0 3
0 1 0 2 0
2 0 5 0 0
How to make sure that there are no nonzero diagonal elements?
source
share