parameters: (a, b, arrayIn)
return_statement: return arrayOut
docstring: Swaps two columns in a matrix.
docstring_summary: Swaps two columns in a matrix.
docstring_tokens: Swaps two columns in a matrix .
function: def swap_columns(a, b, arrayIn):
      """
      Swaps two columns in a matrix.
      """
      arrayOut = arrayIn.copy()
      arrayOut[:, a] = arrayIn[:, b]
      arrayOut[:, b] = arrayIn[:, a]
      return arrayOut
function_tokens: def swap_columns ( a , b , arrayIn ) : arrayOut = arrayIn . copy ( ) arrayOut [ : , a ] = arrayIn [ : , b ] arrayOut [ : , b ] = arrayIn [ : , a ] return arrayOut