The LAPACK forum has moved to https://github.com/Reference-LAPACK/lapack/discussions.

Time diff in finding matrix inverse in MATLAB and CLAPACK

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

Time diff in finding matrix inverse in MATLAB and CLAPACK

Postby miztaken » Wed Aug 11, 2010 6:06 pm

Hi there,

I am using CLAPACK to do matrix inversion, the matix is of size 3500 by 3500.

When i do the inverse in MATLAB it takes around 3 seconds. but when i use CLAPACK it uses 17 seconds to do the same operation.

Why is there so much time difference if at the core both uses LAPACK?

thanks
miztaken
miztaken
 
Posts: 8
Joined: Wed Aug 04, 2010 12:38 pm

Re: Time diff in finding matrix inverse in MATLAB and CLAPACK

Postby Julien Langou » Wed Aug 11, 2010 7:19 pm

You are probably using a non optimized BLAS implementation behind CLAPACK. Matlab is using an optimized BLAS library behind LAPACK.
Julien.
Julien Langou
 
Posts: 835
Joined: Thu Dec 09, 2004 12:32 pm
Location: Denver, CO, USA

Re: Time diff in finding matrix inverse in MATLAB and CLAPACK

Postby miztaken » Wed Aug 11, 2010 8:02 pm

oh.. if so.. where can i find optimized BLAS. For now i am using x64 Release blas.lib from following website...

http://www.netlib.org/clapack/LIB_WINDO ... ndows.html


thank you for your help
miztaken
miztaken
 
Posts: 8
Joined: Wed Aug 04, 2010 12:38 pm


Return to User Discussion

Who is online

Users browsing this forum: No registered users and 7 guests