configuration of lapack and blas in matlab
14 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Abeera Tariq
le 15 Juin 2015
Réponse apportée : James Tursa
le 16 Juin 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 commentaires
Geoff Hayes
le 16 Juin 2015
Abeera - have you looked at the link http://www.mathworks.com/help/matlab/matlab_external/calling-lapack-and-blas-functions-from-mex-files.html?
Réponse acceptée
James Tursa
le 16 Juin 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);
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Write C Functions Callable from MATLAB (MEX Files) dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!