Ada: Interaction with Matlab

since Ada does not have good libraries for scientific computing, I was wondering if anyone could use Matlab's math functions like eig (to calculate eigenvalues ​​and eigenvectors) inside Ada.

I see that there are some interfaces for simulink and Ada. But I am not a Simulink user. I would just like to use the mathematical functions of Matlab through perhaps Ada functions and procedures.

PS: In earlier Ada docs, there was a lot of talk and promises for creating good numerical libraries like NAG or NUMAL. I really wonder why this was never concretized successfully, and any good and reliable library of scientific computing was available. Surely, the language of Ada does not fade in front of any other scientific computer language, in my opinion.

Thanks a lot...

+4
source share
2 answers

I can’t find anything about this, which is really amazing.

If it has a C interface, you can write your own bindings to the procedures you need. Just use front-end pragmas . Types defined in the Ada.Interfaces.C package will also be useful. Getting links to objects and checking them for user binding can be a bit of a challenge.

Also, it seems that the latest versions of Gnat come with a binding generator that can create Ada bindings for you from the C header files. There are six more such tools available here , including one that works on Windows COM DLLs that I have heard well about.

+2
source

It is very easy to use lapack from Ada. You do not need to call Matlab for this. Lapcak are the same libraries as Matlab .

+1
source

Source: https://habr.com/ru/post/1316672/


All Articles