I want to make automated measurements varying several parameters.
There is a table with variable row/column-number containing parameter values, e.g.:
a1 b1 c1
a2 b2 c2
a3 b3 c3
Is there an easy was for generating list of Arrays containing all combinations in column direction like that:
a1 a2 a3
b1 a2 a3
c1 a2 a3
a1 b2 a3
b1 b2 a3
...
c1 c2 c3
3x3 Table should result in 27 combinations (3!).
The algorthm should be if possible in C/C++, STL/Qt would be also great.
Thank you for any hint!
P.S.:
It looks easy, but I have sat on this problem since 2 hours already! :-(
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…