Beispiel #1
0
 /// <summary>
 /// Constructs a new lightning context.
 /// </summary>
 /// <param name="accelerator">The associated accelerator.</param>
 private LightningContext(Accelerator accelerator)
     : base(accelerator)
 {
     scanImplementation           = Accelerator.CreateScanProviderImplementation();
     radixSortImplementation      = Accelerator.CreateRadixSortProviderImplementation();
     radixSortPairsImplementation = Accelerator.CreateRadixSortPairsProviderImplementation();
 }
 public static RadixSortProvider CreateRadixSortProvider(this Accelerator accelerator)
 {
     if (accelerator == null)
     {
         throw new ArgumentNullException(nameof(accelerator));
     }
     return(new RadixSortProvider(accelerator, accelerator.CreateRadixSortProviderImplementation()));
 }