Skip to content

Instantly share code, notes, and snippets.

Levinson-Durbin [Cython version from pr-4302] vs. generic solver
T x = y; T.shape == (n, n); y.shape == (n, m)
==============================================================
n | m | dtype | L-D time | generic time
| | | (seconds) |
--------------------------------------------------------------
100 | 1 | float64 | 0.000103 | 0.000162
100 | 10 | float64 | 0.000561 | 0.000167
300 | 1 | float64 | 0.000258 | 0.00136
$ ./run.py run -n e80cb04^^..e80cb04
· Fetching recent changes..
· Creating environments
· Installing dependencies...
· Discovering benchmarks...
·· Uninstalling from py2.7-Cython0.21.1-Tempita0.5.2-numpy1.8.2-six.
·· Installing into py2.7-Cython0.21.1-Tempita0.5.2-numpy1.8.2-six..
· Running 92 total benchmarks (2 commits * 1 environments * 46 benchmarks)
[ 0.00%] · For scipy commit hash e80cb04c:
[ 0.00%] ·· Building for py2.7-Cython0.21.1-Tempita0.5.2-numpy1.8.2-six.......................................
NB. runtime of the following was 6 minutes
(asv-benchmarks):~/prj/scipy/scipy/benchmarks$ ./run.py find 7ff4e907^..99aff1e4 sparse_linalg_lobpcg.Bench.time_sakurai -e
· Fetching recent changes..
· Creating environments
· Installing dependencies..
· Discovering benchmarks..
·· Uninstalling from py2.7-Cython0.21.1-Tempita0.5.2-numpy1.8.2-six
·· Installing into py2.7-Cython0.21.1-Tempita0.5.2-numpy1.8.2-six..
· Running approximately 4 benchmarks within 23 commits
Statement from http://www.netlib.org/lapack/revisions.info.3.1
***
The interfaces to primary computational routines are fixed and
will not be changed by minor LAPACK versions (e.g. 3.x).
Primary routines are those prefixed by a precision and matrix
type like SGERFS, CUNMQR, ZHEGV, etc., and these interfaces
will remain the same for all LAPACK version 3 versions.
@pv
pv / .gitignore
Last active August 29, 2015 14:26
*~
*.so
*.pyc
*.pyxbldc
/_slds.c
/build
@pv
pv / .gitignore
Last active August 29, 2015 14:26
*.pyc
*.log
*~
.#*
$ make clean html
rm -rf _build/*
sphinx-build -b html -d _build/doctrees . _build/html
Running Sphinx v1.3.1
making output directory...
loading pickled environment... not yet created
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 1 source files that are out of date
updating environment: 1 added, 0 changed, 0 removed
reading sources... [100%] index
@pv
pv / gist:62a57c7dfb1db8eb04e4
Created December 5, 2015 23:21
runtest asv
diff --git a/runtests.py b/runtests.py
index 9376ae5..dfe2534 100755
--- a/runtests.py
+++ b/runtests.py
@@ -197,10 +197,19 @@ def main(argv):
bench_args.extend(['--bench', a])
if not args.bench_compare:
+ # Above, we built numpy using the current sys.executable, so we
+ # need also to run asv using it.
>>> scipy.linalg.test('full', verbose=2)
Running unit tests for scipy.linalg
NumPy version 1.7.2
NumPy is installed in C:\python34\lib\site-packages\numpy
SciPy version 0.17.0.dev0+Unknown
SciPy is installed in C:\python34\lib\site-packages\scipy
Python version 3.4.0 (v3.4.0:04f714765c13, Mar 16 2014, 19:24:06) [MSC v.1600 32 bit (Intel)]
nose version 1.1.2
test_check_finite (test_basic.TestDet) ... ok
test_random (test_basic.TestDet) ... ok
from __future__ import division, absolute_import, print_function
import numpy as np
import os
import gzip
import subprocess
import time
import joblib
import matplotlib.pyplot as plt