Answer by flinty for How to compile inverse error function?
You could use OpenCLLink if you need to run this on a huge amount of data and want to use your GPU:kernelSource = "//based on https://stackoverflow.com/a/49743348float erfinv(float a){ float p, r, t; t...
View ArticleAnswer by Domen for How to compile inverse error function?
You can port one of the C algorithms for erfinv to Mathematica.Here, I've used @njuffa's code for erfinvf, which is a single-precision variant.inverseErf = Compile[{{x, _Real}}, Module[{p, r, t}, t =...
View ArticleHow to compile inverse error function?
I have the following code:function[u_] = InverseErf[2*u - 1]comp = Hold@Compile[{{u, _Real}}, function[u]] /. DownValues@function // ReleaseHold<< CompiledFunctionTools`CompilePrint@compHowever,...
View Article
More Pages to Explore .....