Wednesday, October 20, 2010

Computing the eigenvectors of a 3x3 symmetric matrix in C++

Every once in a while Google makes me wonder how people ever managed to do research 15 years ago.

Just today, I had to find a quick C++ routine to compute the eigenvalues and eigenvectors of a well-behaved symmetric matrix (principal components of the gyration tensor of a 3D random walk, this time). I found it here.

It took me less than 5 minutes to google it down, download it, and test it.

Amazing.

3 comments:

  1. ------------------------------
    undefined reference to 'WinMain@16'
    ld returned 1 exit status.
    ------------------------------
    I'm using Dev C++ 4.9.9.2
    and I was to encounter this message and the program does not run.
    Should I change something in the code or what?
    Thank You sir

    ReplyDelete
  2. ------------------------------
    undefined reference to 'WinMain@16'
    ld returned 1 exit status.
    ------------------------------
    I'm using Dev C++ 4.9.9.2
    and I was to encounter this message and the program does not run.
    Should I change something in the code or what? Thank You.

    ReplyDelete
  3. ------------------------------
    undefined reference to 'WinMain@16'
    ld returned 1 exit status.
    ------------------------------
    I'm using Dev C++ 4.9.9.2
    and I was to encounter this message and the program does not run.
    Should I change something in the code or what?
    Thank You sir

    ReplyDelete