Linked Questions

2
votes
0answers
82 views

Can substitution rules be compiled?

I am thinking of having a custom multiplication operation CenterDot[A,B] for non-commutative operators, and some rules that should commute the operators to a ...
2
votes
0answers
162 views

How to use Compile? Bivariate Gibbs Sampler

I am trying to use compile to speed up my Gibbs sampler. I know I can use Reap and Sow to speed up tremendously. I have a more complicated Bayesian posterior that I want to speed up with compile so I ...
2
votes
0answers
130 views

Compilation of a function that needs to call Subsets

I'm working on a code that runs many (easy) operations on combinations (subsets) of different size (6, 7, 8, 9) taken from a big set of numbers (normally more that 40). So, this means the code has to ...
1
vote
0answers
103 views

Creating an Executable App

The CreateExecutable and Needs["CCompilerDriver"]` commands can run .exe applications in MMA. I would like to know if it is ...
1
vote
0answers
79 views

Fourier Transform of streched exponential

I need to compute the Fourier Transform of a streched exponential (according to Wikipedia "it must be calculated either by numeric integration, or from a series expansion"; so I go for the first ...
1
vote
0answers
57 views

How to compile the function with FindRoot? [duplicate]

How to compile this function or any function that uses lists and Part[] ? f[x_?NumberQ] := FindRoot[x == Sin[t] - t, {t, 1}][[1, -1]];
1
vote
0answers
84 views

Some problems with complied function

...
1
vote
0answers
101 views

Regarding CompilationTarget->“C”

Recently I have read some interesting things about CompilationTarget->"C" on SE, e.g. in https://mathematica.stackexchange.com/a/54459/11116 where @MichaelE2 ...
1
vote
0answers
99 views

Get rid of external library dependency [closed]

I am trying to generate C code for some functions, which I do not post in full because they are a few hundred lines long. The functions do nothing too fancy: a bunch of dot products, powers and roots. ...
0
votes
0answers
72 views

Is it possible to compile this code?

I'm not really familiar with the Compile function at Mathematica yet, but I know that it can, in some cases, be faster than using a non-compiled version of a code. I've been giving some shots in ...
0
votes
0answers
240 views

Compiling matrix multiplication using a list of matrices

I'm trying to create compiled function which computes a list of Gamma matrices named GammaM and multiply them within the compiled code. ...
0
votes
0answers
82 views

Compiling LinearSolve with 2 complex matrices, possible bug

Take two complex matrices depending on one variable, for example: ...
0
votes
0answers
53 views

Compiled funtion don't understand internal compiled function [duplicate]

I work a lot on Mathematica and sometimes I need to optimize my computations by using compiled functions. Now I'm making numerical integrations and I'm trying to compile the functions involved to make ...
0
votes
0answers
98 views

Compiled version of interpolation function slower non-compiled version [duplicate]

Consider this code: ...
0
votes
0answers
90 views

How can I compile a ColorFunction with Blend? [duplicate]

...

15 30 50 per page
1
2 3 4 5
9