comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » arrays with different sizes
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
arrays with different sizes [message #76167] Fri, 20 May 2011 14:31
nolan.smith1 is currently offline  nolan.smith1
Messages: 12
Registered: June 2005
Junior Member
Hello,

I am new to IDL and I have the following problem.
I have 3 different array with different sizes
arr1=[2,3,4,5,6,10]
arr2=[1,2,5,6]
arr3=[4,5,7,8,9,9,12,15]
and I am trying to create an array that will have all the different
permutations of the above array elements.
In the end I want to have an array that will look like this:
2 1 4
2 1 5
2 1 7
.......
.......
10 6 12
10 6 15

I can not figure out a way to do this, any ideas?
My arrays are much larger than those in the example so a quick
solution will be appreciated too!

Thank you!
[Message index]
 
Read Message
Previous Topic: Re: Mac Safari Question
Next Topic: Re: arrays with different sizes

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 18:01:31 PDT 2025

Total time taken to generate the page: 0.88069 seconds