Skip to main content

All Questions

Tagged with
1 vote
0 answers
336 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 ...
licheng's user avatar
  • 2,059
6 votes
0 answers
97 views

WXF encoder library for C++ (asking on may 2019) [duplicate]

Is there any updates regarding plans to open-source C library to support WXF? My question is related to "WXF encoder library for C++". Strongly apologize for opening a new question regarding this ...
fmvin's user avatar
  • 261
15 votes
1 answer
757 views

WXF encoder library for C++

WXF is a fully documented binary encoding for Wolfram Language expressions. WRI has already published a Python encoder/decoder for this format. ExternalEvaluate ...
Szabolcs's user avatar
  • 236k
4 votes
2 answers
3k views

What is the best way to work with complex number array in librarylink function in terms of C++ and Eigen?

I want to use C++ Eigen library in Mathematica Librarylink function. Currently, I have no problem dealing with real arrays. But I don't know what is the best way to deal with complex array in ...
matheorem's user avatar
  • 17.2k
16 votes
2 answers
380 views

What is the best way to transfer arbitrary-precision reals using WSTP?

I'm developing a Mathematica package, inside of which there is a number-crunching function. It uses a list of arbitrary-precision numbers as input and it takes a lot of time to do its job. So I've ...
kmingulov's user avatar
  • 539
9 votes
1 answer
502 views

How can I wrap a C++ object in WSTP?

I am trying to wrap a sophisticated C/C++ API in Mathematica using WSTP, but can't work out how to return a pointer to a C/C++ data structure. This object was created on the C/C++ side of the wrapper, ...
kuperov's user avatar
  • 126
3 votes
1 answer
283 views

Handling error in WSTP program C/C++

I have a program, written in C++, which uses WSTP to communicate with Mathematica 10 (i.e., linked using Install["name_program"]). How should my code report an ...
Igor Alimov's user avatar
-1 votes
1 answer
556 views

Making a C++ callable .lib or .dll file from a Mathematica notebook [duplicate]

MATLAB supports conversions of their function files into C++ callable libraries. I was wondering if the same feature is also available in Mathemathica? If yes, can you please guide me where I can ...
Michio kaku's user avatar
0 votes
1 answer
729 views

using Mathematica's matrix multiplication in C++

Is there any way that I can utilize Mathematica's matrix multiplication in a C++ program? I'm making a 3D graphics engine (for class) in C++ and I would really like to use Mathematica for all of my ...
Sponge Bob's user avatar
9 votes
2 answers
605 views

MathLink and C++ vector container

The Problem. I have a C++ class that does some computations, and returns a C++ vector object (the length of which can possibly vary with each run). I want to store each of these vectors as a list in ...
Y.P.'s user avatar
  • 143
122 votes
7 answers
14k views

Minimal effort method for integrating C++ functions into Mathematica

Update: While at the time of writing the question loading DLLs with .NET/Link seemed easier, now I always use LibraryLink, which I recommend to anyone with a similar problem! As of Mathematica 8, ...
Szabolcs's user avatar
  • 236k