Write a function that takes an array A and reduces it to row echelon form, returning the modified array A. To do this, iterate over each row. Find the first non-zero column. Perform row operations so that (a) this first non-zero entry is set to one, and (b) all entries in this column but in rows with larger index are set to zero.
import scipy
import numpy as np
def row_ech(list1):
return scipy.linalg(np.array(list1))
Comments
Leave a comment