Julia Programming Language
Cleanest way to generate all combinations of n arrays
General Usage
bennedich
January 26, 2019, 3:30pm
6
N = 3 lpad.(string.(0:N^N-1;base=N),N,'0').|>s->Int.(collect(s).-48)
Not the most efficient
show post in topic
Related topics
Topic
Replies
Views
Activity
How to get all combinations from multiple input arrays?
General Usage
question
3
1589
June 7, 2023
Combinations across arrays
General Usage
question
,
package
2
530
January 4, 2021
Iterate through all combinations of elements in an arbitrary number of arrays
General Usage
first-steps
,
array
,
iterators
2
1235
September 27, 2021
Calculating all possible combinations
Performance
8
14574
July 9, 2020
All Vectors with Entries from a Given Array
New to Julia
question
7
673
July 6, 2020