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

Home » Public Forums » archive » Arrays with complex index ?
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 complex index ? [message #18128] Sat, 04 December 1999 00:00 Go to previous message
Henrik E. Nilsen is currently offline  Henrik E. Nilsen
Messages: 3
Registered: November 1999
Junior Member
Hello all,

Annyone know if there's a way to reference a floating point array using a
complex number?

what I would like to do is something like:

cnum=complex(5,5) & cnum2=complex(2,3) & fnum=10.7
arr=fltarr(cnum)
arr[cnum2]=fnum

and not:

arr=fltarr(5,5)
arr[float(cnum),imaginary(cnum)]=fnum

I suspect that this is not possible. Does anyone know how time
consumining the 'float' and 'imaginary' commands are? (I'm using these
statments at the core of a loop structure, and so any savings in time are
important)

Thanks.
- Henrik

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Henrik E. Nilsen Chairman, The Maidanak Foundation
Graduate student, astrophysics http://www.maidanak.org
University of Bergen, Norway Welhavens gate 61
E-mail: Henrik.Nilsen@fi.uib.no N-5006 Bergen, Norway
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: IDL 5.3 here
Next Topic: contour in polar coordinates

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

Current Time: Fri Oct 10 09:53:51 PDT 2025

Total time taken to generate the page: 0.71528 seconds