Beispiel #1
0
 internal static unsafe void InternalToDouble <T>(T *dataPtr, double[] doubleData) where T : unmanaged
 {
     Parallel.For(0, doubleData.Length, i =>
     {
         doubleData[i] = GenericToDouble <T> .ToDouble(dataPtr[i]);
     });
 }
Beispiel #2
0
 private unsafe static void InternalApplyDatasetStatus <T>(T *dataPtr, byte *statusPtr, double[] doubleData) where T : unmanaged
 {
     Parallel.For(0, doubleData.Length, i =>
     {
         if (statusPtr[i] != 1)
         {
             doubleData[i] = double.NaN;
         }
         else
         {
             doubleData[i] = GenericToDouble <T> .ToDouble(dataPtr[i]);
         }
     });
 }