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
6 changes: 3 additions & 3 deletions lib/node_modules/@stdlib/stats/ranks/benchmark/benchmark.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
* Copyright (c) 2026 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.
Expand Down Expand Up @@ -35,10 +35,10 @@ bench( pkg, function benchmark( b ) {
var len;
var i;

arr = new Array( 100 );
arr = [];
len = arr.length;
for ( i = 0; i < len; i++ ) {
arr[ i ] = ( randu()*100.0 ) - 50.0;
arr.push( ( randu()*100.0 ) - 50.0 );
}

b.tic();
Expand Down
6 changes: 3 additions & 3 deletions lib/node_modules/@stdlib/stats/ranks/lib/order.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
* Copyright (c) 2026 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.
Expand Down Expand Up @@ -52,9 +52,9 @@ function order( x ) {
var arr;
var i;

arr = new Array( x.length );
arr = [];
for ( i = 0; i < x.length; i++ ) {
arr[ i ] = i;
arr.push( i );
}
return arr.sort( compare );

Expand Down
Loading