Questions about the generation and use of compiled functions using Compile.

learn more… | top users | synonyms

0
votes
1answer
54 views

How to return the rhs of a transformation rule from within Compile[]

I have defined the following function: ...
0
votes
0answers
29 views

Profiling Apply to Package Function

I'm using following code in Notebook and most of the time is spent on Apply[...] according to WorkBench Profiler. How can I improve performance? I have also checked MainEvaluation: ...
0
votes
1answer
46 views

No Speedup Compiled Function in FindMinimum

The problem: I would like to minimize an objective function with respect to 12 variables. Minimization should be executed as fast as possible. Compiling the objective function increases the execution ...
5
votes
1answer
53 views

Unequal and Compile

...
4
votes
0answers
61 views

MapThread and Compile

After discovering that MapIndexed cannot be used with compile (see MapIndexed and Compile) I am now trying do implement similar functionality using a combination of ...
4
votes
1answer
90 views

Can I compile a function containing ArcTanh[]?

Can I compile a function that contains ArcTanh[]? The following doesn't work Needs["CCodeGenerator`"] c = Compile[ {{x}}, ArcTanh[x]^2]; c[2.5] Mathematica gives ...
8
votes
1answer
141 views

Example program for calling Mathematica from C

I want to call Mathematica from a C program. Suppose I have two numbers x =2 and y=3. I want to define the x, y in a C program and call Mathematica and I want Mathematica to do the sum and return me ...
2
votes
1answer
97 views

Can Map operations be compiled or otherwise sped up for large lists?

I'm performing a series of Map operations in the following script: ...
1
vote
1answer
112 views

Why doesn't my code compile?

...
6
votes
2answers
122 views

ArcTan and Compile

See following three snippet code: ...
2
votes
2answers
66 views

global variables in compile statement

sorry for posting multiple questions about compile, but this is giving me some headache lately. This time my question is about using globally defined variables in a compile statement. The problem is ...
10
votes
1answer
167 views

MapIndexed and Compile

I am having trouble compiling a function that uses the MapIndexed function on the second level. The compilation runs fine, but at evaluation time I get an error ...
1
vote
1answer
72 views

How can I speed up my compiled function that is returned by another function?

Overview I have a function that acts like the Interpolation on sparse $n$-dimensional data using a simple implementation of RBF interpolation method. I want my ...
10
votes
1answer
120 views

Is the CompiledFunctionCall WVM opcode efficient?

There is example in Mathematica documentation about Compile ...
1
vote
1answer
95 views

how to Compile user-defined function like this

the following function can be compiled successfully ...

15 30 50 per page