F90 - diagnolize square matrix subroutine

Click For Summary
SUMMARY

The discussion centers on the need for a Fortran subroutine to diagonalize a square covariance matrix. Users recommend utilizing the LAPACK library, which contains multiple inversion routines suitable for this purpose. Additionally, the Numerical Recipes website offers examples and resources for writing custom diagonalization routines in Fortran. These resources are essential for anyone looking to implement matrix diagonalization effectively.

PREREQUISITES
  • F90 programming knowledge
  • Understanding of covariance matrices
  • Familiarity with LAPACK library functions
  • Basic linear algebra concepts
NEXT STEPS
  • Explore LAPACK library documentation for Fortran
  • Review Numerical Recipes in Fortran for custom implementations
  • Study matrix diagonalization techniques in linear algebra
  • Learn about covariance matrix properties and applications
USEFUL FOR

This discussion is beneficial for Fortran developers, data scientists working with covariance matrices, and anyone interested in numerical methods for matrix diagonalization.

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.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 18 ·
Replies
18
Views
7K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 59 ·
2
Replies
59
Views
12K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
1
Views
4K
  • · Replies 2 ·
Replies
2
Views
7K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 21 ·
Replies
21
Views
3K