#NEWLINE# def minimize_l2( A_data , A_rows , A_cols , A_shape , b , damp = 1e-08 , logging = False ) : #NEWLINE# #INDENT# A = scipy . sparse . csr_matrix ( ( A_data , ( A_rows , A_cols ) ) , shape = A_shape ) #NEWLINE# return scipy . sparse . linalg . lsmr ( A , b , damp = damp ) [ 0 ]