[SciPy-User] asarray_chkfinite

Ralf Gommers ralf.gommers@googlemail....
Wed Feb 1 11:47:52 CST 2012

On Wed, Feb 1, 2012 at 5:16 PM, glen@toadhill.net <glen@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.

-------------- 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