Call lapack routine from inside SImulink S function on 64bit
古いコメントを表示
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?
回答 (1 件)
カテゴリ
ヘルプ センター および File Exchange で Simulink Coder についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!