yorkie2010
Programmer
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.
Regards,
Vincent
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.
Regards,
Vincent