コード例 #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);