[Numpy-discussion] Unnecessarily bad performance of elementwise operators with Fortran-arrays
Travis E. Oliphant
oliphant at enthought.com
Thu Nov 8 18:18:48 EST 2007
Christopher Barker wrote:
> 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.
>
>
There is a special case for this already. It's just that the specific
operations he is addressing requires creation of output arrays that by
default are in C-order. This would need to change in order to take
advantage of the special case.
-Travis O.
More information about the NumPy-Discussion
mailing list