Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

// MODULES //

var exec = require( 'child_process' ).execSync;

Check warning on line 23 in lib/node_modules/@stdlib/_tools/bib/citation-reference/lib/sync.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unexpected sync method: 'execSync'
var join = require( 'path' ).join;
var logger = require( 'debug' );
var copy = require( '@stdlib/utils/copy' );
Expand Down Expand Up @@ -56,11 +56,8 @@
* @throws {TypeError} first argument must be a string
* @throws {TypeError} options argument must be an object
* @throws {TypeError} must provide valid options
* @throws {Error} unable to generate a reference
* @returns {string} reference
*
* @example
* var ref = toReference( '@press1992' );
* // returns '...'
*/
function toReference( id, options ) {
var outFile;
Expand Down
179 changes: 90 additions & 89 deletions lib/node_modules/@stdlib/ndarray/slice/benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@
var MultiSlice = require( '@stdlib/slice/multi' );
var Slice = require( '@stdlib/slice/ctor' );
var baseEmpty = require( '@stdlib/ndarray/base/empty' );
var format = require( '@stdlib/string/format' );
var empty = require( '@stdlib/ndarray/empty' );
var pkg = require( './../package.json' ).name;
var slice = require( './../lib' );


// MAIN //

bench( pkg+'::0d,base', function benchmark( b ) {
bench( format( '%s::0d,base', pkg ), function benchmark( b ) {
var values;
var v;
var s;
Expand Down Expand Up @@ -62,7 +63,7 @@
b.end();
});

bench( pkg+'::0d,non-base', function benchmark( b ) {
bench( format( '%s::0d,non-base', pkg ), function benchmark( b ) {
var values;
var v;
var s;
Expand All @@ -71,11 +72,11 @@
/* eslint-disable object-curly-newline */

values = [
empty( [], { 'dtype': 'float64' } ),
empty( [], { 'dtype': 'float32' } ),
empty( [], { 'dtype': 'int32' } ),
empty( [], { 'dtype': 'complex128' } ),
empty( [], { 'dtype': 'generic' } )
empty( [], { 'dtype': 'float64' }),
empty( [], { 'dtype': 'float32' }),
empty( [], { 'dtype': 'int32' }),
empty( [], { 'dtype': 'complex128' }),
empty( [], { 'dtype': 'generic' })
];

/* eslint-enable object-curly-newline */
Expand All @@ -97,7 +98,7 @@
b.end();
});

bench( pkg+'::1d,base', function benchmark( b ) {
bench( format( '%s::1d,base', pkg ), function benchmark( b ) {
var values;
var v;
var s;
Expand Down Expand Up @@ -127,7 +128,7 @@
b.end();
});

bench( pkg+'::1d,non-base', function benchmark( b ) {
bench( format( '%s::1d,non-base', pkg ), function benchmark( b ) {
var values;
var v;
var s;
Expand All @@ -136,11 +137,11 @@
/* eslint-disable object-curly-newline */

values = [
empty( [ 2 ], { 'dtype': 'float64' } ),
empty( [ 2 ], { 'dtype': 'float32' } ),
empty( [ 2 ], { 'dtype': 'int32' } ),
empty( [ 2 ], { 'dtype': 'complex128' } ),
empty( [ 2 ], { 'dtype': 'generic' } )
empty( [ 2 ], { 'dtype': 'float64' }),
empty( [ 2 ], { 'dtype': 'float32' }),
empty( [ 2 ], { 'dtype': 'int32' }),
empty( [ 2 ], { 'dtype': 'complex128' }),
empty( [ 2 ], { 'dtype': 'generic' })
];

/* eslint-enable object-curly-newline */
Expand All @@ -162,7 +163,7 @@
b.end();
});

bench( pkg+'::1d,base,reduced', function benchmark( b ) {
bench( format( '%s::1d,base,reduced', pkg ), function benchmark( b ) {
var values;
var v;
var s;
Expand Down Expand Up @@ -192,7 +193,7 @@
b.end();
});

bench( pkg+'::1d,non-base,reduced', function benchmark( b ) {
bench( format( '%s::1d,non-base,reduced', pkg ), function benchmark( b ) {
var values;
var v;
var s;
Expand All @@ -201,11 +202,11 @@
/* eslint-disable object-curly-newline */

values = [
empty( [ 2 ], { 'dtype': 'float64' } ),
empty( [ 2 ], { 'dtype': 'float32' } ),
empty( [ 2 ], { 'dtype': 'int32' } ),
empty( [ 2 ], { 'dtype': 'complex128' } ),
empty( [ 2 ], { 'dtype': 'generic' } )
empty( [ 2 ], { 'dtype': 'float64' }),
empty( [ 2 ], { 'dtype': 'float32' }),
empty( [ 2 ], { 'dtype': 'int32' }),
empty( [ 2 ], { 'dtype': 'complex128' }),
empty( [ 2 ], { 'dtype': 'generic' })
];

/* eslint-enable object-curly-newline */
Expand All @@ -227,7 +228,7 @@
b.end();
});

bench( pkg+'::1d,base,out-of-bounds', function benchmark( b ) {
bench( format( '%s::1d,base,out-of-bounds', pkg ), function benchmark( b ) {
var values;
var opts;
var v;
Expand Down Expand Up @@ -261,7 +262,7 @@
b.end();
});

bench( pkg+'::1d,non-base,out-of-bounds', function benchmark( b ) {
bench( format( '%s::1d,non-base,out-of-bounds', pkg ), function benchmark( b ) {
var values;
var opts;
var v;
Expand All @@ -271,11 +272,11 @@
/* eslint-disable object-curly-newline */

values = [
empty( [ 2 ], { 'dtype': 'float64' } ),
empty( [ 2 ], { 'dtype': 'float32' } ),
empty( [ 2 ], { 'dtype': 'int32' } ),
empty( [ 2 ], { 'dtype': 'complex128' } ),
empty( [ 2 ], { 'dtype': 'generic' } )
empty( [ 2 ], { 'dtype': 'float64' }),
empty( [ 2 ], { 'dtype': 'float32' }),
empty( [ 2 ], { 'dtype': 'int32' }),
empty( [ 2 ], { 'dtype': 'complex128' }),
empty( [ 2 ], { 'dtype': 'generic' })
];

/* eslint-enable object-curly-newline */
Expand All @@ -300,7 +301,7 @@
b.end();
});

bench( pkg+'::2d,base', function benchmark( b ) {
bench( format( '%s::2d,base', pkg ), function benchmark( b ) {
var values;
var v;
var s;
Expand Down Expand Up @@ -330,7 +331,7 @@
b.end();
});

bench( pkg+'::2d,non-base', function benchmark( b ) {

Check warning on line 334 in lib/node_modules/@stdlib/ndarray/slice/benchmark/benchmark.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Use `@stdlib/string/format` instead of string concatenation for benchmark descriptions
var values;
var v;
var s;
Expand All @@ -339,11 +340,11 @@
/* eslint-disable object-curly-newline */

values = [
empty( [ 2, 2 ], { 'dtype': 'float64' } ),
empty( [ 2, 2 ], { 'dtype': 'float32' } ),
empty( [ 2, 2 ], { 'dtype': 'int32' } ),
empty( [ 2, 2 ], { 'dtype': 'complex128' } ),
empty( [ 2, 2 ], { 'dtype': 'generic' } )
empty( [ 2, 2 ], { 'dtype': 'float64' }),
empty( [ 2, 2 ], { 'dtype': 'float32' }),
empty( [ 2, 2 ], { 'dtype': 'int32' }),
empty( [ 2, 2 ], { 'dtype': 'complex128' }),
empty( [ 2, 2 ], { 'dtype': 'generic' })
];

/* eslint-enable object-curly-newline */
Expand All @@ -365,7 +366,7 @@
b.end();
});

bench( pkg+'::2d,base,reduced', function benchmark( b ) {

Check warning on line 369 in lib/node_modules/@stdlib/ndarray/slice/benchmark/benchmark.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Use `@stdlib/string/format` instead of string concatenation for benchmark descriptions
var values;
var v;
var s;
Expand Down Expand Up @@ -395,7 +396,7 @@
b.end();
});

bench( pkg+'::2d,non-base,reduced', function benchmark( b ) {

Check warning on line 399 in lib/node_modules/@stdlib/ndarray/slice/benchmark/benchmark.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Use `@stdlib/string/format` instead of string concatenation for benchmark descriptions
var values;
var v;
var s;
Expand All @@ -404,11 +405,11 @@
/* eslint-disable object-curly-newline */

values = [
empty( [ 2, 2 ], { 'dtype': 'float64' } ),
empty( [ 2, 2 ], { 'dtype': 'float32' } ),
empty( [ 2, 2 ], { 'dtype': 'int32' } ),
empty( [ 2, 2 ], { 'dtype': 'complex128' } ),
empty( [ 2, 2 ], { 'dtype': 'generic' } )
empty( [ 2, 2 ], { 'dtype': 'float64' }),
empty( [ 2, 2 ], { 'dtype': 'float32' }),
empty( [ 2, 2 ], { 'dtype': 'int32' }),
empty( [ 2, 2 ], { 'dtype': 'complex128' }),
empty( [ 2, 2 ], { 'dtype': 'generic' })
];

/* eslint-enable object-curly-newline */
Expand All @@ -430,7 +431,7 @@
b.end();
});

bench( pkg+'::2d,base,out-of-bounds', function benchmark( b ) {

Check warning on line 434 in lib/node_modules/@stdlib/ndarray/slice/benchmark/benchmark.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Use `@stdlib/string/format` instead of string concatenation for benchmark descriptions
var values;
var opts;
var v;
Expand Down Expand Up @@ -464,7 +465,7 @@
b.end();
});

bench( pkg+'::2d,non-base,out-of-bounds', function benchmark( b ) {

Check warning on line 468 in lib/node_modules/@stdlib/ndarray/slice/benchmark/benchmark.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Use `@stdlib/string/format` instead of string concatenation for benchmark descriptions
var values;
var opts;
var v;
Expand All @@ -474,11 +475,11 @@
/* eslint-disable object-curly-newline */

values = [
empty( [ 2, 2 ], { 'dtype': 'float64' } ),
empty( [ 2, 2 ], { 'dtype': 'float32' } ),
empty( [ 2, 2 ], { 'dtype': 'int32' } ),
empty( [ 2, 2 ], { 'dtype': 'complex128' } ),
empty( [ 2, 2 ], { 'dtype': 'generic' } )
empty( [ 2, 2 ], { 'dtype': 'float64' }),
empty( [ 2, 2 ], { 'dtype': 'float32' }),
empty( [ 2, 2 ], { 'dtype': 'int32' }),
empty( [ 2, 2 ], { 'dtype': 'complex128' }),
empty( [ 2, 2 ], { 'dtype': 'generic' })
];

/* eslint-enable object-curly-newline */
Expand All @@ -503,7 +504,7 @@
b.end();
});

bench( pkg+'::3d,base', function benchmark( b ) {

Check warning on line 507 in lib/node_modules/@stdlib/ndarray/slice/benchmark/benchmark.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Use `@stdlib/string/format` instead of string concatenation for benchmark descriptions
var values;
var v;
var s;
Expand Down Expand Up @@ -533,7 +534,7 @@
b.end();
});

bench( pkg+'::3d,non-base', function benchmark( b ) {

Check warning on line 537 in lib/node_modules/@stdlib/ndarray/slice/benchmark/benchmark.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Use `@stdlib/string/format` instead of string concatenation for benchmark descriptions
var values;
var v;
var s;
Expand All @@ -542,11 +543,11 @@
/* eslint-disable object-curly-newline */

values = [
empty( [ 2, 2, 2 ], { 'dtype': 'float64' } ),
empty( [ 2, 2, 2 ], { 'dtype': 'float32' } ),
empty( [ 2, 2, 2 ], { 'dtype': 'int32' } ),
empty( [ 2, 2, 2 ], { 'dtype': 'complex128' } ),
empty( [ 2, 2, 2 ], { 'dtype': 'generic' } )
empty( [ 2, 2, 2 ], { 'dtype': 'float64' }),
empty( [ 2, 2, 2 ], { 'dtype': 'float32' }),
empty( [ 2, 2, 2 ], { 'dtype': 'int32' }),
empty( [ 2, 2, 2 ], { 'dtype': 'complex128' }),
empty( [ 2, 2, 2 ], { 'dtype': 'generic' })
];

/* eslint-enable object-curly-newline */
Expand All @@ -568,7 +569,7 @@
b.end();
});

bench( pkg+'::3d,base,reduced', function benchmark( b ) {

Check warning on line 572 in lib/node_modules/@stdlib/ndarray/slice/benchmark/benchmark.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Use `@stdlib/string/format` instead of string concatenation for benchmark descriptions
var values;
var v;
var s;
Expand Down Expand Up @@ -598,7 +599,7 @@
b.end();
});

bench( pkg+'::3d,non-base,reduced', function benchmark( b ) {

Check warning on line 602 in lib/node_modules/@stdlib/ndarray/slice/benchmark/benchmark.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Use `@stdlib/string/format` instead of string concatenation for benchmark descriptions
var values;
var v;
var s;
Expand All @@ -607,11 +608,11 @@
/* eslint-disable object-curly-newline */

values = [
empty( [ 2, 2, 2 ], { 'dtype': 'float64' } ),
empty( [ 2, 2, 2 ], { 'dtype': 'float32' } ),
empty( [ 2, 2, 2 ], { 'dtype': 'int32' } ),
empty( [ 2, 2, 2 ], { 'dtype': 'complex128' } ),
empty( [ 2, 2, 2 ], { 'dtype': 'generic' } )
empty( [ 2, 2, 2 ], { 'dtype': 'float64' }),
empty( [ 2, 2, 2 ], { 'dtype': 'float32' }),
empty( [ 2, 2, 2 ], { 'dtype': 'int32' }),
empty( [ 2, 2, 2 ], { 'dtype': 'complex128' }),
empty( [ 2, 2, 2 ], { 'dtype': 'generic' })
];

/* eslint-enable object-curly-newline */
Expand Down Expand Up @@ -677,11 +678,11 @@
/* eslint-disable object-curly-newline */

values = [
empty( [ 2, 2, 2 ], { 'dtype': 'float64' } ),
empty( [ 2, 2, 2 ], { 'dtype': 'float32' } ),
empty( [ 2, 2, 2 ], { 'dtype': 'int32' } ),
empty( [ 2, 2, 2 ], { 'dtype': 'complex128' } ),
empty( [ 2, 2, 2 ], { 'dtype': 'generic' } )
empty( [ 2, 2, 2 ], { 'dtype': 'float64' }),
empty( [ 2, 2, 2 ], { 'dtype': 'float32' }),
empty( [ 2, 2, 2 ], { 'dtype': 'int32' }),
empty( [ 2, 2, 2 ], { 'dtype': 'complex128' }),
empty( [ 2, 2, 2 ], { 'dtype': 'generic' })
];

/* eslint-enable object-curly-newline */
Expand Down Expand Up @@ -745,11 +746,11 @@
/* eslint-disable object-curly-newline */

values = [
empty( [ 2, 2, 2, 2 ], { 'dtype': 'float64' } ),
empty( [ 2, 2, 2, 2 ], { 'dtype': 'float32' } ),
empty( [ 2, 2, 2, 2 ], { 'dtype': 'int32' } ),
empty( [ 2, 2, 2, 2 ], { 'dtype': 'complex128' } ),
empty( [ 2, 2, 2, 2 ], { 'dtype': 'generic' } )
empty( [ 2, 2, 2, 2 ], { 'dtype': 'float64' }),
empty( [ 2, 2, 2, 2 ], { 'dtype': 'float32' }),
empty( [ 2, 2, 2, 2 ], { 'dtype': 'int32' }),
empty( [ 2, 2, 2, 2 ], { 'dtype': 'complex128' }),
empty( [ 2, 2, 2, 2 ], { 'dtype': 'generic' })
];

/* eslint-enable object-curly-newline */
Expand Down Expand Up @@ -810,11 +811,11 @@
/* eslint-disable object-curly-newline */

values = [
empty( [ 2, 2, 2, 2 ], { 'dtype': 'float64' } ),
empty( [ 2, 2, 2, 2 ], { 'dtype': 'float32' } ),
empty( [ 2, 2, 2, 2 ], { 'dtype': 'int32' } ),
empty( [ 2, 2, 2, 2 ], { 'dtype': 'complex128' } ),
empty( [ 2, 2, 2, 2 ], { 'dtype': 'generic' } )
empty( [ 2, 2, 2, 2 ], { 'dtype': 'float64' }),
empty( [ 2, 2, 2, 2 ], { 'dtype': 'float32' }),
empty( [ 2, 2, 2, 2 ], { 'dtype': 'int32' }),
empty( [ 2, 2, 2, 2 ], { 'dtype': 'complex128' }),
empty( [ 2, 2, 2, 2 ], { 'dtype': 'generic' })
];

/* eslint-enable object-curly-newline */
Expand Down Expand Up @@ -880,11 +881,11 @@
/* eslint-disable object-curly-newline */

values = [
empty( [ 2, 2, 2, 2 ], { 'dtype': 'float64' } ),
empty( [ 2, 2, 2, 2 ], { 'dtype': 'float32' } ),
empty( [ 2, 2, 2, 2 ], { 'dtype': 'int32' } ),
empty( [ 2, 2, 2, 2 ], { 'dtype': 'complex128' } ),
empty( [ 2, 2, 2, 2 ], { 'dtype': 'generic' } )
empty( [ 2, 2, 2, 2 ], { 'dtype': 'float64' }),
empty( [ 2, 2, 2, 2 ], { 'dtype': 'float32' }),
empty( [ 2, 2, 2, 2 ], { 'dtype': 'int32' }),
empty( [ 2, 2, 2, 2 ], { 'dtype': 'complex128' }),
empty( [ 2, 2, 2, 2 ], { 'dtype': 'generic' })
];

/* eslint-enable object-curly-newline */
Expand Down Expand Up @@ -948,11 +949,11 @@
/* eslint-disable object-curly-newline */

values = [
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float64' } ),
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float32' } ),
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'int32' } ),
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'complex128' } ),
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'generic' } )
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float64' }),
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float32' }),
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'int32' }),
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'complex128' }),
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'generic' })
];

/* eslint-enable object-curly-newline */
Expand Down Expand Up @@ -1013,11 +1014,11 @@
/* eslint-disable object-curly-newline */

values = [
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float64' } ),
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float32' } ),
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'int32' } ),
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'complex128' } ),
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'generic' } )
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float64' }),
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float32' }),
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'int32' }),
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'complex128' }),
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'generic' })
];

/* eslint-enable object-curly-newline */
Expand Down Expand Up @@ -1083,11 +1084,11 @@
/* eslint-disable object-curly-newline */

values = [
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float64' } ),
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float32' } ),
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'int32' } ),
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'complex128' } ),
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'generic' } )
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float64' }),
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float32' }),
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'int32' }),
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'complex128' }),
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'generic' })
];

/* eslint-enable object-curly-newline */
Expand Down
3 changes: 2 additions & 1 deletion lib/node_modules/@stdlib/utils/values/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ function objectValues( obj ) {
}
keys = objectKeys( obj );
len = keys.length;
out = new Array( len );
out = [];
out.length = len;
for ( i = 0; i < len; i++ ) {
out[ i ] = obj[ keys[i] ];
}
Expand Down