I have a certain numpy array of integers and I want to make an array of arrays that contains all combinations of numbers below it. As an example, [2,3] would yield
[[1,1],[2,1],[1,2],[2,2],[1,3],[3,3]]
because that would be all the combinations of arrays with numbers less than or equal to [2,3].