AnsweredAssumed Answered

vrf Array separation

Question asked by rsb on Sep 6, 2002
"Marc Engle <MEngle@rfmd.com> wrote:
> Greetings,
>     Anybody know a quick way to separate one array into two arrays (Even
> elements in one, Odd elements to another) short of using a loop to do the
> work.  I'm trying to squeeze as much time out of my routine as possible and
> that seems to be where the time is being taken...in the loop.  Any help would
> be appreciated.  Thanks, all.
>
> Regards,
> Marc Engle

assuming you know the type of the array and that it divides evenly (has
even number of elements) then the std TO STRING > FROM STRING path should
do the trick.

In this case take your 1D array and write a string

then use the FROM STRING to read this string as a 2D array.

Then your two columns are the even and odd elements. Example attached.

regards

Stan



---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@it.lists.it.agilent.com". 
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".

Outcomes