26 integer(int64),
intent(in) :: array(:)
27 integer,
intent(in) :: sizes(:)
28 integer(int64),
intent(inout) :: merged(:)
29 integer,
optional,
intent(inout) :: index_map(:)
35 call heap%init(array, sizes)
36 call heap%merge(merged, index_map)
subroutine, public merge_sorted_arrays(array, sizes, merged, index_map)