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

Home » Public Forums » archive » How to apply a function to an array?
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 apply a function to an array? [message #43998] Fri, 13 May 2005 01:37 Go to previous message
W. Eremeev is currently offline  W. Eremeev
Messages: 3
Registered: February 2005
Junior Member
Suppose, I have a function with one scalar argument, returning a scalar
and an array of values.
I want to get another array with the same dimensions, containing
results of application of my function to the values in the first array.

R (www.r-project.org) has such functions (apply, lapply, sapply).
They take vectors or matrices and functions as arguments and return
arrays.

What about IDL?
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: IDLitComponent - Introspection
Next Topic: Re: problem with save

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

Current Time: Wed Oct 08 13:42:21 PDT 2025

Total time taken to generate the page: 0.00416 seconds