Skip to content
Closed
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 @@ -56,7 +56,7 @@ function getPkgs( pkgs, basedir ) {
len = pkgs.length;
debug( 'Resolving %d packages...', len );

out = new Array( len );
out = [];
for ( i = 0; i < len; i++ ) {
pkg = pkgs[ i ];
k = i + 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
* var bool = isTruthy( NaN );
* // returns false
*/
declare function isTruthy( value: any ): boolean;
declare function isTruthy( value: unknown ): boolean;


// EXPORTS //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ var offsets = require( './offsets.js' );
* }
*
* // Perform a reduction:
* unary5d( ztest, [ x, y, alternative, alpha, mu, sigma ], views, [ 12, 12, 12, 12, 4 ], true, strategy, {} );
* unary5d( z_test, [ x, y, alternative, alpha, mu, sigma ], views, [ 12, 12, 12, 12, 4 ], true, strategy, {} );
*
* var arr = ndarray2array( y.data, y.shape, y.strides, y.offset, y.order );
* // returns [ [ [ [ [ <Float64Results>, <Float64Results>, <Float64Results> ] ] ] ] ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* var dt = nextDataType( 'float32' );
* // returns 'float64'
*/
declare function nextDataType( dtype?: any ): any;
declare function nextDataType( dtype?: string ): str;


// EXPORTS //
Expand Down
20 changes: 10 additions & 10 deletions lib/node_modules/@stdlib/ndarray/slice-to/benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ bench( pkg+'::0d,non-base', function benchmark( b ) {
/* 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 Down Expand Up @@ -134,11 +134,11 @@ bench( pkg+'::1d,non-base', function benchmark( b ) {
/* 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 Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ options( digits = 16L );
#' main();
main <- function() {
# Define benchmark parameters:
name <- "dist-laplace-quantile";
name <- 'dist-laplace-quantile';
iterations <- 1000000L;
repeats <- 3L;

Expand All @@ -34,7 +34,7 @@ main <- function() {
#' @examples
#' print_version();
print_version <- function() {
cat( "TAP version 13\n" );
cat( 'TAP version 13\n' );
}

#' Print the TAP summary.
Expand All @@ -46,11 +46,11 @@ main <- function() {
#' print_summary( 3, 3 );
print_summary <- function( total, passing ) {
cat( "#\n" );
cat( paste0( "1..", total, "\n" ) ); # TAP plan
cat( paste0( "# total ", total, "\n" ) );
cat( paste0( "# pass ", passing, "\n" ) );
cat( "#\n" );
cat( "# ok\n" );
cat( paste0( '1..', total, '\n' ) ); # TAP plan
cat( paste0( '# total ', total, '\n' ) );
cat( paste0( '# pass ', passing, '\n' ) );
cat( '#\n' );
cat( '# ok\n' );
}

#' Print benchmark results.
Expand Down
Loading