- Code: Select all
program test
double precision :: a(2,2), wr(2), wi(2), vl(0,0), vr(2,3), work(68)
integer*8 :: info, lwork
read(*,*) a(1,1)
a(2,1) = a(1,1)
a(1,2) = a(1,1)
a(2,2) = a(1,1)
wi(1) = 0.0
wi(2) = 0.0
lwork = 68
write(*,*) 'vr:', vr
call dgeev('N', 'V', 2_8, a, 2_8, wr, wi, vl, 1_8, vr, 2_8, work, lwork, info)
write(*,*) 'vr:', vr
wi(2) = 0.1
call dgeev('N', 'V', 2_8, a, 2_8, wr, wi, vl, 1_8, vr, 2_8, work, lwork, info)
write(*,*) 'vr:', vr
end program
In addition: Intel has a warning in their documentation, https://software.intel.com/en-us/node/520866, stating that
Is that really true that I should expect segfaults from LAPACK when having NaNs and Infs or is Intel wrong here?LAPACK routines assume that input matrices do not contain IEEE 754 special values such as INF or NaN values. Using these special values may cause LAPACK to return unexpected results or become unstable.

