Call lapack routine from inside SImulink S function on 64bit
Show older comments
I am trying to call a LAPACK routine (sgetrf) from inside a Simulink S function on a 64bit machine using libmwlapack. However, I get the error message: MKL ERROR: Parameter 1 was incorrect on entry to SGETRF
Here is the function prototype: extern void sgetrf_(mwSignedIndex *, mwSignedIndex *, float (*)[3], mwSignedIndex *, mwSignedIndex *, mwSignedIndex *);
And the function call: sgetrf_(&nvars,&nvars,(float (*)[3])Gmat,&nvars,ipiv,&info);
I also tried using int instead of mwSignedIndex, but I get the same error message.
The mwlapack library is not compiled with -g so I can't see my variables inside sgetrf.
Any suggestions?
Answers (1)
Matthew
on 23 Jul 2013
0 votes
Categories
Find more on Simulink Coder in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!