Code Monkey home page Code Monkey logo

Comments (4)

kyamagu avatar kyamagu commented on May 30, 2024 1

@patrikhuber Thanks, it seems Mathworks is updating C API with explicit typed accessors. That would require mexplus implementation update.
https://mathworks.com/help/matlab/matlab_external/c-matrix-api-typed-data-access.html

The new C++ API looks good. Perhaps you can give that a try.

from mexplus.

kyamagu avatar kyamagu commented on May 30, 2024

Related: https://mathworks.com/help/matlab/matlab_external/matlab-support-for-interleaved-complex.html

from mexplus.

AchimTuran avatar AchimTuran commented on May 30, 2024

The mex command in MATLAB seems to define the macro MX_COMPAT_32 or MEX_DOUBLE_HANDLE to swith back to the old API.

If you already build MEX functions, MEX S-functions, or standalone MATLAB engine and MAT-file applications, then you should review the Do I Need to Upgrade My MEX Files to Use Interleaved Complex API? topic. To help transition your MEX files and S-functions to the interleaved complex API, MATLAB maintains a compatibility interface. To build MEX files with the compatibility interface, use the mex -R2017b flag. If your code processes complex numbers, you might notice a performance impact as MATLAB adapts your data to the interleaved complex format.
The mex command uses the -R2017b API by default. However, in a future version of MATLAB, mex will use the interleaved complex API -R2018a by default and then you need to modify your build command. Therefore, to ensure the desired behavior across versions of MATLAB, add the compatibility flag -R2017b to your build scripts.

Source: https://de.mathworks.com/help/matlab/matlab_external/matlab-support-for-interleaved-complex.html

from mexplus.

kyamagu avatar kyamagu commented on May 30, 2024

@AchimTuran Thanks. Unfortunately, I do not have Matlab license anymore and cannot check the compatibility.

from mexplus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.