Hi everyone,
I have a matrix A = [1 2 3] and would like to diagonalise it so that it becomes:
A = [1 0 0
0 2 0
0 0 3]
I am Matlab user so it can easily be done by using diag(A). But I need to do it in fortran. Does anyone know how to write it in F95? Many thanks in advanced...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.