configuration of lapack and blas in matlab

조회 수: 14 (최근 30일)
Abeera Tariq
Abeera Tariq 2015년 6월 15일
답변: James Tursa 2015년 6월 16일
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
Abeera Tariq
Abeera Tariq 2015년 6월 16일
No, I just read this link.. Where can I find the lapack and blas. can you give me link for that?

댓글을 달려면 로그인하십시오.

채택된 답변

James Tursa
James Tursa 2015년 6월 16일
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);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Write C Functions Callable from MATLAB (MEX Files)에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by