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

Home » Public Forums » archive » Re: Optimising A = B+C?
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
Re: Optimising A = B+C? [message #6253] Fri, 31 May 1996 00:00
chase is currently offline  chase
Messages: 62
Registered: May 1993
Member
>>>> > "Karl" == Karl Glazebrook <kgb@aaoepp.aao.gov.au> writes:
In article <4oll84$318@pa.jach.hawaii.edu> kgb@aaoepp.aao.gov.au (Karl Glazebrook) writes:


Karl> Does anyone know how IDL optimises A=B+C where
Karl> A,B and C are arrays?

Karl> I did a test a while ago and it was several times faster
Karl> than C code along the lines of:

Karl> i=n;
Karl> while (i--)
Karl> *a-- = *b-- + *c--

Karl> (This was on a 2048x2048 array and everything fiited into
Karl> physical memory.)


Karl> Is it just that it is done in assembler or something?

Karl> just curious...

I don't really know. But RSI may using a vector library for the
particular machine architecture. For example, HP 7000 workstations
(PA RISC architecture) come with a vector library optimized for
performance on that machine. RSI may have used this or built an
optimized version of their own. This type of library covers linear
vector operations like those in the BLAS (Basic Linear Algebra
Subprograms) collection.

Chris
--
===============================
Bldg 24-E188
The Applied Physics Laboratory
The Johns Hopkins University
Laurel, MD 20723-6099
(301)953-6000 x8529
chris.chase@jhuapl.edu
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL routine to unpack 16 or 32 bit BCD?
Next Topic: label orientation in widgets

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

Current Time: Wed Oct 08 17:38:33 PDT 2025

Total time taken to generate the page: 0.00549 seconds