get_combinations Subroutine

public subroutine get_combinations(n, k, combinations)

returns the list of combinations k out of 1..n in lexicographical order

Arguments

Type IntentOptional Attributes Name
integer :: n
integer :: k
integer, allocatable :: combinations(:,:)