How to use math functions in dcompute?

9il ilyayaroshenko at gmail.com
Mon Aug 27 09:41:34 UTC 2018


On Monday, 27 August 2018 at 08:25:14 UTC, Sobaya wrote:
> I'm using dcompute(https://github.com/libmir/dcompute).
>
> In the development, I have got to use math functions such as 
> sqrt in @compute function.
>
> But LDC says "can only call functions from other @compute 
> modules in @compute code", so can't I call any math functions 
> with dcompute?
>
> Is there any way to use predefined math functions in dcompute?
>
> Thanks.

You may want to try ldc.intrinsics / mir.math.common


More information about the Digitalmars-d-learn mailing list