title: Is there a way to swap columns in O(1) in Julia?
body: <p>I picked up Julia to do some numerical analysis stuff and was trying to implement a full pivot LU decomposition (as in, trying to get an LU decomposition that is as stable as possible). I thought that the best way of doing so was finding the maximum value for each column and then resorting the columns in descending order of their maximum values.</p>
  
  <p>Is there a way of avoiding swapping every element of two columns and instead doing something like changing two references/pointers?</p>