[Numpy-discussion] Unnecessarily bad performance of elementwise operators with Fortran-arrays

Christopher Barker Chris.Barker@noaa....
Thu Nov 8 12:28:20 CST 2007


This discussion makes me wonder if the basic element-wise operations 
could (should?) be special cased for contiguous arrays, reducing them to 
  simple pointer incrementing from the start to the finish of the data 
block. The same code would work for C and Fortran order arrays, and be 
pretty simple.

This would address Hans' issue, no?

It's a special case but a common one.

-Chris




-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker@noaa.gov


More information about the Numpy-discussion mailing list