Sorts a triplet list by index values. Implementation is based on bucket sort. This is why it needs the number of matrix columns. Bubble sort is used within a bucket.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(TripletList_r), | intent(in) | :: | input_list | List to be sorted. |
||
integer, | intent(in) | :: | matrix_columns | This is the highest column value in the list. |
||
integer, | intent(in) | :: | matrix_rows | This is the highest row value in the list. |
||
type(TripletList_r), | intent(out) | :: | sorted_list | A now sorted version of the list. This routine will allocate it. |
||
logical, | intent(in), | optional | :: | bubble_in | False if you do not need the final bubble sort. |
Sorts a triplet list by index values. Implementation is based on bucket sort. This is why it needs the number of matrix columns. Bubble sort is used within a bucket.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(TripletList_c), | intent(in) | :: | input_list | List to be sorted. |
||
integer, | intent(in) | :: | matrix_columns | This is the highest column value in the list. |
||
integer, | intent(in) | :: | matrix_rows | This is the highest row value in the list. |
||
type(TripletList_c), | intent(out) | :: | sorted_list | A now sorted version of the list. This routine will allocate it. |
||
logical, | intent(in), | optional | :: | bubble_in | False if you do not need the final bubble sort. |