Skip to main content

Questions tagged [c-codegenerator]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
0 answers
35 views

Mathematica call CompiledFunction from Python with Listable and Parrallelization attributes

I have a CompiledFunction e.g. this: ...
Okarin's user avatar
  • 31
1 vote
1 answer
49 views

CCodeGenerator: auto-generated dll crashes

I am trying to use CCodeGenerator to generate a .dll library that I need to subsequently link in a custom C-code project. However, I am stuck when using the following line of code: ...
Antonello Cherubini's user avatar
3 votes
1 answer
256 views

Generate C code from symbolic computation in Mathematica

I am doing some tensor multiplication operations and would like to have Mathematica generate C code so that I can use it later. I want to supply two 2nd order tensors(A and B) and get the entries of a ...
user avatar
2 votes
1 answer
95 views

Compiled library crashes at WolframLibraryData_new

I am using CreateLibrary to create a dynamic library of a Mathematica function, so that it can be linked into standalone code, but I run into segmentation faults (...
Marijnn's user avatar
  • 287
4 votes
0 answers
150 views

How to compile effectively with recent MMA? Global variables in C code, compilation of C code

I have read the generously comprehensive answers by @leonidshifrin and @xzczd to the question How to compile effectively but more than seven years have now passed, and whilst I am sure much remains ...
Julian Moore's user avatar
  • 2,560
0 votes
0 answers
71 views

Rearrange a symbolic function in order that the result contains a minimum number of SQRT() and CBRT() calculations

I use mathematica for analytically calculating a function, which solves two equations: ...
theNewOne's user avatar
0 votes
0 answers
119 views

Use MMA generated function in C

I am trying to use MMA generated function and call it form C. The function is (MMA env): ...
MsTais's user avatar
  • 498
2 votes
1 answer
416 views

Where is NumericalMath`OptimizeExpression`

In one of my older Notebooks I found a reference to NumericalMath`OptimizeExpression. When I wrote it, I handed the result of some transformations to ...
Adalbert Hanßen's user avatar
6 votes
2 answers
751 views

OptimizeExpression to C code

Is there a function which turns optimized expression to C code? Calling Experimental`OptimizeExpression[ Sin[x] + Cos[Sin[x]]] returns ...
tom's user avatar
  • 295
18 votes
0 answers
627 views

C Code generated from Mathematica not working?

I am a .Net developer. I'm trying to build a Visual C++ application using C code generated from Mathematica (by another person). I don't have Mathematica installed on my machine. When I try to compile ...
pag's user avatar
  • 181
3 votes
1 answer
952 views

Need help with C Code Generator

I'm trying to use the Mathematica C Code Generator package to generate code that is to be included in a web application by a developer. I don't know any C, and this seems to be the only way to ...
zab's user avatar
  • 275