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

Home » Public Forums » archive » Re: Avoid loop in matrix operation
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Avoid loop in matrix operation [message #49195] Fri, 07 July 2006 13:46 Go to previous message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Fri, 07 Jul 2006 16:09:07 -0300, George N. White III wrote:

> On Thu, 6 Jul 2006, JD Smith wrote:
>
>> [quoted text muted]
>
> Other matrix languages have had this for years -- how far behind can IDL
> stay without going backwards?
>
> People following this thread might want to look at Matlab's recent
> implementation of new functions to vectorize operations over heterogeneous
> arrays and structures, described in
> < http://www.mathworks.com/company/newsletters/digest/2006/mar /vector.html>

Say what you will about IDL's arrays, but they are fast, I think a
good bit faster than any comparable solution among 4G languages. I do
have to say, this "cell array" concept mentioned is really quite nice.
It's essentially syntatic sugar for PTRARR, hiding the pointer
creation and de-referencing bit, with the ability to thread over
entire such arrays at once. IDL has nothing like it.

BTW, these new MATLAB functions don't allow you to collapse over array
dimensions, just operate on all elements of an array, or all fields of
a structure. IDL can already do the former (since it can dereference
arbitrary fields of arrays of structures), but not the latter (though
with .(i) notation it wouldn't be hard to generalize). I'm not sure
if Matlab has anything like the generic array threading of APL or J.

JD
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IVolume/isosurface
Next Topic: Re: How can I display truecolor image on a map?

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

Current Time: Wed Oct 08 19:51:29 PDT 2025

Total time taken to generate the page: 0.00428 seconds