I installed Magma. I would like to use it for zheev. I didn't find any documentation on it, so I guess it's not present in Magma. What alternative do I have?
Maybe zheevd? But I don't know how to "convert" my code to use it. Here the part of my c++ code:
Code: Select all
unsigned int info = 0;
const unsigned int lwork = 2 * ncf;
std::complex< double > * work = new std::complex< double > [lwork];
double * rwork = new double [3 * ncf - 2];
double * w = new double [ncf];
std::complex< double > * m = new std::complex< double > [ncf * ncf];
for(unsigned int i = 0; i < ncf * ncf; ++i)
{
m[i] = Hamiltonian[i]; // Where Hamiltonian is a Hermitan Matrix
}
zheev_('V', 'U', ncf, m, ncf, w, work, lwork, rwork, info);