def remove_projection(X, w):
 return [remove_projection_from_vector(x_i, w) for x_i in X]

def remove_projection ( X , w ) : return [ remove_projection_from_vector ( x_i , w ) for x_i in X ]
for each row of x projects the row onto w .