[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

*Subject*: Question (Re: Dimensional Juggling Tutorial)*From*: Marc Schellens <m_schellens(at)hotmail.com>*Date*: Thu, 05 Apr 2001 14:04:36 +0900*Newsgroups*: comp.lang.idl-pvwave*Organization*: RIKEN*References*: <3AC7B345.1648F0A9@astro.cornell.edu>*Xref*: news.doit.wisc.edu comp.lang.idl-pvwave:24368

I have a simple question, more or less related to the rebin stuff: Assume the following routine, which shoud calculate the pairwise distance of two array of 3-dim vectors: array=indgen(3,21) a=array[*,0:5] b=array[*,6:*] nA=n_elements(a)/3 nB=n_elements(b)/3 distArr2=fltarr(nA,nB) for i1=0,nT1-1 do begin distArr2[i1,*]=sqrt(total((b-rebin(a[*,i1],3,nA))^2,1)) endfor so far so good, the routine does the job, but is there a possibility to eliminate the for loop completely? Greetings, :-) marc

**References**:**Dimensional Juggling Tutorial***From:*JD Smith

- Prev by Date:
**Re: Google Stiffling Free Flow of Jokes** - Next by Date:
**Re: Object epiphany: A new way of building widget applications** - Prev by thread:
**Re: Dimensional Juggling Tutorial** - Next by thread:
**Key for IDL 5.4 for windows** - Index(es):