F90 - diagnolize square matrix subroutine

AI Thread Summary
A user inquired about a subroutine for obtaining the diagonalized matrix of a square, real covariance matrix. In response, it was suggested to explore the LAPACK library for Fortran, which offers various inversion routines suitable for this purpose. A specific webpage detailing these routines was provided. Additionally, for those interested in creating their own solution, resources from the Numerical Recipes website were recommended, noting that their Fortran book is now publicly accessible.
natski
Messages
262
Reaction score
2
Hi all,

Does anyone have/know the location of a subroutine for returning the diagonalized matrix of square, real array? The array is a covariance matrix so should be diagonalizable in all cases.

Thanks,

Natski
 
Technology news on Phys.org
This is a week old, so probably too late, but check out the lapack library for fortran. There should be several inversion routines. I don't do much/any fortran but here is a webpage that outlines some of the routines -- more than 1 should be able to do what you'd like.

http://physics.orst.edu/~rubin/nacphy/lapack/linear.html

Also if you want to write your own, you can check out examples from places like the numerical recipes web page. I think their book on fortran is open to all now.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...

Similar threads

Replies
18
Views
6K
Replies
1
Views
1K
Replies
59
Views
11K
Replies
3
Views
3K
Replies
2
Views
7K
Replies
5
Views
3K
Replies
14
Views
3K
Replies
21
Views
2K
Back
Top