Skip to content

Commit d7dd82a

Browse files
chore: restore unrelated files from develop
1 parent e25a59a commit d7dd82a

3 files changed

Lines changed: 82 additions & 84 deletions

File tree

lib/node_modules/@stdlib/_tools/bib/citation-reference/lib/sync.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,11 @@ var debug = logger( 'to-reference:sync' );
5656
* @throws {TypeError} first argument must be a string
5757
* @throws {TypeError} options argument must be an object
5858
* @throws {TypeError} must provide valid options
59-
* @throws {Error} if the citation cannot be generated
6059
* @returns {string} reference
6160
*
6261
* @example
6362
* var ref = toReference( '@press1992' );
64-
* // throws <Error>
63+
* // returns '...'
6564
*/
6665
function toReference( id, options ) {
6766
var outFile;

lib/node_modules/@stdlib/ndarray/slice/benchmark/benchmark.js

Lines changed: 80 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ bench( pkg+'::0d,non-base', function benchmark( b ) {
7171
/* eslint-disable object-curly-newline */
7272

7373
values = [
74-
empty( [], { 'dtype': 'float64' }),
75-
empty( [], { 'dtype': 'float32' }),
76-
empty( [], { 'dtype': 'int32' }),
77-
empty( [], { 'dtype': 'complex128' }),
78-
empty( [], { 'dtype': 'generic' })
74+
empty( [], { 'dtype': 'float64' } ),
75+
empty( [], { 'dtype': 'float32' } ),
76+
empty( [], { 'dtype': 'int32' } ),
77+
empty( [], { 'dtype': 'complex128' } ),
78+
empty( [], { 'dtype': 'generic' } )
7979
];
8080

8181
/* eslint-enable object-curly-newline */
@@ -136,11 +136,11 @@ bench( pkg+'::1d,non-base', function benchmark( b ) {
136136
/* eslint-disable object-curly-newline */
137137

138138
values = [
139-
empty( [ 2 ], { 'dtype': 'float64' }),
140-
empty( [ 2 ], { 'dtype': 'float32' }),
141-
empty( [ 2 ], { 'dtype': 'int32' }),
142-
empty( [ 2 ], { 'dtype': 'complex128' }),
143-
empty( [ 2 ], { 'dtype': 'generic' })
139+
empty( [ 2 ], { 'dtype': 'float64' } ),
140+
empty( [ 2 ], { 'dtype': 'float32' } ),
141+
empty( [ 2 ], { 'dtype': 'int32' } ),
142+
empty( [ 2 ], { 'dtype': 'complex128' } ),
143+
empty( [ 2 ], { 'dtype': 'generic' } )
144144
];
145145

146146
/* eslint-enable object-curly-newline */
@@ -201,11 +201,11 @@ bench( pkg+'::1d,non-base,reduced', function benchmark( b ) {
201201
/* eslint-disable object-curly-newline */
202202

203203
values = [
204-
empty( [ 2 ], { 'dtype': 'float64' }),
205-
empty( [ 2 ], { 'dtype': 'float32' }),
206-
empty( [ 2 ], { 'dtype': 'int32' }),
207-
empty( [ 2 ], { 'dtype': 'complex128' }),
208-
empty( [ 2 ], { 'dtype': 'generic' })
204+
empty( [ 2 ], { 'dtype': 'float64' } ),
205+
empty( [ 2 ], { 'dtype': 'float32' } ),
206+
empty( [ 2 ], { 'dtype': 'int32' } ),
207+
empty( [ 2 ], { 'dtype': 'complex128' } ),
208+
empty( [ 2 ], { 'dtype': 'generic' } )
209209
];
210210

211211
/* eslint-enable object-curly-newline */
@@ -271,11 +271,11 @@ bench( pkg+'::1d,non-base,out-of-bounds', function benchmark( b ) {
271271
/* eslint-disable object-curly-newline */
272272

273273
values = [
274-
empty( [ 2 ], { 'dtype': 'float64' }),
275-
empty( [ 2 ], { 'dtype': 'float32' }),
276-
empty( [ 2 ], { 'dtype': 'int32' }),
277-
empty( [ 2 ], { 'dtype': 'complex128' }),
278-
empty( [ 2 ], { 'dtype': 'generic' })
274+
empty( [ 2 ], { 'dtype': 'float64' } ),
275+
empty( [ 2 ], { 'dtype': 'float32' } ),
276+
empty( [ 2 ], { 'dtype': 'int32' } ),
277+
empty( [ 2 ], { 'dtype': 'complex128' } ),
278+
empty( [ 2 ], { 'dtype': 'generic' } )
279279
];
280280

281281
/* eslint-enable object-curly-newline */
@@ -339,11 +339,11 @@ bench( pkg+'::2d,non-base', function benchmark( b ) {
339339
/* eslint-disable object-curly-newline */
340340

341341
values = [
342-
empty( [ 2, 2 ], { 'dtype': 'float64' }),
343-
empty( [ 2, 2 ], { 'dtype': 'float32' }),
344-
empty( [ 2, 2 ], { 'dtype': 'int32' }),
345-
empty( [ 2, 2 ], { 'dtype': 'complex128' }),
346-
empty( [ 2, 2 ], { 'dtype': 'generic' })
342+
empty( [ 2, 2 ], { 'dtype': 'float64' } ),
343+
empty( [ 2, 2 ], { 'dtype': 'float32' } ),
344+
empty( [ 2, 2 ], { 'dtype': 'int32' } ),
345+
empty( [ 2, 2 ], { 'dtype': 'complex128' } ),
346+
empty( [ 2, 2 ], { 'dtype': 'generic' } )
347347
];
348348

349349
/* eslint-enable object-curly-newline */
@@ -404,11 +404,11 @@ bench( pkg+'::2d,non-base,reduced', function benchmark( b ) {
404404
/* eslint-disable object-curly-newline */
405405

406406
values = [
407-
empty( [ 2, 2 ], { 'dtype': 'float64' }),
408-
empty( [ 2, 2 ], { 'dtype': 'float32' }),
409-
empty( [ 2, 2 ], { 'dtype': 'int32' }),
410-
empty( [ 2, 2 ], { 'dtype': 'complex128' }),
411-
empty( [ 2, 2 ], { 'dtype': 'generic' })
407+
empty( [ 2, 2 ], { 'dtype': 'float64' } ),
408+
empty( [ 2, 2 ], { 'dtype': 'float32' } ),
409+
empty( [ 2, 2 ], { 'dtype': 'int32' } ),
410+
empty( [ 2, 2 ], { 'dtype': 'complex128' } ),
411+
empty( [ 2, 2 ], { 'dtype': 'generic' } )
412412
];
413413

414414
/* eslint-enable object-curly-newline */
@@ -474,11 +474,11 @@ bench( pkg+'::2d,non-base,out-of-bounds', function benchmark( b ) {
474474
/* eslint-disable object-curly-newline */
475475

476476
values = [
477-
empty( [ 2, 2 ], { 'dtype': 'float64' }),
478-
empty( [ 2, 2 ], { 'dtype': 'float32' }),
479-
empty( [ 2, 2 ], { 'dtype': 'int32' }),
480-
empty( [ 2, 2 ], { 'dtype': 'complex128' }),
481-
empty( [ 2, 2 ], { 'dtype': 'generic' })
477+
empty( [ 2, 2 ], { 'dtype': 'float64' } ),
478+
empty( [ 2, 2 ], { 'dtype': 'float32' } ),
479+
empty( [ 2, 2 ], { 'dtype': 'int32' } ),
480+
empty( [ 2, 2 ], { 'dtype': 'complex128' } ),
481+
empty( [ 2, 2 ], { 'dtype': 'generic' } )
482482
];
483483

484484
/* eslint-enable object-curly-newline */
@@ -542,11 +542,11 @@ bench( pkg+'::3d,non-base', function benchmark( b ) {
542542
/* eslint-disable object-curly-newline */
543543

544544
values = [
545-
empty( [ 2, 2, 2 ], { 'dtype': 'float64' }),
546-
empty( [ 2, 2, 2 ], { 'dtype': 'float32' }),
547-
empty( [ 2, 2, 2 ], { 'dtype': 'int32' }),
548-
empty( [ 2, 2, 2 ], { 'dtype': 'complex128' }),
549-
empty( [ 2, 2, 2 ], { 'dtype': 'generic' })
545+
empty( [ 2, 2, 2 ], { 'dtype': 'float64' } ),
546+
empty( [ 2, 2, 2 ], { 'dtype': 'float32' } ),
547+
empty( [ 2, 2, 2 ], { 'dtype': 'int32' } ),
548+
empty( [ 2, 2, 2 ], { 'dtype': 'complex128' } ),
549+
empty( [ 2, 2, 2 ], { 'dtype': 'generic' } )
550550
];
551551

552552
/* eslint-enable object-curly-newline */
@@ -607,11 +607,11 @@ bench( pkg+'::3d,non-base,reduced', function benchmark( b ) {
607607
/* eslint-disable object-curly-newline */
608608

609609
values = [
610-
empty( [ 2, 2, 2 ], { 'dtype': 'float64' }),
611-
empty( [ 2, 2, 2 ], { 'dtype': 'float32' }),
612-
empty( [ 2, 2, 2 ], { 'dtype': 'int32' }),
613-
empty( [ 2, 2, 2 ], { 'dtype': 'complex128' }),
614-
empty( [ 2, 2, 2 ], { 'dtype': 'generic' })
610+
empty( [ 2, 2, 2 ], { 'dtype': 'float64' } ),
611+
empty( [ 2, 2, 2 ], { 'dtype': 'float32' } ),
612+
empty( [ 2, 2, 2 ], { 'dtype': 'int32' } ),
613+
empty( [ 2, 2, 2 ], { 'dtype': 'complex128' } ),
614+
empty( [ 2, 2, 2 ], { 'dtype': 'generic' } )
615615
];
616616

617617
/* eslint-enable object-curly-newline */
@@ -677,11 +677,11 @@ bench( pkg+'::3d,non-base,out-of-bounds', function benchmark( b ) {
677677
/* eslint-disable object-curly-newline */
678678

679679
values = [
680-
empty( [ 2, 2, 2 ], { 'dtype': 'float64' }),
681-
empty( [ 2, 2, 2 ], { 'dtype': 'float32' }),
682-
empty( [ 2, 2, 2 ], { 'dtype': 'int32' }),
683-
empty( [ 2, 2, 2 ], { 'dtype': 'complex128' }),
684-
empty( [ 2, 2, 2 ], { 'dtype': 'generic' })
680+
empty( [ 2, 2, 2 ], { 'dtype': 'float64' } ),
681+
empty( [ 2, 2, 2 ], { 'dtype': 'float32' } ),
682+
empty( [ 2, 2, 2 ], { 'dtype': 'int32' } ),
683+
empty( [ 2, 2, 2 ], { 'dtype': 'complex128' } ),
684+
empty( [ 2, 2, 2 ], { 'dtype': 'generic' } )
685685
];
686686

687687
/* eslint-enable object-curly-newline */
@@ -745,11 +745,11 @@ bench( pkg+'::4d,non-base', function benchmark( b ) {
745745
/* eslint-disable object-curly-newline */
746746

747747
values = [
748-
empty( [ 2, 2, 2, 2 ], { 'dtype': 'float64' }),
749-
empty( [ 2, 2, 2, 2 ], { 'dtype': 'float32' }),
750-
empty( [ 2, 2, 2, 2 ], { 'dtype': 'int32' }),
751-
empty( [ 2, 2, 2, 2 ], { 'dtype': 'complex128' }),
752-
empty( [ 2, 2, 2, 2 ], { 'dtype': 'generic' })
748+
empty( [ 2, 2, 2, 2 ], { 'dtype': 'float64' } ),
749+
empty( [ 2, 2, 2, 2 ], { 'dtype': 'float32' } ),
750+
empty( [ 2, 2, 2, 2 ], { 'dtype': 'int32' } ),
751+
empty( [ 2, 2, 2, 2 ], { 'dtype': 'complex128' } ),
752+
empty( [ 2, 2, 2, 2 ], { 'dtype': 'generic' } )
753753
];
754754

755755
/* eslint-enable object-curly-newline */
@@ -810,11 +810,11 @@ bench( pkg+'::4d,non-base,reduced', function benchmark( b ) {
810810
/* eslint-disable object-curly-newline */
811811

812812
values = [
813-
empty( [ 2, 2, 2, 2 ], { 'dtype': 'float64' }),
814-
empty( [ 2, 2, 2, 2 ], { 'dtype': 'float32' }),
815-
empty( [ 2, 2, 2, 2 ], { 'dtype': 'int32' }),
816-
empty( [ 2, 2, 2, 2 ], { 'dtype': 'complex128' }),
817-
empty( [ 2, 2, 2, 2 ], { 'dtype': 'generic' })
813+
empty( [ 2, 2, 2, 2 ], { 'dtype': 'float64' } ),
814+
empty( [ 2, 2, 2, 2 ], { 'dtype': 'float32' } ),
815+
empty( [ 2, 2, 2, 2 ], { 'dtype': 'int32' } ),
816+
empty( [ 2, 2, 2, 2 ], { 'dtype': 'complex128' } ),
817+
empty( [ 2, 2, 2, 2 ], { 'dtype': 'generic' } )
818818
];
819819

820820
/* eslint-enable object-curly-newline */
@@ -880,11 +880,11 @@ bench( pkg+'::4d,non-base,out-of-bounds', function benchmark( b ) {
880880
/* eslint-disable object-curly-newline */
881881

882882
values = [
883-
empty( [ 2, 2, 2, 2 ], { 'dtype': 'float64' }),
884-
empty( [ 2, 2, 2, 2 ], { 'dtype': 'float32' }),
885-
empty( [ 2, 2, 2, 2 ], { 'dtype': 'int32' }),
886-
empty( [ 2, 2, 2, 2 ], { 'dtype': 'complex128' }),
887-
empty( [ 2, 2, 2, 2 ], { 'dtype': 'generic' })
883+
empty( [ 2, 2, 2, 2 ], { 'dtype': 'float64' } ),
884+
empty( [ 2, 2, 2, 2 ], { 'dtype': 'float32' } ),
885+
empty( [ 2, 2, 2, 2 ], { 'dtype': 'int32' } ),
886+
empty( [ 2, 2, 2, 2 ], { 'dtype': 'complex128' } ),
887+
empty( [ 2, 2, 2, 2 ], { 'dtype': 'generic' } )
888888
];
889889

890890
/* eslint-enable object-curly-newline */
@@ -948,11 +948,11 @@ bench( pkg+'::5d,non-base', function benchmark( b ) {
948948
/* eslint-disable object-curly-newline */
949949

950950
values = [
951-
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float64' }),
952-
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float32' }),
953-
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'int32' }),
954-
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'complex128' }),
955-
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'generic' })
951+
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float64' } ),
952+
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float32' } ),
953+
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'int32' } ),
954+
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'complex128' } ),
955+
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'generic' } )
956956
];
957957

958958
/* eslint-enable object-curly-newline */
@@ -1013,11 +1013,11 @@ bench( pkg+'::5d,non-base,reduced', function benchmark( b ) {
10131013
/* eslint-disable object-curly-newline */
10141014

10151015
values = [
1016-
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float64' }),
1017-
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float32' }),
1018-
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'int32' }),
1019-
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'complex128' }),
1020-
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'generic' })
1016+
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float64' } ),
1017+
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float32' } ),
1018+
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'int32' } ),
1019+
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'complex128' } ),
1020+
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'generic' } )
10211021
];
10221022

10231023
/* eslint-enable object-curly-newline */
@@ -1083,11 +1083,11 @@ bench( pkg+'::5d,non-base,out-of-bounds', function benchmark( b ) {
10831083
/* eslint-disable object-curly-newline */
10841084

10851085
values = [
1086-
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float64' }),
1087-
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float32' }),
1088-
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'int32' }),
1089-
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'complex128' }),
1090-
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'generic' })
1086+
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float64' } ),
1087+
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float32' } ),
1088+
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'int32' } ),
1089+
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'complex128' } ),
1090+
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'generic' } )
10911091
];
10921092

10931093
/* eslint-enable object-curly-newline */

lib/node_modules/@stdlib/utils/values/lib/main.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ function objectValues( obj ) {
5353
}
5454
keys = objectKeys( obj );
5555
len = keys.length;
56-
out = [];
57-
out.length = len;
56+
out = new Array( len );
5857
for ( i = 0; i < len; i++ ) {
5958
out[ i ] = obj[ keys[i] ];
6059
}

0 commit comments

Comments
 (0)