[SciPy-Dev] adding chkfinite flags to linalg functions

Martin Teichmann lkb.teichmann@gmail....
Mon Sep 19 04:55:31 CDT 2011


Hi list,

I just got the idea of a very simple improvement of
asarray_chkfinite: instead of calling isfinite on the
array, call it on its sum. That's much faster as no
intermedite array has to be created. I got a significant
speed improvement by this, so that now
asarray_chkfinite does not take up a significant time
of the total running time of the linear algebra
routines.

I commited a pull request
https://github.com/numpy/numpy/pull/164

Greetings

Martin

-- 
Max-Born-Institut
Max-Born-Straße 2a
12489 Berlin
+49 30 6392 1234


More information about the SciPy-Dev mailing list