Quantcast
Channel: How to compile inverse error function? - Mathematica Stack Exchange
Browsing all 3 articles
Browse latest View live

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 Article



Image may be NSFW.
Clik here to view.

Answer 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 Article

How 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
Browsing all 3 articles
Browse latest View live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>