eigenstrapping.utils.parcellate_distmat

eigenstrapping.utils.parcellate_distmat(D, parc)[source]

Parcellate a dense distance matrix

Parameters:
  • D (np.ndarray of shape (N, N)) – Distance matrix of surface

  • parc (np.ndarray of int of shape (N,)) – Vector of labels (ints) for each vertex on surface with num_parcels number of labels

Returns:

D – Parcellated distance matrix

Return type:

ndarray of shape (num_parcels, num_parcels)