• Quick note - the problem with Youtube videos not embedding on the forum appears to have been fixed, thanks to ZiprHead. If you do still see problems let me know.

Anybody here use Lapack?

Stimpson J. Cat

Graduate Poster
Joined
Sep 20, 2001
Messages
1,949
I have been trying to make some C++ class wrappers for various functions from the Lapack Fortran library, and I am having a problem. The sgeev() and dgeev() functions for computing eigenvalues and eigenvectors of a matrix seem to be giving incorrect results for matrices with both real and complex eigenvalues.

Anybody have any experience with Lapack?


Dr. Stupid
 
Yeah, I checked all of those things. And the issue with C and Fortran handling 2 dimensional arrays differently isn't even an issue for me. I'm not actually using 2 dimensional arrays. Instead my Matrix class uses a 1 dimensional array which can then be indexed in either row-major or column-major format. One view simply gives the transpose of the other. And I already made sure I wasn't giving the function the transpose by mistake.

Based on some things I have found on the web, I am inclined to think that it is a bug in my Lapack library, due to it being compiled with compilor optimizations turned on. Unfortunately I don't have any way to compile the library myself.

Dr. Stupid
 

Back
Top Bottom