Ticket #963 (new defect)

Opened 15 months ago

Last modified 8 months ago

arpack.eigen gives incorrect result

Reported by: kyleabeauchamp Owned by: wnbell
Priority: normal Milestone: 0.8.0
Component: scipy.sparse.linalg Version: 0.7.0
Keywords: Cc:

Description

I have previously posted a similar report, I'm following up with a test case. Basically, sometimes arpack.eigen will give an incorrect result.

Test Code (run using ipython -pylab):

import scipy.sparse.linalg.eigen.arpack as arpack import scipy.sparse Ta=loadtxt("../../Matrix.dat") lam,ev=eig(Ta.transpose()) lam2,ev2=arpack.eigen(scipy.sparse.lil_matrix(Ta.transpose()),k=5,which="SM") print(sort(abs(lam))[0:5]) print(lam2)

"[ 0.00017072 0.00161566 0.00161566 0.00270811 0.00270811]" "[ 0.+0.j 0.+0.j 0.+0.j 0.+0.j 0.+0.j]"

Attachments

Matrix.dat (61.0 KB) - added by kyleabeauchamp 15 months ago.
Test Case Matrix

Change History

Changed 15 months ago by kyleabeauchamp

Test Case Matrix

Changed 8 months ago by josefpktd

  • owner changed from somebody to wnbell
  • component changed from Other to scipy.sparse.linalg
Note: See TracTickets for help on using tickets.