MathLink is a suite of Mathematica functions that implement a protocol for the communication/interfacing of Mathematica with external programs.
39
votes
5answers
1k views
Minimal effort method for integrating C++ functions into Mathematica
As of Mathematica 8, what is the minimal effort way to integrate an existing C++ function into Mathematica?
I think we have these:
MathLink (it was quite long ago I used it last time)
communication ...
18
votes
3answers
439 views
Efficiently determining if 3D points are within a surface composed of polygons
This is the 2nd part of a previous question which I edited to make into 2 separate questions: Extracting polygons from 3D contour plot surface
As an extension of my earlier question involving simple ...
18
votes
1answer
372 views
Transferring a large amount of data in parallel calculations
This question is inspired by one of @whuber's answers
Consider the following code:
...
19
votes
3answers
620 views
Calling IronPython code from Mathematica
I'd like to call some IronPython code from Mathematica using .NET/Link.
The problem is that the code lives in .py files, yet from Mathematica I can only load .NET assemblies which are DLLs.
So it ...
11
votes
2answers
467 views
How to run mathlink external commands in parallel?
I have an external function called increment (for the sake of illustration) that I call from Mathematica using MathLink. I.e.,
...
8
votes
1answer
641 views
Using Mathlink with the cernlib FORTRAN package MINUIT
I could successfully use Mathlink to call a simple fortran subroutine. However, when I went to a realistic problem, I failed.
To be specific, I want to fit a set of data with some function using the ...
17
votes
3answers
2k views
How to use Mathematica functions in Python programs?
I'd like to know how can I call Mathematica functions from Python.
I appreciate a example, for example, using the Mathematica function Prime.
I had search about MathLink but how to use it in Python ...
10
votes
5answers
522 views
Connecting to and disconnecting from a continuously running kernel, on demand
I realized that there are lots of advantages to driving C/C++/FORTRAN code directly from Mathematica as LibraryLink functions (instead of running them from the command line or a shell script, as I ...
12
votes
1answer
175 views
using MathLink for communication with external program from my C program without Mathematica
I have a compiled program with MathLink.
I want to use it from other C program, without Mathematica being involved at all.
If i create my program with MathLink and connect to this external program, ...
6
votes
1answer
163 views
Passing back “NaN`” and “Inf`” to C via MathLink
In the "usual" double representation of floating point numbers in C there is a NaN and an ...
7
votes
1answer
169 views
What is the complete list of valid FrontEnd Packet types?
In response to my question How can I get the unchanged Box form of an arbitrary expression? John Fultz answered with a method using the hilariously named ...
7
votes
2answers
203 views
Is it possible to set a timeout for LinkWrite[]?
This came up in relation to this answer
Is it possible to set a timeout for LinkWrite? LinkWrite seems to block until the sent ...
10
votes
2answers
272 views
Correct way to handle mysterious NaN` result from MathLink function
I have a Mathematica expression that is mapped onto an external C function via MathLink. The external function passes a ...
2
votes
2answers
308 views
MathLink and CDF
So far I have read that some things are not supported in CDFs. Istvan-zachar mentioned very useful things in his post. Unfortunately he mentioned that
MathLink operations, including J/Link and ...
8
votes
1answer
215 views
Write C/C++ programs calling Mathematica functions
I need to write a C/C++ program and call some functions in Mathematica especially those like Solve or NDSolve. The problem is ...
6
votes
1answer
426 views
How do you get high resolution plots in applications using the Mathematica MathService?
This is for Mac users only using MathService (MathService it seems, given that it was created back in 2004, is a power pc code and requires Rosetta to run on Intel).
If I type a plot command in ...
