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

Home » Public Forums » archive » Re: axes on an image(FAQ?)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
How to calculate z=f(x,y) with loops [message #3151 is a reply to message #3054] Wed, 09 November 1994 00:31 Go to previous message
buteau is currently offline  buteau
Messages: 9
Registered: September 1992
Junior Member
I need to calculate the value of z=f(x,y) .
Z is a 2D array (fltarr(n,n)).
X and Y are the X and Y indices of this array.

I'd like to calculate :

for y=0,n-1 do begin
for x=0,n-1 do begin
z(x,y)=...a function of X and Y (the function can be
of any kind)
endfor
endfor



But I'would like to do it without (or with only one ) for loops
for performance consideration.


Has somebody an idea ??
[Message index]
 
Read Message
Read Message
Previous Topic: Re: IDL on an Intel Solaris 2.x box
Next Topic: Surface fit or 3d interpolation

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

Current Time: Sun Oct 12 06:41:40 PDT 2025

Total time taken to generate the page: 0.88008 seconds