Hello Gurus, I need to do the following and was wondering if any of you knew an efficient way to do so. I have 'n' matrices, each with different row size ('k_n') but same number of columns (3). I need to get a matrix (p) with all possible combination of the rows. Just to elaborate, I did the following by brute force; >> n1 n1 = 7 0 1 >> n2 n2 = 2 0 1 2 0 2 >> n3 n3 = 3 0 1 3 0 2 3 0 3 3 0 4 p = 7 0 1 2 0 1 3 0 1 7 0 1 2 0 1 3 0 2 7 0 1 2 0 1 3 0 3 7 0 1 2 0 1 3 0 4 7 0 1 2 0 2 3 0 1 7 0 1 2 0 2 3 0 2 7 0 1 2 0 2 3 0 3 7 0 1 2 0 2 3 0 4 I highly appreciate your help. Thank you very much.
f22 · Oct 8, 2009 10:59 PM · 4,376 views
This conversation is preserved exactly as it was on the original Sajha.com and can't accept new replies.
Start a New Discussion