Re: lapack subroutines for diagonization ( No.1 ) |
- Date: 2014/08/29 18:36
- Name: Artem <artem.pulkin@epfl.ch>
- Hi John,
I would suggest you first googling "generalized eigenvalue problem".
It can be done in a single line of code if you use Matlab or python numpy for example. I would strongly suggest you starting with that.
Then, the way I solved it in my home-made OpenMX code is following wrapper template:
F77_NAME(zggev,ZGGEV)("N","V",&n,leftHandSide,&n,rightHandSide,&n,lambdas_a,lambdas_b,NULL,&n,states,&n,work2,&n16,work,&info);
I.e. the function you are looking for is ZGGEV.
Artem
|
|