which subroutine in lapack3.4.0 does complex Hermitian array

Open discussion regarding features, bugs, issues, vendors, etc.

which subroutine in lapack3.4.0 does complex Hermitian array

Postby carolasu » Tue Aug 14, 2012 5:59 pm

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!
carolasu
 
Posts: 9
Joined: Wed Mar 21, 2012 12:50 am

Re: which subroutine in lapack3.4.0 does complex Hermitian a

Postby admin » Tue Aug 14, 2012 6:08 pm

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.
admin
Site Admin
 
Posts: 474
Joined: Wed Dec 08, 2004 7:07 pm

Re: which subroutine in lapack3.4.0 does complex Hermitian a

Postby carolasu » Tue Aug 14, 2012 6:26 pm

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.
carolasu
 
Posts: 9
Joined: Wed Mar 21, 2012 12:50 am

Re: which subroutine in lapack3.4.0 does complex Hermitian a

Postby admin » Tue Aug 14, 2012 6:31 pm

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
admin
Site Admin
 
Posts: 474
Joined: Wed Dec 08, 2004 7:07 pm

Re: which subroutine in lapack3.4.0 does complex Hermitian a

Postby carolasu » Tue Aug 14, 2012 6:55 pm

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!
carolasu
 
Posts: 9
Joined: Wed Mar 21, 2012 12:50 am


Return to User Discussion

Who is online

Users browsing this forum: Google [Bot] and 3 guests