I have this 64x64 2D array
the data for this array can be downloaded here - http://m.uploadedit.com/ba3s/1494223164755.txt
Now, I wish to make a copy of this array in which the areas that have the highest value receive the value of the areas with the lowest value and vice-versa. Is there a smart way of doing it in Python?
a.max() - aora.max() - a + a.min()if you don't care or do for the range of values in output?a.max()+a.min()-ais better thana.max()-a+a.min()because it avoids creating unnecessary temp arrays.