Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • $\begingroup$ I just want to add a link to an excellent package that provides a lot of $n$-space support Obtuse Package (I just need some more speed!) $\endgroup$ Commented Aug 29, 2013 at 22:45
  • $\begingroup$ Compile has been improved since version 7, which I use, but when I run the line Timing[funFunc[#] & /@ xpts;] I get CompiledFunction::cfte: Compiled expression 0.` should be a rank 1 tensor of machine-size real numbers. >> CompiledFunction::cfex: Could not complete external evaluation at instruction 20; proceeding with uncompiled evaluation. >> Do you see similar errors? $\endgroup$ Commented Aug 30, 2013 at 0:59
  • $\begingroup$ In the code as shown in the post I do not get any errors. Early on I was playing with the rank which gave me similar errors. I then found that 1 worked which makes since because xi is a vector. I get no indication that what is returned is not compiled, like the error text proceeding with uncompiled evaluation. implies. If I just evaluate funFunc I get CompiledFunction[...stuff..] as expected. Everything works it is just no faster. $\endgroup$ Commented Aug 30, 2013 at 1:13
  • $\begingroup$ I added an answer. If I am correct using CompilationOptions -> {"InlineExternalDefinitions" -> True} will fix your problem. $\endgroup$ Commented Aug 30, 2013 at 1:18
  • $\begingroup$ The routine given here for thin plate splines might be useful to you; you will only need to change the underlying RBF. $\endgroup$ Commented Jul 25, 2015 at 14:36