configuration of lapack and blas in matlab
조회 수: 14 (최근 30일)
이전 댓글 표시
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
Geoff Hayes
2015년 6월 16일
Abeera - have you looked at the link http://www.mathworks.com/help/matlab/matlab_external/calling-lapack-and-blas-functions-from-mex-files.html?
채택된 답변
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
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!