Question: inconsistency in python. I'm trying to implement a function for gaussian elimination. This function should test if the matrix is inconsisten or consistent. We assume
inconsistency in python.
I'm trying to implement a function for gaussian elimination.
This function should test if the matrix is inconsisten or consistent.
We assume that the input is in echelon form so we don't need to worry about fowardElimination.
How can i loop through to and check that given row is all zeros ?
This is what i have so far..
def inconsistentSystem(A): """ B is assumed to be in echelon form; return True if it represents an inconsistent system, and False otherwise """ a = A.copy() m, n = np.shape(a) for r in range(m-1): for c in range(r,m): for k in range(r, n): if(a[c][k] == 0 )
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
