Permalink
Browse files

fix for ticket 1829: http://projects.scipy.org/scipy/ticket/1829

  • Loading branch information...
jakevdp committed Feb 2, 2013
1 parent bd90bb4 commit 68d99837b84190918ace93da8a48e11870fc47f7
Showing with 1 addition and 1 deletion.
  1. +1 −1 scipy/sparse/linalg/eigen/lobpcg/tests/test_lobpcg.py
@@ -54,7 +54,7 @@ def compare_solutions(A,B,m):
w,v = eig(A,b=B)
w.sort()
- assert_almost_equal(w[:m/2],eigs[:m/2],decimal=2)
+ assert_almost_equal(w[:int(m/2)],eigs[:int(m/2)],decimal=2)
#from pylab import plot, show, legend, xlabel, ylabel
#plot(arange(0,len(w[:m])),w[:m],'bx',label='Results by symeig')

0 comments on commit 68d9983

Please sign in to comment.