This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: Diagonalization of complex matrices
I should have mentioned that the matrix conventions going from GSL to
LAPACK are transposed (C vs Fortran -- see the matrix chapter in the
manual for details) but taking this into account a direct call should
work fine.
e.g. to diagonalize a complex hermitian matrix,
zheev ('V', 'L', m->size1, m->data, m->tda, w, work, lwork, rwork, &info)
swapping 'L' for 'U' to take account of the transpose and keeping in
mind that the result will also be transposed.
then link with -lgsl -llapack ... etc