Suppose
A = np.array([[1,2,0,3,5,0,0],[5,6,7,0,9,5,10]])
(The actual data set in this case is a square matrix with a shifted diagonal of zero