Questions tagged [compile]
Questions about the generation and use of compiled functions using Compile.
727 questions
3 votes
0 answers
132 views
Timing inside a compiled function?
I want to have multiple timings inside a compiled code. However, it turns our that AbsoluteTime[] does not work: ...
1 vote
0 answers
61 views
Using symbolic expression in Compile
I found a Mathematica notebook on the internet, which calculates the inverse kinematics of a 6DoF robot. link to the notebook In one part of the code it gives a symbolic expression using the Solve[] ...
2 votes
0 answers
120 views
Most efficient way to store set of numbers and manipulate them
I have a set of pairs of numbers {id, quantity}, which I store in the table tab; id takes discrete values, and ...
0 votes
0 answers
107 views
Alternative to RandomSample?
Consider the following simple routines: ...
4 votes
1 answer
252 views
Using Total to evaluate row sums of a matrix inside Compile
I have some code that evaluates a a large function of the strengths and degrees of a bipartite adjacency matrix. It takes a while to evaluate it, so I tried compiling it: ...
4 votes
1 answer
237 views
Partially parallel compiled code
I am working with a series of expressions of the following type: ...
0 votes
0 answers
127 views
Question About Possible Ver 14.0 Bug
All: I'm running the following code. It's coming up with a persistent bug that seems to be related to the graph and processing the information; see image. Any advice? This code works fine with Ver 13....
3 votes
1 answer
246 views
Something faster than RandomReal and RandomInteger?
I am dealing with the code sequentially producing random numbers and using them further for some operations. The code snippet looks like ...