def get_all_grouped_distances(dist_matrix_header, dist_matrix, mapping_header, mapping, field, within=True, suppress_symmetry_and_hollowness_check=False):
 distances = get_grouped_distances(dist_matrix_header, dist_matrix, mapping_header, mapping, field, within, suppress_symmetry_and_hollowness_check)
 results = []
 for group in distances:
  for distance in group[2]:
   results.append(distance)
 return results

def get_all_grouped_distances ( dist_matrix_header , dist_matrix , mapping_header , mapping , field , within = True , suppress_symmetry_and_hollowness_check = False ) : distances = get_grouped_distances ( dist_matrix_header , dist_matrix , mapping_header , mapping , field , within , suppress_symmetry_and_hollowness_check ) results = [ ] for group in distances : for distance in group [ 2 ] : results . append ( distance ) return results
returns a list of distances for either samples within each of the field values or between each of the field values for the specified field .