get_complement_combinations Subroutine

public subroutine get_complement_combinations(n, k, combinations, complement)

given a list of combinations k out of n this subroutine returns the complement combinations

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: n
integer, intent(in) :: k
integer, intent(in) :: combinations(:,:)
integer, intent(out), allocatable :: complement(:,:)