Download node_modules/fast-check/lib/arbitrary/float32Array.js from Really-amin/Datasourceforcryptocurrency: direct link, hf CLI and curl.
- Browser
- Download file 628 Bytes
-
https://huggingface.co/spaces/Really-amin/Datasourceforcryptocurrency/resolve/250b128700538234afd94de5d02f4e054f24823e/node_modules/fast-check/lib/arbitrary/float32Array.js
- Command line
-
hf download hf://spaces/Really-amin/Datasourceforcryptocurrency@250b128700538234afd94de5d02f4e054f24823e/node_modules/fast-check/lib/arbitrary/float32Array.js
-
curl -L -o float32Array.js https://huggingface.co/spaces/Really-amin/Datasourceforcryptocurrency/resolve/250b128700538234afd94de5d02f4e054f24823e/node_modules/fast-check/lib/arbitrary/float32Array.js
628 Bytes
| ; | |
| Object.defineProperty(exports, "__esModule", { value: true }); | |
| exports.float32Array = float32Array; | |
| const float_1 = require("./float"); | |
| const array_1 = require("./array"); | |
| const globals_1 = require("../utils/globals"); | |
| function toTypedMapper(data) { | |
| return globals_1.Float32Array.from(data); | |
| } | |
| function fromTypedUnmapper(value) { | |
| if (!(value instanceof globals_1.Float32Array)) | |
| throw new Error('Unexpected type'); | |
| return [...value]; | |
| } | |
| function float32Array(constraints = {}) { | |
| return (0, array_1.array)((0, float_1.float)(constraints), constraints).map(toTypedMapper, fromTypedUnmapper); | |
| } | |