[SciPy-User] asarray_chkfinite
Ralf Gommers
ralf.gommers at googlemail.com
Wed Feb 1 12:47:52 EST 2012
On Wed, Feb 1, 2012 at 5:16 PM, glen at toadhill.net <glen at toadhill.net> wrote:
> Hi all,
>
> I'm trying to optimize some code that entails a very large number of
> sparse matrix-vector and vctor-vector multiplies. Upon running the
> profiler I see that about 25% of my program's cumulative time is spent
> running asarray_chkfinite. I do not call this routine directly. Can
> anyone tell me what might be calling it and whether there is anything
> obvious I can do about it?
>
It is called by many routines in order to check input arrays for bad data
(inf/nan) that can cause crashes. A proposed change to allow disabling
these checks is at https://github.com/scipy/scipy/pull/48.
Ralf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20120201/dff0cf26/attachment.html>
More information about the SciPy-User
mailing list