def lower_triangle(matlist, K):
 copy_matlist = copy.deepcopy(matlist)
 (lower_triangle, upper_triangle) = LU(copy_matlist, K, reverse=1)
 return lower_triangle

def lower_triangle ( matlist , K ) : copy_matlist = copy . deepcopy ( matlist ) ( lower_triangle , upper_triangle ) = LU ( copy_matlist , K , reverse = 1 ) return lower_triangle
transforms a given matrix to a lower triangle matrix by performing row operations on it .