The function does not seem to return anything. Maybe change docstring to say that it changes the matrix in place.