matperm#

matperm(first, second, first_indices, second_indices, correlations)#

Reorder and sign-correct rows of first into second row order.

first_indices and second_indices are 1-based row numbers, and the returned permutation uses the same convention. A partial match returns one row per pair. EEGLAB pads the shorter matrix with zero rows and requires one index for every row of second.

Parameters:
  • first (Any)

  • second (Any)

  • first_indices (Any)

  • second_indices (Any)

  • correlations (Any)

Return type:

tuple[ndarray, ndarray]