prodigy.util.order

default_monomial_iterator(n)[source]

Generates all n-tuples of the natural numbers, i.e. iterates over all possible pairs of natural numbers in n dimensions. :type n: int :param n: Length of tuple

Return type:

Iterator[List[int]]

Returns:

Iterator of all possible pairs of natural numbers in n dimensions