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 comentarios

Abeera Tariq
Abeera Tariq el 16 de Jun. de 2015
No, I just read this link.. Where can I find the lapack and blas. can you give me link for that?

Iniciar sesión para comentar.

 Respuesta aceptada

James Tursa
James Tursa el 16 de Jun. de 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);

Más respuestas (0)

Categorías

Más información sobre Write C Functions Callable from MATLAB (MEX Files) en Centro de ayuda y File Exchange.

Preguntada:

el 15 de Jun. de 2015

Respondida:

el 16 de Jun. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by