Is mxCopyPtrToInteger4() not compatible with Interleaved Complex API ?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Delta-Echo N.N.
le 8 Oct 2021
Modifié(e) : Delta-Echo N.N.
le 16 Oct 2021
Dear all,
I am trying modify the FORTRAN Mex Example dblmat.F and compute.F for use with complex data and with the Interleaved Complex API. I compiled with -R2018a.
In order to handle arrays with more than 2 dimensions, I tried to get the dimensions according to the example from the help with mxCopyPtrToIntegre4 and mxGetDimensions like here:
To copy the values to Fortran, use mxCopyPtrToInteger4 as follows:
C Get dimensions of mxArray, pm
mxCopyPtrToInteger4(mxGetDimensions(pm), dims,
+ mxGetNumberOfDimensions(pm))
But when I compile, I get the following error message:
'<...>/dblmat_z.mexa64' is compiled with incompatible options '-R2017b' and
-R2018a'. For more information, see MEX file compiled with incompatible options.
The error does not show up, when mxCopyPtrToInteger4() is not used.
So my question is: Can mxCopyPtrToInteger4() be used with the option R2018a for the Interleaved Complex API model ?
2 commentaires
James Tursa
le 8 Oct 2021
Modifié(e) : James Tursa
le 8 Oct 2021
The error seems to be that you are using both the -R2017b and -R2018a options at the same time. What is the exact command line you are using to do the compile? Regarding mxCopyPtrToInteger4(), I can't think of any reason it would not work with -R2018a, but for your particular use the dimensions would have to be 4-byte integers, which they are not.
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Fortran with MATLAB 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!