/// <summary> /// Converts an array of half precision values into full precision values. /// </summary> /// <param name = "values">The values to be converted.</param> /// <returns>An array of converted values.</returns> public static float[] ConvertToFloat(Half[] values) { float[] results = new float[values.Length]; for (int i = 0; i < results.Length; i++) { results[i] = HalfUtils.Unpack(values[i].RawValue); } return(results); }
public static float[] ConvertToFloat(Half[] values) { float[] numArray = new float[values.Length]; for (int index = 0; index < numArray.Length; ++index) { numArray[index] = HalfUtils.Unpack(values[index].RawValue); } return(numArray); }