示例#1
0
文件: Program.cs 项目: MoFtZ/ILGPU
 /// <summary>
 /// A custom kernel using <see cref="XMath"/> functions.
 /// </summary>
 public static void KernelWithXMath(Index1D index, ArrayView <float> data, float c)
 {
     data[index] = XMath.Sinh(c + index) + XMath.Atan(c);
 }
示例#2
0
 static double Sih(double x) => XMath.Sinh((float)x);