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]); }); }
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]); } }); }