Skip to main content

Questions tagged [function-compile]

0 votes
0 answers
91 views

I want to force the return type of the function below to be ComplexReal64. Any ideas ...
James's user avatar
  • 21
4 votes
1 answer
237 views

I am working with a series of expressions of the following type: ...
Felipe Augusto's user avatar
9 votes
2 answers
206 views

The following code is for solving a linear congruence of the form $ax=b \; (\mathrm{mod}\ m)$ using FunctionCompile. ...
ngc5139's user avatar
  • 441
2 votes
1 answer
531 views

I need to compile a function that takes 2 lists of vectors and a matrix and takes tensor products and sums them weighting with the matrix elements: ...
Felipe's user avatar
  • 729
6 votes
0 answers
108 views

Is it possible to create Listable compiled code with FunctionCompile in the same way one may do with ...
Felipe's user avatar
  • 729
2 votes
0 answers
80 views

I am trying to build a custom layer for my neural network that can perform its computation on the GPU. The function is to be written in C and loaded in Mathematica via the LibraryLink. Is it possible ...
Sâu's user avatar
  • 575
3 votes
1 answer
138 views

Why are packed arrays limited to only a few types? Particularly, why are integer packed arrays limited to signed integers? And is there a way to get the same efficiency you get with packed arrays in ...
OneDeuxTriSeiGo's user avatar
3 votes
1 answer
88 views

Dear Mathematica users, I would like to compile my function and my sample code is as: ...
Kazim Ahmet Hasim's user avatar
0 votes
0 answers
27 views

I am looking for the way how to compile the function that is supposed to return vectors along with matrices. The simplified example looks next: ...
Oleksii Semenov's user avatar
3 votes
2 answers
177 views

I need to compile functions for an expression and its derivative and then pass these on to a precompiled worker loop for further processing. An If statment detects when the expression parameter expr ...
Mikl's user avatar
  • 101
27 votes
1 answer
843 views

I wanted to look at the pros & cons of Compile & FunctionCompile. This code below is from Neat Examples in FunctionCompile documentation. ...
Ted Ersek's user avatar
  • 1,029
1 vote
0 answers
94 views

I am using Mathematica 12.2 with MacOS, and I do this: ...
Ted Ersek's user avatar
  • 1,029
3 votes
0 answers
80 views

When using the old Compile, I can use CompilePrint and ensure the resulting CompiledFunction doesn't use MainEvaluate. If MainEvaluate isn't used, the CompiledFunction is efficient. How do we know if ...
Ted Ersek's user avatar
  • 1,029
0 votes
1 answer
199 views

...
miss's user avatar
  • 894
1 vote
1 answer
212 views

I cloned LMDB* from https://github.com/LMDB/lmdb and compiled on a Mac M1 with make -e clean liblmdb.so CC="cc -target aarch64-macos-none" which produced ...
Adam's user avatar
  • 4,293

15 30 50 per page