From 4f41dcf42dd772979cd84502488d53df1b546125 Mon Sep 17 00:00:00 2001 From: gururaj1512 Date: Wed, 3 Dec 2025 14:29:00 +0530 Subject: [PATCH 1/7] feat: add number/float16/base/from-word --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: passed - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: passed - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: passed - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: passed - task: lint_license_headers status: passed --- --- .../number/float16/base/from-word/README.md | 104 +++++++ .../base/from-word/benchmark/benchmark.js | 58 ++++ .../base/from-word/docs/types/index.d.ts | 38 +++ .../float16/base/from-word/docs/types/test.ts | 42 +++ .../float16/base/from-word/examples/index.js | 37 +++ .../float16/base/from-word/lib/index.js | 42 +++ .../number/float16/base/from-word/lib/main.js | 106 +++++++ .../float16/base/from-word/package.json | 78 +++++ .../from-word/test/fixtures/julia/REQUIRE | 2 + .../test/fixtures/julia/negative_large.json | 1 + .../test/fixtures/julia/negative_normal.json | 1 + .../test/fixtures/julia/negative_small.json | 1 + .../fixtures/julia/negative_subnormal.json | 1 + .../test/fixtures/julia/negative_tiny.json | 1 + .../test/fixtures/julia/positive_large.json | 1 + .../test/fixtures/julia/positive_normal.json | 1 + .../test/fixtures/julia/positive_small.json | 1 + .../fixtures/julia/positive_subnormal.json | 1 + .../test/fixtures/julia/positive_tiny.json | 1 + .../from-word/test/fixtures/julia/runner.jl | 108 +++++++ .../float16/base/from-word/test/test.js | 293 ++++++++++++++++++ 21 files changed, 918 insertions(+) create mode 100644 lib/node_modules/@stdlib/number/float16/base/from-word/README.md create mode 100644 lib/node_modules/@stdlib/number/float16/base/from-word/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/number/float16/base/from-word/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/number/float16/base/from-word/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/number/float16/base/from-word/examples/index.js create mode 100644 lib/node_modules/@stdlib/number/float16/base/from-word/lib/index.js create mode 100644 lib/node_modules/@stdlib/number/float16/base/from-word/lib/main.js create mode 100644 lib/node_modules/@stdlib/number/float16/base/from-word/package.json create mode 100644 lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/REQUIRE create mode 100644 lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/negative_large.json create mode 100644 lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/negative_normal.json create mode 100644 lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/negative_small.json create mode 100644 lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/negative_subnormal.json create mode 100644 lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/negative_tiny.json create mode 100644 lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/positive_large.json create mode 100644 lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/positive_normal.json create mode 100644 lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/positive_small.json create mode 100644 lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/positive_subnormal.json create mode 100644 lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/positive_tiny.json create mode 100644 lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/runner.jl create mode 100644 lib/node_modules/@stdlib/number/float16/base/from-word/test/test.js diff --git a/lib/node_modules/@stdlib/number/float16/base/from-word/README.md b/lib/node_modules/@stdlib/number/float16/base/from-word/README.md new file mode 100644 index 000000000000..6171eeffe9bc --- /dev/null +++ b/lib/node_modules/@stdlib/number/float16/base/from-word/README.md @@ -0,0 +1,104 @@ + + +# fromWord + +> Create a [half-precision floating-point number][ieee754] from an unsigned integer corresponding to an [IEEE 754][ieee754] binary representation. + +
+ +## Usage + +```javascript +var fromWord = require( '@stdlib/number/float16/base/from-word' ); +``` + +#### fromWord( word ) + +Creates a [half-precision floating-point number][ieee754] from an unsigned `integer` corresponding to an [IEEE 754][ieee754] binary representation. + +```javascript +var word = 15411; // => 0 01111 0000110011 + +var f16 = fromWord( word ); // when printed, implicitly promoted to float64 +// returns 1.0498046875 +``` + +
+ + + +
+ +
+ + + +
+ +## Examples + + + +```javascript +var uniform = require( '@stdlib/random/array/uniform' ); +var round = require( '@stdlib/math/base/special/round' ); +var map = require( '@stdlib/array/base/map' ); +var naryFunction = require( '@stdlib/utils/nary-function' ); +var pickArguments = require( '@stdlib/utils/pick-arguments' ); +var logEachMap = require( '@stdlib/console/log-each-map' ); +var MAX_UINT16 = require( '@stdlib/constants/uint16/max' ); +var fromWord = require( '@stdlib/number/float16/base/from-word' ); + +// Generate an array of random numbers: +var arr = uniform( 1000, 0.0, MAX_UINT16 ); + +// Round each number: +var word = map( arr, naryFunction( round, 1 ) ); + +// Create half-precision floating-point numbers from unsigned integers... +logEachMap( 'word: %d => float16: %f', word, pickArguments( fromWord, [ 0 ] ) ); +``` + +
+ + + + + + + + + + + + + + diff --git a/lib/node_modules/@stdlib/number/float16/base/from-word/benchmark/benchmark.js b/lib/node_modules/@stdlib/number/float16/base/from-word/benchmark/benchmark.js new file mode 100644 index 000000000000..9720ac1b7066 --- /dev/null +++ b/lib/node_modules/@stdlib/number/float16/base/from-word/benchmark/benchmark.js @@ -0,0 +1,58 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var bench = require( '@stdlib/bench' ); +var uniform = require( '@stdlib/random/array/uniform' ); +var round = require( '@stdlib/math/base/special/round' ); +var isnan = require( '@stdlib/math/base/assert/is-nan' ); +var map = require( '@stdlib/array/base/map' ); +var naryFunction = require( '@stdlib/utils/nary-function' ); +var MAX_UINT16 = require( '@stdlib/constants/uint16/max' ); +var pkg = require( './../package.json' ).name; +var fromWord = require( './../lib' ); + + +// MAIN // + +bench( pkg, function benchmark( b ) { + var word; + var x; + var y; + var i; + + x = uniform( 100, 0.0, MAX_UINT16 ); + word = map( x, naryFunction( round, 1 ) ); + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + y = fromWord( word ); + if ( isnan( y ) ) { + b.fail( 'should not return NaN' ); + } + } + b.toc(); + if ( isnan( y ) ) { + b.fail( 'should not return NaN' ); + } + b.pass( 'benchmark finished' ); + b.end(); +}); diff --git a/lib/node_modules/@stdlib/number/float16/base/from-word/docs/types/index.d.ts b/lib/node_modules/@stdlib/number/float16/base/from-word/docs/types/index.d.ts new file mode 100644 index 000000000000..373bc19401ed --- /dev/null +++ b/lib/node_modules/@stdlib/number/float16/base/from-word/docs/types/index.d.ts @@ -0,0 +1,38 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +// TypeScript Version: 4.1 + +/** +* Creates a half-precision floating-point number from an unsigned integer corresponding to an IEEE 754 binary representation. +* +* @param word - unsigned integer +* @returns half-precision floating-point number +* +* @example +* var word = 15411; // => 0 01111 0000110011 +* +* var f16 = fromWord( word ); // when printed, implicitly promoted to float64 +* // returns 1.0498046875 +*/ +declare function fromWord( word: number ): number; + + +// EXPORTS // + +export = fromWord; diff --git a/lib/node_modules/@stdlib/number/float16/base/from-word/docs/types/test.ts b/lib/node_modules/@stdlib/number/float16/base/from-word/docs/types/test.ts new file mode 100644 index 000000000000..4667cbb76510 --- /dev/null +++ b/lib/node_modules/@stdlib/number/float16/base/from-word/docs/types/test.ts @@ -0,0 +1,42 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +import fromWord = require( './index' ); + + +// TESTS // + +// The function returns a number... +{ + fromWord( 15411 ); // $ExpectType number +} + +// The compiler throws an error if the function is provided a value other than a number... +{ + fromWord( true ); // $ExpectError + fromWord( false ); // $ExpectError + fromWord( 'abc' ); // $ExpectError + fromWord( [] ); // $ExpectError + fromWord( {} ); // $ExpectError + fromWord( ( x: number ): number => x ); // $ExpectError +} + +// The compiler throws an error if the function is provided insufficient arguments... +{ + fromWord(); // $ExpectError +} diff --git a/lib/node_modules/@stdlib/number/float16/base/from-word/examples/index.js b/lib/node_modules/@stdlib/number/float16/base/from-word/examples/index.js new file mode 100644 index 000000000000..28661bdf9b1a --- /dev/null +++ b/lib/node_modules/@stdlib/number/float16/base/from-word/examples/index.js @@ -0,0 +1,37 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2018 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +var uniform = require( '@stdlib/random/array/uniform' ); +var round = require( '@stdlib/math/base/special/round' ); +var map = require( '@stdlib/array/base/map' ); +var naryFunction = require( '@stdlib/utils/nary-function' ); +var pickArguments = require( '@stdlib/utils/pick-arguments' ); +var logEachMap = require( '@stdlib/console/log-each-map' ); +var MAX_UINT16 = require( '@stdlib/constants/uint16/max' ); +var fromWord = require( './../lib' ); + +// Generate an array of random numbers: +var arr = uniform( 1000, 0.0, MAX_UINT16 ); + +// Round each number: +var word = map( arr, naryFunction( round, 1 ) ); + +// Create half-precision floating-point numbers from unsigned integers... +logEachMap( 'word: %d => float16: %f', word, pickArguments( fromWord, [ 0 ] ) ); diff --git a/lib/node_modules/@stdlib/number/float16/base/from-word/lib/index.js b/lib/node_modules/@stdlib/number/float16/base/from-word/lib/index.js new file mode 100644 index 000000000000..8186c593e473 --- /dev/null +++ b/lib/node_modules/@stdlib/number/float16/base/from-word/lib/index.js @@ -0,0 +1,42 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +/** +* Create a half-precision floating-point number from an unsigned integer corresponding to an IEEE 754 binary representation. +* +* @module @stdlib/number/float16/base/from-word +* +* @example +* var fromWord = require( '@stdlib/number/float16/base/from-word' ); +* +* var word = 15411; // => 0 01111 0000110011 +* +* var f16 = fromWord( word ); // when printed, implicitly promoted to float64 +* // returns 1.0498046875 +*/ + +// MODULES // + +var main = require( './main.js' ); + + +// EXPORTS // + +module.exports = main; diff --git a/lib/node_modules/@stdlib/number/float16/base/from-word/lib/main.js b/lib/node_modules/@stdlib/number/float16/base/from-word/lib/main.js new file mode 100644 index 000000000000..5c9af54fa42f --- /dev/null +++ b/lib/node_modules/@stdlib/number/float16/base/from-word/lib/main.js @@ -0,0 +1,106 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var NINF = require( '@stdlib/constants/float16/ninf' ); +var PINF = require( '@stdlib/constants/float16/pinf' ); +var FLOAT16_EXPONENT_BIAS = require( '@stdlib/constants/float16/exponent-bias' ); +var pow = require( '@stdlib/math/base/special/pow' ); + + +// VARIABLES // + +var SIGN_MASK = 0x8000; // 0x8000 = 32768 => 1 00000 0000000000 +var EXPONENT_MASK = 0x7C00; // 0x7C00 = 31744 => 0 11111 0000000000 +var MANTISSA_MASK = 0x03FF; // 0x03FF = 1023 => 0 00000 1111111111 + +var NUM_MANTISSA_BITS = 10; // Number of mantissa bits in float16 +var MAX_EXPONENT = 31; // Maximum exponent value + + +// MAIN // + +/** +* Creates a half-precision floating-point number from an unsigned integer corresponding to an IEEE 754 binary representation. +* +* @param {uinteger16} word - unsigned integer +* @returns {number} half-precision floating-point number +* +* @example +* var word = 15411; // => 0 01111 0000110011 +* +* var f16 = fromWord( word ); // when printed, implicitly promoted to float64 +* // returns 1.0498046875 +*/ +function fromWord( word ) { + var mantissa; + var exponent; + var sign; + var f16; + + // Extract sign bit (bit 15) + sign = ( word & SIGN_MASK ) >>> 15; + + // Extract exponent (bits 14-10) + exponent = ( word & EXPONENT_MASK ) >>> NUM_MANTISSA_BITS; + + // Extract mantissa (bits 9-0) + mantissa = word & MANTISSA_MASK; + + // Handle special cases + if ( exponent === MAX_EXPONENT ) { + if ( mantissa === 0 ) { + if ( sign === 1 ) { + return NINF; // -Infinity + } + return PINF; // +Infinity + } + return NaN; // NaN + } + + // Handle zero and subnormal numbers (exponent = 0) + if ( exponent === 0 ) { + if ( mantissa === 0 ) { + if ( sign === 1 ) { + return -0.0; + } + return 0.0; + } + // Subnormal number: (-1)^sign × 2^(-14) × (0.mantissa) + f16 = pow( 2.0, -14 ) * ( mantissa / 1024.0 ); + if ( sign ) { + return -f16; + } + return f16; + } + + // Normal number: (-1)^sign × 2^(exponent - 15) × (1.mantissa) + f16 = pow( 2.0, exponent - FLOAT16_EXPONENT_BIAS ) * ( 1.0 + ( mantissa / 1024.0 ) ); // eslint-disable-line max-len + if ( sign ) { + return -f16; + } + return f16; +} + + +// EXPORTS // + +module.exports = fromWord; diff --git a/lib/node_modules/@stdlib/number/float16/base/from-word/package.json b/lib/node_modules/@stdlib/number/float16/base/from-word/package.json new file mode 100644 index 000000000000..d315e36c53b9 --- /dev/null +++ b/lib/node_modules/@stdlib/number/float16/base/from-word/package.json @@ -0,0 +1,78 @@ +{ + "name": "@stdlib/number/float16/base/from-word", + "version": "0.0.0", + "description": "Create a half-precision floating-point number from an unsigned integer corresponding to an IEEE 754 binary representation.", + "license": "Apache-2.0", + "author": { + "name": "The Stdlib Authors", + "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" + }, + "contributors": [ + { + "name": "The Stdlib Authors", + "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" + } + ], + "main": "./lib", + "directories": { + "benchmark": "./benchmark", + "doc": "./docs", + "example": "./examples", + "lib": "./lib", + "test": "./test" + }, + "types": "./docs/types", + "scripts": {}, + "homepage": "https://github.com/stdlib-js/stdlib", + "repository": { + "type": "git", + "url": "git://github.com/stdlib-js/stdlib.git" + }, + "bugs": { + "url": "https://github.com/stdlib-js/stdlib/issues" + }, + "dependencies": {}, + "devDependencies": {}, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "keywords": [ + "stdlib", + "stdtypes", + "base", + "utilities", + "utility", + "utils", + "util", + "types", + "type", + "convert", + "floating-point", + "float16", + "half", + "float", + "from", + "bits", + "uint16", + "word", + "unsigned", + "16-bit", + "integer", + "literal", + "number", + "binary", + "ieee754" + ] +} diff --git a/lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/REQUIRE b/lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/REQUIRE new file mode 100644 index 000000000000..308c3be89c85 --- /dev/null +++ b/lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/REQUIRE @@ -0,0 +1,2 @@ +julia 1.5 +JSON 0.21 diff --git a/lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/negative_large.json b/lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/negative_large.json new file mode 100644 index 000000000000..8285e6b5958e --- /dev/null +++ b/lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/negative_large.json @@ -0,0 +1 @@ +{"expected":[-1000.0,-1128.0,-1257.0,-1385.0,-1513.0,-1641.0,-1770.0,-1898.0,-2026.0,-2154.0,-2282.0,-2410.0,-2540.0,-2668.0,-2796.0,-2924.0,-3052.0,-3180.0,-3308.0,-3436.0,-3566.0,-3694.0,-3822.0,-3950.0,-4078.0,-4208.0,-4336.0,-4464.0,-4592.0,-4720.0,-4848.0,-4976.0,-5104.0,-5232.0,-5360.0,-5488.0,-5616.0,-5744.0,-5872.0,-6004.0,-6132.0,-6260.0,-6388.0,-6516.0,-6644.0,-6772.0,-6900.0,-7028.0,-7156.0,-7284.0,-7412.0,-7540.0,-7668.0,-7796.0,-7924.0,-8056.0,-8184.0,-8312.0,-8440.0,-8568.0,-8696.0,-8824.0,-8952.0,-9080.0,-9208.0,-9336.0,-9464.0,-9592.0,-9720.0,-9848.0,-9976.0,-10104.0,-10232.0,-10360.0,-10488.0,-10616.0,-10744.0,-10872.0,-11008.0,-11136.0,-11264.0,-11392.0,-11520.0,-11648.0,-11776.0,-11904.0,-12032.0,-12160.0,-12288.0,-12416.0,-12544.0,-12672.0,-12800.0,-12928.0,-13056.0,-13184.0,-13312.0,-13440.0,-13568.0,-13696.0,-13824.0,-13952.0,-14080.0,-14208.0,-14336.0,-14464.0,-14592.0,-14720.0,-14848.0,-14976.0,-15112.0,-15240.0,-15368.0,-15496.0,-15624.0,-15752.0,-15880.0,-16008.0,-16136.0,-16264.0,-16384.0,-16512.0,-16640.0,-16768.0,-16896.0,-17040.0,-17168.0,-17296.0,-17424.0,-17552.0,-17680.0,-17808.0,-17936.0,-18064.0,-18192.0,-18320.0,-18448.0,-18576.0,-18704.0,-18832.0,-18960.0,-19088.0,-19216.0,-19344.0,-19472.0,-19600.0,-19728.0,-19856.0,-19984.0,-20112.0,-20240.0,-20368.0,-20496.0,-20624.0,-20752.0,-20880.0,-21008.0,-21136.0,-21264.0,-21392.0,-21520.0,-21648.0,-21776.0,-21904.0,-22032.0,-22160.0,-22288.0,-22416.0,-22544.0,-22672.0,-22800.0,-22928.0,-23056.0,-23184.0,-23312.0,-23440.0,-23568.0,-23696.0,-23824.0,-23952.0,-24080.0,-24208.0,-24336.0,-24464.0,-24592.0,-24720.0,-24848.0,-24976.0,-25120.0,-25248.0,-25376.0,-25504.0,-25632.0,-25760.0,-25888.0,-26016.0,-26144.0,-26272.0,-26400.0,-26528.0,-26656.0,-26784.0,-26912.0,-27040.0,-27168.0,-27296.0,-27424.0,-27552.0,-27680.0,-27808.0,-27936.0,-28064.0,-28192.0,-28320.0,-28448.0,-28576.0,-28704.0,-28832.0,-28960.0,-29088.0,-29216.0,-29344.0,-29472.0,-29600.0,-29728.0,-29856.0,-29984.0,-30112.0,-30240.0,-30368.0,-30496.0,-30624.0,-30752.0,-30880.0,-31008.0,-31136.0,-31264.0,-31392.0,-31520.0,-31648.0,-31776.0,-31904.0,-32032.0,-32160.0,-32288.0,-32416.0,-32544.0,-32672.0,-32800.0,-32928.0,-33056.0,-33184.0,-33312.0,-33440.0,-33568.0,-33696.0,-33824.0,-33952.0,-34080.0,-34208.0,-34336.0,-34464.0,-34592.0,-34720.0,-34848.0,-34976.0,-35104.0,-35232.0,-35360.0,-35488.0,-35616.0,-35744.0,-35872.0,-36000.0,-36128.0,-36256.0,-36384.0,-36512.0,-36640.0,-36768.0,-36896.0,-37056.0,-37184.0,-37312.0,-37440.0,-37568.0,-37696.0,-37824.0,-37952.0,-38080.0,-38208.0,-38336.0,-38464.0,-38592.0,-38720.0,-38848.0,-38976.0,-39104.0,-39232.0,-39360.0,-39488.0,-39616.0,-39744.0,-39872.0,-40000.0,-40128.0,-40256.0,-40384.0,-40512.0,-40640.0,-40768.0,-40896.0,-41024.0,-41152.0,-41280.0,-41408.0,-41536.0,-41664.0,-41792.0,-41920.0,-42048.0,-42176.0,-42304.0,-42432.0,-42560.0,-42688.0,-42816.0,-42944.0,-43072.0,-43200.0,-43328.0,-43456.0,-43584.0,-43712.0,-43840.0,-43968.0,-44096.0,-44224.0,-44352.0,-44480.0,-44608.0,-44736.0,-44864.0,-44992.0,-45120.0,-45248.0,-45376.0,-45504.0,-45632.0,-45760.0,-45888.0,-46016.0,-46144.0,-46272.0,-46400.0,-46528.0,-46656.0,-46784.0,-46912.0,-47040.0,-47168.0,-47296.0,-47424.0,-47552.0,-47680.0,-47808.0,-47936.0,-48064.0,-48192.0,-48320.0,-48448.0,-48576.0,-48704.0,-48832.0,-48960.0,-49088.0,-49216.0,-49344.0,-49472.0,-49600.0,-49728.0,-49856.0,-49984.0,-50112.0,-50240.0,-50368.0,-50496.0,-50624.0,-50752.0,-50880.0,-51008.0,-51136.0,-51264.0,-51392.0,-51520.0,-51648.0,-51776.0,-51904.0,-52032.0,-52160.0,-52288.0,-52416.0,-52544.0,-52672.0,-52800.0,-52928.0,-53088.0,-53216.0,-53344.0,-53472.0,-53600.0,-53728.0,-53856.0,-53984.0,-54112.0,-54240.0,-54368.0,-54496.0,-54624.0,-54752.0,-54880.0,-55008.0,-55136.0,-55264.0,-55392.0,-55520.0,-55648.0,-55776.0,-55904.0,-56032.0,-56160.0,-56288.0,-56416.0,-56544.0,-56672.0,-56800.0,-56928.0,-57056.0,-57184.0,-57312.0,-57440.0,-57568.0,-57696.0,-57824.0,-57952.0,-58080.0,-58208.0,-58336.0,-58464.0,-58592.0,-58720.0,-58848.0,-58976.0,-59104.0,-59232.0,-59360.0,-59488.0,-59616.0,-59744.0,-59872.0,-60000.0,-60128.0,-60256.0,-60384.0,-60512.0,-60640.0,-60768.0,-60896.0,-61024.0,-61152.0,-61280.0,-61408.0,-61536.0,-61664.0,-61792.0,-61920.0,-62048.0,-62176.0,-62304.0,-62432.0,-62560.0,-62688.0,-62816.0,-62944.0,-63072.0,-63200.0,-63328.0,-63456.0,-63584.0,-63712.0,-63840.0,-63968.0,-64096.0,-64224.0,-64352.0,-64480.0,-64608.0,-64736.0,-64864.0,-64992.0],"x":[58320,58472,58601,58729,58857,58985,59114,59242,59370,59445,59509,59573,59638,59702,59766,59830,59894,59958,60022,60086,60151,60215,60279,60343,60407,60444,60476,60508,60540,60572,60604,60636,60668,60700,60732,60764,60796,60828,60860,60893,60925,60957,60989,61021,61053,61085,61117,61149,61181,61213,61245,61277,61309,61341,61373,61406,61438,61455,61471,61487,61503,61519,61535,61551,61567,61583,61599,61615,61631,61647,61663,61679,61695,61711,61727,61743,61759,61775,61792,61808,61824,61840,61856,61872,61888,61904,61920,61936,61952,61968,61984,62000,62016,62032,62048,62064,62080,62096,62112,62128,62144,62160,62176,62192,62208,62224,62240,62256,62272,62288,62305,62321,62337,62353,62369,62385,62401,62417,62433,62449,62464,62472,62480,62488,62496,62505,62513,62521,62529,62537,62545,62553,62561,62569,62577,62585,62593,62601,62609,62617,62625,62633,62641,62649,62657,62665,62673,62681,62689,62697,62705,62713,62721,62729,62737,62745,62753,62761,62769,62777,62785,62793,62801,62809,62817,62825,62833,62841,62849,62857,62865,62873,62881,62889,62897,62905,62913,62921,62929,62937,62945,62953,62961,62969,62977,62985,62993,63001,63010,63018,63026,63034,63042,63050,63058,63066,63074,63082,63090,63098,63106,63114,63122,63130,63138,63146,63154,63162,63170,63178,63186,63194,63202,63210,63218,63226,63234,63242,63250,63258,63266,63274,63282,63290,63298,63306,63314,63322,63330,63338,63346,63354,63362,63370,63378,63386,63394,63402,63410,63418,63426,63434,63442,63450,63458,63466,63474,63482,63489,63493,63497,63501,63505,63509,63513,63517,63521,63525,63529,63533,63537,63541,63545,63549,63553,63557,63561,63565,63569,63573,63577,63581,63585,63589,63593,63597,63601,63605,63609,63613,63617,63622,63626,63630,63634,63638,63642,63646,63650,63654,63658,63662,63666,63670,63674,63678,63682,63686,63690,63694,63698,63702,63706,63710,63714,63718,63722,63726,63730,63734,63738,63742,63746,63750,63754,63758,63762,63766,63770,63774,63778,63782,63786,63790,63794,63798,63802,63806,63810,63814,63818,63822,63826,63830,63834,63838,63842,63846,63850,63854,63858,63862,63866,63870,63874,63878,63882,63886,63890,63894,63898,63902,63906,63910,63914,63918,63922,63926,63930,63934,63938,63942,63946,63950,63954,63958,63962,63966,63970,63974,63978,63982,63986,63990,63994,63998,64002,64006,64010,64014,64018,64022,64026,64030,64034,64038,64042,64046,64050,64054,64058,64062,64066,64070,64074,64078,64082,64086,64090,64094,64098,64102,64106,64110,64114,64118,64123,64127,64131,64135,64139,64143,64147,64151,64155,64159,64163,64167,64171,64175,64179,64183,64187,64191,64195,64199,64203,64207,64211,64215,64219,64223,64227,64231,64235,64239,64243,64247,64251,64255,64259,64263,64267,64271,64275,64279,64283,64287,64291,64295,64299,64303,64307,64311,64315,64319,64323,64327,64331,64335,64339,64343,64347,64351,64355,64359,64363,64367,64371,64375,64379,64383,64387,64391,64395,64399,64403,64407,64411,64415,64419,64423,64427,64431,64435,64439,64443,64447,64451,64455,64459,64463,64467,64471,64475,64479,64483,64487,64491,64495]} diff --git a/lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/negative_normal.json b/lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/negative_normal.json new file mode 100644 index 000000000000..216ad83a581c --- /dev/null +++ b/lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/negative_normal.json @@ -0,0 +1 @@ +{"expected":[-1001.0,-999.0,-997.0,-995.0,-993.0,-991.0,-989.0,-987.0,-985.0,-983.0,-981.0,-979.0,-977.0,-975.0,-973.0,-971.0,-969.0,-967.0,-965.0,-963.0,-961.0,-959.0,-957.0,-955.0,-953.0,-951.0,-949.0,-947.0,-945.0,-943.0,-941.0,-939.0,-937.0,-935.0,-933.0,-931.0,-929.0,-927.0,-925.0,-923.0,-921.0,-919.0,-916.5,-914.5,-912.5,-910.5,-908.5,-906.5,-904.5,-902.5,-900.5,-898.5,-896.5,-894.5,-892.5,-890.5,-888.5,-886.5,-884.5,-882.5,-880.5,-878.5,-876.5,-874.5,-872.5,-870.5,-868.5,-866.5,-864.5,-862.5,-860.5,-858.5,-856.5,-854.5,-852.5,-850.5,-848.5,-846.5,-844.5,-842.5,-840.5,-838.5,-836.5,-834.5,-832.5,-830.5,-828.5,-826.5,-824.5,-822.5,-820.5,-818.5,-816.5,-814.5,-812.5,-810.5,-808.5,-806.5,-804.5,-802.5,-800.5,-798.5,-796.5,-794.5,-792.5,-790.5,-788.5,-786.5,-784.5,-782.5,-780.5,-778.5,-776.5,-774.5,-772.5,-770.5,-768.5,-766.5,-764.5,-762.5,-760.5,-758.5,-756.5,-754.5,-752.5,-750.0,-748.0,-746.0,-744.0,-742.0,-740.0,-738.0,-736.0,-734.0,-732.0,-730.0,-728.0,-726.0,-724.0,-722.0,-720.0,-718.0,-716.0,-714.0,-712.0,-710.0,-708.0,-706.0,-704.0,-702.0,-700.0,-698.0,-696.0,-694.0,-692.0,-690.0,-688.0,-686.0,-684.0,-682.0,-680.0,-678.0,-676.0,-674.0,-672.0,-670.0,-668.0,-666.0,-664.0,-662.0,-660.0,-658.0,-656.0,-654.0,-652.0,-650.0,-648.0,-646.0,-644.0,-642.0,-640.0,-638.0,-636.0,-634.0,-632.0,-630.0,-628.0,-626.0,-624.0,-622.0,-620.0,-618.0,-616.0,-614.0,-612.0,-610.0,-608.0,-606.0,-604.0,-602.0,-600.0,-598.0,-596.0,-594.0,-592.0,-590.0,-588.0,-586.0,-583.5,-581.5,-579.5,-577.5,-575.5,-573.5,-571.5,-569.5,-567.5,-565.5,-563.5,-561.5,-559.5,-557.5,-555.5,-553.5,-551.5,-549.5,-547.5,-545.5,-543.5,-541.5,-539.5,-537.5,-535.5,-533.5,-531.5,-529.5,-527.5,-525.5,-523.5,-521.5,-519.5,-517.5,-515.5,-513.5,-511.5,-509.5,-507.5,-505.5,-503.5,-501.5,-499.5,-497.5,-495.5,-493.5,-491.5,-489.5,-487.5,-485.5,-483.5,-481.5,-479.5,-477.5,-475.5,-473.5,-471.5,-469.5,-467.5,-465.5,-463.5,-461.5,-459.5,-457.25,-455.25,-453.25,-451.25,-449.25,-447.25,-445.25,-443.25,-441.25,-439.25,-437.25,-435.25,-433.25,-431.25,-429.25,-427.25,-425.25,-423.25,-421.25,-419.25,-417.25,-415.25,-413.25,-411.25,-409.25,-407.25,-405.25,-403.25,-401.25,-399.25,-397.25,-395.25,-393.25,-391.25,-389.25,-387.25,-385.25,-383.25,-381.25,-379.25,-377.25,-375.0,-373.0,-371.0,-369.0,-367.0,-365.0,-363.0,-361.0,-359.0,-357.0,-355.0,-353.0,-351.0,-349.0,-347.0,-345.0,-343.0,-341.0,-339.0,-337.0,-335.0,-333.0,-331.0,-329.0,-327.0,-325.0,-323.0,-321.0,-319.0,-317.0,-315.0,-313.0,-311.0,-309.0,-307.0,-305.0,-303.0,-301.0,-299.0,-297.0,-295.0,-293.0,-290.75,-288.75,-286.75,-284.75,-282.75,-280.75,-278.75,-276.75,-274.75,-272.75,-270.75,-268.75,-266.75,-264.75,-262.75,-260.75,-258.75,-256.75,-254.75,-252.75,-250.75,-248.75,-246.75,-244.75,-242.75,-240.75,-238.75,-236.75,-234.75,-232.75,-230.75,-228.625,-226.625,-224.625,-222.625,-220.625,-218.625,-216.625,-214.625,-212.625,-210.625,-208.625,-206.625,-204.625,-202.625,-200.625,-198.625,-196.625,-194.625,-192.625,-190.625,-188.625,-186.5,-184.5,-182.5,-180.5,-178.5,-176.5,-174.5,-172.5,-170.5,-168.5,-166.5,-164.5,-162.5,-160.5,-158.5,-156.5,-154.5,-152.5,-150.5,-148.5,-146.5,-144.375,-142.375,-140.375,-138.375,-136.375,-134.375,-132.375,-130.375,-128.375,-126.375,-124.375,-122.375,-120.375,-118.375,-116.375,-114.3125,-112.3125,-110.3125,-108.3125,-106.3125,-104.3125,-102.3125,-100.3125,-98.3125,-96.3125,-94.3125,-92.25,-90.25,-88.25,-86.25,-84.25,-82.25,-80.25,-78.25,-76.25,-74.25,-72.1875,-70.1875,-68.1875,-66.1875,-64.1875,-62.1875,-60.1875,-58.1875,-56.15625,-54.15625,-52.15625,-50.15625,-48.15625,-46.125,-44.125,-42.125,-40.125,-38.125,-36.09375,-34.09375,-32.09375,-30.09375,-28.078125,-26.078125,-24.078125,-22.0625,-20.0625,-18.046875,-16.046875,-14.0390625,-12.0390625,-10.03125,-8.0234375,-6.01953125,-4.01171875,-2.005859375,0.0],"x":[58322,58318,58314,58310,58306,58302,58298,58294,58290,58286,58282,58278,58274,58270,58266,58262,58258,58254,58250,58246,58242,58238,58234,58230,58226,58222,58218,58214,58210,58206,58202,58198,58194,58190,58186,58182,58178,58174,58170,58166,58162,58158,58153,58149,58145,58141,58137,58133,58129,58125,58121,58117,58113,58109,58105,58101,58097,58093,58089,58085,58081,58077,58073,58069,58065,58061,58057,58053,58049,58045,58041,58037,58033,58029,58025,58021,58017,58013,58009,58005,58001,57997,57993,57989,57985,57981,57977,57973,57969,57965,57961,57957,57953,57949,57945,57941,57937,57933,57929,57925,57921,57917,57913,57909,57905,57901,57897,57893,57889,57885,57881,57877,57873,57869,57865,57861,57857,57853,57849,57845,57841,57837,57833,57829,57825,57820,57816,57812,57808,57804,57800,57796,57792,57788,57784,57780,57776,57772,57768,57764,57760,57756,57752,57748,57744,57740,57736,57732,57728,57724,57720,57716,57712,57708,57704,57700,57696,57692,57688,57684,57680,57676,57672,57668,57664,57660,57656,57652,57648,57644,57640,57636,57632,57628,57624,57620,57616,57612,57608,57604,57600,57596,57592,57588,57584,57580,57576,57572,57568,57564,57560,57556,57552,57548,57544,57540,57536,57532,57528,57524,57520,57516,57512,57508,57504,57500,57496,57492,57487,57483,57479,57475,57471,57467,57463,57459,57455,57451,57447,57443,57439,57435,57431,57427,57423,57419,57415,57411,57407,57403,57399,57395,57391,57387,57383,57379,57375,57371,57367,57363,57359,57355,57351,57347,57342,57334,57326,57318,57310,57302,57294,57286,57278,57270,57262,57254,57246,57238,57230,57222,57214,57206,57198,57190,57182,57174,57166,57158,57150,57142,57134,57125,57117,57109,57101,57093,57085,57077,57069,57061,57053,57045,57037,57029,57021,57013,57005,56997,56989,56981,56973,56965,56957,56949,56941,56933,56925,56917,56909,56901,56893,56885,56877,56869,56861,56853,56845,56837,56829,56821,56813,56805,56796,56788,56780,56772,56764,56756,56748,56740,56732,56724,56716,56708,56700,56692,56684,56676,56668,56660,56652,56644,56636,56628,56620,56612,56604,56596,56588,56580,56572,56564,56556,56548,56540,56532,56524,56516,56508,56500,56492,56484,56476,56468,56459,56451,56443,56435,56427,56419,56411,56403,56395,56387,56379,56371,56363,56355,56347,56339,56331,56323,56310,56294,56278,56262,56246,56230,56214,56198,56182,56166,56150,56134,56118,56101,56085,56069,56053,56037,56021,56005,55989,55973,55957,55941,55925,55909,55893,55877,55861,55845,55829,55813,55797,55781,55764,55748,55732,55716,55700,55684,55668,55652,55636,55620,55604,55588,55572,55556,55540,55524,55508,55492,55476,55460,55444,55427,55411,55395,55379,55363,55347,55331,55315,55299,55270,55238,55206,55174,55142,55110,55077,55045,55013,54981,54949,54917,54885,54853,54821,54789,54757,54724,54692,54660,54628,54596,54564,54532,54500,54468,54436,54403,54371,54339,54307,54275,54214,54150,54086,54021,53957,53893,53829,53765,53700,53636,53572,53508,53444,53379,53315,53251,53126,52997,52869,52741,52612,52484,52355,52227,51973,51717,51460,51203,50693,50179,49155,0]} diff --git a/lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/negative_small.json b/lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/negative_small.json new file mode 100644 index 000000000000..16f48909d14e --- /dev/null +++ b/lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/negative_small.json @@ -0,0 +1 @@ +{"expected":[-1.0,-0.998046875,-0.99609375,-0.994140625,-0.9921875,-0.98974609375,-0.98779296875,-0.98583984375,-0.98388671875,-0.98193359375,-0.97998046875,-0.97802734375,-0.97607421875,-0.97412109375,-0.97216796875,-0.9697265625,-0.9677734375,-0.9658203125,-0.9638671875,-0.9619140625,-0.9599609375,-0.9580078125,-0.9560546875,-0.9541015625,-0.95166015625,-0.94970703125,-0.94775390625,-0.94580078125,-0.94384765625,-0.94189453125,-0.93994140625,-0.93798828125,-0.93603515625,-0.93408203125,-0.931640625,-0.9296875,-0.927734375,-0.92578125,-0.923828125,-0.921875,-0.919921875,-0.91796875,-0.916015625,-0.9140625,-0.91162109375,-0.90966796875,-0.90771484375,-0.90576171875,-0.90380859375,-0.90185546875,-0.89990234375,-0.89794921875,-0.89599609375,-0.8935546875,-0.8916015625,-0.8896484375,-0.8876953125,-0.8857421875,-0.8837890625,-0.8818359375,-0.8798828125,-0.8779296875,-0.8759765625,-0.87353515625,-0.87158203125,-0.86962890625,-0.86767578125,-0.86572265625,-0.86376953125,-0.86181640625,-0.85986328125,-0.85791015625,-0.85546875,-0.853515625,-0.8515625,-0.849609375,-0.84765625,-0.845703125,-0.84375,-0.841796875,-0.83984375,-0.837890625,-0.83544921875,-0.83349609375,-0.83154296875,-0.82958984375,-0.82763671875,-0.82568359375,-0.82373046875,-0.82177734375,-0.81982421875,-0.81787109375,-0.8154296875,-0.8134765625,-0.8115234375,-0.8095703125,-0.8076171875,-0.8056640625,-0.8037109375,-0.8017578125,-0.7998046875,-0.79736328125,-0.79541015625,-0.79345703125,-0.79150390625,-0.78955078125,-0.78759765625,-0.78564453125,-0.78369140625,-0.78173828125,-0.77978515625,-0.77734375,-0.775390625,-0.7734375,-0.771484375,-0.76953125,-0.767578125,-0.765625,-0.763671875,-0.76171875,-0.75927734375,-0.75732421875,-0.75537109375,-0.75341796875,-0.75146484375,-0.74951171875,-0.74755859375,-0.74560546875,-0.74365234375,-0.74169921875,-0.7392578125,-0.7373046875,-0.7353515625,-0.7333984375,-0.7314453125,-0.7294921875,-0.7275390625,-0.7255859375,-0.7236328125,-0.7216796875,-0.71923828125,-0.71728515625,-0.71533203125,-0.71337890625,-0.71142578125,-0.70947265625,-0.70751953125,-0.70556640625,-0.70361328125,-0.701171875,-0.69921875,-0.697265625,-0.6953125,-0.693359375,-0.69140625,-0.689453125,-0.6875,-0.685546875,-0.68359375,-0.68115234375,-0.67919921875,-0.67724609375,-0.67529296875,-0.67333984375,-0.67138671875,-0.66943359375,-0.66748046875,-0.66552734375,-0.6630859375,-0.6611328125,-0.6591796875,-0.6572265625,-0.6552734375,-0.6533203125,-0.6513671875,-0.6494140625,-0.6474609375,-0.6455078125,-0.64306640625,-0.64111328125,-0.63916015625,-0.63720703125,-0.63525390625,-0.63330078125,-0.63134765625,-0.62939453125,-0.62744140625,-0.62548828125,-0.623046875,-0.62109375,-0.619140625,-0.6171875,-0.615234375,-0.61328125,-0.611328125,-0.609375,-0.607421875,-0.60498046875,-0.60302734375,-0.60107421875,-0.59912109375,-0.59716796875,-0.59521484375,-0.59326171875,-0.59130859375,-0.58935546875,-0.58740234375,-0.5849609375,-0.5830078125,-0.5810546875,-0.5791015625,-0.5771484375,-0.5751953125,-0.5732421875,-0.5712890625,-0.5693359375,-0.56689453125,-0.56494140625,-0.56298828125,-0.56103515625,-0.55908203125,-0.55712890625,-0.55517578125,-0.55322265625,-0.55126953125,-0.54931640625,-0.546875,-0.544921875,-0.54296875,-0.541015625,-0.5390625,-0.537109375,-0.53515625,-0.533203125,-0.53125,-0.529296875,-0.52685546875,-0.52490234375,-0.52294921875,-0.52099609375,-0.51904296875,-0.51708984375,-0.51513671875,-0.51318359375,-0.51123046875,-0.5087890625,-0.5068359375,-0.5048828125,-0.5029296875,-0.5009765625,-0.4990234375,-0.4970703125,-0.494873046875,-0.492919921875,-0.490966796875,-0.489013671875,-0.487060546875,-0.48486328125,-0.48291015625,-0.48095703125,-0.47900390625,-0.47705078125,-0.474853515625,-0.472900390625,-0.470947265625,-0.468994140625,-0.467041015625,-0.46484375,-0.462890625,-0.4609375,-0.458984375,-0.45703125,-0.454833984375,-0.452880859375,-0.450927734375,-0.448974609375,-0.44677734375,-0.44482421875,-0.44287109375,-0.44091796875,-0.43896484375,-0.436767578125,-0.434814453125,-0.432861328125,-0.430908203125,-0.428955078125,-0.4267578125,-0.4248046875,-0.4228515625,-0.4208984375,-0.4189453125,-0.416748046875,-0.414794921875,-0.412841796875,-0.410888671875,-0.408935546875,-0.40673828125,-0.40478515625,-0.40283203125,-0.40087890625,-0.398681640625,-0.396728515625,-0.394775390625,-0.392822265625,-0.390869140625,-0.388671875,-0.38671875,-0.384765625,-0.3828125,-0.380859375,-0.378662109375,-0.376708984375,-0.374755859375,-0.372802734375,-0.370849609375,-0.36865234375,-0.36669921875,-0.36474609375,-0.36279296875,-0.36083984375,-0.358642578125,-0.356689453125,-0.354736328125,-0.352783203125,-0.3505859375,-0.3486328125,-0.3466796875,-0.3447265625,-0.3427734375,-0.340576171875,-0.338623046875,-0.336669921875,-0.334716796875,-0.332763671875,-0.33056640625,-0.32861328125,-0.32666015625,-0.32470703125,-0.32275390625,-0.320556640625,-0.318603515625,-0.316650390625,-0.314697265625,-0.312744140625,-0.310546875,-0.30859375,-0.306640625,-0.3046875,-0.302490234375,-0.300537109375,-0.298583984375,-0.296630859375,-0.294677734375,-0.29248046875,-0.29052734375,-0.28857421875,-0.28662109375,-0.28466796875,-0.282470703125,-0.280517578125,-0.278564453125,-0.276611328125,-0.274658203125,-0.2724609375,-0.2705078125,-0.2685546875,-0.2666015625,-0.2646484375,-0.262451171875,-0.260498046875,-0.258544921875,-0.256591796875,-0.25439453125,-0.25244140625,-0.25048828125,-0.24853515625,-0.2464599609375,-0.2445068359375,-0.242431640625,-0.240478515625,-0.238525390625,-0.2364501953125,-0.2344970703125,-0.232421875,-0.23046875,-0.228515625,-0.2264404296875,-0.2244873046875,-0.222412109375,-0.220458984375,-0.2183837890625,-0.2164306640625,-0.2144775390625,-0.21240234375,-0.21044921875,-0.2083740234375,-0.2064208984375,-0.2044677734375,-0.202392578125,-0.200439453125,-0.1983642578125,-0.1964111328125,-0.1943359375,-0.1923828125,-0.1904296875,-0.1883544921875,-0.1864013671875,-0.184326171875,-0.182373046875,-0.180419921875,-0.1783447265625,-0.1763916015625,-0.17431640625,-0.17236328125,-0.1702880859375,-0.1683349609375,-0.1663818359375,-0.164306640625,-0.162353515625,-0.1602783203125,-0.1583251953125,-0.1563720703125,-0.154296875,-0.15234375,-0.1502685546875,-0.1483154296875,-0.146240234375,-0.144287109375,-0.142333984375,-0.1402587890625,-0.1383056640625,-0.13623046875,-0.13427734375,-0.13232421875,-0.1302490234375,-0.1282958984375,-0.126220703125,-0.124267578125,-0.12225341796875,-0.1202392578125,-0.11822509765625,-0.1162109375,-0.1142578125,-0.11224365234375,-0.1102294921875,-0.10821533203125,-0.106201171875,-0.10418701171875,-0.10223388671875,-0.1002197265625,-0.09820556640625,-0.09619140625,-0.09417724609375,-0.0921630859375,-0.0902099609375,-0.08819580078125,-0.086181640625,-0.08416748046875,-0.0821533203125,-0.08013916015625,-0.07818603515625,-0.076171875,-0.07415771484375,-0.0721435546875,-0.07012939453125,-0.068115234375,-0.066162109375,-0.06414794921875,-0.0621337890625,-0.06011962890625,-0.05810546875,-0.056121826171875,-0.054107666015625,-0.052093505859375,-0.05010986328125,-0.048095703125,-0.04608154296875,-0.044097900390625,-0.042083740234375,-0.040069580078125,-0.0380859375,-0.03607177734375,-0.0340576171875,-0.032073974609375,-0.030059814453125,-0.0280609130859375,-0.0260467529296875,-0.0240478515625,-0.0220489501953125,-0.0200347900390625,-0.018035888671875,-0.0160369873046875,-0.01403045654296875,-0.01202392578125,-0.01001739501953125,-0.00801849365234375,-0.006011962890625,-0.004009246826171875,-0.0020046234130859375,0.0],"x":[48128,48124,48120,48116,48112,48107,48103,48099,48095,48091,48087,48083,48079,48075,48071,48066,48062,48058,48054,48050,48046,48042,48038,48034,48029,48025,48021,48017,48013,48009,48005,48001,47997,47993,47988,47984,47980,47976,47972,47968,47964,47960,47956,47952,47947,47943,47939,47935,47931,47927,47923,47919,47915,47910,47906,47902,47898,47894,47890,47886,47882,47878,47874,47869,47865,47861,47857,47853,47849,47845,47841,47837,47832,47828,47824,47820,47816,47812,47808,47804,47800,47796,47791,47787,47783,47779,47775,47771,47767,47763,47759,47755,47750,47746,47742,47738,47734,47730,47726,47722,47718,47713,47709,47705,47701,47697,47693,47689,47685,47681,47677,47672,47668,47664,47660,47656,47652,47648,47644,47640,47635,47631,47627,47623,47619,47615,47611,47607,47603,47599,47594,47590,47586,47582,47578,47574,47570,47566,47562,47558,47553,47549,47545,47541,47537,47533,47529,47525,47521,47516,47512,47508,47504,47500,47496,47492,47488,47484,47480,47475,47471,47467,47463,47459,47455,47451,47447,47443,47438,47434,47430,47426,47422,47418,47414,47410,47406,47402,47397,47393,47389,47385,47381,47377,47373,47369,47365,47361,47356,47352,47348,47344,47340,47336,47332,47328,47324,47319,47315,47311,47307,47303,47299,47295,47291,47287,47283,47278,47274,47270,47266,47262,47258,47254,47250,47246,47241,47237,47233,47229,47225,47221,47217,47213,47209,47205,47200,47196,47192,47188,47184,47180,47176,47172,47168,47164,47159,47155,47151,47147,47143,47139,47135,47131,47127,47122,47118,47114,47110,47106,47100,47092,47083,47075,47067,47059,47051,47042,47034,47026,47018,47010,47001,46993,46985,46977,46969,46960,46952,46944,46936,46928,46919,46911,46903,46895,46886,46878,46870,46862,46854,46845,46837,46829,46821,46813,46804,46796,46788,46780,46772,46763,46755,46747,46739,46731,46722,46714,46706,46698,46689,46681,46673,46665,46657,46648,46640,46632,46624,46616,46607,46599,46591,46583,46575,46566,46558,46550,46542,46534,46525,46517,46509,46501,46492,46484,46476,46468,46460,46451,46443,46435,46427,46419,46410,46402,46394,46386,46378,46369,46361,46353,46345,46337,46328,46320,46312,46304,46295,46287,46279,46271,46263,46254,46246,46238,46230,46222,46213,46205,46197,46189,46181,46172,46164,46156,46148,46140,46131,46123,46115,46107,46098,46090,46082,46068,46051,46035,46018,46002,45986,45969,45953,45936,45920,45904,45887,45871,45854,45838,45821,45805,45789,45772,45756,45739,45723,45707,45690,45674,45657,45641,45624,45608,45592,45575,45559,45542,45526,45510,45493,45477,45460,45444,45427,45411,45395,45378,45362,45345,45329,45313,45296,45280,45263,45247,45230,45214,45198,45181,45165,45148,45132,45116,45099,45083,45066,45044,45011,44978,44945,44912,44880,44847,44814,44781,44748,44715,44683,44650,44617,44584,44551,44518,44486,44453,44420,44387,44354,44321,44289,44256,44223,44190,44157,44124,44092,44059,44020,43954,43888,43823,43757,43691,43626,43560,43494,43429,43363,43297,43232,43166,43100,43035,42930,42799,42667,42536,42405,42273,42142,42011,41775,41512,41249,40987,40488,39963,38939,0]} diff --git a/lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/negative_subnormal.json b/lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/negative_subnormal.json new file mode 100644 index 000000000000..9264855bfded --- /dev/null +++ b/lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/negative_subnormal.json @@ -0,0 +1 @@ +{"expected":[-1.1920928955078125e-7,-2.384185791015625e-7,-3.5762786865234375e-7,-4.76837158203125e-7,-5.960464477539062e-7,-7.152557373046875e-7,-8.344650268554688e-7,-9.5367431640625e-7,-1.0728836059570312e-6,-1.1920928955078125e-6,-1.3113021850585938e-6,-1.430511474609375e-6,-1.5497207641601562e-6,-1.6689300537109375e-6,-1.7881393432617188e-6,-1.9073486328125e-6,-2.0265579223632812e-6,-2.1457672119140625e-6,-2.2649765014648438e-6,-2.384185791015625e-6,-2.5033950805664062e-6,-2.6226043701171875e-6,-2.7418136596679688e-6,-2.86102294921875e-6,-2.9802322387695312e-6,-3.0994415283203125e-6,-3.2186508178710938e-6,-3.337860107421875e-6,-3.4570693969726562e-6,-3.5762786865234375e-6,-3.6954879760742188e-6,-3.814697265625e-6,-3.933906555175781e-6,-4.0531158447265625e-6,-4.172325134277344e-6,-4.291534423828125e-6,-4.410743713378906e-6,-4.5299530029296875e-6,-4.649162292480469e-6,-4.76837158203125e-6,-4.887580871582031e-6,-5.0067901611328125e-6,-5.125999450683594e-6,-5.245208740234375e-6,-5.364418029785156e-6,-5.4836273193359375e-6,-5.602836608886719e-6,-5.7220458984375e-6,-5.841255187988281e-6,-5.9604644775390625e-6,-6.079673767089844e-6,-6.198883056640625e-6,-6.318092346191406e-6,-6.4373016357421875e-6,-6.556510925292969e-6,-6.67572021484375e-6,-6.794929504394531e-6,-6.9141387939453125e-6,-7.033348083496094e-6,-7.212162017822266e-6,-7.331371307373047e-6,-7.450580596923828e-6,-7.569789886474609e-6,-7.68899917602539e-6,-7.808208465576172e-6,-7.927417755126953e-6,-8.046627044677734e-6,-8.165836334228516e-6,-8.285045623779297e-6,-8.404254913330078e-6,-8.52346420288086e-6,-8.64267349243164e-6,-8.761882781982422e-6,-8.881092071533203e-6,-9.000301361083984e-6,-9.119510650634766e-6,-9.238719940185547e-6,-9.357929229736328e-6,-9.47713851928711e-6,-9.59634780883789e-6,-9.715557098388672e-6,-9.834766387939453e-6,-9.953975677490234e-6,-1.0073184967041016e-5,-1.0192394256591797e-5,-1.0311603546142578e-5,-1.043081283569336e-5,-1.055002212524414e-5,-1.0669231414794922e-5,-1.0788440704345703e-5,-1.0907649993896484e-5,-1.1026859283447266e-5,-1.1146068572998047e-5,-1.1265277862548828e-5,-1.138448715209961e-5,-1.150369644165039e-5,-1.1622905731201172e-5,-1.1742115020751953e-5,-1.1861324310302734e-5,-1.1980533599853516e-5,-1.2099742889404297e-5,-1.2218952178955078e-5,-1.233816146850586e-5,-1.245737075805664e-5,-1.2576580047607422e-5,-1.2695789337158203e-5,-1.2814998626708984e-5,-1.2934207916259766e-5,-1.3053417205810547e-5,-1.3172626495361328e-5,-1.329183578491211e-5,-1.341104507446289e-5,-1.3530254364013672e-5,-1.3649463653564453e-5,-1.3768672943115234e-5,-1.3887882232666016e-5,-1.4007091522216797e-5,-1.4126300811767578e-5,-1.424551010131836e-5,-1.436471939086914e-5,-1.4483928680419922e-5,-1.4603137969970703e-5,-1.4722347259521484e-5,-1.4841556549072266e-5,-1.4960765838623047e-5,-1.5079975128173828e-5,-1.519918441772461e-5,-1.531839370727539e-5,-1.5437602996826172e-5,-1.5556812286376953e-5,-1.5676021575927734e-5,-1.5854835510253906e-5,-1.5974044799804688e-5,-1.609325408935547e-5,-1.621246337890625e-5,-1.633167266845703e-5,-1.6450881958007812e-5,-1.6570091247558594e-5,-1.6689300537109375e-5,-1.6808509826660156e-5,-1.6927719116210938e-5,-1.704692840576172e-5,-1.71661376953125e-5,-1.728534698486328e-5,-1.7404556274414062e-5,-1.7523765563964844e-5,-1.7642974853515625e-5,-1.7762184143066406e-5,-1.7881393432617188e-5,-1.800060272216797e-5,-1.811981201171875e-5,-1.823902130126953e-5,-1.8358230590820312e-5,-1.8477439880371094e-5,-1.8596649169921875e-5,-1.8715858459472656e-5,-1.8835067749023438e-5,-1.895427703857422e-5,-1.9073486328125e-5,-1.919269561767578e-5,-1.9311904907226562e-5,-1.9431114196777344e-5,-1.9550323486328125e-5,-1.9669532775878906e-5,-1.9788742065429688e-5,-1.990795135498047e-5,-2.002716064453125e-5,-2.014636993408203e-5,-2.0265579223632812e-5,-2.0384788513183594e-5,-2.0503997802734375e-5,-2.0623207092285156e-5,-2.0742416381835938e-5,-2.086162567138672e-5,-2.09808349609375e-5,-2.110004425048828e-5,-2.1219253540039062e-5,-2.1338462829589844e-5,-2.1457672119140625e-5,-2.1576881408691406e-5,-2.1696090698242188e-5,-2.181529998779297e-5,-2.193450927734375e-5,-2.205371856689453e-5,-2.2172927856445312e-5,-2.2292137145996094e-5,-2.2411346435546875e-5,-2.2530555725097656e-5,-2.2649765014648438e-5,-2.276897430419922e-5,-2.288818359375e-5,-2.300739288330078e-5,-2.3126602172851562e-5,-2.3245811462402344e-5,-2.3365020751953125e-5,-2.3484230041503906e-5,-2.3603439331054688e-5,-2.372264862060547e-5,-2.384185791015625e-5,-2.396106719970703e-5,-2.4080276489257812e-5,-2.4199485778808594e-5,-2.4318695068359375e-5,-2.4497509002685547e-5,-2.4616718292236328e-5,-2.473592758178711e-5,-2.485513687133789e-5,-2.4974346160888672e-5,-2.5093555450439453e-5,-2.5212764739990234e-5,-2.5331974029541016e-5,-2.5451183319091797e-5,-2.5570392608642578e-5,-2.568960189819336e-5,-2.580881118774414e-5,-2.5928020477294922e-5,-2.6047229766845703e-5,-2.6166439056396484e-5,-2.6285648345947266e-5,-2.6404857635498047e-5,-2.6524066925048828e-5,-2.664327621459961e-5,-2.676248550415039e-5,-2.6881694793701172e-5,-2.7000904083251953e-5,-2.7120113372802734e-5,-2.7239322662353516e-5,-2.7358531951904297e-5,-2.7477741241455078e-5,-2.759695053100586e-5,-2.771615982055664e-5,-2.7835369110107422e-5,-2.7954578399658203e-5,-2.8073787689208984e-5,-2.8192996978759766e-5,-2.8312206268310547e-5,-2.8431415557861328e-5,-2.855062484741211e-5,-2.866983413696289e-5,-2.8789043426513672e-5,-2.8908252716064453e-5,-2.9027462005615234e-5,-2.9146671295166016e-5,-2.9265880584716797e-5,-2.9385089874267578e-5,-2.950429916381836e-5,-2.962350845336914e-5,-2.9742717742919922e-5,-2.9861927032470703e-5,-2.9981136322021484e-5,-3.0100345611572266e-5,-3.0219554901123047e-5,-3.0338764190673828e-5,-3.045797348022461e-5,-3.057718276977539e-5,-3.069639205932617e-5,-3.081560134887695e-5,-3.0934810638427734e-5,-3.1054019927978516e-5,-3.11732292175293e-5,-3.129243850708008e-5,-3.141164779663086e-5,-3.153085708618164e-5,-3.165006637573242e-5,-3.17692756652832e-5,-3.1888484954833984e-5,-3.2007694244384766e-5,-3.212690353393555e-5,-3.224611282348633e-5,-3.236532211303711e-5,-3.248453140258789e-5,-3.260374069213867e-5,-3.272294998168945e-5,-3.2842159271240234e-5,-3.2961368560791016e-5,-3.314018249511719e-5,-3.325939178466797e-5,-3.337860107421875e-5,-3.349781036376953e-5,-3.361701965332031e-5,-3.3736228942871094e-5,-3.3855438232421875e-5,-3.3974647521972656e-5,-3.409385681152344e-5,-3.421306610107422e-5,-3.4332275390625e-5,-3.445148468017578e-5,-3.457069396972656e-5,-3.4689903259277344e-5,-3.4809112548828125e-5,-3.4928321838378906e-5,-3.504753112792969e-5,-3.516674041748047e-5,-3.528594970703125e-5,-3.540515899658203e-5,-3.552436828613281e-5,-3.5643577575683594e-5,-3.5762786865234375e-5,-3.5881996154785156e-5,-3.600120544433594e-5,-3.612041473388672e-5,-3.62396240234375e-5,-3.635883331298828e-5,-3.647804260253906e-5,-3.6597251892089844e-5,-3.6716461181640625e-5,-3.6835670471191406e-5,-3.695487976074219e-5,-3.707408905029297e-5,-3.719329833984375e-5,-3.731250762939453e-5,-3.743171691894531e-5,-3.7550926208496094e-5,-3.7670135498046875e-5,-3.7789344787597656e-5,-3.790855407714844e-5,-3.802776336669922e-5,-3.814697265625e-5,-3.826618194580078e-5,-3.838539123535156e-5,-3.8504600524902344e-5,-3.8623809814453125e-5,-3.8743019104003906e-5,-3.886222839355469e-5,-3.898143768310547e-5,-3.910064697265625e-5,-3.921985626220703e-5,-3.933906555175781e-5,-3.9458274841308594e-5,-3.9577484130859375e-5,-3.9696693420410156e-5,-3.981590270996094e-5,-3.993511199951172e-5,-4.00543212890625e-5,-4.017353057861328e-5,-4.029273986816406e-5,-4.0411949157714844e-5,-4.0531158447265625e-5,-4.0650367736816406e-5,-4.076957702636719e-5,-4.088878631591797e-5,-4.100799560546875e-5,-4.112720489501953e-5,-4.124641418457031e-5,-4.1365623474121094e-5,-4.1484832763671875e-5,-4.166364669799805e-5,-4.178285598754883e-5,-4.190206527709961e-5,-4.202127456665039e-5,-4.214048385620117e-5,-4.225969314575195e-5,-4.2378902435302734e-5,-4.2498111724853516e-5,-4.26173210144043e-5,-4.273653030395508e-5,-4.285573959350586e-5,-4.297494888305664e-5,-4.309415817260742e-5,-4.32133674621582e-5,-4.3332576751708984e-5,-4.3451786041259766e-5,-4.357099533081055e-5,-4.369020462036133e-5,-4.380941390991211e-5,-4.392862319946289e-5,-4.404783248901367e-5,-4.416704177856445e-5,-4.4286251068115234e-5,-4.4405460357666016e-5,-4.45246696472168e-5,-4.464387893676758e-5,-4.476308822631836e-5,-4.488229751586914e-5,-4.500150680541992e-5,-4.51207160949707e-5,-4.5239925384521484e-5,-4.5359134674072266e-5,-4.547834396362305e-5,-4.559755325317383e-5,-4.571676254272461e-5,-4.583597183227539e-5,-4.595518112182617e-5,-4.607439041137695e-5,-4.6193599700927734e-5,-4.6312808990478516e-5,-4.64320182800293e-5,-4.655122756958008e-5,-4.667043685913086e-5,-4.678964614868164e-5,-4.690885543823242e-5,-4.70280647277832e-5,-4.7147274017333984e-5,-4.7266483306884766e-5,-4.738569259643555e-5,-4.750490188598633e-5,-4.762411117553711e-5,-4.774332046508789e-5,-4.786252975463867e-5,-4.798173904418945e-5,-4.8100948333740234e-5,-4.8220157623291016e-5,-4.83393669128418e-5,-4.845857620239258e-5,-4.857778549194336e-5,-4.869699478149414e-5,-4.881620407104492e-5,-4.89354133605957e-5,-4.9054622650146484e-5,-4.9173831939697266e-5,-4.929304122924805e-5,-4.941225051879883e-5,-4.953145980834961e-5,-4.965066909790039e-5,-4.976987838745117e-5,-4.988908767700195e-5,-5.0008296966552734e-5,-5.0127506256103516e-5,-5.030632019042969e-5,-5.042552947998047e-5,-5.054473876953125e-5,-5.066394805908203e-5,-5.078315734863281e-5,-5.0902366638183594e-5,-5.1021575927734375e-5,-5.1140785217285156e-5,-5.125999450683594e-5,-5.137920379638672e-5,-5.14984130859375e-5,-5.161762237548828e-5,-5.173683166503906e-5,-5.1856040954589844e-5,-5.1975250244140625e-5,-5.2094459533691406e-5,-5.221366882324219e-5,-5.233287811279297e-5,-5.245208740234375e-5,-5.257129669189453e-5,-5.269050598144531e-5,-5.2809715270996094e-5,-5.2928924560546875e-5,-5.3048133850097656e-5,-5.316734313964844e-5,-5.328655242919922e-5,-5.340576171875e-5,-5.352497100830078e-5,-5.364418029785156e-5,-5.3763389587402344e-5,-5.3882598876953125e-5,-5.4001808166503906e-5,-5.412101745605469e-5,-5.424022674560547e-5,-5.435943603515625e-5,-5.447864532470703e-5,-5.459785461425781e-5,-5.4717063903808594e-5,-5.4836273193359375e-5,-5.4955482482910156e-5,-5.507469177246094e-5,-5.519390106201172e-5,-5.53131103515625e-5,-5.543231964111328e-5,-5.555152893066406e-5,-5.5670738220214844e-5,-5.5789947509765625e-5,-5.5909156799316406e-5,-5.602836608886719e-5,-5.614757537841797e-5,-5.626678466796875e-5,-5.638599395751953e-5,-5.650520324707031e-5,-5.6624412536621094e-5,-5.6743621826171875e-5,-5.6862831115722656e-5,-5.698204040527344e-5,-5.710124969482422e-5,-5.7220458984375e-5,-5.733966827392578e-5,-5.745887756347656e-5,-5.7578086853027344e-5,-5.7697296142578125e-5,-5.7816505432128906e-5,-5.793571472167969e-5,-5.805492401123047e-5,-5.817413330078125e-5,-5.829334259033203e-5,-5.841255187988281e-5,-5.8531761169433594e-5,-5.8650970458984375e-5,-5.8770179748535156e-5,-5.894899368286133e-5,-5.906820297241211e-5,-5.918741226196289e-5,-5.930662155151367e-5,-5.942583084106445e-5,-5.9545040130615234e-5,-5.9664249420166016e-5,-5.97834587097168e-5,-5.990266799926758e-5,-6.002187728881836e-5],"x":[32770,32772,32774,32776,32778,32780,32782,32784,32786,32788,32790,32792,32794,32796,32798,32800,32802,32804,32806,32808,32810,32812,32814,32816,32818,32820,32822,32824,32826,32828,32830,32832,32834,32836,32838,32840,32842,32844,32846,32848,32850,32852,32854,32856,32858,32860,32862,32864,32866,32868,32870,32872,32874,32876,32878,32880,32882,32884,32886,32889,32891,32893,32895,32897,32899,32901,32903,32905,32907,32909,32911,32913,32915,32917,32919,32921,32923,32925,32927,32929,32931,32933,32935,32937,32939,32941,32943,32945,32947,32949,32951,32953,32955,32957,32959,32961,32963,32965,32967,32969,32971,32973,32975,32977,32979,32981,32983,32985,32987,32989,32991,32993,32995,32997,32999,33001,33003,33005,33007,33009,33011,33013,33015,33017,33019,33021,33023,33025,33027,33029,33031,33034,33036,33038,33040,33042,33044,33046,33048,33050,33052,33054,33056,33058,33060,33062,33064,33066,33068,33070,33072,33074,33076,33078,33080,33082,33084,33086,33088,33090,33092,33094,33096,33098,33100,33102,33104,33106,33108,33110,33112,33114,33116,33118,33120,33122,33124,33126,33128,33130,33132,33134,33136,33138,33140,33142,33144,33146,33148,33150,33152,33154,33156,33158,33160,33162,33164,33166,33168,33170,33172,33174,33176,33179,33181,33183,33185,33187,33189,33191,33193,33195,33197,33199,33201,33203,33205,33207,33209,33211,33213,33215,33217,33219,33221,33223,33225,33227,33229,33231,33233,33235,33237,33239,33241,33243,33245,33247,33249,33251,33253,33255,33257,33259,33261,33263,33265,33267,33269,33271,33273,33275,33277,33279,33281,33283,33285,33287,33289,33291,33293,33295,33297,33299,33301,33303,33305,33307,33309,33311,33313,33315,33317,33319,33321,33324,33326,33328,33330,33332,33334,33336,33338,33340,33342,33344,33346,33348,33350,33352,33354,33356,33358,33360,33362,33364,33366,33368,33370,33372,33374,33376,33378,33380,33382,33384,33386,33388,33390,33392,33394,33396,33398,33400,33402,33404,33406,33408,33410,33412,33414,33416,33418,33420,33422,33424,33426,33428,33430,33432,33434,33436,33438,33440,33442,33444,33446,33448,33450,33452,33454,33456,33458,33460,33462,33464,33467,33469,33471,33473,33475,33477,33479,33481,33483,33485,33487,33489,33491,33493,33495,33497,33499,33501,33503,33505,33507,33509,33511,33513,33515,33517,33519,33521,33523,33525,33527,33529,33531,33533,33535,33537,33539,33541,33543,33545,33547,33549,33551,33553,33555,33557,33559,33561,33563,33565,33567,33569,33571,33573,33575,33577,33579,33581,33583,33585,33587,33589,33591,33593,33595,33597,33599,33601,33603,33605,33607,33609,33612,33614,33616,33618,33620,33622,33624,33626,33628,33630,33632,33634,33636,33638,33640,33642,33644,33646,33648,33650,33652,33654,33656,33658,33660,33662,33664,33666,33668,33670,33672,33674,33676,33678,33680,33682,33684,33686,33688,33690,33692,33694,33696,33698,33700,33702,33704,33706,33708,33710,33712,33714,33716,33718,33720,33722,33724,33726,33728,33730,33732,33734,33736,33738,33740,33742,33744,33746,33748,33750,33752,33754,33757,33759,33761,33763,33765,33767,33769,33771,33773,33775]} diff --git a/lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/negative_tiny.json b/lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/negative_tiny.json new file mode 100644 index 000000000000..1d156b0963c3 --- /dev/null +++ b/lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/negative_tiny.json @@ -0,0 +1 @@ +{"expected":[-0.00010001659393310547,-0.00010180473327636719,-0.0001035928726196289,-0.00010544061660766602,-0.00010722875595092773,-0.00010901689529418945,-0.00011080503463745117,-0.00011265277862548828,-0.00011444091796875,-0.00011622905731201172,-0.00011801719665527344,-0.00011986494064331055,-0.00012165307998657227,-0.00012350082397460938,-0.0001252889633178711,-0.0001270771026611328,-0.00012886524200439453,-0.00013065338134765625,-0.00013244152069091797,-0.0001342296600341797,-0.0001360177993774414,-0.0001379251480102539,-0.00013971328735351562,-0.00014150142669677734,-0.00014328956604003906,-0.00014507770538330078,-0.0001468658447265625,-0.00014865398406982422,-0.00015044212341308594,-0.00015234947204589844,-0.00015413761138916016,-0.00015592575073242188,-0.0001577138900756836,-0.0001595020294189453,-0.00016129016876220703,-0.00016307830810546875,-0.00016498565673828125,-0.00016677379608154297,-0.0001685619354248047,-0.0001703500747680664,-0.00017213821411132812,-0.00017392635345458984,-0.00017571449279785156,-0.00017750263214111328,-0.00017940998077392578,-0.0001811981201171875,-0.00018298625946044922,-0.00018477439880371094,-0.00018656253814697266,-0.00018835067749023438,-0.0001901388168334961,-0.0001919269561767578,-0.0001938343048095703,-0.00019562244415283203,-0.00019741058349609375,-0.00019919872283935547,-0.0002009868621826172,-0.0002027750015258789,-0.00020456314086914062,-0.00020647048950195312,-0.00020825862884521484,-0.00021004676818847656,-0.00021183490753173828,-0.000213623046875,-0.00021541118621826172,-0.00021719932556152344,-0.00021898746490478516,-0.00022089481353759766,-0.00022268295288085938,-0.0002244710922241211,-0.0002262592315673828,-0.00022804737091064453,-0.00022983551025390625,-0.00023162364959716797,-0.0002334117889404297,-0.0002353191375732422,-0.0002371072769165039,-0.00023889541625976562,-0.00024068355560302734,-0.00024247169494628906,-0.00024437904357910156,-0.0002460479736328125,-0.000247955322265625,-0.00024962425231933594,-0.00025153160095214844,-0.0002532005310058594,-0.0002551078796386719,-0.0002570152282714844,-0.0002586841583251953,-0.0002605915069580078,-0.00026226043701171875,-0.00026416778564453125,-0.0002658367156982422,-0.0002677440643310547,-0.0002696514129638672,-0.0002713203430175781,-0.0002732276916503906,-0.00027489662170410156,-0.00027680397033691406,-0.000278472900390625,-0.0002803802490234375,-0.00028204917907714844,-0.00028395652770996094,-0.00028586387634277344,-0.0002875328063964844,-0.0002894401550292969,-0.0002911090850830078,-0.0002930164337158203,-0.00029468536376953125,-0.00029659271240234375,-0.00029850006103515625,-0.0003001689910888672,-0.0003020763397216797,-0.0003037452697753906,-0.0003056526184082031,-0.00030732154846191406,-0.00030922889709472656,-0.00031113624572753906,-0.00031280517578125,-0.0003147125244140625,-0.00031638145446777344,-0.00031828880310058594,-0.0003199577331542969,-0.0003218650817871094,-0.0003235340118408203,-0.0003254413604736328,-0.0003273487091064453,-0.00032901763916015625,-0.00033092498779296875,-0.0003325939178466797,-0.0003345012664794922,-0.0003361701965332031,-0.0003380775451660156,-0.0003399848937988281,-0.00034165382385253906,-0.00034356117248535156,-0.0003452301025390625,-0.000347137451171875,-0.00034880638122558594,-0.00035071372985839844,-0.00035262107849121094,-0.0003542900085449219,-0.0003561973571777344,-0.0003578662872314453,-0.0003597736358642578,-0.00036144256591796875,-0.00036334991455078125,-0.0003650188446044922,-0.0003669261932373047,-0.0003688335418701172,-0.0003705024719238281,-0.0003724098205566406,-0.00037407875061035156,-0.00037598609924316406,-0.000377655029296875,-0.0003795623779296875,-0.0003814697265625,-0.00038313865661621094,-0.00038504600524902344,-0.0003867149353027344,-0.0003886222839355469,-0.0003902912139892578,-0.0003921985626220703,-0.0003941059112548828,-0.00039577484130859375,-0.00039768218994140625,-0.0003993511199951172,-0.0004012584686279297,-0.0004029273986816406,-0.0004048347473144531,-0.00040650367736816406,-0.00040841102600097656,-0.00041031837463378906,-0.0004119873046875,-0.0004138946533203125,-0.00041556358337402344,-0.00041747093200683594,-0.0004191398620605469,-0.0004210472106933594,-0.0004229545593261719,-0.0004246234893798828,-0.0004265308380126953,-0.00042819976806640625,-0.00043010711669921875,-0.0004317760467529297,-0.0004336833953857422,-0.0004353523254394531,-0.0004372596740722656,-0.0004391670227050781,-0.00044083595275878906,-0.00044274330139160156,-0.0004444122314453125,-0.000446319580078125,-0.00044798851013183594,-0.00044989585876464844,-0.00045180320739746094,-0.0004534721374511719,-0.0004553794860839844,-0.0004570484161376953,-0.0004589557647705078,-0.00046062469482421875,-0.00046253204345703125,-0.00046443939208984375,-0.0004661083221435547,-0.0004680156707763672,-0.0004696846008300781,-0.0004715919494628906,-0.00047326087951660156,-0.00047516822814941406,-0.000476837158203125,-0.0004787445068359375,-0.00048065185546875,-0.00048232078552246094,-0.00048422813415527344,-0.0004858970642089844,-0.0004878044128417969,-0.0004897117614746094,-0.0004916191101074219,-0.0004930496215820312,-0.0004949569702148438,-0.0004968643188476562,-0.0004987716674804688,-0.0005002021789550781,-0.0005021095275878906,-0.0005040168762207031,-0.0005059242248535156,-0.0005078315734863281,-0.0005092620849609375,-0.00051116943359375,-0.0005130767822265625,-0.000514984130859375,-0.0005164146423339844,-0.0005183219909667969,-0.0005202293395996094,-0.0005221366882324219,-0.0005240440368652344,-0.0005254745483398438,-0.0005273818969726562,-0.0005292892456054688,-0.0005311965942382812,-0.0005331039428710938,-0.0005345344543457031,-0.0005364418029785156,-0.0005383491516113281,-0.0005402565002441406,-0.00054168701171875,-0.0005435943603515625,-0.000545501708984375,-0.0005474090576171875,-0.00054931640625,-0.0005507469177246094,-0.0005526542663574219,-0.0005545616149902344,-0.0005564689636230469,-0.0005578994750976562,-0.0005598068237304688,-0.0005617141723632812,-0.0005636215209960938,-0.0005655288696289062,-0.0005669593811035156,-0.0005688667297363281,-0.0005707740783691406,-0.0005726814270019531,-0.0005741119384765625,-0.000576019287109375,-0.0005779266357421875,-0.000579833984375,-0.0005817413330078125,-0.0005831718444824219,-0.0005850791931152344,-0.0005869865417480469,-0.0005888938903808594,-0.0005908012390136719,-0.0005922317504882812,-0.0005941390991210938,-0.0005960464477539062,-0.0005979537963867188,-0.0005993843078613281,-0.0006012916564941406,-0.0006031990051269531,-0.0006051063537597656,-0.0006070137023925781,-0.0006084442138671875,-0.0006103515625,-0.0006122589111328125,-0.000614166259765625,-0.0006155967712402344,-0.0006175041198730469,-0.0006194114685058594,-0.0006213188171386719,-0.0006232261657714844,-0.0006246566772460938,-0.0006265640258789062,-0.0006284713745117188,-0.0006303787231445312,-0.0006322860717773438,-0.0006337165832519531,-0.0006356239318847656,-0.0006375312805175781,-0.0006394386291503906,-0.000640869140625,-0.0006427764892578125,-0.000644683837890625,-0.0006465911865234375,-0.00064849853515625,-0.0006499290466308594,-0.0006518363952636719,-0.0006537437438964844,-0.0006556510925292969,-0.0006570816040039062,-0.0006589889526367188,-0.0006608963012695312,-0.0006628036499023438,-0.0006647109985351562,-0.0006661415100097656,-0.0006680488586425781,-0.0006699562072753906,-0.0006718635559082031,-0.0006737709045410156,-0.000675201416015625,-0.0006771087646484375,-0.00067901611328125,-0.0006809234619140625,-0.0006823539733886719,-0.0006842613220214844,-0.0006861686706542969,-0.0006880760192871094,-0.0006899833679199219,-0.0006914138793945312,-0.0006933212280273438,-0.0006952285766601562,-0.0006971359252929688,-0.0006985664367675781,-0.0007004737854003906,-0.0007023811340332031,-0.0007042884826660156,-0.0007061958312988281,-0.0007076263427734375,-0.00070953369140625,-0.0007114410400390625,-0.000713348388671875,-0.0007152557373046875,-0.0007166862487792969,-0.0007185935974121094,-0.0007205009460449219,-0.0007224082946777344,-0.0007238388061523438,-0.0007257461547851562,-0.0007276535034179688,-0.0007295608520507812,-0.0007314682006835938,-0.0007328987121582031,-0.0007348060607910156,-0.0007367134094238281,-0.0007386207580566406,-0.00074005126953125,-0.0007419586181640625,-0.000743865966796875,-0.0007457733154296875,-0.0007476806640625,-0.0007491111755371094,-0.0007510185241699219,-0.0007529258728027344,-0.0007548332214355469,-0.0007567405700683594,-0.0007581710815429688,-0.0007600784301757812,-0.0007619857788085938,-0.0007638931274414062,-0.0007653236389160156,-0.0007672309875488281,-0.0007691383361816406,-0.0007710456848144531,-0.0007729530334472656,-0.000774383544921875,-0.0007762908935546875,-0.0007781982421875,-0.0007801055908203125,-0.0007815361022949219,-0.0007834434509277344,-0.0007853507995605469,-0.0007872581481933594,-0.0007891654968261719,-0.0007905960083007812,-0.0007925033569335938,-0.0007944107055664062,-0.0007963180541992188,-0.0007982254028320312,-0.0007996559143066406,-0.0008015632629394531,-0.0008034706115722656,-0.0008053779602050781,-0.0008068084716796875,-0.0008087158203125,-0.0008106231689453125,-0.000812530517578125,-0.0008144378662109375,-0.0008158683776855469,-0.0008177757263183594,-0.0008196830749511719,-0.0008215904235839844,-0.0008230209350585938,-0.0008249282836914062,-0.0008268356323242188,-0.0008287429809570312,-0.0008306503295898438,-0.0008320808410644531,-0.0008339881896972656,-0.0008358955383300781,-0.0008378028869628906,-0.0008397102355957031,-0.0008411407470703125,-0.000843048095703125,-0.0008449554443359375,-0.00084686279296875,-0.0008482933044433594,-0.0008502006530761719,-0.0008521080017089844,-0.0008540153503417969,-0.0008559226989746094,-0.0008573532104492188,-0.0008592605590820312,-0.0008611679077148438,-0.0008630752563476562,-0.0008645057678222656,-0.0008664131164550781,-0.0008683204650878906,-0.0008702278137207031,-0.0008721351623535156,-0.000873565673828125,-0.0008754730224609375,-0.00087738037109375,-0.0008792877197265625,-0.000881195068359375,-0.0008826255798339844,-0.0008845329284667969,-0.0008864402770996094,-0.0008883476257324219,-0.0008897781372070312,-0.0008916854858398438,-0.0008935928344726562,-0.0008955001831054688,-0.0008974075317382812,-0.0008988380432128906,-0.0009007453918457031,-0.0009026527404785156,-0.0009045600891113281,-0.0009059906005859375,-0.00090789794921875,-0.0009098052978515625,-0.000911712646484375,-0.0009136199951171875,-0.0009150505065917969,-0.0009169578552246094,-0.0009188652038574219,-0.0009207725524902344,-0.0009226799011230469,-0.0009241104125976562,-0.0009260177612304688,-0.0009279251098632812,-0.0009298324584960938,-0.0009312629699707031,-0.0009331703186035156,-0.0009350776672363281,-0.0009369850158691406,-0.0009388923645019531,-0.0009403228759765625,-0.000942230224609375,-0.0009441375732421875,-0.000946044921875,-0.0009474754333496094,-0.0009493827819824219,-0.0009512901306152344,-0.0009531974792480469,-0.0009551048278808594,-0.0009565353393554688,-0.0009584426879882812,-0.0009603500366210938,-0.0009622573852539062,-0.0009641647338867188,-0.0009655952453613281,-0.0009675025939941406,-0.0009694099426269531,-0.0009713172912597656,-0.000972747802734375,-0.0009746551513671875,-0.0009765625,-0.0009784698486328125,-0.000980377197265625,-0.0009822845458984375,-0.00098419189453125,-0.0009851455688476562,-0.0009870529174804688,-0.0009889602661132812,-0.0009908676147460938,-0.0009927749633789062,-0.0009946823120117188,-0.0009965896606445312,-0.0009984970092773438,-0.0010004043579101562],"x":[34446,34476,34506,34537,34567,34597,34627,34658,34688,34718,34748,34779,34809,34828,34843,34858,34873,34888,34903,34918,34933,34949,34964,34979,34994,35009,35024,35039,35054,35070,35085,35100,35115,35130,35145,35160,35176,35191,35206,35221,35236,35251,35266,35281,35297,35312,35327,35342,35357,35372,35387,35402,35418,35433,35448,35463,35478,35493,35508,35524,35539,35554,35569,35584,35599,35614,35629,35645,35660,35675,35690,35705,35720,35735,35750,35766,35781,35796,35811,35826,35841,35848,35856,35863,35871,35878,35886,35894,35901,35909,35916,35924,35931,35939,35947,35954,35962,35969,35977,35984,35992,35999,36007,36015,36022,36030,36037,36045,36052,36060,36068,36075,36083,36090,36098,36105,36113,36121,36128,36136,36143,36151,36158,36166,36173,36181,36189,36196,36204,36211,36219,36226,36234,36242,36249,36257,36264,36272,36279,36287,36295,36302,36310,36317,36325,36332,36340,36347,36355,36363,36370,36378,36385,36393,36400,36408,36416,36423,36431,36438,36446,36453,36461,36469,36476,36484,36491,36499,36506,36514,36521,36529,36537,36544,36552,36559,36567,36574,36582,36590,36597,36605,36612,36620,36627,36635,36642,36650,36658,36665,36673,36680,36688,36695,36703,36711,36718,36726,36733,36741,36748,36756,36764,36771,36779,36786,36794,36801,36809,36816,36824,36832,36839,36847,36854,36862,36867,36871,36874,36878,36882,36886,36889,36893,36897,36901,36905,36908,36912,36916,36920,36923,36927,36931,36935,36939,36942,36946,36950,36954,36958,36961,36965,36969,36973,36976,36980,36984,36988,36992,36995,36999,37003,37007,37010,37014,37018,37022,37026,37029,37033,37037,37041,37044,37048,37052,37056,37060,37063,37067,37071,37075,37079,37082,37086,37090,37094,37097,37101,37105,37109,37113,37116,37120,37124,37128,37131,37135,37139,37143,37147,37150,37154,37158,37162,37166,37169,37173,37177,37181,37184,37188,37192,37196,37200,37203,37207,37211,37215,37218,37222,37226,37230,37234,37237,37241,37245,37249,37253,37256,37260,37264,37268,37271,37275,37279,37283,37287,37290,37294,37298,37302,37305,37309,37313,37317,37321,37324,37328,37332,37336,37340,37343,37347,37351,37355,37358,37362,37366,37370,37374,37377,37381,37385,37389,37392,37396,37400,37404,37408,37411,37415,37419,37423,37427,37430,37434,37438,37442,37445,37449,37453,37457,37461,37464,37468,37472,37476,37479,37483,37487,37491,37495,37498,37502,37506,37510,37514,37517,37521,37525,37529,37532,37536,37540,37544,37548,37551,37555,37559,37563,37566,37570,37574,37578,37582,37585,37589,37593,37597,37601,37604,37608,37612,37616,37619,37623,37627,37631,37635,37638,37642,37646,37650,37653,37657,37661,37665,37669,37672,37676,37680,37684,37688,37691,37695,37699,37703,37706,37710,37714,37718,37722,37725,37729,37733,37737,37740,37744,37748,37752,37756,37759,37763,37767,37771,37775,37778,37782,37786,37790,37793,37797,37801,37805,37809,37812,37816,37820,37824,37827,37831,37835,37839,37843,37846,37850,37854,37858,37862,37865,37869,37873,37877,37880,37884,37888,37890,37892,37894,37896,37897,37899,37901,37903,37905,37907,37909,37911,37913]} diff --git a/lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/positive_large.json b/lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/positive_large.json new file mode 100644 index 000000000000..a4fd9e17b041 --- /dev/null +++ b/lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/positive_large.json @@ -0,0 +1 @@ +{"expected":[1000.0,1128.0,1257.0,1385.0,1513.0,1641.0,1770.0,1898.0,2026.0,2154.0,2282.0,2410.0,2540.0,2668.0,2796.0,2924.0,3052.0,3180.0,3308.0,3436.0,3566.0,3694.0,3822.0,3950.0,4078.0,4208.0,4336.0,4464.0,4592.0,4720.0,4848.0,4976.0,5104.0,5232.0,5360.0,5488.0,5616.0,5744.0,5872.0,6004.0,6132.0,6260.0,6388.0,6516.0,6644.0,6772.0,6900.0,7028.0,7156.0,7284.0,7412.0,7540.0,7668.0,7796.0,7924.0,8056.0,8184.0,8312.0,8440.0,8568.0,8696.0,8824.0,8952.0,9080.0,9208.0,9336.0,9464.0,9592.0,9720.0,9848.0,9976.0,10104.0,10232.0,10360.0,10488.0,10616.0,10744.0,10872.0,11008.0,11136.0,11264.0,11392.0,11520.0,11648.0,11776.0,11904.0,12032.0,12160.0,12288.0,12416.0,12544.0,12672.0,12800.0,12928.0,13056.0,13184.0,13312.0,13440.0,13568.0,13696.0,13824.0,13952.0,14080.0,14208.0,14336.0,14464.0,14592.0,14720.0,14848.0,14976.0,15112.0,15240.0,15368.0,15496.0,15624.0,15752.0,15880.0,16008.0,16136.0,16264.0,16384.0,16512.0,16640.0,16768.0,16896.0,17040.0,17168.0,17296.0,17424.0,17552.0,17680.0,17808.0,17936.0,18064.0,18192.0,18320.0,18448.0,18576.0,18704.0,18832.0,18960.0,19088.0,19216.0,19344.0,19472.0,19600.0,19728.0,19856.0,19984.0,20112.0,20240.0,20368.0,20496.0,20624.0,20752.0,20880.0,21008.0,21136.0,21264.0,21392.0,21520.0,21648.0,21776.0,21904.0,22032.0,22160.0,22288.0,22416.0,22544.0,22672.0,22800.0,22928.0,23056.0,23184.0,23312.0,23440.0,23568.0,23696.0,23824.0,23952.0,24080.0,24208.0,24336.0,24464.0,24592.0,24720.0,24848.0,24976.0,25120.0,25248.0,25376.0,25504.0,25632.0,25760.0,25888.0,26016.0,26144.0,26272.0,26400.0,26528.0,26656.0,26784.0,26912.0,27040.0,27168.0,27296.0,27424.0,27552.0,27680.0,27808.0,27936.0,28064.0,28192.0,28320.0,28448.0,28576.0,28704.0,28832.0,28960.0,29088.0,29216.0,29344.0,29472.0,29600.0,29728.0,29856.0,29984.0,30112.0,30240.0,30368.0,30496.0,30624.0,30752.0,30880.0,31008.0,31136.0,31264.0,31392.0,31520.0,31648.0,31776.0,31904.0,32032.0,32160.0,32288.0,32416.0,32544.0,32672.0,32800.0,32928.0,33056.0,33184.0,33312.0,33440.0,33568.0,33696.0,33824.0,33952.0,34080.0,34208.0,34336.0,34464.0,34592.0,34720.0,34848.0,34976.0,35104.0,35232.0,35360.0,35488.0,35616.0,35744.0,35872.0,36000.0,36128.0,36256.0,36384.0,36512.0,36640.0,36768.0,36896.0,37056.0,37184.0,37312.0,37440.0,37568.0,37696.0,37824.0,37952.0,38080.0,38208.0,38336.0,38464.0,38592.0,38720.0,38848.0,38976.0,39104.0,39232.0,39360.0,39488.0,39616.0,39744.0,39872.0,40000.0,40128.0,40256.0,40384.0,40512.0,40640.0,40768.0,40896.0,41024.0,41152.0,41280.0,41408.0,41536.0,41664.0,41792.0,41920.0,42048.0,42176.0,42304.0,42432.0,42560.0,42688.0,42816.0,42944.0,43072.0,43200.0,43328.0,43456.0,43584.0,43712.0,43840.0,43968.0,44096.0,44224.0,44352.0,44480.0,44608.0,44736.0,44864.0,44992.0,45120.0,45248.0,45376.0,45504.0,45632.0,45760.0,45888.0,46016.0,46144.0,46272.0,46400.0,46528.0,46656.0,46784.0,46912.0,47040.0,47168.0,47296.0,47424.0,47552.0,47680.0,47808.0,47936.0,48064.0,48192.0,48320.0,48448.0,48576.0,48704.0,48832.0,48960.0,49088.0,49216.0,49344.0,49472.0,49600.0,49728.0,49856.0,49984.0,50112.0,50240.0,50368.0,50496.0,50624.0,50752.0,50880.0,51008.0,51136.0,51264.0,51392.0,51520.0,51648.0,51776.0,51904.0,52032.0,52160.0,52288.0,52416.0,52544.0,52672.0,52800.0,52928.0,53088.0,53216.0,53344.0,53472.0,53600.0,53728.0,53856.0,53984.0,54112.0,54240.0,54368.0,54496.0,54624.0,54752.0,54880.0,55008.0,55136.0,55264.0,55392.0,55520.0,55648.0,55776.0,55904.0,56032.0,56160.0,56288.0,56416.0,56544.0,56672.0,56800.0,56928.0,57056.0,57184.0,57312.0,57440.0,57568.0,57696.0,57824.0,57952.0,58080.0,58208.0,58336.0,58464.0,58592.0,58720.0,58848.0,58976.0,59104.0,59232.0,59360.0,59488.0,59616.0,59744.0,59872.0,60000.0,60128.0,60256.0,60384.0,60512.0,60640.0,60768.0,60896.0,61024.0,61152.0,61280.0,61408.0,61536.0,61664.0,61792.0,61920.0,62048.0,62176.0,62304.0,62432.0,62560.0,62688.0,62816.0,62944.0,63072.0,63200.0,63328.0,63456.0,63584.0,63712.0,63840.0,63968.0,64096.0,64224.0,64352.0,64480.0,64608.0,64736.0,64864.0,64992.0],"x":[25552,25704,25833,25961,26089,26217,26346,26474,26602,26677,26741,26805,26870,26934,26998,27062,27126,27190,27254,27318,27383,27447,27511,27575,27639,27676,27708,27740,27772,27804,27836,27868,27900,27932,27964,27996,28028,28060,28092,28125,28157,28189,28221,28253,28285,28317,28349,28381,28413,28445,28477,28509,28541,28573,28605,28638,28670,28687,28703,28719,28735,28751,28767,28783,28799,28815,28831,28847,28863,28879,28895,28911,28927,28943,28959,28975,28991,29007,29024,29040,29056,29072,29088,29104,29120,29136,29152,29168,29184,29200,29216,29232,29248,29264,29280,29296,29312,29328,29344,29360,29376,29392,29408,29424,29440,29456,29472,29488,29504,29520,29537,29553,29569,29585,29601,29617,29633,29649,29665,29681,29696,29704,29712,29720,29728,29737,29745,29753,29761,29769,29777,29785,29793,29801,29809,29817,29825,29833,29841,29849,29857,29865,29873,29881,29889,29897,29905,29913,29921,29929,29937,29945,29953,29961,29969,29977,29985,29993,30001,30009,30017,30025,30033,30041,30049,30057,30065,30073,30081,30089,30097,30105,30113,30121,30129,30137,30145,30153,30161,30169,30177,30185,30193,30201,30209,30217,30225,30233,30242,30250,30258,30266,30274,30282,30290,30298,30306,30314,30322,30330,30338,30346,30354,30362,30370,30378,30386,30394,30402,30410,30418,30426,30434,30442,30450,30458,30466,30474,30482,30490,30498,30506,30514,30522,30530,30538,30546,30554,30562,30570,30578,30586,30594,30602,30610,30618,30626,30634,30642,30650,30658,30666,30674,30682,30690,30698,30706,30714,30721,30725,30729,30733,30737,30741,30745,30749,30753,30757,30761,30765,30769,30773,30777,30781,30785,30789,30793,30797,30801,30805,30809,30813,30817,30821,30825,30829,30833,30837,30841,30845,30849,30854,30858,30862,30866,30870,30874,30878,30882,30886,30890,30894,30898,30902,30906,30910,30914,30918,30922,30926,30930,30934,30938,30942,30946,30950,30954,30958,30962,30966,30970,30974,30978,30982,30986,30990,30994,30998,31002,31006,31010,31014,31018,31022,31026,31030,31034,31038,31042,31046,31050,31054,31058,31062,31066,31070,31074,31078,31082,31086,31090,31094,31098,31102,31106,31110,31114,31118,31122,31126,31130,31134,31138,31142,31146,31150,31154,31158,31162,31166,31170,31174,31178,31182,31186,31190,31194,31198,31202,31206,31210,31214,31218,31222,31226,31230,31234,31238,31242,31246,31250,31254,31258,31262,31266,31270,31274,31278,31282,31286,31290,31294,31298,31302,31306,31310,31314,31318,31322,31326,31330,31334,31338,31342,31346,31350,31355,31359,31363,31367,31371,31375,31379,31383,31387,31391,31395,31399,31403,31407,31411,31415,31419,31423,31427,31431,31435,31439,31443,31447,31451,31455,31459,31463,31467,31471,31475,31479,31483,31487,31491,31495,31499,31503,31507,31511,31515,31519,31523,31527,31531,31535,31539,31543,31547,31551,31555,31559,31563,31567,31571,31575,31579,31583,31587,31591,31595,31599,31603,31607,31611,31615,31619,31623,31627,31631,31635,31639,31643,31647,31651,31655,31659,31663,31667,31671,31675,31679,31683,31687,31691,31695,31699,31703,31707,31711,31715,31719,31723,31727]} diff --git a/lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/positive_normal.json b/lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/positive_normal.json new file mode 100644 index 000000000000..31824ec9a6d8 --- /dev/null +++ b/lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/positive_normal.json @@ -0,0 +1 @@ +{"expected":[0.0,2.005859375,4.01171875,6.01953125,8.0234375,10.03125,12.0390625,14.0390625,16.046875,18.046875,20.0625,22.0625,24.078125,26.078125,28.078125,30.09375,32.09375,34.09375,36.09375,38.125,40.125,42.125,44.125,46.125,48.15625,50.15625,52.15625,54.15625,56.15625,58.1875,60.1875,62.1875,64.1875,66.1875,68.1875,70.1875,72.1875,74.25,76.25,78.25,80.25,82.25,84.25,86.25,88.25,90.25,92.25,94.3125,96.3125,98.3125,100.3125,102.3125,104.3125,106.3125,108.3125,110.3125,112.3125,114.3125,116.375,118.375,120.375,122.375,124.375,126.375,128.375,130.375,132.375,134.375,136.375,138.375,140.375,142.375,144.375,146.5,148.5,150.5,152.5,154.5,156.5,158.5,160.5,162.5,164.5,166.5,168.5,170.5,172.5,174.5,176.5,178.5,180.5,182.5,184.5,186.5,188.625,190.625,192.625,194.625,196.625,198.625,200.625,202.625,204.625,206.625,208.625,210.625,212.625,214.625,216.625,218.625,220.625,222.625,224.625,226.625,228.625,230.75,232.75,234.75,236.75,238.75,240.75,242.75,244.75,246.75,248.75,250.75,252.75,254.75,256.75,258.75,260.75,262.75,264.75,266.75,268.75,270.75,272.75,274.75,276.75,278.75,280.75,282.75,284.75,286.75,288.75,290.75,293.0,295.0,297.0,299.0,301.0,303.0,305.0,307.0,309.0,311.0,313.0,315.0,317.0,319.0,321.0,323.0,325.0,327.0,329.0,331.0,333.0,335.0,337.0,339.0,341.0,343.0,345.0,347.0,349.0,351.0,353.0,355.0,357.0,359.0,361.0,363.0,365.0,367.0,369.0,371.0,373.0,375.0,377.25,379.25,381.25,383.25,385.25,387.25,389.25,391.25,393.25,395.25,397.25,399.25,401.25,403.25,405.25,407.25,409.25,411.25,413.25,415.25,417.25,419.25,421.25,423.25,425.25,427.25,429.25,431.25,433.25,435.25,437.25,439.25,441.25,443.25,445.25,447.25,449.25,451.25,453.25,455.25,457.25,459.5,461.5,463.5,465.5,467.5,469.5,471.5,473.5,475.5,477.5,479.5,481.5,483.5,485.5,487.5,489.5,491.5,493.5,495.5,497.5,499.5,501.5,503.5,505.5,507.5,509.5,511.5,513.5,515.5,517.5,519.5,521.5,523.5,525.5,527.5,529.5,531.5,533.5,535.5,537.5,539.5,541.5,543.5,545.5,547.5,549.5,551.5,553.5,555.5,557.5,559.5,561.5,563.5,565.5,567.5,569.5,571.5,573.5,575.5,577.5,579.5,581.5,583.5,586.0,588.0,590.0,592.0,594.0,596.0,598.0,600.0,602.0,604.0,606.0,608.0,610.0,612.0,614.0,616.0,618.0,620.0,622.0,624.0,626.0,628.0,630.0,632.0,634.0,636.0,638.0,640.0,642.0,644.0,646.0,648.0,650.0,652.0,654.0,656.0,658.0,660.0,662.0,664.0,666.0,668.0,670.0,672.0,674.0,676.0,678.0,680.0,682.0,684.0,686.0,688.0,690.0,692.0,694.0,696.0,698.0,700.0,702.0,704.0,706.0,708.0,710.0,712.0,714.0,716.0,718.0,720.0,722.0,724.0,726.0,728.0,730.0,732.0,734.0,736.0,738.0,740.0,742.0,744.0,746.0,748.0,750.0,752.5,754.5,756.5,758.5,760.5,762.5,764.5,766.5,768.5,770.5,772.5,774.5,776.5,778.5,780.5,782.5,784.5,786.5,788.5,790.5,792.5,794.5,796.5,798.5,800.5,802.5,804.5,806.5,808.5,810.5,812.5,814.5,816.5,818.5,820.5,822.5,824.5,826.5,828.5,830.5,832.5,834.5,836.5,838.5,840.5,842.5,844.5,846.5,848.5,850.5,852.5,854.5,856.5,858.5,860.5,862.5,864.5,866.5,868.5,870.5,872.5,874.5,876.5,878.5,880.5,882.5,884.5,886.5,888.5,890.5,892.5,894.5,896.5,898.5,900.5,902.5,904.5,906.5,908.5,910.5,912.5,914.5,916.5,919.0,921.0,923.0,925.0,927.0,929.0,931.0,933.0,935.0,937.0,939.0,941.0,943.0,945.0,947.0,949.0,951.0,953.0,955.0,957.0,959.0,961.0,963.0,965.0,967.0,969.0,971.0,973.0,975.0,977.0,979.0,981.0,983.0,985.0,987.0,989.0,991.0,993.0,995.0,997.0,999.0,1001.0],"x":[0,16387,17411,17925,18435,18692,18949,19205,19459,19587,19716,19844,19973,20101,20229,20358,20483,20547,20611,20676,20740,20804,20868,20932,20997,21061,21125,21189,21253,21318,21382,21446,21507,21539,21571,21603,21635,21668,21700,21732,21764,21796,21828,21860,21892,21924,21956,21989,22021,22053,22085,22117,22149,22181,22213,22245,22277,22309,22342,22374,22406,22438,22470,22502,22531,22547,22563,22579,22595,22611,22627,22643,22659,22676,22692,22708,22724,22740,22756,22772,22788,22804,22820,22836,22852,22868,22884,22900,22916,22932,22948,22964,22980,22996,23013,23029,23045,23061,23077,23093,23109,23125,23141,23157,23173,23189,23205,23221,23237,23253,23269,23285,23301,23317,23333,23350,23366,23382,23398,23414,23430,23446,23462,23478,23494,23510,23526,23542,23555,23563,23571,23579,23587,23595,23603,23611,23619,23627,23635,23643,23651,23659,23667,23675,23683,23691,23700,23708,23716,23724,23732,23740,23748,23756,23764,23772,23780,23788,23796,23804,23812,23820,23828,23836,23844,23852,23860,23868,23876,23884,23892,23900,23908,23916,23924,23932,23940,23948,23956,23964,23972,23980,23988,23996,24004,24012,24020,24028,24037,24045,24053,24061,24069,24077,24085,24093,24101,24109,24117,24125,24133,24141,24149,24157,24165,24173,24181,24189,24197,24205,24213,24221,24229,24237,24245,24253,24261,24269,24277,24285,24293,24301,24309,24317,24325,24333,24341,24349,24357,24366,24374,24382,24390,24398,24406,24414,24422,24430,24438,24446,24454,24462,24470,24478,24486,24494,24502,24510,24518,24526,24534,24542,24550,24558,24566,24574,24579,24583,24587,24591,24595,24599,24603,24607,24611,24615,24619,24623,24627,24631,24635,24639,24643,24647,24651,24655,24659,24663,24667,24671,24675,24679,24683,24687,24691,24695,24699,24703,24707,24711,24715,24719,24724,24728,24732,24736,24740,24744,24748,24752,24756,24760,24764,24768,24772,24776,24780,24784,24788,24792,24796,24800,24804,24808,24812,24816,24820,24824,24828,24832,24836,24840,24844,24848,24852,24856,24860,24864,24868,24872,24876,24880,24884,24888,24892,24896,24900,24904,24908,24912,24916,24920,24924,24928,24932,24936,24940,24944,24948,24952,24956,24960,24964,24968,24972,24976,24980,24984,24988,24992,24996,25000,25004,25008,25012,25016,25020,25024,25028,25032,25036,25040,25044,25048,25052,25057,25061,25065,25069,25073,25077,25081,25085,25089,25093,25097,25101,25105,25109,25113,25117,25121,25125,25129,25133,25137,25141,25145,25149,25153,25157,25161,25165,25169,25173,25177,25181,25185,25189,25193,25197,25201,25205,25209,25213,25217,25221,25225,25229,25233,25237,25241,25245,25249,25253,25257,25261,25265,25269,25273,25277,25281,25285,25289,25293,25297,25301,25305,25309,25313,25317,25321,25325,25329,25333,25337,25341,25345,25349,25353,25357,25361,25365,25369,25373,25377,25381,25385,25390,25394,25398,25402,25406,25410,25414,25418,25422,25426,25430,25434,25438,25442,25446,25450,25454,25458,25462,25466,25470,25474,25478,25482,25486,25490,25494,25498,25502,25506,25510,25514,25518,25522,25526,25530,25534,25538,25542,25546,25550,25554]} diff --git a/lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/positive_small.json b/lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/positive_small.json new file mode 100644 index 000000000000..747d8c0cf7e7 --- /dev/null +++ b/lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/positive_small.json @@ -0,0 +1 @@ +{"expected":[0.0,0.0020046234130859375,0.004009246826171875,0.006011962890625,0.00801849365234375,0.01001739501953125,0.01202392578125,0.01403045654296875,0.0160369873046875,0.018035888671875,0.0200347900390625,0.0220489501953125,0.0240478515625,0.0260467529296875,0.0280609130859375,0.030059814453125,0.032073974609375,0.0340576171875,0.03607177734375,0.0380859375,0.040069580078125,0.042083740234375,0.044097900390625,0.04608154296875,0.048095703125,0.05010986328125,0.052093505859375,0.054107666015625,0.056121826171875,0.05810546875,0.06011962890625,0.0621337890625,0.06414794921875,0.066162109375,0.068115234375,0.07012939453125,0.0721435546875,0.07415771484375,0.076171875,0.07818603515625,0.08013916015625,0.0821533203125,0.08416748046875,0.086181640625,0.08819580078125,0.0902099609375,0.0921630859375,0.09417724609375,0.09619140625,0.09820556640625,0.1002197265625,0.10223388671875,0.10418701171875,0.106201171875,0.10821533203125,0.1102294921875,0.11224365234375,0.1142578125,0.1162109375,0.11822509765625,0.1202392578125,0.12225341796875,0.124267578125,0.126220703125,0.1282958984375,0.1302490234375,0.13232421875,0.13427734375,0.13623046875,0.1383056640625,0.1402587890625,0.142333984375,0.144287109375,0.146240234375,0.1483154296875,0.1502685546875,0.15234375,0.154296875,0.1563720703125,0.1583251953125,0.1602783203125,0.162353515625,0.164306640625,0.1663818359375,0.1683349609375,0.1702880859375,0.17236328125,0.17431640625,0.1763916015625,0.1783447265625,0.180419921875,0.182373046875,0.184326171875,0.1864013671875,0.1883544921875,0.1904296875,0.1923828125,0.1943359375,0.1964111328125,0.1983642578125,0.200439453125,0.202392578125,0.2044677734375,0.2064208984375,0.2083740234375,0.21044921875,0.21240234375,0.2144775390625,0.2164306640625,0.2183837890625,0.220458984375,0.222412109375,0.2244873046875,0.2264404296875,0.228515625,0.23046875,0.232421875,0.2344970703125,0.2364501953125,0.238525390625,0.240478515625,0.242431640625,0.2445068359375,0.2464599609375,0.24853515625,0.25048828125,0.25244140625,0.25439453125,0.256591796875,0.258544921875,0.260498046875,0.262451171875,0.2646484375,0.2666015625,0.2685546875,0.2705078125,0.2724609375,0.274658203125,0.276611328125,0.278564453125,0.280517578125,0.282470703125,0.28466796875,0.28662109375,0.28857421875,0.29052734375,0.29248046875,0.294677734375,0.296630859375,0.298583984375,0.300537109375,0.302490234375,0.3046875,0.306640625,0.30859375,0.310546875,0.312744140625,0.314697265625,0.316650390625,0.318603515625,0.320556640625,0.32275390625,0.32470703125,0.32666015625,0.32861328125,0.33056640625,0.332763671875,0.334716796875,0.336669921875,0.338623046875,0.340576171875,0.3427734375,0.3447265625,0.3466796875,0.3486328125,0.3505859375,0.352783203125,0.354736328125,0.356689453125,0.358642578125,0.36083984375,0.36279296875,0.36474609375,0.36669921875,0.36865234375,0.370849609375,0.372802734375,0.374755859375,0.376708984375,0.378662109375,0.380859375,0.3828125,0.384765625,0.38671875,0.388671875,0.390869140625,0.392822265625,0.394775390625,0.396728515625,0.398681640625,0.40087890625,0.40283203125,0.40478515625,0.40673828125,0.408935546875,0.410888671875,0.412841796875,0.414794921875,0.416748046875,0.4189453125,0.4208984375,0.4228515625,0.4248046875,0.4267578125,0.428955078125,0.430908203125,0.432861328125,0.434814453125,0.436767578125,0.43896484375,0.44091796875,0.44287109375,0.44482421875,0.44677734375,0.448974609375,0.450927734375,0.452880859375,0.454833984375,0.45703125,0.458984375,0.4609375,0.462890625,0.46484375,0.467041015625,0.468994140625,0.470947265625,0.472900390625,0.474853515625,0.47705078125,0.47900390625,0.48095703125,0.48291015625,0.48486328125,0.487060546875,0.489013671875,0.490966796875,0.492919921875,0.494873046875,0.4970703125,0.4990234375,0.5009765625,0.5029296875,0.5048828125,0.5068359375,0.5087890625,0.51123046875,0.51318359375,0.51513671875,0.51708984375,0.51904296875,0.52099609375,0.52294921875,0.52490234375,0.52685546875,0.529296875,0.53125,0.533203125,0.53515625,0.537109375,0.5390625,0.541015625,0.54296875,0.544921875,0.546875,0.54931640625,0.55126953125,0.55322265625,0.55517578125,0.55712890625,0.55908203125,0.56103515625,0.56298828125,0.56494140625,0.56689453125,0.5693359375,0.5712890625,0.5732421875,0.5751953125,0.5771484375,0.5791015625,0.5810546875,0.5830078125,0.5849609375,0.58740234375,0.58935546875,0.59130859375,0.59326171875,0.59521484375,0.59716796875,0.59912109375,0.60107421875,0.60302734375,0.60498046875,0.607421875,0.609375,0.611328125,0.61328125,0.615234375,0.6171875,0.619140625,0.62109375,0.623046875,0.62548828125,0.62744140625,0.62939453125,0.63134765625,0.63330078125,0.63525390625,0.63720703125,0.63916015625,0.64111328125,0.64306640625,0.6455078125,0.6474609375,0.6494140625,0.6513671875,0.6533203125,0.6552734375,0.6572265625,0.6591796875,0.6611328125,0.6630859375,0.66552734375,0.66748046875,0.66943359375,0.67138671875,0.67333984375,0.67529296875,0.67724609375,0.67919921875,0.68115234375,0.68359375,0.685546875,0.6875,0.689453125,0.69140625,0.693359375,0.6953125,0.697265625,0.69921875,0.701171875,0.70361328125,0.70556640625,0.70751953125,0.70947265625,0.71142578125,0.71337890625,0.71533203125,0.71728515625,0.71923828125,0.7216796875,0.7236328125,0.7255859375,0.7275390625,0.7294921875,0.7314453125,0.7333984375,0.7353515625,0.7373046875,0.7392578125,0.74169921875,0.74365234375,0.74560546875,0.74755859375,0.74951171875,0.75146484375,0.75341796875,0.75537109375,0.75732421875,0.75927734375,0.76171875,0.763671875,0.765625,0.767578125,0.76953125,0.771484375,0.7734375,0.775390625,0.77734375,0.77978515625,0.78173828125,0.78369140625,0.78564453125,0.78759765625,0.78955078125,0.79150390625,0.79345703125,0.79541015625,0.79736328125,0.7998046875,0.8017578125,0.8037109375,0.8056640625,0.8076171875,0.8095703125,0.8115234375,0.8134765625,0.8154296875,0.81787109375,0.81982421875,0.82177734375,0.82373046875,0.82568359375,0.82763671875,0.82958984375,0.83154296875,0.83349609375,0.83544921875,0.837890625,0.83984375,0.841796875,0.84375,0.845703125,0.84765625,0.849609375,0.8515625,0.853515625,0.85546875,0.85791015625,0.85986328125,0.86181640625,0.86376953125,0.86572265625,0.86767578125,0.86962890625,0.87158203125,0.87353515625,0.8759765625,0.8779296875,0.8798828125,0.8818359375,0.8837890625,0.8857421875,0.8876953125,0.8896484375,0.8916015625,0.8935546875,0.89599609375,0.89794921875,0.89990234375,0.90185546875,0.90380859375,0.90576171875,0.90771484375,0.90966796875,0.91162109375,0.9140625,0.916015625,0.91796875,0.919921875,0.921875,0.923828125,0.92578125,0.927734375,0.9296875,0.931640625,0.93408203125,0.93603515625,0.93798828125,0.93994140625,0.94189453125,0.94384765625,0.94580078125,0.94775390625,0.94970703125,0.95166015625,0.9541015625,0.9560546875,0.9580078125,0.9599609375,0.9619140625,0.9638671875,0.9658203125,0.9677734375,0.9697265625,0.97216796875,0.97412109375,0.97607421875,0.97802734375,0.97998046875,0.98193359375,0.98388671875,0.98583984375,0.98779296875,0.98974609375,0.9921875,0.994140625,0.99609375,0.998046875,1.0],"x":[0,6171,7195,7720,8219,8481,8744,9007,9243,9374,9505,9637,9768,9899,10031,10162,10267,10332,10398,10464,10529,10595,10661,10726,10792,10858,10923,10989,11055,11120,11186,11252,11291,11324,11356,11389,11422,11455,11488,11521,11553,11586,11619,11652,11685,11718,11750,11783,11816,11849,11882,11915,11947,11980,12013,12046,12079,12112,12144,12177,12210,12243,12276,12298,12315,12331,12348,12364,12380,12397,12413,12430,12446,12462,12479,12495,12512,12528,12545,12561,12577,12594,12610,12627,12643,12659,12676,12692,12709,12725,12742,12758,12774,12791,12807,12824,12840,12856,12873,12889,12906,12922,12939,12955,12971,12988,13004,13021,13037,13053,13070,13086,13103,13119,13136,13152,13168,13185,13201,13218,13234,13250,13267,13283,13300,13314,13322,13330,13339,13347,13355,13363,13372,13380,13388,13396,13404,13413,13421,13429,13437,13445,13454,13462,13470,13478,13486,13495,13503,13511,13519,13527,13536,13544,13552,13560,13569,13577,13585,13593,13601,13610,13618,13626,13634,13642,13651,13659,13667,13675,13683,13692,13700,13708,13716,13724,13733,13741,13749,13757,13766,13774,13782,13790,13798,13807,13815,13823,13831,13839,13848,13856,13864,13872,13880,13889,13897,13905,13913,13921,13930,13938,13946,13954,13963,13971,13979,13987,13995,14004,14012,14020,14028,14036,14045,14053,14061,14069,14077,14086,14094,14102,14110,14118,14127,14135,14143,14151,14160,14168,14176,14184,14192,14201,14209,14217,14225,14233,14242,14250,14258,14266,14274,14283,14291,14299,14307,14315,14324,14332,14338,14342,14346,14350,14354,14359,14363,14367,14371,14375,14379,14383,14387,14391,14396,14400,14404,14408,14412,14416,14420,14424,14428,14432,14437,14441,14445,14449,14453,14457,14461,14465,14469,14473,14478,14482,14486,14490,14494,14498,14502,14506,14510,14515,14519,14523,14527,14531,14535,14539,14543,14547,14551,14556,14560,14564,14568,14572,14576,14580,14584,14588,14593,14597,14601,14605,14609,14613,14617,14621,14625,14629,14634,14638,14642,14646,14650,14654,14658,14662,14666,14670,14675,14679,14683,14687,14691,14695,14699,14703,14707,14712,14716,14720,14724,14728,14732,14736,14740,14744,14748,14753,14757,14761,14765,14769,14773,14777,14781,14785,14790,14794,14798,14802,14806,14810,14814,14818,14822,14826,14831,14835,14839,14843,14847,14851,14855,14859,14863,14867,14872,14876,14880,14884,14888,14892,14896,14900,14904,14909,14913,14917,14921,14925,14929,14933,14937,14941,14945,14950,14954,14958,14962,14966,14970,14974,14978,14982,14987,14991,14995,14999,15003,15007,15011,15015,15019,15023,15028,15032,15036,15040,15044,15048,15052,15056,15060,15064,15069,15073,15077,15081,15085,15089,15093,15097,15101,15106,15110,15114,15118,15122,15126,15130,15134,15138,15142,15147,15151,15155,15159,15163,15167,15171,15175,15179,15184,15188,15192,15196,15200,15204,15208,15212,15216,15220,15225,15229,15233,15237,15241,15245,15249,15253,15257,15261,15266,15270,15274,15278,15282,15286,15290,15294,15298,15303,15307,15311,15315,15319,15323,15327,15331,15335,15339,15344,15348,15352,15356,15360]} diff --git a/lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/positive_subnormal.json b/lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/positive_subnormal.json new file mode 100644 index 000000000000..ac1a6996076c --- /dev/null +++ b/lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/positive_subnormal.json @@ -0,0 +1 @@ +{"expected":[1.1920928955078125e-7,2.384185791015625e-7,3.5762786865234375e-7,4.76837158203125e-7,5.960464477539062e-7,7.152557373046875e-7,8.344650268554688e-7,9.5367431640625e-7,1.0728836059570312e-6,1.1920928955078125e-6,1.3113021850585938e-6,1.430511474609375e-6,1.5497207641601562e-6,1.6689300537109375e-6,1.7881393432617188e-6,1.9073486328125e-6,2.0265579223632812e-6,2.1457672119140625e-6,2.2649765014648438e-6,2.384185791015625e-6,2.5033950805664062e-6,2.6226043701171875e-6,2.7418136596679688e-6,2.86102294921875e-6,2.9802322387695312e-6,3.0994415283203125e-6,3.2186508178710938e-6,3.337860107421875e-6,3.4570693969726562e-6,3.5762786865234375e-6,3.6954879760742188e-6,3.814697265625e-6,3.933906555175781e-6,4.0531158447265625e-6,4.172325134277344e-6,4.291534423828125e-6,4.410743713378906e-6,4.5299530029296875e-6,4.649162292480469e-6,4.76837158203125e-6,4.887580871582031e-6,5.0067901611328125e-6,5.125999450683594e-6,5.245208740234375e-6,5.364418029785156e-6,5.4836273193359375e-6,5.602836608886719e-6,5.7220458984375e-6,5.841255187988281e-6,5.9604644775390625e-6,6.079673767089844e-6,6.198883056640625e-6,6.318092346191406e-6,6.4373016357421875e-6,6.556510925292969e-6,6.67572021484375e-6,6.794929504394531e-6,6.9141387939453125e-6,7.033348083496094e-6,7.212162017822266e-6,7.331371307373047e-6,7.450580596923828e-6,7.569789886474609e-6,7.68899917602539e-6,7.808208465576172e-6,7.927417755126953e-6,8.046627044677734e-6,8.165836334228516e-6,8.285045623779297e-6,8.404254913330078e-6,8.52346420288086e-6,8.64267349243164e-6,8.761882781982422e-6,8.881092071533203e-6,9.000301361083984e-6,9.119510650634766e-6,9.238719940185547e-6,9.357929229736328e-6,9.47713851928711e-6,9.59634780883789e-6,9.715557098388672e-6,9.834766387939453e-6,9.953975677490234e-6,1.0073184967041016e-5,1.0192394256591797e-5,1.0311603546142578e-5,1.043081283569336e-5,1.055002212524414e-5,1.0669231414794922e-5,1.0788440704345703e-5,1.0907649993896484e-5,1.1026859283447266e-5,1.1146068572998047e-5,1.1265277862548828e-5,1.138448715209961e-5,1.150369644165039e-5,1.1622905731201172e-5,1.1742115020751953e-5,1.1861324310302734e-5,1.1980533599853516e-5,1.2099742889404297e-5,1.2218952178955078e-5,1.233816146850586e-5,1.245737075805664e-5,1.2576580047607422e-5,1.2695789337158203e-5,1.2814998626708984e-5,1.2934207916259766e-5,1.3053417205810547e-5,1.3172626495361328e-5,1.329183578491211e-5,1.341104507446289e-5,1.3530254364013672e-5,1.3649463653564453e-5,1.3768672943115234e-5,1.3887882232666016e-5,1.4007091522216797e-5,1.4126300811767578e-5,1.424551010131836e-5,1.436471939086914e-5,1.4483928680419922e-5,1.4603137969970703e-5,1.4722347259521484e-5,1.4841556549072266e-5,1.4960765838623047e-5,1.5079975128173828e-5,1.519918441772461e-5,1.531839370727539e-5,1.5437602996826172e-5,1.5556812286376953e-5,1.5676021575927734e-5,1.5854835510253906e-5,1.5974044799804688e-5,1.609325408935547e-5,1.621246337890625e-5,1.633167266845703e-5,1.6450881958007812e-5,1.6570091247558594e-5,1.6689300537109375e-5,1.6808509826660156e-5,1.6927719116210938e-5,1.704692840576172e-5,1.71661376953125e-5,1.728534698486328e-5,1.7404556274414062e-5,1.7523765563964844e-5,1.7642974853515625e-5,1.7762184143066406e-5,1.7881393432617188e-5,1.800060272216797e-5,1.811981201171875e-5,1.823902130126953e-5,1.8358230590820312e-5,1.8477439880371094e-5,1.8596649169921875e-5,1.8715858459472656e-5,1.8835067749023438e-5,1.895427703857422e-5,1.9073486328125e-5,1.919269561767578e-5,1.9311904907226562e-5,1.9431114196777344e-5,1.9550323486328125e-5,1.9669532775878906e-5,1.9788742065429688e-5,1.990795135498047e-5,2.002716064453125e-5,2.014636993408203e-5,2.0265579223632812e-5,2.0384788513183594e-5,2.0503997802734375e-5,2.0623207092285156e-5,2.0742416381835938e-5,2.086162567138672e-5,2.09808349609375e-5,2.110004425048828e-5,2.1219253540039062e-5,2.1338462829589844e-5,2.1457672119140625e-5,2.1576881408691406e-5,2.1696090698242188e-5,2.181529998779297e-5,2.193450927734375e-5,2.205371856689453e-5,2.2172927856445312e-5,2.2292137145996094e-5,2.2411346435546875e-5,2.2530555725097656e-5,2.2649765014648438e-5,2.276897430419922e-5,2.288818359375e-5,2.300739288330078e-5,2.3126602172851562e-5,2.3245811462402344e-5,2.3365020751953125e-5,2.3484230041503906e-5,2.3603439331054688e-5,2.372264862060547e-5,2.384185791015625e-5,2.396106719970703e-5,2.4080276489257812e-5,2.4199485778808594e-5,2.4318695068359375e-5,2.4497509002685547e-5,2.4616718292236328e-5,2.473592758178711e-5,2.485513687133789e-5,2.4974346160888672e-5,2.5093555450439453e-5,2.5212764739990234e-5,2.5331974029541016e-5,2.5451183319091797e-5,2.5570392608642578e-5,2.568960189819336e-5,2.580881118774414e-5,2.5928020477294922e-5,2.6047229766845703e-5,2.6166439056396484e-5,2.6285648345947266e-5,2.6404857635498047e-5,2.6524066925048828e-5,2.664327621459961e-5,2.676248550415039e-5,2.6881694793701172e-5,2.7000904083251953e-5,2.7120113372802734e-5,2.7239322662353516e-5,2.7358531951904297e-5,2.7477741241455078e-5,2.759695053100586e-5,2.771615982055664e-5,2.7835369110107422e-5,2.7954578399658203e-5,2.8073787689208984e-5,2.8192996978759766e-5,2.8312206268310547e-5,2.8431415557861328e-5,2.855062484741211e-5,2.866983413696289e-5,2.8789043426513672e-5,2.8908252716064453e-5,2.9027462005615234e-5,2.9146671295166016e-5,2.9265880584716797e-5,2.9385089874267578e-5,2.950429916381836e-5,2.962350845336914e-5,2.9742717742919922e-5,2.9861927032470703e-5,2.9981136322021484e-5,3.0100345611572266e-5,3.0219554901123047e-5,3.0338764190673828e-5,3.045797348022461e-5,3.057718276977539e-5,3.069639205932617e-5,3.081560134887695e-5,3.0934810638427734e-5,3.1054019927978516e-5,3.11732292175293e-5,3.129243850708008e-5,3.141164779663086e-5,3.153085708618164e-5,3.165006637573242e-5,3.17692756652832e-5,3.1888484954833984e-5,3.2007694244384766e-5,3.212690353393555e-5,3.224611282348633e-5,3.236532211303711e-5,3.248453140258789e-5,3.260374069213867e-5,3.272294998168945e-5,3.2842159271240234e-5,3.2961368560791016e-5,3.314018249511719e-5,3.325939178466797e-5,3.337860107421875e-5,3.349781036376953e-5,3.361701965332031e-5,3.3736228942871094e-5,3.3855438232421875e-5,3.3974647521972656e-5,3.409385681152344e-5,3.421306610107422e-5,3.4332275390625e-5,3.445148468017578e-5,3.457069396972656e-5,3.4689903259277344e-5,3.4809112548828125e-5,3.4928321838378906e-5,3.504753112792969e-5,3.516674041748047e-5,3.528594970703125e-5,3.540515899658203e-5,3.552436828613281e-5,3.5643577575683594e-5,3.5762786865234375e-5,3.5881996154785156e-5,3.600120544433594e-5,3.612041473388672e-5,3.62396240234375e-5,3.635883331298828e-5,3.647804260253906e-5,3.6597251892089844e-5,3.6716461181640625e-5,3.6835670471191406e-5,3.695487976074219e-5,3.707408905029297e-5,3.719329833984375e-5,3.731250762939453e-5,3.743171691894531e-5,3.7550926208496094e-5,3.7670135498046875e-5,3.7789344787597656e-5,3.790855407714844e-5,3.802776336669922e-5,3.814697265625e-5,3.826618194580078e-5,3.838539123535156e-5,3.8504600524902344e-5,3.8623809814453125e-5,3.8743019104003906e-5,3.886222839355469e-5,3.898143768310547e-5,3.910064697265625e-5,3.921985626220703e-5,3.933906555175781e-5,3.9458274841308594e-5,3.9577484130859375e-5,3.9696693420410156e-5,3.981590270996094e-5,3.993511199951172e-5,4.00543212890625e-5,4.017353057861328e-5,4.029273986816406e-5,4.0411949157714844e-5,4.0531158447265625e-5,4.0650367736816406e-5,4.076957702636719e-5,4.088878631591797e-5,4.100799560546875e-5,4.112720489501953e-5,4.124641418457031e-5,4.1365623474121094e-5,4.1484832763671875e-5,4.166364669799805e-5,4.178285598754883e-5,4.190206527709961e-5,4.202127456665039e-5,4.214048385620117e-5,4.225969314575195e-5,4.2378902435302734e-5,4.2498111724853516e-5,4.26173210144043e-5,4.273653030395508e-5,4.285573959350586e-5,4.297494888305664e-5,4.309415817260742e-5,4.32133674621582e-5,4.3332576751708984e-5,4.3451786041259766e-5,4.357099533081055e-5,4.369020462036133e-5,4.380941390991211e-5,4.392862319946289e-5,4.404783248901367e-5,4.416704177856445e-5,4.4286251068115234e-5,4.4405460357666016e-5,4.45246696472168e-5,4.464387893676758e-5,4.476308822631836e-5,4.488229751586914e-5,4.500150680541992e-5,4.51207160949707e-5,4.5239925384521484e-5,4.5359134674072266e-5,4.547834396362305e-5,4.559755325317383e-5,4.571676254272461e-5,4.583597183227539e-5,4.595518112182617e-5,4.607439041137695e-5,4.6193599700927734e-5,4.6312808990478516e-5,4.64320182800293e-5,4.655122756958008e-5,4.667043685913086e-5,4.678964614868164e-5,4.690885543823242e-5,4.70280647277832e-5,4.7147274017333984e-5,4.7266483306884766e-5,4.738569259643555e-5,4.750490188598633e-5,4.762411117553711e-5,4.774332046508789e-5,4.786252975463867e-5,4.798173904418945e-5,4.8100948333740234e-5,4.8220157623291016e-5,4.83393669128418e-5,4.845857620239258e-5,4.857778549194336e-5,4.869699478149414e-5,4.881620407104492e-5,4.89354133605957e-5,4.9054622650146484e-5,4.9173831939697266e-5,4.929304122924805e-5,4.941225051879883e-5,4.953145980834961e-5,4.965066909790039e-5,4.976987838745117e-5,4.988908767700195e-5,5.0008296966552734e-5,5.0127506256103516e-5,5.030632019042969e-5,5.042552947998047e-5,5.054473876953125e-5,5.066394805908203e-5,5.078315734863281e-5,5.0902366638183594e-5,5.1021575927734375e-5,5.1140785217285156e-5,5.125999450683594e-5,5.137920379638672e-5,5.14984130859375e-5,5.161762237548828e-5,5.173683166503906e-5,5.1856040954589844e-5,5.1975250244140625e-5,5.2094459533691406e-5,5.221366882324219e-5,5.233287811279297e-5,5.245208740234375e-5,5.257129669189453e-5,5.269050598144531e-5,5.2809715270996094e-5,5.2928924560546875e-5,5.3048133850097656e-5,5.316734313964844e-5,5.328655242919922e-5,5.340576171875e-5,5.352497100830078e-5,5.364418029785156e-5,5.3763389587402344e-5,5.3882598876953125e-5,5.4001808166503906e-5,5.412101745605469e-5,5.424022674560547e-5,5.435943603515625e-5,5.447864532470703e-5,5.459785461425781e-5,5.4717063903808594e-5,5.4836273193359375e-5,5.4955482482910156e-5,5.507469177246094e-5,5.519390106201172e-5,5.53131103515625e-5,5.543231964111328e-5,5.555152893066406e-5,5.5670738220214844e-5,5.5789947509765625e-5,5.5909156799316406e-5,5.602836608886719e-5,5.614757537841797e-5,5.626678466796875e-5,5.638599395751953e-5,5.650520324707031e-5,5.6624412536621094e-5,5.6743621826171875e-5,5.6862831115722656e-5,5.698204040527344e-5,5.710124969482422e-5,5.7220458984375e-5,5.733966827392578e-5,5.745887756347656e-5,5.7578086853027344e-5,5.7697296142578125e-5,5.7816505432128906e-5,5.793571472167969e-5,5.805492401123047e-5,5.817413330078125e-5,5.829334259033203e-5,5.841255187988281e-5,5.8531761169433594e-5,5.8650970458984375e-5,5.8770179748535156e-5,5.894899368286133e-5,5.906820297241211e-5,5.918741226196289e-5,5.930662155151367e-5,5.942583084106445e-5,5.9545040130615234e-5,5.9664249420166016e-5,5.97834587097168e-5,5.990266799926758e-5,6.002187728881836e-5],"x":[2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,121,123,125,127,129,131,133,135,137,139,141,143,145,147,149,151,153,155,157,159,161,163,165,167,169,171,173,175,177,179,181,183,185,187,189,191,193,195,197,199,201,203,205,207,209,211,213,215,217,219,221,223,225,227,229,231,233,235,237,239,241,243,245,247,249,251,253,255,257,259,261,263,266,268,270,272,274,276,278,280,282,284,286,288,290,292,294,296,298,300,302,304,306,308,310,312,314,316,318,320,322,324,326,328,330,332,334,336,338,340,342,344,346,348,350,352,354,356,358,360,362,364,366,368,370,372,374,376,378,380,382,384,386,388,390,392,394,396,398,400,402,404,406,408,411,413,415,417,419,421,423,425,427,429,431,433,435,437,439,441,443,445,447,449,451,453,455,457,459,461,463,465,467,469,471,473,475,477,479,481,483,485,487,489,491,493,495,497,499,501,503,505,507,509,511,513,515,517,519,521,523,525,527,529,531,533,535,537,539,541,543,545,547,549,551,553,556,558,560,562,564,566,568,570,572,574,576,578,580,582,584,586,588,590,592,594,596,598,600,602,604,606,608,610,612,614,616,618,620,622,624,626,628,630,632,634,636,638,640,642,644,646,648,650,652,654,656,658,660,662,664,666,668,670,672,674,676,678,680,682,684,686,688,690,692,694,696,699,701,703,705,707,709,711,713,715,717,719,721,723,725,727,729,731,733,735,737,739,741,743,745,747,749,751,753,755,757,759,761,763,765,767,769,771,773,775,777,779,781,783,785,787,789,791,793,795,797,799,801,803,805,807,809,811,813,815,817,819,821,823,825,827,829,831,833,835,837,839,841,844,846,848,850,852,854,856,858,860,862,864,866,868,870,872,874,876,878,880,882,884,886,888,890,892,894,896,898,900,902,904,906,908,910,912,914,916,918,920,922,924,926,928,930,932,934,936,938,940,942,944,946,948,950,952,954,956,958,960,962,964,966,968,970,972,974,976,978,980,982,984,986,989,991,993,995,997,999,1001,1003,1005,1007]} diff --git a/lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/positive_tiny.json b/lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/positive_tiny.json new file mode 100644 index 000000000000..c5eaa318a9be --- /dev/null +++ b/lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/positive_tiny.json @@ -0,0 +1 @@ +{"expected":[0.00010001659393310547,0.00010180473327636719,0.0001035928726196289,0.00010544061660766602,0.00010722875595092773,0.00010901689529418945,0.00011080503463745117,0.00011265277862548828,0.00011444091796875,0.00011622905731201172,0.00011801719665527344,0.00011986494064331055,0.00012165307998657227,0.00012350082397460938,0.0001252889633178711,0.0001270771026611328,0.00012886524200439453,0.00013065338134765625,0.00013244152069091797,0.0001342296600341797,0.0001360177993774414,0.0001379251480102539,0.00013971328735351562,0.00014150142669677734,0.00014328956604003906,0.00014507770538330078,0.0001468658447265625,0.00014865398406982422,0.00015044212341308594,0.00015234947204589844,0.00015413761138916016,0.00015592575073242188,0.0001577138900756836,0.0001595020294189453,0.00016129016876220703,0.00016307830810546875,0.00016498565673828125,0.00016677379608154297,0.0001685619354248047,0.0001703500747680664,0.00017213821411132812,0.00017392635345458984,0.00017571449279785156,0.00017750263214111328,0.00017940998077392578,0.0001811981201171875,0.00018298625946044922,0.00018477439880371094,0.00018656253814697266,0.00018835067749023438,0.0001901388168334961,0.0001919269561767578,0.0001938343048095703,0.00019562244415283203,0.00019741058349609375,0.00019919872283935547,0.0002009868621826172,0.0002027750015258789,0.00020456314086914062,0.00020647048950195312,0.00020825862884521484,0.00021004676818847656,0.00021183490753173828,0.000213623046875,0.00021541118621826172,0.00021719932556152344,0.00021898746490478516,0.00022089481353759766,0.00022268295288085938,0.0002244710922241211,0.0002262592315673828,0.00022804737091064453,0.00022983551025390625,0.00023162364959716797,0.0002334117889404297,0.0002353191375732422,0.0002371072769165039,0.00023889541625976562,0.00024068355560302734,0.00024247169494628906,0.00024437904357910156,0.0002460479736328125,0.000247955322265625,0.00024962425231933594,0.00025153160095214844,0.0002532005310058594,0.0002551078796386719,0.0002570152282714844,0.0002586841583251953,0.0002605915069580078,0.00026226043701171875,0.00026416778564453125,0.0002658367156982422,0.0002677440643310547,0.0002696514129638672,0.0002713203430175781,0.0002732276916503906,0.00027489662170410156,0.00027680397033691406,0.000278472900390625,0.0002803802490234375,0.00028204917907714844,0.00028395652770996094,0.00028586387634277344,0.0002875328063964844,0.0002894401550292969,0.0002911090850830078,0.0002930164337158203,0.00029468536376953125,0.00029659271240234375,0.00029850006103515625,0.0003001689910888672,0.0003020763397216797,0.0003037452697753906,0.0003056526184082031,0.00030732154846191406,0.00030922889709472656,0.00031113624572753906,0.00031280517578125,0.0003147125244140625,0.00031638145446777344,0.00031828880310058594,0.0003199577331542969,0.0003218650817871094,0.0003235340118408203,0.0003254413604736328,0.0003273487091064453,0.00032901763916015625,0.00033092498779296875,0.0003325939178466797,0.0003345012664794922,0.0003361701965332031,0.0003380775451660156,0.0003399848937988281,0.00034165382385253906,0.00034356117248535156,0.0003452301025390625,0.000347137451171875,0.00034880638122558594,0.00035071372985839844,0.00035262107849121094,0.0003542900085449219,0.0003561973571777344,0.0003578662872314453,0.0003597736358642578,0.00036144256591796875,0.00036334991455078125,0.0003650188446044922,0.0003669261932373047,0.0003688335418701172,0.0003705024719238281,0.0003724098205566406,0.00037407875061035156,0.00037598609924316406,0.000377655029296875,0.0003795623779296875,0.0003814697265625,0.00038313865661621094,0.00038504600524902344,0.0003867149353027344,0.0003886222839355469,0.0003902912139892578,0.0003921985626220703,0.0003941059112548828,0.00039577484130859375,0.00039768218994140625,0.0003993511199951172,0.0004012584686279297,0.0004029273986816406,0.0004048347473144531,0.00040650367736816406,0.00040841102600097656,0.00041031837463378906,0.0004119873046875,0.0004138946533203125,0.00041556358337402344,0.00041747093200683594,0.0004191398620605469,0.0004210472106933594,0.0004229545593261719,0.0004246234893798828,0.0004265308380126953,0.00042819976806640625,0.00043010711669921875,0.0004317760467529297,0.0004336833953857422,0.0004353523254394531,0.0004372596740722656,0.0004391670227050781,0.00044083595275878906,0.00044274330139160156,0.0004444122314453125,0.000446319580078125,0.00044798851013183594,0.00044989585876464844,0.00045180320739746094,0.0004534721374511719,0.0004553794860839844,0.0004570484161376953,0.0004589557647705078,0.00046062469482421875,0.00046253204345703125,0.00046443939208984375,0.0004661083221435547,0.0004680156707763672,0.0004696846008300781,0.0004715919494628906,0.00047326087951660156,0.00047516822814941406,0.000476837158203125,0.0004787445068359375,0.00048065185546875,0.00048232078552246094,0.00048422813415527344,0.0004858970642089844,0.0004878044128417969,0.0004897117614746094,0.0004916191101074219,0.0004930496215820312,0.0004949569702148438,0.0004968643188476562,0.0004987716674804688,0.0005002021789550781,0.0005021095275878906,0.0005040168762207031,0.0005059242248535156,0.0005078315734863281,0.0005092620849609375,0.00051116943359375,0.0005130767822265625,0.000514984130859375,0.0005164146423339844,0.0005183219909667969,0.0005202293395996094,0.0005221366882324219,0.0005240440368652344,0.0005254745483398438,0.0005273818969726562,0.0005292892456054688,0.0005311965942382812,0.0005331039428710938,0.0005345344543457031,0.0005364418029785156,0.0005383491516113281,0.0005402565002441406,0.00054168701171875,0.0005435943603515625,0.000545501708984375,0.0005474090576171875,0.00054931640625,0.0005507469177246094,0.0005526542663574219,0.0005545616149902344,0.0005564689636230469,0.0005578994750976562,0.0005598068237304688,0.0005617141723632812,0.0005636215209960938,0.0005655288696289062,0.0005669593811035156,0.0005688667297363281,0.0005707740783691406,0.0005726814270019531,0.0005741119384765625,0.000576019287109375,0.0005779266357421875,0.000579833984375,0.0005817413330078125,0.0005831718444824219,0.0005850791931152344,0.0005869865417480469,0.0005888938903808594,0.0005908012390136719,0.0005922317504882812,0.0005941390991210938,0.0005960464477539062,0.0005979537963867188,0.0005993843078613281,0.0006012916564941406,0.0006031990051269531,0.0006051063537597656,0.0006070137023925781,0.0006084442138671875,0.0006103515625,0.0006122589111328125,0.000614166259765625,0.0006155967712402344,0.0006175041198730469,0.0006194114685058594,0.0006213188171386719,0.0006232261657714844,0.0006246566772460938,0.0006265640258789062,0.0006284713745117188,0.0006303787231445312,0.0006322860717773438,0.0006337165832519531,0.0006356239318847656,0.0006375312805175781,0.0006394386291503906,0.000640869140625,0.0006427764892578125,0.000644683837890625,0.0006465911865234375,0.00064849853515625,0.0006499290466308594,0.0006518363952636719,0.0006537437438964844,0.0006556510925292969,0.0006570816040039062,0.0006589889526367188,0.0006608963012695312,0.0006628036499023438,0.0006647109985351562,0.0006661415100097656,0.0006680488586425781,0.0006699562072753906,0.0006718635559082031,0.0006737709045410156,0.000675201416015625,0.0006771087646484375,0.00067901611328125,0.0006809234619140625,0.0006823539733886719,0.0006842613220214844,0.0006861686706542969,0.0006880760192871094,0.0006899833679199219,0.0006914138793945312,0.0006933212280273438,0.0006952285766601562,0.0006971359252929688,0.0006985664367675781,0.0007004737854003906,0.0007023811340332031,0.0007042884826660156,0.0007061958312988281,0.0007076263427734375,0.00070953369140625,0.0007114410400390625,0.000713348388671875,0.0007152557373046875,0.0007166862487792969,0.0007185935974121094,0.0007205009460449219,0.0007224082946777344,0.0007238388061523438,0.0007257461547851562,0.0007276535034179688,0.0007295608520507812,0.0007314682006835938,0.0007328987121582031,0.0007348060607910156,0.0007367134094238281,0.0007386207580566406,0.00074005126953125,0.0007419586181640625,0.000743865966796875,0.0007457733154296875,0.0007476806640625,0.0007491111755371094,0.0007510185241699219,0.0007529258728027344,0.0007548332214355469,0.0007567405700683594,0.0007581710815429688,0.0007600784301757812,0.0007619857788085938,0.0007638931274414062,0.0007653236389160156,0.0007672309875488281,0.0007691383361816406,0.0007710456848144531,0.0007729530334472656,0.000774383544921875,0.0007762908935546875,0.0007781982421875,0.0007801055908203125,0.0007815361022949219,0.0007834434509277344,0.0007853507995605469,0.0007872581481933594,0.0007891654968261719,0.0007905960083007812,0.0007925033569335938,0.0007944107055664062,0.0007963180541992188,0.0007982254028320312,0.0007996559143066406,0.0008015632629394531,0.0008034706115722656,0.0008053779602050781,0.0008068084716796875,0.0008087158203125,0.0008106231689453125,0.000812530517578125,0.0008144378662109375,0.0008158683776855469,0.0008177757263183594,0.0008196830749511719,0.0008215904235839844,0.0008230209350585938,0.0008249282836914062,0.0008268356323242188,0.0008287429809570312,0.0008306503295898438,0.0008320808410644531,0.0008339881896972656,0.0008358955383300781,0.0008378028869628906,0.0008397102355957031,0.0008411407470703125,0.000843048095703125,0.0008449554443359375,0.00084686279296875,0.0008482933044433594,0.0008502006530761719,0.0008521080017089844,0.0008540153503417969,0.0008559226989746094,0.0008573532104492188,0.0008592605590820312,0.0008611679077148438,0.0008630752563476562,0.0008645057678222656,0.0008664131164550781,0.0008683204650878906,0.0008702278137207031,0.0008721351623535156,0.000873565673828125,0.0008754730224609375,0.00087738037109375,0.0008792877197265625,0.000881195068359375,0.0008826255798339844,0.0008845329284667969,0.0008864402770996094,0.0008883476257324219,0.0008897781372070312,0.0008916854858398438,0.0008935928344726562,0.0008955001831054688,0.0008974075317382812,0.0008988380432128906,0.0009007453918457031,0.0009026527404785156,0.0009045600891113281,0.0009059906005859375,0.00090789794921875,0.0009098052978515625,0.000911712646484375,0.0009136199951171875,0.0009150505065917969,0.0009169578552246094,0.0009188652038574219,0.0009207725524902344,0.0009226799011230469,0.0009241104125976562,0.0009260177612304688,0.0009279251098632812,0.0009298324584960938,0.0009312629699707031,0.0009331703186035156,0.0009350776672363281,0.0009369850158691406,0.0009388923645019531,0.0009403228759765625,0.000942230224609375,0.0009441375732421875,0.000946044921875,0.0009474754333496094,0.0009493827819824219,0.0009512901306152344,0.0009531974792480469,0.0009551048278808594,0.0009565353393554688,0.0009584426879882812,0.0009603500366210938,0.0009622573852539062,0.0009641647338867188,0.0009655952453613281,0.0009675025939941406,0.0009694099426269531,0.0009713172912597656,0.000972747802734375,0.0009746551513671875,0.0009765625,0.0009784698486328125,0.000980377197265625,0.0009822845458984375,0.00098419189453125,0.0009851455688476562,0.0009870529174804688,0.0009889602661132812,0.0009908676147460938,0.0009927749633789062,0.0009946823120117188,0.0009965896606445312,0.0009984970092773438,0.0010004043579101562],"x":[1678,1708,1738,1769,1799,1829,1859,1890,1920,1950,1980,2011,2041,2060,2075,2090,2105,2120,2135,2150,2165,2181,2196,2211,2226,2241,2256,2271,2286,2302,2317,2332,2347,2362,2377,2392,2408,2423,2438,2453,2468,2483,2498,2513,2529,2544,2559,2574,2589,2604,2619,2634,2650,2665,2680,2695,2710,2725,2740,2756,2771,2786,2801,2816,2831,2846,2861,2877,2892,2907,2922,2937,2952,2967,2982,2998,3013,3028,3043,3058,3073,3080,3088,3095,3103,3110,3118,3126,3133,3141,3148,3156,3163,3171,3179,3186,3194,3201,3209,3216,3224,3231,3239,3247,3254,3262,3269,3277,3284,3292,3300,3307,3315,3322,3330,3337,3345,3353,3360,3368,3375,3383,3390,3398,3405,3413,3421,3428,3436,3443,3451,3458,3466,3474,3481,3489,3496,3504,3511,3519,3527,3534,3542,3549,3557,3564,3572,3579,3587,3595,3602,3610,3617,3625,3632,3640,3648,3655,3663,3670,3678,3685,3693,3701,3708,3716,3723,3731,3738,3746,3753,3761,3769,3776,3784,3791,3799,3806,3814,3822,3829,3837,3844,3852,3859,3867,3874,3882,3890,3897,3905,3912,3920,3927,3935,3943,3950,3958,3965,3973,3980,3988,3996,4003,4011,4018,4026,4033,4041,4048,4056,4064,4071,4079,4086,4094,4099,4103,4106,4110,4114,4118,4121,4125,4129,4133,4137,4140,4144,4148,4152,4155,4159,4163,4167,4171,4174,4178,4182,4186,4190,4193,4197,4201,4205,4208,4212,4216,4220,4224,4227,4231,4235,4239,4242,4246,4250,4254,4258,4261,4265,4269,4273,4276,4280,4284,4288,4292,4295,4299,4303,4307,4311,4314,4318,4322,4326,4329,4333,4337,4341,4345,4348,4352,4356,4360,4363,4367,4371,4375,4379,4382,4386,4390,4394,4398,4401,4405,4409,4413,4416,4420,4424,4428,4432,4435,4439,4443,4447,4450,4454,4458,4462,4466,4469,4473,4477,4481,4485,4488,4492,4496,4500,4503,4507,4511,4515,4519,4522,4526,4530,4534,4537,4541,4545,4549,4553,4556,4560,4564,4568,4572,4575,4579,4583,4587,4590,4594,4598,4602,4606,4609,4613,4617,4621,4624,4628,4632,4636,4640,4643,4647,4651,4655,4659,4662,4666,4670,4674,4677,4681,4685,4689,4693,4696,4700,4704,4708,4711,4715,4719,4723,4727,4730,4734,4738,4742,4746,4749,4753,4757,4761,4764,4768,4772,4776,4780,4783,4787,4791,4795,4798,4802,4806,4810,4814,4817,4821,4825,4829,4833,4836,4840,4844,4848,4851,4855,4859,4863,4867,4870,4874,4878,4882,4885,4889,4893,4897,4901,4904,4908,4912,4916,4920,4923,4927,4931,4935,4938,4942,4946,4950,4954,4957,4961,4965,4969,4972,4976,4980,4984,4988,4991,4995,4999,5003,5007,5010,5014,5018,5022,5025,5029,5033,5037,5041,5044,5048,5052,5056,5059,5063,5067,5071,5075,5078,5082,5086,5090,5094,5097,5101,5105,5109,5112,5116,5120,5122,5124,5126,5128,5129,5131,5133,5135,5137,5139,5141,5143,5145]} diff --git a/lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/runner.jl b/lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/runner.jl new file mode 100644 index 000000000000..93d053b2df6c --- /dev/null +++ b/lib/node_modules/@stdlib/number/float16/base/from-word/test/fixtures/julia/runner.jl @@ -0,0 +1,108 @@ +#!/usr/bin/env julia +# +# @license Apache-2.0 +# +# Copyright (c) 2025 The Stdlib Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import JSON + +""" + gen( x, name ) + +Generate fixture data and write to file. + +# Arguments + +* `x`: domain +* `name::AbstractString`: output filename + +# Examples + +``` julia +julia> x = range( 0, stop = 1001, length = 500 ); +julia> gen( x, \"data.json\" ); +``` +""" +function gen( x, name ) + y = Array{UInt16}( undef, length(x) ); + z = Array{Float64}( undef, length(x) ); + for i in eachindex(x) + # Mimic implicit type promotion in JavaScript where we need to cast a Float64 to a Float16 before deriving a bit sequence: + f16 = convert( Float16, x[i] ); + y[i] = parse( UInt16, bitstring(f16), base = 2 ); + z[i] = convert( Float64, f16 ); + end + + # Store data to be written to file as a collection: + data = Dict([ + ("x", y), + ("expected", z) + ]); + + # Based on the script directory, create an output filepath: + filepath = joinpath( dir, name ); + + # Write the data to the output filepath as JSON: + outfile = open( filepath, "w" ); + write( outfile, JSON.json(data) ); + write( outfile, "\n" ); + close( outfile ); +end + +# Get the filename: +file = @__FILE__; + +# Extract the directory in which this file resides: +dir = dirname( file ); + +# Positive normal values: +x = range( 0, stop = 1001, length = 500 ); +gen( x, "positive_normal.json" ); + +# Negative normal values: +x = range( -1001, stop = 0, length = 500 ); +gen( x, "negative_normal.json" ); + +# Positive small values: +x = range( 0, stop = 1, length = 500 ); +gen( x, "positive_small.json" ); + +# Negative small values: +x = range( -1, stop = 0, length = 500 ); +gen( x, "negative_small.json" ); + +# Positive tiny values: +x = range( 1e-4, stop = 1e-3, length = 500 ); +gen( x, "positive_tiny.json" ); + +# Negative tiny values: +x = range( -1e-4, stop = -1e-3, length = 500 ); +gen( x, "negative_tiny.json" ); + +# Positive subnormal values: +x = range( 1e-7, stop = 6e-5, length = 500 ); +gen( x, "positive_subnormal.json" ); + +# Negative subnormal values: +x = range( -1e-7, stop = -6e-5, length = 500 ); +gen( x, "negative_subnormal.json" ); + +# Large positive values: +x = range( 1e3, stop = 6.5e4, length = 500 ); +gen( x, "positive_large.json" ); + +# Large negative values: +x = range( -1e3, stop = -6.5e4, length = 500 ); +gen( x, "negative_large.json" ); diff --git a/lib/node_modules/@stdlib/number/float16/base/from-word/test/test.js b/lib/node_modules/@stdlib/number/float16/base/from-word/test/test.js new file mode 100644 index 000000000000..1e86088b8a69 --- /dev/null +++ b/lib/node_modules/@stdlib/number/float16/base/from-word/test/test.js @@ -0,0 +1,293 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var tape = require( 'tape' ); +var NINF = require( '@stdlib/constants/float16/ninf' ); +var PINF = require( '@stdlib/constants/float16/pinf' ); +var isNegativeZero = require( '@stdlib/math/base/assert/is-negative-zero' ); +var isPositiveZero = require( '@stdlib/math/base/assert/is-positive-zero' ); +var isnan = require( '@stdlib/math/base/assert/is-nan' ); +var repeat = require( '@stdlib/string/repeat' ); +var rpad = require( '@stdlib/string/right-pad' ); +var fromWord = require( './../lib' ); + + +// FIXTURES // + +var negativeLarge = require( './fixtures/julia/negative_large.json' ); +var negativeNormal = require( './fixtures/julia/negative_normal.json' ); +var negativeSmall = require( './fixtures/julia/negative_small.json' ); +var negativeSubnormal = require( './fixtures/julia/negative_subnormal.json' ); +var negativeTiny = require( './fixtures/julia/negative_tiny.json' ); +var positiveLarge = require( './fixtures/julia/positive_large.json' ); +var positiveNormal = require( './fixtures/julia/positive_normal.json' ); +var positiveSmall = require( './fixtures/julia/positive_small.json' ); +var positiveSubnormal = require( './fixtures/julia/positive_subnormal.json' ); +var positiveTiny = require( './fixtures/julia/positive_tiny.json' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof fromWord, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'if provided `0`, the function returns `0`', function test( t ) { + t.strictEqual( isPositiveZero( fromWord( 0 ) ), true, 'equals 0' ); + t.end(); +}); + +tape( 'if provided a word corresponding to `-0`, the function returns `-0`', function test( t ) { + var word; + var sign; + var frac; + var exp; + var x; + var w; + + sign = '1'; + exp = repeat( '0', 5 ); // all 0s + frac = repeat( '0', 10 ); // all 0s + w = sign + exp + frac; + + word = parseInt( w, 2 ); + + x = fromWord( word ); + + t.strictEqual( isNegativeZero( x ), true, 'returns expected value' ); + t.end(); +}); + +tape( 'if provided a word corresponding to `+infinity`, the function returns `+infinity`', function test( t ) { + var word; + var sign; + var frac; + var exp; + var x; + var w; + + sign = '0'; + exp = repeat( '1', 5 ); // all 1s + frac = repeat( '0', 10 ); // all 0s + w = sign + exp + frac; + + word = parseInt( w, 2 ); + + x = fromWord( word ); + + t.strictEqual( x, PINF, 'equals +infinity' ); + t.end(); +}); + +tape( 'if provided a word corresponding to `-infinity`, the function returns `-infinity`', function test( t ) { + var word; + var sign; + var frac; + var exp; + var x; + var w; + + sign = '1'; + exp = repeat( '1', 5 ); // all 1s + frac = repeat( '0', 10 ); // all 0s + w = sign + exp + frac; + + word = parseInt( w, 2 ); + + x = fromWord( word ); + + t.strictEqual( x, NINF, 'equals -infinity' ); + t.end(); +}); + +tape( 'if provided a word corresponding to `NaN`, the function returns `NaN`', function test( t ) { + var word; + var sign; + var frac; + var exp; + var x; + var w; + + sign = '0'; + exp = repeat( '1', 5 ); // all 1s + frac = rpad( '1', 10, '0' ); // not all 0s + w = sign + exp + frac; + + word = parseInt( w, 2 ); + + x = fromWord( word ); + + t.strictEqual( isnan( x ), true, 'equals NaN' ); + t.end(); +}); + +tape( 'if provided words corresponding to large positive values, the function returns corresponding half-precision floating-point numbers', function test( t ) { + var expected; + var x; + var y; + var i; + + x = positiveLarge.x; + expected = positiveLarge.expected; + for ( i = 0; i < x.length; i++ ) { + y = fromWord( x[ i ] ); + t.strictEqual( y, expected[i], 'x: '+x[i]+', expected: '+expected[i] ); + } + t.end(); +}); + +tape( 'if provided words corresponding to normal positive values, the function returns corresponding half-precision floating-point numbers', function test( t ) { + var expected; + var x; + var y; + var i; + + x = positiveNormal.x; + expected = positiveNormal.expected; + for ( i = 0; i < x.length; i++ ) { + y = fromWord( x[ i ] ); + t.strictEqual( y, expected[i], 'x: '+x[i]+', expected: '+expected[i] ); + } + t.end(); +}); + +tape( 'if provided words corresponding to small positive values, the function returns corresponding half-precision floating-point numbers', function test( t ) { + var expected; + var x; + var y; + var i; + + x = positiveSmall.x; + expected = positiveSmall.expected; + for ( i = 0; i < x.length; i++ ) { + y = fromWord( x[ i ] ); + t.strictEqual( y, expected[i], 'x: '+x[i]+', expected: '+expected[i] ); + } + t.end(); +}); + +tape( 'if provided words corresponding to tiny positive values, the function returns corresponding half-precision floating-point numbers', function test( t ) { + var expected; + var x; + var y; + var i; + + x = positiveTiny.x; + expected = positiveTiny.expected; + for ( i = 0; i < x.length; i++ ) { + y = fromWord( x[ i ] ); + t.strictEqual( y, expected[i], 'x: '+x[i]+', expected: '+expected[i] ); + } + t.end(); +}); + +tape( 'if provided words corresponding to subnormal positive values, the function returns corresponding half-precision floating-point numbers', function test( t ) { + var expected; + var x; + var y; + var i; + + x = positiveSubnormal.x; + expected = positiveSubnormal.expected; + for ( i = 0; i < x.length; i++ ) { + y = fromWord( x[ i ] ); + t.strictEqual( y, expected[i], 'x: '+x[i]+', expected: '+expected[i] ); + } + t.end(); +}); + +tape( 'if provided words corresponding to large negative values, the function returns corresponding half-precision floating-point numbers', function test( t ) { + var expected; + var x; + var y; + var i; + + x = negativeLarge.x; + expected = negativeLarge.expected; + for ( i = 0; i < x.length; i++ ) { + y = fromWord( x[ i ] ); + t.strictEqual( y, expected[i], 'x: '+x[i]+', expected: '+expected[i] ); + } + t.end(); +}); + +tape( 'if provided words corresponding to normal negative values, the function returns corresponding half-precision floating-point numbers', function test( t ) { + var expected; + var x; + var y; + var i; + + x = negativeNormal.x; + expected = negativeNormal.expected; + for ( i = 0; i < x.length; i++ ) { + y = fromWord( x[ i ] ); + t.strictEqual( y, expected[i], 'x: '+x[i]+', expected: '+expected[i] ); + } + t.end(); +}); + +tape( 'if provided words corresponding to small negative values, the function returns corresponding half-precision floating-point numbers', function test( t ) { + var expected; + var x; + var y; + var i; + + x = negativeSmall.x; + expected = negativeSmall.expected; + for ( i = 0; i < x.length; i++ ) { + y = fromWord( x[ i ] ); + t.strictEqual( y, expected[i], 'x: '+x[i]+', expected: '+expected[i] ); + } + t.end(); +}); + +tape( 'if provided words corresponding to tiny negative values, the function returns corresponding half-precision floating-point numbers', function test( t ) { + var expected; + var x; + var y; + var i; + + x = negativeTiny.x; + expected = negativeTiny.expected; + for ( i = 0; i < x.length; i++ ) { + y = fromWord( x[ i ] ); + t.strictEqual( y, expected[i], 'x: '+x[i]+', expected: '+expected[i] ); + } + t.end(); +}); + +tape( 'if provided words corresponding to subnormal negative values, the function returns corresponding half-precision floating-point numbers', function test( t ) { + var expected; + var x; + var y; + var i; + + x = negativeSubnormal.x; + expected = negativeSubnormal.expected; + for ( i = 0; i < x.length; i++ ) { + y = fromWord( x[ i ] ); + t.strictEqual( y, expected[i], 'x: '+x[i]+', expected: '+expected[i] ); + } + t.end(); +}); From c6cbc2991bf21b71baa95e64cacf24a47e6d85c8 Mon Sep 17 00:00:00 2001 From: gururaj1512 Date: Wed, 3 Dec 2025 14:29:41 +0530 Subject: [PATCH 2/7] feat: add repl --- .../float16/base/from-word/docs/repl.txt | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 lib/node_modules/@stdlib/number/float16/base/from-word/docs/repl.txt diff --git a/lib/node_modules/@stdlib/number/float16/base/from-word/docs/repl.txt b/lib/node_modules/@stdlib/number/float16/base/from-word/docs/repl.txt new file mode 100644 index 000000000000..3d634995faed --- /dev/null +++ b/lib/node_modules/@stdlib/number/float16/base/from-word/docs/repl.txt @@ -0,0 +1,24 @@ + +{{alias}}( word ) + Creates a half-precision floating-point number from an unsigned integer + corresponding to an IEEE 754 binary representation. + + Parameters + ---------- + word: integer + Unsigned integer. + + Returns + ------- + out: float + Half-precision floating-point number. + + Examples + -------- + > var word = 15411; // => 0 01111 0000110011 + > var f16 = {{alias}}( word ) // when printed, promoted to float64 + 1.0498046875 + + See Also + -------- + From 32f3fb36d0221a2658b5b811565956ab8f7c36f6 Mon Sep 17 00:00:00 2001 From: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> Date: Wed, 3 Dec 2025 09:04:11 +0000 Subject: [PATCH 3/7] chore: update copyright years --- .../@stdlib/number/float16/base/from-word/examples/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/number/float16/base/from-word/examples/index.js b/lib/node_modules/@stdlib/number/float16/base/from-word/examples/index.js index 28661bdf9b1a..7ab8a88900e6 100644 --- a/lib/node_modules/@stdlib/number/float16/base/from-word/examples/index.js +++ b/lib/node_modules/@stdlib/number/float16/base/from-word/examples/index.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2018 The Stdlib Authors. +* Copyright (c) 2025 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. From 9723c151f3e0c8aa72960e4eee87eeb0d2d9a3bc Mon Sep 17 00:00:00 2001 From: gururaj1512 Date: Thu, 4 Dec 2025 14:49:03 +0530 Subject: [PATCH 4/7] refactor: use standalone constants --- .../number/float16/base/from-word/lib/main.js | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/node_modules/@stdlib/number/float16/base/from-word/lib/main.js b/lib/node_modules/@stdlib/number/float16/base/from-word/lib/main.js index 5c9af54fa42f..24518028f6b7 100644 --- a/lib/node_modules/@stdlib/number/float16/base/from-word/lib/main.js +++ b/lib/node_modules/@stdlib/number/float16/base/from-word/lib/main.js @@ -23,17 +23,17 @@ var NINF = require( '@stdlib/constants/float16/ninf' ); var PINF = require( '@stdlib/constants/float16/pinf' ); var FLOAT16_EXPONENT_BIAS = require( '@stdlib/constants/float16/exponent-bias' ); +var FLOAT16_SIGN_MASK = require( '@stdlib/constants/float16/sign-mask' ); +var FLOAT16_EXPONENT_MASK = require( '@stdlib/constants/float16/exponent-mask' ); +var FLOAT16_SIGNIFICAND_MASK = require( '@stdlib/constants/float16/significand-mask' ); +var FLOAT16_NUM_SIGNIFICAND_BITS = require( '@stdlib/constants/float16/num-significand-bits' ); var pow = require( '@stdlib/math/base/special/pow' ); // VARIABLES // -var SIGN_MASK = 0x8000; // 0x8000 = 32768 => 1 00000 0000000000 -var EXPONENT_MASK = 0x7C00; // 0x7C00 = 31744 => 0 11111 0000000000 -var MANTISSA_MASK = 0x03FF; // 0x03FF = 1023 => 0 00000 1111111111 - -var NUM_MANTISSA_BITS = 10; // Number of mantissa bits in float16 -var MAX_EXPONENT = 31; // Maximum exponent value +var MAX_EXPONENT = 31; // Maximum exponent value +var SUBNORMAL_EXPONENT = 1 - FLOAT16_EXPONENT_BIAS; // Minimum exponent for subnormal numbers // MAIN // @@ -57,13 +57,13 @@ function fromWord( word ) { var f16; // Extract sign bit (bit 15) - sign = ( word & SIGN_MASK ) >>> 15; + sign = ( word & FLOAT16_SIGN_MASK ) >>> 15; // Extract exponent (bits 14-10) - exponent = ( word & EXPONENT_MASK ) >>> NUM_MANTISSA_BITS; + exponent = ( word & FLOAT16_EXPONENT_MASK ) >>> FLOAT16_NUM_SIGNIFICAND_BITS; // Extract mantissa (bits 9-0) - mantissa = word & MANTISSA_MASK; + mantissa = word & FLOAT16_SIGNIFICAND_MASK; // Handle special cases if ( exponent === MAX_EXPONENT ) { @@ -85,7 +85,7 @@ function fromWord( word ) { return 0.0; } // Subnormal number: (-1)^sign × 2^(-14) × (0.mantissa) - f16 = pow( 2.0, -14 ) * ( mantissa / 1024.0 ); + f16 = pow( 2.0, SUBNORMAL_EXPONENT ) * ( mantissa / 1024.0 ); if ( sign ) { return -f16; } From c6f8feac78dd652aa5f7a2f18374ccf11293f012 Mon Sep 17 00:00:00 2001 From: Athan Date: Thu, 4 Dec 2025 03:23:49 -0800 Subject: [PATCH 5/7] docs: remove comment Signed-off-by: Athan --- .../@stdlib/number/float16/base/from-word/docs/repl.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/number/float16/base/from-word/docs/repl.txt b/lib/node_modules/@stdlib/number/float16/base/from-word/docs/repl.txt index 3d634995faed..8585634750a9 100644 --- a/lib/node_modules/@stdlib/number/float16/base/from-word/docs/repl.txt +++ b/lib/node_modules/@stdlib/number/float16/base/from-word/docs/repl.txt @@ -16,7 +16,7 @@ Examples -------- > var word = 15411; // => 0 01111 0000110011 - > var f16 = {{alias}}( word ) // when printed, promoted to float64 + > var f16 = {{alias}}( word ) 1.0498046875 See Also From 8877a6101422866c92a7d2989dbb88c906037127 Mon Sep 17 00:00:00 2001 From: Athan Date: Thu, 4 Dec 2025 03:24:12 -0800 Subject: [PATCH 6/7] docs: remove backticks Signed-off-by: Athan --- .../@stdlib/number/float16/base/from-word/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/number/float16/base/from-word/README.md b/lib/node_modules/@stdlib/number/float16/base/from-word/README.md index 6171eeffe9bc..316222175521 100644 --- a/lib/node_modules/@stdlib/number/float16/base/from-word/README.md +++ b/lib/node_modules/@stdlib/number/float16/base/from-word/README.md @@ -32,7 +32,7 @@ var fromWord = require( '@stdlib/number/float16/base/from-word' ); #### fromWord( word ) -Creates a [half-precision floating-point number][ieee754] from an unsigned `integer` corresponding to an [IEEE 754][ieee754] binary representation. +Creates a [half-precision floating-point number][ieee754] from an unsigned integer corresponding to an [IEEE 754][ieee754] binary representation. ```javascript var word = 15411; // => 0 01111 0000110011 From 1f0345445aacb6a9327c4de8d433d88670ac5f70 Mon Sep 17 00:00:00 2001 From: gururaj1512 Date: Thu, 4 Dec 2025 17:22:30 +0530 Subject: [PATCH 7/7] chore: apply suggested changes --- .../@stdlib/number/float16/base/from-word/README.md | 10 ++-------- .../float16/base/from-word/benchmark/benchmark.js | 9 ++------- .../number/float16/base/from-word/examples/index.js | 10 ++-------- .../@stdlib/number/float16/base/from-word/lib/main.js | 11 ++++++----- 4 files changed, 12 insertions(+), 28 deletions(-) diff --git a/lib/node_modules/@stdlib/number/float16/base/from-word/README.md b/lib/node_modules/@stdlib/number/float16/base/from-word/README.md index 316222175521..19a217d40eb6 100644 --- a/lib/node_modules/@stdlib/number/float16/base/from-word/README.md +++ b/lib/node_modules/@stdlib/number/float16/base/from-word/README.md @@ -58,20 +58,14 @@ var f16 = fromWord( word ); // when printed, implicitly promoted to float64 ```javascript -var uniform = require( '@stdlib/random/array/uniform' ); -var round = require( '@stdlib/math/base/special/round' ); -var map = require( '@stdlib/array/base/map' ); -var naryFunction = require( '@stdlib/utils/nary-function' ); +var discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); var pickArguments = require( '@stdlib/utils/pick-arguments' ); var logEachMap = require( '@stdlib/console/log-each-map' ); var MAX_UINT16 = require( '@stdlib/constants/uint16/max' ); var fromWord = require( '@stdlib/number/float16/base/from-word' ); // Generate an array of random numbers: -var arr = uniform( 1000, 0.0, MAX_UINT16 ); - -// Round each number: -var word = map( arr, naryFunction( round, 1 ) ); +var word = discreteUniform( 1000, 0.0, MAX_UINT16 ); // Create half-precision floating-point numbers from unsigned integers... logEachMap( 'word: %d => float16: %f', word, pickArguments( fromWord, [ 0 ] ) ); diff --git a/lib/node_modules/@stdlib/number/float16/base/from-word/benchmark/benchmark.js b/lib/node_modules/@stdlib/number/float16/base/from-word/benchmark/benchmark.js index 9720ac1b7066..992d70b7849b 100644 --- a/lib/node_modules/@stdlib/number/float16/base/from-word/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/number/float16/base/from-word/benchmark/benchmark.js @@ -21,11 +21,8 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/array/uniform' ); -var round = require( '@stdlib/math/base/special/round' ); +var discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); -var map = require( '@stdlib/array/base/map' ); -var naryFunction = require( '@stdlib/utils/nary-function' ); var MAX_UINT16 = require( '@stdlib/constants/uint16/max' ); var pkg = require( './../package.json' ).name; var fromWord = require( './../lib' ); @@ -35,12 +32,10 @@ var fromWord = require( './../lib' ); bench( pkg, function benchmark( b ) { var word; - var x; var y; var i; - x = uniform( 100, 0.0, MAX_UINT16 ); - word = map( x, naryFunction( round, 1 ) ); + word = discreteUniform( 100, 0.0, MAX_UINT16 ); b.tic(); for ( i = 0; i < b.iterations; i++ ) { diff --git a/lib/node_modules/@stdlib/number/float16/base/from-word/examples/index.js b/lib/node_modules/@stdlib/number/float16/base/from-word/examples/index.js index 7ab8a88900e6..043208260982 100644 --- a/lib/node_modules/@stdlib/number/float16/base/from-word/examples/index.js +++ b/lib/node_modules/@stdlib/number/float16/base/from-word/examples/index.js @@ -18,20 +18,14 @@ 'use strict'; -var uniform = require( '@stdlib/random/array/uniform' ); -var round = require( '@stdlib/math/base/special/round' ); -var map = require( '@stdlib/array/base/map' ); -var naryFunction = require( '@stdlib/utils/nary-function' ); +var discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); var pickArguments = require( '@stdlib/utils/pick-arguments' ); var logEachMap = require( '@stdlib/console/log-each-map' ); var MAX_UINT16 = require( '@stdlib/constants/uint16/max' ); var fromWord = require( './../lib' ); // Generate an array of random numbers: -var arr = uniform( 1000, 0.0, MAX_UINT16 ); - -// Round each number: -var word = map( arr, naryFunction( round, 1 ) ); +var word = discreteUniform( 1000, 0.0, MAX_UINT16 ); // Create half-precision floating-point numbers from unsigned integers... logEachMap( 'word: %d => float16: %f', word, pickArguments( fromWord, [ 0 ] ) ); diff --git a/lib/node_modules/@stdlib/number/float16/base/from-word/lib/main.js b/lib/node_modules/@stdlib/number/float16/base/from-word/lib/main.js index 24518028f6b7..499e64614c5b 100644 --- a/lib/node_modules/@stdlib/number/float16/base/from-word/lib/main.js +++ b/lib/node_modules/@stdlib/number/float16/base/from-word/lib/main.js @@ -22,18 +22,19 @@ var NINF = require( '@stdlib/constants/float16/ninf' ); var PINF = require( '@stdlib/constants/float16/pinf' ); +var exp2 = require( '@stdlib/math/base/special/exp2' ); var FLOAT16_EXPONENT_BIAS = require( '@stdlib/constants/float16/exponent-bias' ); var FLOAT16_SIGN_MASK = require( '@stdlib/constants/float16/sign-mask' ); var FLOAT16_EXPONENT_MASK = require( '@stdlib/constants/float16/exponent-mask' ); var FLOAT16_SIGNIFICAND_MASK = require( '@stdlib/constants/float16/significand-mask' ); var FLOAT16_NUM_SIGNIFICAND_BITS = require( '@stdlib/constants/float16/num-significand-bits' ); -var pow = require( '@stdlib/math/base/special/pow' ); +var FLOAT16_NUM_EXPONENT_BITS = require( '@stdlib/constants/float16/num-exponent-bits' ); // VARIABLES // -var MAX_EXPONENT = 31; // Maximum exponent value -var SUBNORMAL_EXPONENT = 1 - FLOAT16_EXPONENT_BIAS; // Minimum exponent for subnormal numbers +var MAX_EXPONENT = exp2( FLOAT16_NUM_EXPONENT_BITS ) - 1; // Maximum exponent value +var SUBNORMAL_EXPONENT = 1 - FLOAT16_EXPONENT_BIAS; // Minimum exponent for subnormal numbers // MAIN // @@ -85,7 +86,7 @@ function fromWord( word ) { return 0.0; } // Subnormal number: (-1)^sign × 2^(-14) × (0.mantissa) - f16 = pow( 2.0, SUBNORMAL_EXPONENT ) * ( mantissa / 1024.0 ); + f16 = exp2( SUBNORMAL_EXPONENT ) * ( mantissa / 1024.0 ); if ( sign ) { return -f16; } @@ -93,7 +94,7 @@ function fromWord( word ) { } // Normal number: (-1)^sign × 2^(exponent - 15) × (1.mantissa) - f16 = pow( 2.0, exponent - FLOAT16_EXPONENT_BIAS ) * ( 1.0 + ( mantissa / 1024.0 ) ); // eslint-disable-line max-len + f16 = exp2( exponent - FLOAT16_EXPONENT_BIAS ) * ( 1.0 + ( mantissa / 1024.0 ) ); // eslint-disable-line max-len if ( sign ) { return -f16; }