which subroutine in lapack3.4.0 does complex Hermitian array

Posted:
Tue Aug 14, 2012 5:59 pm
by carolasu
I have lapack 3.4.0. But I want to call zheev.f to computes all eigenvalues and eigenvectors of a complex Hermitian matrix.
I can't find zheev.f in lapack 3.4.0,
Which version do I have to download so I can call zheev.f, or which subroutine in lapack 3.4.0 I can call to computes complex Hermitian matrix?
Thanks a lot!
Re: which subroutine in lapack3.4.0 does complex Hermitian a

Posted:
Tue Aug 14, 2012 6:08 pm
by admin
You may want to download LAPACK directly from NETLIB. zheev routine is part of any version of LAPACK you download/
http://www.netlib.org/lapack/#_lapack_version_3_4_1 to get the latest LAPACK version.
Re: which subroutine in lapack3.4.0 does complex Hermitian a

Posted:
Tue Aug 14, 2012 6:26 pm
by carolasu
Thanks, you are right. I do have zheev.f in my lapack.
How should I link it?
Previously, I have following comments in my Makefile:
LIBDIR=/home/user/lapack/
LIBS=-L$(LIBDIR) -llapack -lrefblas -ltmglib
But zheev.f is in SRC file. It seems that I haven't linked SRC file yet.
Re: which subroutine in lapack3.4.0 does complex Hermitian a

Posted:
Tue Aug 14, 2012 6:31 pm
by admin
You need to build the LAPACK library.
if you want to use the Reference BLAS, type
- Code: Select all
make blaslib
then to actually build the LAPACK library
- Code: Select all
make
to link:
- Code: Select all
gfortran prog.f -o prog -L$(LIBDIR) -llapack -lrefblas
Re: which subroutine in lapack3.4.0 does complex Hermitian a

Posted:
Tue Aug 14, 2012 6:55 pm
by carolasu
I did build lapack library. I typed comment 'make'. And I have liblapack.a, librefblas.a, libtmglib.a.
I also have -L$(LIBDIR) -llapack -lrefblas -ltmglib in my Makefile.
So I can just call zheev.f?
I am a little confused. I have folds: BLAS, lapacke, SRC(contains zheev.f), TESTING etc. in lapack.
And I use comments '-L$(LIBDIR) -llapack -lrefblas -ltmglib' to link 'liblapack.a, librefblas.a, libtmglib.a'.
But which comment tells me that It linked to SRC fold, which has subroutine zheev.f ?
Thanks!