Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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 ...
mef's user avatar
  • 1,639
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-...
Just Some Old Man's user avatar
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 ...
Just Some Old Man's user avatar
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 ...
Alexey Popkov's user avatar
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: ...
Michael E2's user avatar
  • 245k
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. ...
Joshua Schrier's user avatar
6 votes
0 answers
173 views

Possible Compile bug

Bug introduced in 11.3 or earlier The program: ...
dimachaerus's user avatar
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 ...
b3m2a1's user avatar
  • 47.1k
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 ...
Antonio De Juárez's user avatar
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: ...
JEM_Mosig's user avatar
  • 3,043
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 ...
QuantumDot's user avatar
  • 19.8k
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 ...
shrx's user avatar
  • 7,837
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 ...
Pillsy's user avatar
  • 18.6k
8 votes
2 answers
694 views

Goto and Compile

...
expression's user avatar
  • 5,692
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 ...
Wizard's user avatar
  • 2,740
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 ...
xslittlegrass's user avatar
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 ...
expression's user avatar
  • 5,692
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 <...
P. Fonseca's user avatar
  • 6,715
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 ...
s0rce's user avatar
  • 9,692
9 votes
2 answers
262 views

CompiledFunction crashes kernel

Bug fixed in 10.0.0 This crashes my kernel ...
Rojo's user avatar
  • 42.8k
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 ...
Chris's user avatar
  • 131
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: ...
Ajasja's user avatar
  • 13.8k