Hi,
I want to construct, given m and q, the list of all vectors v=(a1,…,am) such that 0≤a1≤⋯≤am<q. I tried to use "CartesianProducts" but I don't known how to iterate it m-times.
Thanks.-.
![]() | 1 | initial version |
Hi,
I want to construct, given m and q, the list of all vectors v=(a1,…,am) such that 0≤a1≤⋯≤am<q. I tried to use "CartesianProducts" but I don't known how to iterate it m-times.
Thanks.-.