Spaces:
Runtime error
Runtime error
| /** | |
| * Convert uint16 (logically a float16) to a JS float64. Inspired by numpy's `npy_half_to_double`: | |
| * https://github.com/numpy/numpy/blob/5a5987291dc95376bb098be8d8e5391e89e77a2c/numpy/core/src/npymath/halffloat.c#L29 | |
| * @param h {number} the uint16 to convert | |
| * @private | |
| * @ignore | |
| */ | |
| export declare function uint16ToFloat64(h: number): number; | |
| /** | |
| * Convert a float64 to uint16 (assuming the float64 is logically a float16). Inspired by numpy's `npy_double_to_half`: | |
| * https://github.com/numpy/numpy/blob/5a5987291dc95376bb098be8d8e5391e89e77a2c/numpy/core/src/npymath/halffloat.c#L43 | |
| * @param d {number} The float64 to convert | |
| * @private | |
| * @ignore | |
| */ | |
| export declare function float64ToUint16(d: number): number; | |