All Questions
22 questions
14
votes
2
answers
174
views
Help understanding a bug when FoldList using RandomChoice is Compiled
Bug introduced in 3.0, persisting through 13.1.
Preamble: I submitted this bug to [email protected] and it was acknowledged. I assume it will be fixed eventually. In the meantime I'd like to ...
4
votes
0
answers
166
views
Inconsistent Output Bug and Code-Quits-Kernel Bug with Compile
This is the strangest bug I've encountered. In my experience, variations in the code will unexpectedly crash the kernel, give inconsistent output, or produce expected results with no problems.
1) Code-...
10
votes
1
answer
303
views
"instruction 9223372036854775807" Bug and Bug with Using DeleteCases[] inside Compile[]
I get an error referring to "instruction 9223372036854775807" as follows.
I run the code
...
1
vote
1
answer
107
views
Mysterious RegionDistanceFunction::regp message
Bug introduced in 12.3.1 or earlier and persisting through 13.1.0 [CASE:4853257]
I encountered a strange problem with RegionDistanceFunction. Consider this list of ...
10
votes
1
answer
119
views
WVM hangs or crashes on empty array when compiled Listable
Bug introduced in 12.0 and persisting through 12.0 or later
When I run the following code, the kernel hangs indefinitely:
...
5
votes
1
answer
80
views
RandomPoint returns compiler errors on RegionIntersection of two Meshs?
Consider the intersection of two ConvexHullMesh's, m1 and m2.
...
6
votes
0
answers
173
views
Possible Compile bug
Bug introduced in 11.3 or earlier
The program:
...
14
votes
1
answer
362
views
Nested Table + GetElement in C-compiled function crashes kernel
Bug introduced in 8.0. [CASE:4075198]
Using a nested Table and then Compile`GetElement crashes my kernel when I run a function ...
19
votes
1
answer
634
views
Strange behavior of Table
Whenever I run the code
a = 0;
code := (a++);
Table[code; a, {1000}]
I get a list of 1000 zeros. However, if I replace 1000 with 100, then a get a list equal to ...
12
votes
1
answer
248
views
Compile and uncompilable function bug?
I think I found a bug, but I still have MMA version 11.0.1 installed. Can somebody please check if this persists in the latest version?
When I compile this function:
...
12
votes
2
answers
403
views
Has compilation of big programs become excessively sluggish in v 10.4?
Bug introduced in 10.4 and fixed in 11.0
After updating to 10.4, many of my heavily numerical functions defined by Compile takes a huge amount of time to compile ...
26
votes
2
answers
479
views
Listable compiled function crashes the kernel with "no more memory available"
Bug introduced in 9.0.0 and fixed in 10.3
I am trying to speed up a function that involves continued fractions. Since ContinuedFraction cannot be compiled, and the ...
12
votes
1
answer
402
views
Bizarre behavior of With, Compile and Break
I'm guessing this is almost certainly a bug in Compile (because they're fairly common), but it's pretty weird and I spent about an hour tracking down the issue and ...
8
votes
2
answers
694
views
Goto and Compile
...
12
votes
1
answer
319
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 ...
5
votes
1
answer
496
views
Error messages from compiling the Piecewise function
The following works
Compile[{{x, _Real}}, Piecewise[{{{0., 0.}, x > 5.}}, {1., 1.}]]
but if I enter the Piecewise[...] in ...
11
votes
1
answer
398
views
Mathematica8 can compile this function but Mathematica 9 can't if I set CompilationTarget -> "C"
Bug introduced in 9.0 and persisting through 11.0
Following code worked on Mathematica 8, but in Mathematica 9 it can't be compiled, it return this message
CompiledFunction::cflist: Nontensor object ...
26
votes
0
answers
537
views
Compile not correctly initializing a variable defined inside Module
Bug introduced in 8.0, fixed in 10.4, intentionally reintroduced in 11.0 and persisting through 13.0.0 or later
In the following example, inside the minimumX's <...
8
votes
1
answer
203
views
Compiled function crashes kernel when trying to list over different length arguments
Bug introduced in 8.0 and fixed in 10.0
I'm trying to speed up a tally/binning operation that I have to run many times.
I have many lists of between 1 and 10 numbers from the range [1,5] and I want ...
9
votes
2
answers
262
views
CompiledFunction crashes kernel
Bug fixed in 10.0.0
This crashes my kernel
...
13
votes
2
answers
1k
views
Using Goto and Label in compiled function?
Bug introduced in 9.0 or earlier, persisting through 13.2 or later
Below I post some rudimentary code to show that there is something wrong using Goto and Label commands in compiled functions (or I ...
6
votes
1
answer
310
views
DistributeDefinitions not working for compiled functions
Bug introduced in 8.0 or earlier and fixed in 9.0.0
I'm having trouble with parallel evaluation of compiled functions. Here is a simple example illustrating the problem:
...