From 8f640626bf94f055dd9bb0573a337df44cc39a3d Mon Sep 17 00:00:00 2001 From: Mandeep2333 Date: Tue, 3 Mar 2026 09:35:22 +0530 Subject: [PATCH 1/8] chore/fix javascript error of array defining --- .../@stdlib/stats/fligner-test/lib/main.js | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/lib/node_modules/@stdlib/stats/fligner-test/lib/main.js b/lib/node_modules/@stdlib/stats/fligner-test/lib/main.js index 84f9190ec87a..23c5c39179e2 100644 --- a/lib/node_modules/@stdlib/stats/fligner-test/lib/main.js +++ b/lib/node_modules/@stdlib/stats/fligner-test/lib/main.js @@ -48,12 +48,11 @@ var print = require( './print.js' ); // eslint-disable-line stdlib/no-redeclare * @returns {Array} filled array */ function repeat( val, len ) { - var out = new Array( len ); + var out = []; var i; - - for ( i = 0; i < len; i++ ) { - out[ i ] = val; - } +for ( i = 0; i < len; i++ ) { + out.push( val ); +} return out; } @@ -163,21 +162,21 @@ function fligner() { x = x.concat( args[ i ] ); } n = x.length; - xabs = new Array( n ); + xabs = []; for ( i = 0; i < n; i++ ) { - xabs[ i ] = abs( x[ i ] ); - } + xabs.push( abs( x[ i ] ) ); +} scores = ranks( xabs ); - a = new Array( n ); + a = []; mean = 0.0; M2 = 0.0; sums = repeat( 0.0, ngroups ); for ( i = 0; i < n; i++ ) { - a[ i ] = qnorm( ( 1.0 + ( scores[ i ]/(n+1) ) ) / 2.0, 0.0, 1.0 ); + a.push( qnorm( ( 1.0 + ( scores[ i ]/(n+1) ) ) / 2.0, 0.0, 1.0 ) ); sums[ ( levels ) ? indexOf( levels, groups[i] ) : groups[i] ] += a[ i ]; - delta = a[ i ] - mean; + delta = a[ a.length - 1 ] - mean; mean += delta / ( i+1 ); - M2 += delta * ( a[ i ] - mean ); + M2 += delta * ( a[ a.length - 1 ] - mean ); } variance = M2 / ( n - 1 ); stat = 0.0; From 58d74bddf21464bdb7af50f2c5392d74a67e4b69 Mon Sep 17 00:00:00 2001 From: Mandeep2333 Date: Fri, 6 Mar 2026 10:15:33 +0530 Subject: [PATCH 2/8] test: fix ndarray test formatting for srotm --- .../blas/base/srotm/test/test.ndarray.js | 199 +++++++++--------- 1 file changed, 100 insertions(+), 99 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/base/srotm/test/test.ndarray.js b/lib/node_modules/@stdlib/blas/base/srotm/test/test.ndarray.js index 494b15be4b4e..14f5d6dbc360 100644 --- a/lib/node_modules/@stdlib/blas/base/srotm/test/test.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/srotm/test/test.ndarray.js @@ -95,16 +95,16 @@ tape( 'the function applies a modified Givens plane rotation (sx=1, sy=1)', func oy = [ 0, 0, 0, 0 ]; xe = [ - new Float32Array( [ 0.6, 0.1, -0.5, 0.8, 0.9, -0.3, -0.4 ] ), - new Float32Array( [ -0.9, 0.1, -0.5, 0.8, 0.9, -0.3, -0.4 ] ), - new Float32Array( [ -0.9, 2.8, -0.5, 0.8, 0.9, -0.3, -0.4 ] ), - new Float32Array( [ -0.9, 2.8, -1.4, -1.3, 0.9, -0.3, -0.4 ] ) + new Float32Array([ 0.6, 0.1, -0.5, 0.8, 0.9, -0.3, -0.4 ]), + new Float32Array([ -0.9, 0.1, -0.5, 0.8, 0.9, -0.3, -0.4 ]), + new Float32Array([ -0.9, 2.8, -0.5, 0.8, 0.9, -0.3, -0.4 ]), + new Float32Array([ -0.9, 2.8, -1.4, -1.3, 0.9, -0.3, -0.4 ]) ]; ye = [ - new Float32Array( [ 0.5, -0.9, 0.3, 0.7, -0.6, 0.2, 0.8 ] ), - new Float32Array( [ 1.7, -0.9, 0.3, 0.7, -0.6, 0.2, 0.8 ] ), - new Float32Array( [ 1.7, -0.7, 0.3, 0.7, -0.6, 0.2, 0.8 ] ), - new Float32Array( [ 1.7, -0.7, -0.7, 2.3, -0.6, 0.2, 0.8 ] ) + new Float32Array([ 0.5, -0.9, 0.3, 0.7, -0.6, 0.2, 0.8 ]), + new Float32Array([ 1.7, -0.9, 0.3, 0.7, -0.6, 0.2, 0.8 ]), + new Float32Array([ 1.7, -0.7, 0.3, 0.7, -0.6, 0.2, 0.8 ]), + new Float32Array([ 1.7, -0.7, -0.7, 2.3, -0.6, 0.2, 0.8 ]) ]; for ( i = 0; i < N.length; i++ ) { @@ -143,16 +143,16 @@ tape( 'the function applies a modified Givens plane rotation (sx=2, sy=-2)', fun oy = [ 0, 0, 2, 6 ]; xe = [ - new Float32Array( [ 0.6, 0.1, -0.5, 0.8, 0.9, -0.3, -0.4 ] ), - new Float32Array( [ 3.5, 0.1, -0.5, 0.8, 0.9, -0.3, -0.4 ] ), - new Float32Array( [ 3.3, 0.1, -2.0, 0.8, 0.9, -0.3, -0.4 ] ), - new Float32Array( [ 3.8, 0.1, -3.1, 0.8, 4.8, -0.3, -1.5 ] ) + new Float32Array([ 0.6, 0.1, -0.5, 0.8, 0.9, -0.3, -0.4 ]), + new Float32Array([ 3.5, 0.1, -0.5, 0.8, 0.9, -0.3, -0.4 ]), + new Float32Array([ 3.3, 0.1, -2.0, 0.8, 0.9, -0.3, -0.4 ]), + new Float32Array([ 3.8, 0.1, -3.1, 0.8, 4.8, -0.3, -1.5 ]) ]; ye = [ - new Float32Array( [ 0.5, -0.9, 0.3, 0.7, -0.6, 0.2, 0.8 ] ), - new Float32Array( [ -2.6, -0.9, 0.3, 0.7, -0.6, 0.2, 0.8 ] ), - new Float32Array( [ -1.5, -0.9, -1.8, 0.7, -0.6, 0.2, 0.8 ] ), - new Float32Array( [ -1.6, -0.9, -2.1, 0.7, 2.9, 0.2, -3.8 ] ) + new Float32Array([ 0.5, -0.9, 0.3, 0.7, -0.6, 0.2, 0.8 ]), + new Float32Array([ -2.6, -0.9, 0.3, 0.7, -0.6, 0.2, 0.8 ]), + new Float32Array([ -1.5, -0.9, -1.8, 0.7, -0.6, 0.2, 0.8 ]), + new Float32Array([ -1.6, -0.9, -2.1, 0.7, 2.9, 0.2, -3.8 ]) ]; for ( i = 0; i < N.length; i++ ) { @@ -191,16 +191,16 @@ tape( 'the function applies a modified Givens plane rotation (sx=-2, sy=1)', fun oy = [ 0, 0, 0, 0 ]; xe = [ - new Float32Array( [ 0.6, 0.1, -0.5, 0.8, 0.9, -0.3, -0.4 ] ), - new Float32Array( [ -0.9, 0.1, -0.5, 0.8, 0.9, -0.3, -0.4 ] ), - new Float32Array( [ 3.3, 0.1, -2.0, 0.8, 0.9, -0.3, -0.4 ] ), - new Float32Array( [ -1.5, 0.1, -1.4, 0.8, 3.6, -0.3, -1.9 ] ) + new Float32Array([ 0.6, 0.1, -0.5, 0.8, 0.9, -0.3, -0.4 ]), + new Float32Array([ -0.9, 0.1, -0.5, 0.8, 0.9, -0.3, -0.4 ]), + new Float32Array([ 3.3, 0.1, -2.0, 0.8, 0.9, -0.3, -0.4 ]), + new Float32Array([ -1.5, 0.1, -1.4, 0.8, 3.6, -0.3, -1.9 ]) ]; ye = [ - new Float32Array( [ 0.5, -0.9, 0.3, 0.7, -0.6, 0.2, 0.8 ] ), - new Float32Array( [ 1.7, -0.9, 0.3, 0.7, -0.6, 0.2, 0.8 ] ), - new Float32Array( [ -0.5, 0.3, 0.3, 0.7, -0.6, 0.2, 0.8 ] ), - new Float32Array( [ -0.3, 0.9, -0.7, 1.9, -0.6, 0.2, 0.8 ] ) + new Float32Array([ 0.5, -0.9, 0.3, 0.7, -0.6, 0.2, 0.8 ]), + new Float32Array([ 1.7, -0.9, 0.3, 0.7, -0.6, 0.2, 0.8 ]), + new Float32Array([ -0.5, 0.3, 0.3, 0.7, -0.6, 0.2, 0.8 ]), + new Float32Array([ -0.3, 0.9, -0.7, 1.9, -0.6, 0.2, 0.8 ]) ]; for ( i = 0; i < N.length; i++ ) { @@ -239,16 +239,16 @@ tape( 'the function applies a plane rotation (sx=-1, sy=-2)', function test( t ) oy = [ 0, 0, 2, 6 ]; xe = [ - new Float32Array( [ 0.6, 0.1, -0.5, 0.8, 0.9, -0.3, -0.4 ] ), - new Float32Array( [ -0.9, 0.1, -0.5, 0.8, 0.9, -0.3, -0.4 ] ), - new Float32Array( [ -0.9, -0.8, -0.5, 0.8, 0.9, -0.3, -0.4 ] ), - new Float32Array( [ -0.9, -0.8, 1.3, -1.6, 0.9, -0.3, -0.4 ] ) + new Float32Array([ 0.6, 0.1, -0.5, 0.8, 0.9, -0.3, -0.4 ]), + new Float32Array([ -0.9, 0.1, -0.5, 0.8, 0.9, -0.3, -0.4 ]), + new Float32Array([ -0.9, -0.8, -0.5, 0.8, 0.9, -0.3, -0.4 ]), + new Float32Array([ -0.9, -0.8, 1.3, -1.6, 0.9, -0.3, -0.4 ]) ]; ye = [ - new Float32Array( [ 0.5, -0.9, 0.3, 0.7, -0.6, 0.2, 0.8 ] ), - new Float32Array( [ 1.7, -0.9, 0.3, 0.7, -0.6, 0.2, 0.8 ] ), - new Float32Array( [ 1.7, -0.9, 0.5, 0.7, -0.6, 0.2, 0.8 ] ), - new Float32Array( [ 1.7, -0.9, 0.5, 0.7, -1.6, 0.2, 2.4 ] ) + new Float32Array([ 0.5, -0.9, 0.3, 0.7, -0.6, 0.2, 0.8 ]), + new Float32Array([ 1.7, -0.9, 0.3, 0.7, -0.6, 0.2, 0.8 ]), + new Float32Array([ 1.7, -0.9, 0.5, 0.7, -0.6, 0.2, 0.8 ]), + new Float32Array([ 1.7, -0.9, 0.5, 0.7, -1.6, 0.2, 2.4 ]) ]; for ( i = 0; i < N.length; i++ ) { @@ -283,24 +283,24 @@ tape( 'the function applies a plane rotation', function test( t ) { 9.0, 10.0 // 2 ]); - param = new Float32Array( [ -1.0, 0.0, 2.0, -3.0, 0.0 ] ); + param = new Float32Array([ -1.0, 0.0, 2.0, -3.0, 0.0 ]); srotm( 3, x, 2, 0, y, 2, 0, param ); - xe = new Float32Array( [ + xe = new Float32Array([ -18.0, // 0 2.0, -24.0, // 1 4.0, -30.0 // 2 - ] ); - ye = new Float32Array( [ + ]); + ye = new Float32Array([ 2.0, // 0 7.0, 6.0, // 1 9.0, 10.0 // 2 - ] ); + ]); isApprox( t, x, xe, 1.0 ); isApprox( t, y, ye, 1.0 ); @@ -319,24 +319,24 @@ tape( 'the function applies a plane rotation', function test( t ) { 9.0, // 1 10.0 ]); - param = new Float32Array( [ 1.0, 0.0, 2.0, 3.0, 0.0 ] ); + param = new Float32Array([ 1.0, 0.0, 2.0, 3.0, 0.0 ]); srotm( 2, x, 3, 0, y, 3, 0, param ); - xe = new Float32Array( [ + xe = new Float32Array([ 6.0, // 0 2.0, 3.0, 9.0, // 1 5.0 - ] ); - ye = new Float32Array( [ + ]); + ye = new Float32Array([ -1.0, // 0 7.0, 8.0, -4.0, // 1 10.0 - ] ); + ]); isApprox( t, x, xe, 1.0 ); isApprox( t, y, ye, 1.0 ); @@ -366,24 +366,24 @@ tape( 'the function supports an `x` stride', function test( t ) { 10.0 ]); - param = new Float32Array( [ 0.0, 0.0, 2.0, -3.0, 0.0 ] ); + param = new Float32Array([ 0.0, 0.0, 2.0, -3.0, 0.0 ]); srotm( 2, x, 2, 0, y, 1, 0, param ); - xe = new Float32Array( [ + xe = new Float32Array([ -17.0, // 0 2.0, -18.0, // 1 4.0, 5.0 - ] ); - ye = new Float32Array( [ + ]); + ye = new Float32Array([ 8.0, // 0 13.0, // 1 8.0, 9.0, 10.0 - ] ); + ]); isApprox( t, x, xe, 2.0 ); isApprox( t, y, ye, 2.0 ); @@ -402,24 +402,24 @@ tape( 'the function supports an `x` stride', function test( t ) { 9.0, 10.0 ]); - param = new Float32Array( [ -1.0, 0.0, 2.0, -3.0, 0.0 ] ); + param = new Float32Array([ -1.0, 0.0, 2.0, -3.0, 0.0 ]); srotm( 2, x, 3, 0, y, 1, 0, param ); - xe = new Float32Array( [ + xe = new Float32Array([ -18.0, // 0 2.0, 3.0, -21.0, // 1 5.0 - ] ); - ye = new Float32Array( [ + ]); + ye = new Float32Array([ 2.0, // 0 8.0, // 1 8.0, 9.0, 10.0 - ] ); + ]); isApprox( t, x, xe, 1.0 ); isApprox( t, y, ye, 1.0 ); @@ -449,12 +449,12 @@ tape( 'the function supports an `x` offset', function test( t ) { 10.0 ]); - param = new Float32Array( [ 0.0, 0.0, 2.0, -3.0, 0.0 ] ); + param = new Float32Array([ 0.0, 0.0, 2.0, -3.0, 0.0 ]); srotm( 2, x, 1, 1, y, 2, 0, param ); - xe = new Float32Array( [ 1.0, -16.0, -21.0, 4.0, 5.0 ] ); - ye = new Float32Array( [ 10.0, 7.0, 14.0, 9.0, 10.0 ] ); + xe = new Float32Array([ 1.0, -16.0, -21.0, 4.0, 5.0 ]); + ye = new Float32Array([ 10.0, 7.0, 14.0, 9.0, 10.0 ]); isApprox( t, x, xe, 2.0 ); isApprox( t, y, ye, 2.0 ); @@ -473,24 +473,24 @@ tape( 'the function supports an `x` offset', function test( t ) { 9.0, 10.0 ]); - param = new Float32Array( [ -1.0, 0.0, 2.0, -3.0, 0.0 ] ); + param = new Float32Array([ -1.0, 0.0, 2.0, -3.0, 0.0 ]); srotm( 2, x, -2, 2, y, 1, 0, param ); - xe = new Float32Array( [ + xe = new Float32Array([ -21.0, // 1 2.0, -18.0, // 0 4.0, 5.0 - ] ); - ye = new Float32Array( [ + ]); + ye = new Float32Array([ 6.0, // 0 2.0, // 1 8.0, 9.0, 10.0 - ] ); + ]); isApprox( t, x, xe, 2.0 ); isApprox( t, y, ye, 2.0 ); @@ -509,24 +509,24 @@ tape( 'the function supports an `x` offset', function test( t ) { 9.0, 10.0 ]); - param = new Float32Array( [ 1.0, 0.0, 2.0, -3.0, 0.0 ] ); + param = new Float32Array([ 1.0, 0.0, 2.0, -3.0, 0.0 ]); srotm( 3, x, -2, 4, y, 1, 0, param ); - xe = new Float32Array( [ + xe = new Float32Array([ 8.0, // 2 2.0, 7.0, // 1 4.0, 6.0 // 0 - ] ); - ye = new Float32Array( [ + ]); + ye = new Float32Array([ -5.0, // 0 -3.0, // 1 -1.0, // 2 9.0, 10.0 - ] ); + ]); isApprox( t, x, xe, 2.0 ); isApprox( t, y, ye, 2.0 ); @@ -555,24 +555,24 @@ tape( 'the function supports a `y` stride', function test( t ) { 9.0, 10.0 // 2 ]); - param = new Float32Array( [ 0.0, 0.0, 2.0, -3.0, 0.0 ] ); + param = new Float32Array([ 0.0, 0.0, 2.0, -3.0, 0.0 ]); srotm( 3, x, 1, 0, y, 2, 0, param ); - xe = new Float32Array( [ + xe = new Float32Array([ -17.0, // 0 -22.0, // 1 -27.0, // 2 4.0, 5.0 - ] ); - ye = new Float32Array( [ + ]); + ye = new Float32Array([ 8.0, // 0 7.0, 12.0, // 1 9.0, 16.0 // 2 - ] ); + ]); isApprox( t, x, xe, 1.0 ); isApprox( t, y, ye, 1.0 ); @@ -591,24 +591,24 @@ tape( 'the function supports a `y` stride', function test( t ) { 9.0, // 1 10.0 ]); - param = new Float32Array( [ -1.0, 0.0, 2.0, -3.0, 0.0 ] ); + param = new Float32Array([ -1.0, 0.0, 2.0, -3.0, 0.0 ]); srotm( 2, x, 1, 0, y, 3, 0, param ); - xe = new Float32Array( [ + xe = new Float32Array([ -18.0, // 0 -27.0, // 1 3.0, 4.0, 5.0 - ] ); - ye = new Float32Array( [ + ]); + ye = new Float32Array([ 2.0, // 0 7.0, 8.0, 4.0, // 1 10.0 - ] ); + ]); isApprox( t, x, xe, 1.0 ); isApprox( t, y, ye, 1.0 ); @@ -638,12 +638,12 @@ tape( 'the function supports a `y` offset', function test( t ) { 10.0 ]); - param = new Float32Array( [ 0.0, 0.0, 2.0, -3.0, 0.0 ] ); + param = new Float32Array([ 0.0, 0.0, 2.0, -3.0, 0.0 ]); srotm( 2, x, 1, 0, y, 2, 1, param ); - xe = new Float32Array( [ -20.0, -25.0, 3.0, 4.0, 5.0 ] ); - ye = new Float32Array( [ 6.0, 9.0, 8.0, 13.0, 10.0 ] ); + xe = new Float32Array([ -20.0, -25.0, 3.0, 4.0, 5.0 ]); + ye = new Float32Array([ 6.0, 9.0, 8.0, 13.0, 10.0 ]); isApprox( t, x, xe, 2.0 ); isApprox( t, y, ye, 2.0 ); @@ -662,24 +662,24 @@ tape( 'the function supports a `y` offset', function test( t ) { 9.0, 10.0 ]); - param = new Float32Array( [ 1.0, 0.0, 2.0, -3.0, 0.0 ] ); + param = new Float32Array([ 1.0, 0.0, 2.0, -3.0, 0.0 ]); srotm( 2, x, 1, 0, y, -2, 2, param ); - xe = new Float32Array( [ + xe = new Float32Array([ 8.0, // 0 6.0, // 1 3.0, 4.0, 5.0 - ] ); - ye = new Float32Array( [ + ]); + ye = new Float32Array([ -2.0, // 1 7.0, -1.0, // 0 9.0, 10.0 - ] ); + ]); isApprox( t, x, xe, 2.0 ); isApprox( t, y, ye, 2.0 ); @@ -698,24 +698,24 @@ tape( 'the function supports a `y` offset', function test( t ) { 9.0, 10.0 // 0 ]); - param = new Float32Array( [ -1.0, 0.0, 2.0, -3.0, 0.0 ] ); + param = new Float32Array([ -1.0, 0.0, 2.0, -3.0, 0.0 ]); srotm( 3, x, 1, 0, y, -2, 4, param ); - xe = new Float32Array( [ + xe = new Float32Array([ -30.0, // 0 -24.0, // 1 -18.0, // 2 4.0, 5.0 - ] ); - ye = new Float32Array( [ + ]); + ye = new Float32Array([ 6.0, // 2 7.0, 4.0, // 1 9.0, 2.0 // 0 - ] ); + ]); isApprox( t, x, xe, 2.0 ); isApprox( t, y, ye, 2.0 ); @@ -729,13 +729,14 @@ tape( 'the function returns a reference to the second input array', function tes var x; var y; - x = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] ); - y = new Float32Array( [ 6.0, 7.0, 8.0, 9.0, 10.0 ] ); - param = new Float32Array( [ 0.0, 0.0, 2.0, -3.0, 0.0 ] ); + x = new Float32Array([1.0, 2.0, 3.0, 4.0, 5.0]); + y = new Float32Array([6.0, 7.0, 8.0, 9.0, 10.0]); + + param = new Float32Array([0.0, 0.0, 2.0, -3.0, 0.0]); - out = srotm( x.length, x, 1, 0, y, 1, 0, param ); + out = srotm(3, x, 1, 0, y, 1, 0, param); - t.strictEqual( out, y, 'returns expected value' ); + t.strictEqual(out, y, 'returns expected value'); t.end(); }); @@ -746,9 +747,9 @@ tape( 'if provided an `N` parameter less than or equal to `0`, the function leav var x; var y; - x = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] ); - y = new Float32Array( [ 6.0, 7.0, 8.0, 9.0, 10.0 ] ); - param = new Float32Array( [ 0.0, 0.0, 2.0, -3.0, 0.0 ] ); + x = new Float32Array([ 1.0, 2.0, 3.0, 4.0, 5.0 ]); + y = new Float32Array([ 6.0, 7.0, 8.0, 9.0, 10.0 ]); + param = new Float32Array([ 0.0, 0.0, 2.0, -3.0, 0.0 ]); xe = new Float32Array( x.length ); scopy( x.length, x, 1, xe, 1 ); @@ -792,12 +793,12 @@ tape( 'the function supports complex access patterns', function test( t ) { 0.2, 0.8 ]); - param = new Float32Array( [ 0.0, 0.0, 2.0, -3.0, 0.0 ] ); + param = new Float32Array([ 0.0, 0.0, 2.0, -3.0, 0.0 ]); srotm( 2, x, -1, 1, y, -2, 2, param ); - xe = new Float32Array( [ -0.9, -0.8, -0.5, 0.8, 0.9, -0.3, -0.4 ] ); - ye = new Float32Array( [ 1.7, -0.9, 0.5, 0.7, -0.6, 0.2, 0.8 ] ); + xe = new Float32Array([ -0.9, -0.8, -0.5, 0.8, 0.9, -0.3, -0.4 ]); + ye = new Float32Array([ 1.7, -0.9, 0.5, 0.7, -0.6, 0.2, 0.8 ]); isApprox( t, x, xe, 5.0 ); isApprox( t, y, ye, 5.0 ); From c1fe27fdee82e3d2661e41c549c307b32618ed23 Mon Sep 17 00:00:00 2001 From: Mandeep2333 Date: Fri, 6 Mar 2026 11:42:20 +0530 Subject: [PATCH 3/8] fix: resolve merge conflict in fligner-test main.js --- .../@stdlib/stats/fligner-test/lib/main.js | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/lib/node_modules/@stdlib/stats/fligner-test/lib/main.js b/lib/node_modules/@stdlib/stats/fligner-test/lib/main.js index f1788154ee2c..b9cdc08fd1af 100644 --- a/lib/node_modules/@stdlib/stats/fligner-test/lib/main.js +++ b/lib/node_modules/@stdlib/stats/fligner-test/lib/main.js @@ -50,16 +50,9 @@ var print = require( './print.js' ); // eslint-disable-line stdlib/no-redeclare function repeat( val, len ) { var out = []; var i; -<<<<<<< HEAD -for ( i = 0; i < len; i++ ) { - out.push( val ); -} -======= - for ( i = 0; i < len; i++ ) { out.push( val ); } ->>>>>>> upstream/develop return out; } @@ -164,20 +157,14 @@ function fligner() { } loc = median( args[ i ] ); for ( j = 0; j < args[ i ].length; j++ ) { - args[ i ][ j ] -= loc; - } - x = x.concat( args[ i ] ); + x.push( args[ i ][ j ] - loc ); +} } n = x.length; xabs = []; for ( i = 0; i < n; i++ ) { -<<<<<<< HEAD - xabs.push( abs( x[ i ] ) ); -} -======= xabs.push( abs( x[ i ] ) ); } ->>>>>>> upstream/develop scores = ranks( xabs ); a = []; mean = 0.0; From bf67f7722d0dcdbf837c4652d3538d5e8b441226 Mon Sep 17 00:00:00 2001 From: Mandeep2333 Date: Sat, 7 Mar 2026 09:51:07 +0530 Subject: [PATCH 4/8] chore: fix JavaScript lint errors #10708 --- .../@stdlib/ndarray/fancy/test/test.instance.tostring.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/ndarray/fancy/test/test.instance.tostring.js b/lib/node_modules/@stdlib/ndarray/fancy/test/test.instance.tostring.js index d65f5612e9fe..6fc686a4466a 100644 --- a/lib/node_modules/@stdlib/ndarray/fancy/test/test.instance.tostring.js +++ b/lib/node_modules/@stdlib/ndarray/fancy/test/test.instance.tostring.js @@ -175,7 +175,7 @@ tape( 'a FancyArray constructor returns an instance which has a custom `toString var arr; dtype = 'generic'; - buffer = new Array( 1e4 ); + buffer = []; shape = [ buffer.length ]; order = 'row-major'; strides = [ 1 ]; From 4366884c08147b62e5e1e5014f72afea323a0212 Mon Sep 17 00:00:00 2001 From: Mandeep2333 Date: Tue, 10 Mar 2026 09:32:12 +0530 Subject: [PATCH 5/8] chore: address commit comments for commit 2255c38 --- .../@stdlib/stats/strided/snanmskminabs/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/stats/strided/snanmskminabs/README.md b/lib/node_modules/@stdlib/stats/strided/snanmskminabs/README.md index 21905d6b818e..6b103e090523 100644 --- a/lib/node_modules/@stdlib/stats/strided/snanmskminabs/README.md +++ b/lib/node_modules/@stdlib/stats/strided/snanmskminabs/README.md @@ -40,7 +40,7 @@ var snanmskminabs = require( '@stdlib/stats/strided/snanmskminabs' ); #### snanmskminabs( N, x, strideX, mask, strideMask ) -Computes the minimum absolute value of a single-precision floating-point strided array according to a `mask`, ignoring `NaN` values. +Computes the minimum absolute value of a single-precision floating-point strided arrays according to a `mask`, ignoring `NaN` values. ```javascript var Float32Array = require( '@stdlib/array/float32' ); @@ -94,7 +94,7 @@ var v = snanmskminabs( 4, x1, 2, mask1, 2 ); #### snanmskminabs.ndarray( N, x, strideX, offsetX, mask, strideMask, offsetMask ) -Computes the minimum absolute value of a single-precision floating-point strided array according to a `mask`, ignoring `NaN` values and using alternative indexing semantics. +Computes the minimum absolute value of a single-precision floating-point strided arrays according to a `mask`, ignoring `NaN` values and using alternative indexing semantics. ```javascript var Float32Array = require( '@stdlib/array/float32' ); From 46a7295727d4e4a7e9fe68c33f2ab91496258915 Mon Sep 17 00:00:00 2001 From: Mandeep2333 Date: Tue, 10 Mar 2026 09:51:04 +0530 Subject: [PATCH 6/8] chore: address commit comments for commit 29ff047 --- .../@stdlib/stats/base/ndarray/dmeanors/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/node_modules/@stdlib/stats/base/ndarray/dmeanors/README.md b/lib/node_modules/@stdlib/stats/base/ndarray/dmeanors/README.md index d5d640153a92..705e48d63ab5 100644 --- a/lib/node_modules/@stdlib/stats/base/ndarray/dmeanors/README.md +++ b/lib/node_modules/@stdlib/stats/base/ndarray/dmeanors/README.md @@ -68,7 +68,7 @@ var v = dmeanors( [ x ] ); The function has the following parameters: -- **arrays**: array-like object containing a one-dimensional input ndarray. + - **arrays**: array-like object containing a one-dimensional input ndarray. @@ -78,8 +78,8 @@ The function has the following parameters: ## Notes -- If provided an empty one-dimensional ndarray, the function returns `NaN`. -- Ordinary recursive summation (i.e., a "simple" sum) is performant, but can incur significant numerical error. If performance is paramount and error tolerated, using ordinary recursive summation to compute an arithmetic mean is acceptable; in all other cases, exercise due caution. + - If provided an empty one-dimensional ndarray, the function returns `NaN`. + - Ordinary recursive summation (i.e., a "simple" sum) is performant, but can incur significant numerical error. If performance is paramount and error tolerated, using ordinary recursive summation to compute an arithmetic mean is acceptable; in all other cases, exercise due caution. From 28a0a4050833f7efda9db939a9f7060552dfc488 Mon Sep 17 00:00:00 2001 From: Mandeep2333 Date: Tue, 10 Mar 2026 10:02:13 +0530 Subject: [PATCH 7/8] chore: address commit comments for commit 9c42a28 --- .../@stdlib/stats/base/dists/gamma/cdf/benchmark/benchmark.js | 2 +- .../stats/base/dists/gamma/logcdf/benchmark/benchmark.js | 2 +- .../stats/base/dists/gamma/logpdf/benchmark/benchmark.js | 2 +- .../@stdlib/stats/base/dists/gamma/mgf/benchmark/benchmark.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/node_modules/@stdlib/stats/base/dists/gamma/cdf/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/gamma/cdf/benchmark/benchmark.js index 98476110a77b..3fc12479cb9f 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/gamma/cdf/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/dists/gamma/cdf/benchmark/benchmark.js @@ -64,7 +64,7 @@ bench( pkg, function benchmark( b ) { b.end(); }); -bench( pkg+':factory', function benchmark( b ) { +bench( pkg+'::factory', function benchmark( b ) { var mycdf; var alpha; var beta; diff --git a/lib/node_modules/@stdlib/stats/base/dists/gamma/logcdf/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/gamma/logcdf/benchmark/benchmark.js index 4ef48333accb..4b925ccb2631 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/gamma/logcdf/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/dists/gamma/logcdf/benchmark/benchmark.js @@ -64,7 +64,7 @@ bench( pkg, function benchmark( b ) { b.end(); }); -bench( pkg+':factory', function benchmark( b ) { +bench( pkg+'::factory', function benchmark( b ) { var mylogcdf; var alpha; var beta; diff --git a/lib/node_modules/@stdlib/stats/base/dists/gamma/logpdf/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/gamma/logpdf/benchmark/benchmark.js index 22e5c3027a86..b3c8586e00be 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/gamma/logpdf/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/dists/gamma/logpdf/benchmark/benchmark.js @@ -64,7 +64,7 @@ bench( pkg, function benchmark( b ) { b.end(); }); -bench( pkg+':factory', function benchmark( b ) { +bench( pkg+'::factory', function benchmark( b ) { var mylogpdf; var alpha; var beta; diff --git a/lib/node_modules/@stdlib/stats/base/dists/gamma/mgf/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/gamma/mgf/benchmark/benchmark.js index f7d4f84d160b..b37e796d1c88 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/gamma/mgf/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/dists/gamma/mgf/benchmark/benchmark.js @@ -64,7 +64,7 @@ bench( pkg, function benchmark( b ) { b.end(); }); -bench( pkg+':factory', function benchmark( b ) { +bench( pkg+'::factory', function benchmark( b ) { var mymgf; var alpha; var beta; From e4787cb3bc12de57d8e45857fea59dd138449a54 Mon Sep 17 00:00:00 2001 From: Mandeep2333 Date: Tue, 10 Mar 2026 10:32:31 +0530 Subject: [PATCH 8/8] chore: address commit comments for commit 29ff047 --- .../@stdlib/stats/base/ndarray/dmeanors/README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/node_modules/@stdlib/stats/base/ndarray/dmeanors/README.md b/lib/node_modules/@stdlib/stats/base/ndarray/dmeanors/README.md index 705e48d63ab5..1af69375eec5 100644 --- a/lib/node_modules/@stdlib/stats/base/ndarray/dmeanors/README.md +++ b/lib/node_modules/@stdlib/stats/base/ndarray/dmeanors/README.md @@ -65,10 +65,9 @@ var x = new ndarray( 'float64', xbuf, [ 4 ], [ 1 ], 0, 'row-major' ); var v = dmeanors( [ x ] ); // returns 2.5 ``` - The function has the following parameters: - - **arrays**: array-like object containing a one-dimensional input ndarray. +- **arrays**: array-like object containing a one-dimensional input ndarray. @@ -78,8 +77,8 @@ The function has the following parameters: ## Notes - - If provided an empty one-dimensional ndarray, the function returns `NaN`. - - Ordinary recursive summation (i.e., a "simple" sum) is performant, but can incur significant numerical error. If performance is paramount and error tolerated, using ordinary recursive summation to compute an arithmetic mean is acceptable; in all other cases, exercise due caution. +- If provided an empty one-dimensional ndarray, the function returns `NaN`. +- Ordinary recursive summation (i.e., a "simple" sum) is performant, but can incur significant numerical error. If performance is paramount and error tolerated, using ordinary recursive summation to compute an arithmetic mean is acceptable; in all other cases, exercise due caution.