ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> numpy-discussion
numpy-discussion
Re: [Numpy-discussion] Faster fill
by Sasha other posts by this author
Feb 27 2006 9:11PM messages near this date
Re: [Numpy-discussion] Faster fill | Re: [Numpy-discussion] Faster fill
On 2/27/06, Travis Oliphant <oliphant@[...].edu>  wrote:
>  Sasha wrote:
> 
>  >I''ve just posted a patch at
>  >http://projects.scipy.org/scipy/numpy/wiki/PossibleOptimizationAreas
>  ...
>  This looks like a good proceedure.

On the second thought, it may be better to commit experimental changes
to a branch in svn and merge to the trunk after review.  What do you
think?

>  I would probably also not define the misaligned case, but just use the
>  default code for that case as well.  This is consistent with the idea
>  that misaligned data will have slower operations.
> 
It turns out my approach does not speed up misaligned case.  I've
posted a new patch that incorporates your suggestions at
<http://projects.scipy.org/scipy/numpy/wiki/PossibleOptimizationAreas/FillDiscussion> .
(Note the change in location.)

> 
>  You also need to add a check so that if the function pointer is NULL,
>  the optimized function is not called.
> 
Done in the new patch.

The patch passes numpy.test(10), but I don't think it tests
ndarray.fill in any meaningful way.  I will probably need to add some
tests.


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@[...].net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion
Thread:
Sasha
Travis Oliphant
Sasha
Travis Oliphant

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved