Wolfram LibraryLink provides a powerful way to connect external code to Mathematica, enabling high-speed and memory-efficient execution.
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
489 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 ...
17
votes
1answer
401 views
Linking FORTRAN with Librarylink
FORTRAN code can be called using MathLink or .NET/Link (see the link for a worked examples).
But as mentioned in a talk by T.Gayley and J.Klein in Wolfram Technology Conference 2011, LibraryLink, ...
4
votes
2answers
159 views
How to convert data types in a LibraryLink wrapper
I have a dynamic library which I want to load into Mathematica using LibraryLink. I don't have access to the source code of the library, so I need a C wrapper to do the job. In the C wrapper, I would ...
13
votes
1answer
234 views
Using Boost with CreateLibrary
I was looking at the answer of Leonid of Faster alternatives for DayOfWeek and wanted to see how hard it would be to do something similar in C++ using an external library like Boost. I tried to ...
7
votes
1answer
198 views
Converting other C++ classes to MTensor in LibraryLink
Hopefully this will be a quick question + a quick answer:
Say I have a C++ (or C) code using LibraryLink. I am using a library that defines a specific matrix class, as many numerical libraries ...