configuration of lapack and blas in matlab

13 Ansichten (letzte 30 Tage)
Abeera Tariq
Abeera Tariq am 15 Jun. 2015
Beantwortet: James Tursa am 16 Jun. 2015
I want to use Matlab for mex files using lapack or blas library.. I have no idea how to configure matlab for blas or lapack
  2 Kommentare
Abeera Tariq
Abeera Tariq am 16 Jun. 2015
No, I just read this link.. Where can I find the lapack and blas. can you give me link for that?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

James Tursa
James Tursa am 16 Jun. 2015
MATLAB ships with BLAS and LAPACK libraries. E.g., on Windows for 64-bit Microsoft compilation, you can typically find them here:
lib_blas = [matlabroot '\extern\lib\win64\microsoft\libmwblas.lib']
lib_lapack = [matlabroot '\extern\lib\win64\microsoft\libmwlapack.lib']
To link your code with these, you can just do this:
cfilename = 'my_mex_name.c';
mex(cfilename,lib_blas,lib_lapack);

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by