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

Re: Gridding options



Craig Markwardt wrote:
> 
> tclement@ucsd.edu (Todd Clements) writes:
> > craigmnet@cow.physics.wisc.edu wrote:
> >
> > >Hmm, surprisingly I found that my version was about 4 times faster on
> > >two different architectures.
> >
> > And eventually, so did I once I revised my testing code. My mistake
> > entirely... I got running times of 2.537 vs. 0.5115 for a 1024x1024 array.
> >
> > { alpha OSF unix 5.3 Nov 11 1999}
> 
> The triumph of the FOR loops, then!  Sometimes even ancient scripture
> can be misinterpretted.
> 
> Craig

The rampant literalism in this newsgroup is repulsing me.  I mean really,
people, look at it!  

tt=total(a[(((dy=((di=lindgen(((n=nx<ny)),nx+ny-1)))/n))*(nx gt ny?1:nx)+ $
              (nx gt ny?1:-1)*((dx=di mod n))*(nx-1))>0<(nx*ny-1)]* $
           (dy ge dx AND (dy-dx) lt nx>ny),1)

Does it really look like something anyone would ever actually write?!?  I can
see my sarcasm has been utterly wasted on this crowd.  

JD

-- 
 J.D. Smith                             /*\    WORK: (607) 255-6263
 Cornell University Dept. of Astronomy  \*/	     (607) 255-5842
 304 Space Sciences Bldg.               /*\     FAX: (607) 255-5875  
 Ithaca, NY 14853                       \*/