Template Function ADS::integerPartitions

Function Documentation

template<class F>
long ADS::integerPartitions(int n, F &&visit)

the partitions of n, nonincreasing parts, reverse lexicographic

Pre:

n >= 0