I am trying to improve the performance of some Python code. In that code, one column of a matrix (numpy-array) has to be changed temporarily.
The given code looks as foll