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

Home » Public Forums » archive » How to add each member of a pointarray to each member of another pointarray with arrayoperations?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
How to add each member of a pointarray to each member of another pointarray with arrayoperations? [message #42357] Fri, 28 January 2005 03:38
Bismarck is currently offline  Bismarck
Messages: 3
Registered: January 2005
Junior Member
Hi (again),

same day, another question.

I have two arrays with arbitrary sizes:
a=[[1,0],[0,1]]
b=[[5,5],[2,7],[5,3],[3,4]]

I want an array where each member of b is added to each member of a.
so c=make_a_wonder(a,b) should deliver
c=[[5+1,5+0],[5+0,5+1],[2+1,7+0],[2+0,7+1],[5+1,3+0],[5+0,3+ 1],
[3+1,4+0],[3+0,3+1]]
I hope anyone understands my idea.
So THX for any solutions and ideas.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How to extract a datarange from a multidimensional array?
Next Topic: Re: Desperately seeking AVI source code

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

Current Time: Fri Oct 10 16:46:25 PDT 2025

Total time taken to generate the page: 0.32486 seconds