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

Home » Public Forums » archive » Array multiplication: implicit loop query
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: Array multiplication: implicit loop query [message #26242 is a reply to message #26191] Mon, 13 August 2001 07:55 Go to previous messageGo to previous message
david[2] is currently offline  david[2]
Messages: 100
Registered: June 2001
Senior Member
JD Smith writes:
>
> function where_not_array,A,B,cnt,IA_IN_B=iA_in_B
>
> Na = n_elements(a)
> Nb = n_elements(b)
> l = lindgen(Na,Nb)
> AA = A(l mod Na)
> BB = B(l / Na)
>
> if keyword_set(iA_in_B) then $
> wh = where(total(AA ne BB,2) eq Nb,cnt) $
> else wh = where(total(AA ne BB,1) eq Na,cnt)
>
> return,wh
> end

It boggles the mind, that's for sure. Even
*without* Histograms. :-(

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Coyote Library Updates
Next Topic: Ask Mr. Cosmology

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

Current Time: Wed Oct 08 18:44:30 PDT 2025

Total time taken to generate the page: 0.00475 seconds