diff --git a/lib/node_modules/@stdlib/blas/base/srotm/test/test.ndarray.native.js b/lib/node_modules/@stdlib/blas/base/srotm/test/test.ndarray.native.js index 881dcb0559a2..d7846e522ad7 100644 --- a/lib/node_modules/@stdlib/blas/base/srotm/test/test.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/base/srotm/test/test.ndarray.native.js @@ -296,20 +296,20 @@ tape( 'the function applies a plane rotation', opts, function test( t ) { 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 ); @@ -332,20 +332,20 @@ tape( 'the function applies a plane rotation', opts, function test( t ) { 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 ); @@ -379,20 +379,20 @@ tape( 'the function supports an `x` stride', opts, function test( t ) { 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 ); @@ -415,20 +415,20 @@ tape( 'the function supports an `x` stride', opts, function test( t ) { 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 ); @@ -486,20 +486,20 @@ tape( 'the function supports an `x` offset', opts, function test( t ) { 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 ); @@ -522,20 +522,20 @@ tape( 'the function supports an `x` offset', opts, function test( t ) { 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 ); @@ -568,20 +568,20 @@ tape( 'the function supports a `y` stride', opts, function test( t ) { 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 ); @@ -604,20 +604,20 @@ tape( 'the function supports a `y` stride', opts, function test( t ) { 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 ); @@ -675,20 +675,20 @@ tape( 'the function supports a `y` offset', opts, function test( t ) { 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 ); @@ -711,20 +711,20 @@ tape( 'the function supports a `y` offset', opts, function test( t ) { 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 );