Reference-LAPACK / lapack

LAPACK development repository
Other
1.5k stars 438 forks source link

Error in { : task 2 failed - "error code 2 from Lapack routine 'dsyevr'" #800

Closed andrianamanousidaki closed 11 months ago

andrianamanousidaki commented 1 year ago

Hello!

I have been running some simulations in parallel with R and I got this error:

Error in { : task 2 failed - "error code 2 from Lapack routine 'dsyevr'"

I believe the problem would be in a function that gets called by the script running in parallel. This is a function that finds the low-rank approximation of a matrix A.

lra_svt<-function(A, k.hat,p){ A.svd<-svd(A) d.new<-A.svd$d d.new[(k.hat+1):length(A.svd$d)]<-rep(0,times=(length(A.svd$d)-k.hat)) PA<-A.svd$u%%diag(d.new)%%t(A.svd$v) PA<-PA/p return(PA) }

Do you know how I can overcome this problem?

(Please let me know if you would like me to submit more code information- I am a bit new in to that)

Thank you! Andriana (Please let me know if you would like me to submit more code information- I am a bit new in to that)

weslleyspereira commented 1 year ago

Hi. INFO > 0 means Internal error. So, my first guess is that dsyevr couldn't complete the task. Did you try to experiment with different matrices to see if the problem still remain?

weslleyspereira commented 11 months ago

I am closing this issue due to inactivity. Please feel free to reopen if my suggestion does not help and you still have issues.