Home »
Public Forums »
archive »
slight fix for where_array.pro
slight fix for where_array.pro [message #2337] |
Wed, 08 June 1994 08:07 |
stl
Messages: 70 Registered: February 1994
|
Member |
|
|
Hello,
here is a slight speed (and programming style) fix to the program
where_array.pro that I posted a few days ago. (thanks dave.)
replace the line that look something like the following:
I = AA eq BB
Ia = where(i) mod Na
Ib = where(i) / na
with something like this:
I = where(AA eq BB)
Ia = i mod Na
Ib = i / na
Kinda obvious why, but it had to be pointed out to me too. (why use two
where's if one will do.)
-stephen Strebel
(gotta love being human and being able to make pretty basic mistakes
like this)
--
Stephen C Strebel / SKI TO DIE
strebel@sma.ch / and
Swiss Meteorological Institute, Zuerich / LIVE TO TELL ABOUT IT
01 256 93 85 / (and pray for snow)
|
|
|
Current Time: Fri Oct 10 15:58:44 PDT 2025
Total time taken to generate the page: 0.00699 seconds