All Questions

Tagged with
Filter by
Sorted by
Tagged with
0
votes
1answer
51 views

How do I skip to the end of a loop when a compiled function yields an error?

This is something of a follow-up to my question In an iterative process, how does one simply bypass a step producing an error? which I have been so far (thick-headedly) been unsuccessful in ...
0
votes
2answers
77 views

In an iterative process, how does one simply bypass a step producing an error? [closed]

This is undoubtedly rather elementary, but the remedy escapes me presently (and does not, as far as I can see, readily appear in Help). I'm engaged in an iterative process with several computations ...
0
votes
0answers
59 views

Create Compiled Function - Matrix Initialization

I am attempting to compile the following function: But I receive the following error messages: How should I initialize the matrix Vw to enable the assignment to Vw[[1,1]]? ...
0
votes
1answer
99 views

Create Compiled Function

I am trying to create a compiled version of this function: ...
1
vote
1answer
67 views

Compile errors after reloading of laptop contents after challenging MacOS Mojave installation

I tried (foolhardily, it appears) installing macOS Mojave Version10.4 on my MacBookAir, but encountered major problems--that seemed to have been (finally) fixed after a reinstallation and reloading of ...
0
votes
0answers
50 views

CompiledFunction::cfexe: error without compiled function

I get the error: CompiledFunction::cfexe: Could not complete external evaluation; proceeding with uncompiled evaluation. but I am not using any compiled function in my code: how can it be ...
0
votes
1answer
27 views

SubtractFrom::rvalue with Compile

I want to compile the code described here, but I get the error: SubtractFrom::rvalue: 1.`*^8 is not a variable with a value, so its value cannot be changed. A minimal non working example could ...
3
votes
1answer
156 views

Debug numerical error inside CompiledFunction

I want to speed up evaluation time of a long expression (a function of a single parameter t). To do so, I thought about using ...
2
votes
3answers
320 views

Random Geometric Graphs, but fast

I am optimising the random geometric graph generation ideas in this post. I need to generate a large number of random geometric graphs with probabilistic connectivity (soft random geometric graphs), ...
4
votes
1answer
115 views

Does the RuntimeOptions -> “EvaluateSymbolically” -> False work for “1-x”

I would like to pass a CompiledFunction to a FindRoot algorithm and therefore I use the option ...
12
votes
1answer
164 views

Bug with Compile and Log2?

It seems that Log2 in Compile gives numerical errors (CompiledFunction::cfn) if the input is ...
3
votes
1answer
128 views

Compile::cplist: error from MapThread [duplicate]

What is the cause of this error? Compile[{{r, _Integer, 2}, {d, _Integer, 2}}, pos = Position[MapThread[#1 > #2 &, {r, d}, 2], x_ /; x == True]] ...
4
votes
1answer
376 views

Undeclared Identifier error in Compile

I've been trying to compile a couple of functions in Mathematica, and I keep coming across an error that I do not know how to resolve. Consider the following function: ...
11
votes
1answer
408 views

Compilation of Total with compensated summation

I sometimes obtain an unexpected error when trying to call a compiled version of Total with compensated summation turned on. More specifically I define ...
0
votes
1answer
179 views

Correct use of Solve inside Compile

I have a function that behaves itself, but I want to make it much faster so I tried to put it into a compilable form After much fiddling I can't get it to work. Here's one of my failed attempts: <...
2
votes
1answer
83 views

Why do messages only appear first time I evaluate my compiled function?

I declare my compiled function: ...
2
votes
1answer
334 views

Compile a MeijerG function [duplicate]

I am not very experienced with Compile, I tried to use it for a Meijer-G function ...
1
vote
1answer
232 views

Compiling If statement

I'm tring to use Compile in the following code, but it gives me an error message that I don't understand: ...
3
votes
1answer
438 views

How do I format Compile[] correctly?

My Mathematica skill is still rusty, so kindly bear with me. I'm having problem formatting expression to compile the function correctly: $\sum _{g=1}^G \sum _{n=1}...
2
votes
1answer
428 views

Warning and Errors during Compile

I defined a compiled function cf = Compile[{{x, _Integer}, {n, _Integer}}, z = (n^x); Binomial[n, #]* StirlingS2[x, #] *(#!)/z & /@ Range[x]]; and I ...
23
votes
2answers
3k views

Using a compiled function inside NIntegrate gives “CompiledFunction::cfsa” message

The following function is defined for Real input: ...