Questions tagged [interoperability]
For questions on interfacing or getting Mathematica to work together with other software or technologies.
246 questions
7 votes
1 answer
309 views
How to use FORM together with Mathematica?
How to use FORM together with Mathematica? What configuration steps should I do? Any guide is appreciated.
0 votes
0 answers
86 views
External Python evaluator exists, but trying to register causes process not to start
I am trying to register an external installation of Python 3.13 to be usable through ExternalEvaluate in Mathematica v14. After running FindExternalEvaluators["Python"], I can see the ...
2 votes
0 answers
137 views
A question about using .dll in Mathematica with LibraryFunctionLoad
I am trying to use a custom trilinear interpolation written in C in Mathematica (Windows). This is the code I start with: ...
14 votes
3 answers
518 views
ForeignFunctionLoad / RawMemoryAllocate and c-struct that includes an array
I have an external c-function I need to call, and I wish to use ForeignFunctionLoad. The c-function, foo, takes as an argument a reference to a struct, for example: ...
5 votes
0 answers
157 views
Are ForeignFunction and its friends the next generation of LibraryLink?
It's a bit surprising to me that no one asks about this so far, so let me step up :) . In version 13.3, an EXPERIMENTAL Foreign Function Interface has been introduced. I'm by no means a C expert, but ...
1 vote
0 answers
70 views
Why my MATLink must execute the command `OpenMATLAB[]` twice to realize once normal `OpenMATLAB[]` command?
Problem description To use Matlab code in Mathematica I have tried to use the package MATLink. However, everytime I run the code below ...
4 votes
1 answer
168 views
How to use a personal function in Matlab within Mathematica utilizing Matlink?
Problem description I've written a function in Matlab as follows: function z = testfuncadd(x,y) z = x + y; end I want to use this function within Mathematica ...
2 votes
0 answers
214 views
How to set up the Gurobi optimizer?
How do I set up Mathematica to use the commercial Gurobi optimizer? Mathematica should be able to use it, as the Method -> "Gurobi" option exists for ...
2 votes
1 answer
115 views
Control metadata of CopyToClipboard
Question The system clipboard can contain image data and text data (and a plethora of other types). Mathematica copies different expressions as different types of data; copy ...
1 vote
1 answer
206 views
Is there any Mathematica API for Z3?
Z3 has bindings for various programming languages, e.g., C, C++, Java, Python, and so on. Are there any for Mathematica? Or how to implement one?
3 votes
1 answer
104 views
What crops the response from the SocketListen based web server?
I noticed that when the response length passes around 1k characters then it is cut at weird lengths: 424, 936 or 1448 characters. Response is generated correctly but then it is cut so if the body was ...
1 vote
0 answers
101 views
Repeated calling of Mathematica function from R through system call make it extremely slow
I have the following simple function in test.wls file x = ToExpression[$ScriptCommandLine[[2]]] y = ToExpression[$ScriptCommandLine[[3]]] z = x+y Print[z] I call ...
7 votes
2 answers
771 views
Getting data into Julia session?
Mathematica has a way of integrating with Julia, and automatically convert Julia outputs into Mathematica objects (Julia seems to have nice support for low-rank approximation). What is the best way to ...
1 vote
0 answers
416 views
Can OGDF (a self-contained C++ library for graph algorithms) be integrated into Mathematica?
I would like to begin by congratulating IGraphM on the release of its current update (M 0.6.1). This package makes graph calculations on Mathematica much smoother. The specifics are available at the ...
1 vote
0 answers
136 views
Copying Bitmaps in 13.1.0.0
I have just installed 13.1.0.0 and have been copying bitmaps (ListLinePlot) from notebooks (Edit->CopyAs->Bitmap) into various MS applications in Windows 10. ...