Skip to content

Commit 848bd84

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into number-float16-base-from-word
2 parents 32f3fb3 + 9b50472 commit 848bd84

File tree

398 files changed

+28013
-1034
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

398 files changed

+28013
-1034
lines changed

.github/workflows/scripts/run_tests_coverage

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -108,19 +108,16 @@ compare_cov() {
108108
new_cov_value="$2"
109109

110110
if [ "$old_cov_value" == 0 ]; then
111-
new_cov_percentage=$(awk "BEGIN {printf \"%.2f\", $new_cov_value*100}")
112-
printf "\$\\\\\\\\color{green}+%s\\\\\\\\\\\\\\\\%%\$\n" "$new_cov_percentage"
111+
awk "BEGIN {printf \"\$\\\\\\\\\\\\\\\\color{green}+%.2f\\\\\\\\\\\\\\\\%%\$\n\", $new_cov_value*100}"
113112
else
114113
percentage_change=$(awk "BEGIN {printf \"%.2f\", (($new_cov_value - $old_cov_value) / $old_cov_value) * 100}")
115114
color="green"
116-
sign=""
117-
if [ "$(awk "BEGIN {if ($percentage_change >= 0) print 1; else print 0}")" -eq 1 ]; then
118-
sign="+"
119-
elif [ "$(awk "BEGIN {if ($percentage_change < 0) print 1; else print 0}")" -eq 1 ]; then
120-
sign="-"
115+
sign="+"
116+
if [ "$(awk "BEGIN {if ($percentage_change < 0) print 1; else print 0}")" -eq 1 ]; then
121117
color="red"
118+
sign=""
122119
fi
123-
printf "\$\\\\\\\\color{%s}%s%s\\\\\\\\\\\\\\\\%%\$\n" "$color" "$sign" "$percentage_change"
120+
awk "BEGIN {print \"\$\\\\\\\\\\\\\\\\color{$color}${sign}${percentage_change}\\\\\\\\\\\\\\\\%\$\"}"
124121
fi
125122
}
126123

@@ -168,7 +165,7 @@ main() {
168165
pkg_functions_cov_fraction=${pkg_cov_fractions[2]}
169166
pkg_lines_cov_fraction=${pkg_cov_fractions[3]}
170167

171-
old_cov_report=$(curl -s --fail "${coverage_base_url}/${pkg}/lib/index.html" 2>/dev/null || true)
168+
old_cov_report=$(curl -s --fail "${coverage_base_url}/${pkg}/index.html" 2>/dev/null || true)
172169
if [ -z "$old_cov_report" ]; then
173170
old_statements_cov=0
174171
old_branches_cov=0

lib/node_modules/@stdlib/_tools/scaffold/math-strided-unary/scripts/scaffold.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,17 @@ test_desc=${TEST_DESC:-'evaluates the Dirac delta function for each element'}
5656
# Define a list of keywords:
5757
if [[ -z "${KEYWORDS:-}" ]]; then
5858
keywords=(
59-
"stdmath"
60-
"mathematics"
61-
"math"
62-
"dirac"
63-
"delta"
64-
"distribution"
65-
"dist"
66-
"continuous"
67-
"kronecker"
68-
"spike"
69-
"impulse"
59+
"stdmath"
60+
"mathematics"
61+
"math"
62+
"dirac"
63+
"delta"
64+
"distribution"
65+
"dist"
66+
"continuous"
67+
"kronecker"
68+
"spike"
69+
"impulse"
7070
)
7171
else
7272
IFS=','; read -ra keywords <<< "${KEYWORDS}"; IFS=' ';

lib/node_modules/@stdlib/_tools/scripts/create_namespace_types.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,8 @@ function create( fullPath ) {
382382
function onReplace( match ) {
383383
var RE;
384384

385-
// Only match the standalone identifier `mainExport[ 1 ]` (e.g., `ctor`):
386-
RE = new RegExp( '(^|[^a-zA-Z0-9_@])' + mainExport[ 1 ] + '(?![a-zA-Z0-9_])', 'g' );
385+
// Only match the standalone identifier `mainExport[ 1 ]` (e.g., `ctor`), but NOT inside require paths:
386+
RE = new RegExp( '(^|[^a-zA-Z0-9_@/])' + mainExport[ 1 ] + '(?![a-zA-Z0-9_])', 'g' );
387387
match = replace( match, RE, '$1' + name );
388388

389389
// Handle `new Name` constructor calls:

lib/node_modules/@stdlib/array/base/assert/is-sorted-ascending/benchmark/benchmark.accessors.length.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ var pow = require( '@stdlib/math/base/special/pow' );
2525
var isBoolean = require( '@stdlib/assert/is-boolean' ).isPrimitive;
2626
var zeroTo = require( '@stdlib/array/base/zero-to' );
2727
var AccessorArray = require( '@stdlib/array/base/accessor' );
28+
var format = require( '@stdlib/string/format' );
2829
var pkg = require( './../package.json' ).name;
2930
var isSortedAscending = require( './../lib' );
3031

@@ -90,7 +91,7 @@ function main() {
9091
len = pow( 10, i );
9192

9293
f = createBenchmark( len );
93-
bench( pkg+'::accessors:len='+len, f );
94+
bench( format( '%s::accessors:len=%s', pkg, len ), f );
9495
}
9596
}
9697

lib/node_modules/@stdlib/array/base/assert/is-sorted-ascending/benchmark/benchmark.length.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' );
2424
var pow = require( '@stdlib/math/base/special/pow' );
2525
var isBoolean = require( '@stdlib/assert/is-boolean' ).isPrimitive;
2626
var zeroTo = require( '@stdlib/array/base/zero-to' );
27+
var format = require( '@stdlib/string/format' );
2728
var pkg = require( './../package.json' ).name;
2829
var isSortedAscending = require( './../lib' );
2930

@@ -89,7 +90,7 @@ function main() {
8990
len = pow( 10, i );
9091

9192
f = createBenchmark( len );
92-
bench( pkg+':len='+len, f );
93+
bench( format( '%s:len=%s', pkg, len ), f );
9394
}
9495
}
9596

lib/node_modules/@stdlib/array/base/docs/types/index.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ interface Namespace {
272272
*
273273
* @example
274274
* var arr = new ns.AccessorArray( [ 1, 2, 3 ] );
275-
* // returns <ns.AccessorArray>
275+
* // returns <AccessorArray>
276276
*
277277
* var v = arr.get( 0 );
278278
* // returns 1
@@ -329,7 +329,7 @@ interface Namespace {
329329
* set( arr, 2, 10 );
330330
*
331331
* var v = arr.get( 2 );
332-
* // returns 3
332+
* // returns 10
333333
*/
334334
accessorSetter: typeof accessorSetter;
335335

@@ -357,7 +357,7 @@ interface Namespace {
357357
* var bool = obj.accessorProtocol;
358358
* // returns false
359359
*
360-
* var fcns = obj.ns.accessors;
360+
* var fcns = obj.accessors;
361361
* // returns [ <Function>, <Function> ]
362362
*
363363
* var v = fcns[ 0 ]( x, 2 );
@@ -1995,7 +1995,7 @@ interface Namespace {
19951995
* var y = [ false, null, false, null, false, null, false, null, false, null ];
19961996
*
19971997
* var arr = ns.cuanyByRight.assign( x, y, 2, 0, isPositive );
1998-
* // returns [ false, null, false, null, false, null, true, null, true, null ]
1998+
* // returns [ false, null, ..., true, null ]
19991999
*/
20002000
cuanyByRight: typeof cuanyByRight;
20012001

@@ -2414,7 +2414,7 @@ interface Namespace {
24142414
* @returns output array
24152415
*
24162416
* @example
2417-
* var Slice = require( '@stdlib/ns.fancySlice/ctor' );
2417+
* var Slice = require( '@stdlib/slice/ctor' );
24182418
*
24192419
* var x = [ 1, 2, 3, 4, 5, 6 ];
24202420
*
@@ -5910,7 +5910,7 @@ interface Namespace {
59105910
* var x = ones4d( shape );
59115911
* var y = zeros4d( shape );
59125912
*
5913-
* ns.unary4dBy( [ x, y ], shape, scale );
5913+
* ns.unary4dBy( [ x, y ], shape, scale, accessor );
59145914
*
59155915
* console.log( y );
59165916
* // => [ [ [ [ -10.0, -10.0 ], [ -10.0, -10.0 ] ] ] ]

lib/node_modules/@stdlib/array/docs/types/index.d.ts

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -138,21 +138,21 @@ interface Namespace {
138138
*
139139
* @example
140140
* var arr = new ns.BooleanArray();
141-
* // returns <ns.BooleanArray>
141+
* // returns <BooleanArray>
142142
*
143143
* var len = arr.length;
144144
* // returns 0
145145
*
146146
* @example
147147
* var arr = new ns.BooleanArray( 2 );
148-
* // returns <ns.BooleanArray>
148+
* // returns <BooleanArray>
149149
*
150150
* var len = arr.length;
151151
* // returns 2
152152
*
153153
* @example
154154
* var arr = new ns.BooleanArray( [ true, false ] );
155-
* // returns <ns.BooleanArray>
155+
* // returns <BooleanArray>
156156
*
157157
* var len = arr.length;
158158
* // returns 2
@@ -162,7 +162,7 @@ interface Namespace {
162162
*
163163
* var buf = new ArrayBuffer( 16 );
164164
* var arr = new ns.BooleanArray( buf );
165-
* // returns <ns.BooleanArray>
165+
* // returns <BooleanArray>
166166
*
167167
* var len = arr.length;
168168
* // returns 16
@@ -172,7 +172,7 @@ interface Namespace {
172172
*
173173
* var buf = new ArrayBuffer( 16 );
174174
* var arr = new ns.BooleanArray( buf, 8 );
175-
* // returns <ns.BooleanArray>
175+
* // returns <BooleanArray>
176176
*
177177
* var len = arr.length;
178178
* // returns 8
@@ -182,7 +182,7 @@ interface Namespace {
182182
*
183183
* var buf = new ArrayBuffer( 32 );
184184
* var arr = new ns.BooleanArray( buf, 8, 2 );
185-
* // returns <ns.BooleanArray>
185+
* // returns <BooleanArray>
186186
*
187187
* var len = arr.length;
188188
* // returns 2
@@ -288,21 +288,21 @@ interface Namespace {
288288
*
289289
* @example
290290
* var arr = new ns.Complex64Array();
291-
* // returns <ns.Complex64Array>
291+
* // returns <Complex64Array>
292292
*
293293
* var len = arr.length;
294294
* // returns 0
295295
*
296296
* @example
297297
* var arr = new ns.Complex64Array( 2 );
298-
* // returns <ns.Complex64Array>
298+
* // returns <Complex64Array>
299299
*
300300
* var len = arr.length;
301301
* // returns 2
302302
*
303303
* @example
304304
* var arr = new ns.Complex64Array( [ 1.0, -1.0 ] );
305-
* // returns <ns.Complex64Array>
305+
* // returns <Complex64Array>
306306
*
307307
* var len = arr.length;
308308
* // returns 1
@@ -312,7 +312,7 @@ interface Namespace {
312312
*
313313
* var buf = new ArrayBuffer( 16 );
314314
* var arr = new ns.Complex64Array( buf );
315-
* // returns <ns.Complex64Array>
315+
* // returns <Complex64Array>
316316
*
317317
* var len = arr.length;
318318
* // returns 2
@@ -322,7 +322,7 @@ interface Namespace {
322322
*
323323
* var buf = new ArrayBuffer( 16 );
324324
* var arr = new ns.Complex64Array( buf, 8 );
325-
* // returns <ns.Complex64Array>
325+
* // returns <Complex64Array>
326326
*
327327
* var len = arr.length;
328328
* // returns 1
@@ -332,7 +332,7 @@ interface Namespace {
332332
*
333333
* var buf = new ArrayBuffer( 32 );
334334
* var arr = new ns.Complex64Array( buf, 8, 2 );
335-
* // returns <ns.Complex64Array>
335+
* // returns <Complex64Array>
336336
*
337337
* var len = arr.length;
338338
* // returns 2
@@ -384,13 +384,13 @@ interface Namespace {
384384
* // returns <Complex128Array>
385385
*
386386
* var len = arr.length;
387-
* // returns 1
387+
* // returns 2
388388
*
389389
* @example
390390
* var ArrayBuffer = require( '@stdlib/array/buffer' );
391391
*
392-
* var buf = new ArrayBuffer( 32 );
393-
* var arr = new ns.Complex128Array( buf, 16 );
392+
* var buf = new ArrayBuffer( 16 );
393+
* var arr = new ns.Complex128Array( buf, 8 );
394394
* // returns <Complex128Array>
395395
*
396396
* var len = arr.length;
@@ -399,8 +399,8 @@ interface Namespace {
399399
* @example
400400
* var ArrayBuffer = require( '@stdlib/array/buffer' );
401401
*
402-
* var buf = new ArrayBuffer( 48 );
403-
* var arr = new ns.Complex128Array( buf, 16, 2 );
402+
* var buf = new ArrayBuffer( 32 );
403+
* var arr = new ns.Complex128Array( buf, 8, 2 );
404404
* // returns <Complex128Array>
405405
*
406406
* var len = arr.length;
@@ -770,7 +770,7 @@ interface Namespace {
770770
* var x = new Uint8Array( [ 1, 0, 1, 0 ] );
771771
*
772772
* var idx = new ns.ArrayIndex( x );
773-
* // returns <ns.ArrayIndex>
773+
* // returns <ArrayIndex>
774774
*/
775775
ArrayIndex: typeof ArrayIndex;
776776

lib/node_modules/@stdlib/array/fixed-endian-factory/benchmark/benchmark.at.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
var bench = require( '@stdlib/bench' );
2424
var isNumber = require( '@stdlib/assert/is-number' ).isPrimitive;
25+
var format = require( '@stdlib/string/format' );
2526
var pkg = require( './../package.json' ).name;
2627
var factory = require( './../lib' );
2728

@@ -33,7 +34,7 @@ var Float64ArrayFE = factory( 'float64' );
3334

3435
// MAIN //
3536

36-
bench( pkg+'::nonnegative_indices:at:endianness=little-endian', function benchmark( b ) {
37+
bench( format( '%s::nonnegative_indices:at:endianness=little-endian', pkg ), function benchmark( b ) {
3738
var arr;
3839
var N;
3940
var v;
@@ -61,7 +62,7 @@ bench( pkg+'::nonnegative_indices:at:endianness=little-endian', function benchma
6162
b.end();
6263
});
6364

64-
bench( pkg+'::negative_indices:at:endianness=little-endian', function benchmark( b ) {
65+
bench( format( '%s::negative_indices:at:endianness=little-endian', pkg ), function benchmark( b ) {
6566
var arr;
6667
var N;
6768
var v;
@@ -89,7 +90,7 @@ bench( pkg+'::negative_indices:at:endianness=little-endian', function benchmark(
8990
b.end();
9091
});
9192

92-
bench( pkg+'::nonnegative_indices:at:endianness=big-endian', function benchmark( b ) {
93+
bench( format( '%s::nonnegative_indices:at:endianness=big-endian', pkg ), function benchmark( b ) {
9394
var arr;
9495
var N;
9596
var v;
@@ -117,7 +118,7 @@ bench( pkg+'::nonnegative_indices:at:endianness=big-endian', function benchmark(
117118
b.end();
118119
});
119120

120-
bench( pkg+'::negative_indices:at:endianness=big-endian', function benchmark( b ) {
121+
bench( format( '%s::negative_indices:at:endianness=big-endian', pkg ), function benchmark( b ) {
121122
var arr;
122123
var N;
123124
var v;

lib/node_modules/@stdlib/array/fixed-endian-factory/benchmark/benchmark.every.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
var bench = require( '@stdlib/bench' );
2424
var isBoolean = require( '@stdlib/assert/is-boolean' ).isPrimitive;
25+
var format = require( '@stdlib/string/format' );
2526
var pkg = require( './../package.json' ).name;
2627
var factory = require( './../lib' );
2728

@@ -33,7 +34,7 @@ var Float64ArrayFE = factory( 'float64' );
3334

3435
// MAIN //
3536

36-
bench( pkg+':every', function benchmark( b ) {
37+
bench( format( '%s:every', pkg ), function benchmark( b ) {
3738
var bool;
3839
var arr;
3940
var i;

lib/node_modules/@stdlib/array/fixed-endian-factory/benchmark/benchmark.every.length.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' );
2424
var pow = require( '@stdlib/math/base/special/pow' );
2525
var zeroTo = require( '@stdlib/array/zero-to' );
2626
var isBoolean = require( '@stdlib/assert/is-boolean' ).isPrimitive;
27+
var format = require( '@stdlib/string/format' );
2728
var pkg = require( './../package.json' ).name;
2829
var factory = require( './../lib' );
2930

@@ -106,7 +107,7 @@ function main() {
106107
for ( i = min; i <= max; i++ ) {
107108
len = pow( 10, i );
108109
f = createBenchmark( len );
109-
bench( pkg+':every:len='+len, f );
110+
bench( format( '%s:every:len=%d', pkg, len ), f );
110111
}
111112
}
112113

0 commit comments

Comments
 (0)