Count the number of sites belonging to each cluster in the labelled matrix.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in), | dimension(:,:) | :: | labelled_matrix | Integer matrix with labelled clusters, resulting from the Hoshen-Kopelman algorithm. |
|
integer, | intent(in) | :: | num_labels | The known number of clusters. |
Array of cluster sizes. The i'th element is the size of the cluster with label i.