Azzera filtri
Azzera filtri

BLAS1-type operations on vectors

1 visualizzazione (ultimi 30 giorni)
angainor
angainor il 11 Dic 2013
Modificato: angainor il 11 Dic 2013
Does anybody know what is MATLAB using for performing BLAS1-type operations, e.g., dscal or daxpy?
>> a=ones(1,1e6,'double');
>> b=ones(1,1e6,'double');
>> a=2*a; % dscal
>> a=2*a+1;
>> b=2*b+a; % daxpy
I have substituted MATLABs BLAS library using the BLAS_VERSION environment variable. I used a custom compiled (and modified) OpenBLAS, and inserted some printf here and there to see if MATLAB is calling the library. I do get a printf for matrix-matrix multiplication, but I do not get anything for the simple BLAS1 operations. Which is a shame, because I really need this for performance reasons.
Which makes me wonder - does MATLAB re-implement this basic functionality? What would be a reason for doing so? And finally - where is it implemented and can I pre-load/substitute it?

Risposte (0)

Categorie

Scopri di più su Statistics and Machine Learning Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by