コード例 #1
0
 /// <summary>
 /// Creates a SPARSE wrapper based on the specified gpu. Note only CudaGPU is supported.
 /// </summary>
 /// <param name="gpu">The gpu.</param>
 /// <returns></returns>
 public static GPGPUSPARSE Create(GPGPU gpu)
 {
     if (gpu is CudaGPU)
         return new CudaSPARSE(gpu);
     else
         throw new NotImplementedException(gpu.ToString());
 }