Questions tagged [interoperability]
For questions on interfacing or getting Mathematica to work together with other software or technologies.
244
questions
2
votes
0
answers
76
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:
...
11
votes
3
answers
299
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:
...
4
votes
0
answers
98
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
43
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
103
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
116
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 ...
1
vote
1
answer
67
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
120
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
70
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
74
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
650
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
335
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
86
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. ...
6
votes
1
answer
267
views
Make Mathematica input things on a website and take the data out
So I found a website that calculates polynomials that I need it intakes a word of a's and b's say aabba and outputs a polynomial. Here is the website: http://www.math.stonybrook.edu/~moira/NewApps/...
0
votes
1
answer
224
views
How to copy Mathematica code into Microsoft Word?
Is there a way to copy my mathematica code (with preserved formatting) as text into microsoft word? Below is part of my code.
...