column_row_of_two

pyflct.utils.column_row_of_two(array1, array2)[source]

Takes two arrays and swaps the order in which they were stored, changing from column major to row major and not vice-versa. This may change the values stored in the array as the arrays are first converted to a binary format and then the order change takes place.

Parameters
  • array1 (numpy.ndarray) – The first array whose order is to be changed.

  • array2 (numpy.ndarray) – The second array whose order is to be changed.

Returns

tuple – It returns the two input arrays after changing their order from column major to row major.