for j in range(0,s):
if(allow_diagonal or i!=j):
if(opr(matrix[i,j],const_value)):
if i not in dictionary:
dictionary[i] = list()
dictionary[i].append(j)
return dictionary
def extract_matrix(mat, a, b):
After Change
dictionary = dict()
for i in range(0,s):
line = matrix[i,:]
if not allow_diagonal:
np.delete(line,i)
w = np.where(opr(line,const_value))
dictionary[i] = list(w[0])
return dictionary
def extract_matrix(mat, a, b):
Subtract the matrix corresponding to two