From 8756b5b1bf46355f55fbc6f2778444970dcccf9a Mon Sep 17 00:00:00 2001 From: marq Date: Sun, 15 Feb 2026 11:30:21 +0530 Subject: [PATCH] fix lint errors test.dsyr2.js --- .../blas/base/dsyr2/test/test.dsyr2.js | 385 +++++++++--------- 1 file changed, 192 insertions(+), 193 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/base/dsyr2/test/test.dsyr2.js b/lib/node_modules/@stdlib/blas/base/dsyr2/test/test.dsyr2.js index 23ab41fce88b..f06527e31d69 100644 --- a/lib/node_modules/@stdlib/blas/base/dsyr2/test/test.dsyr2.js +++ b/lib/node_modules/@stdlib/blas/base/dsyr2/test/test.dsyr2.js @@ -22,44 +22,43 @@ // MODULES // -var tape = require( 'tape' ); -var Float64Array = require( '@stdlib/array/float64' ); -var dsyr2 = require( './../lib/dsyr2.js' ); - +var tape = require('tape'); +var Float64Array = require('@stdlib/array/float64'); +var dsyr2 = require('./../lib/dsyr2.js'); // FIXTURES // -var ru = require( './fixtures/row_major_u.json' ); -var rl = require( './fixtures/row_major_l.json' ); -var rx0 = require( './fixtures/row_major_x0.json' ); -var rxpyp = require( './fixtures/row_major_xpyp.json' ); -var rxnyp = require( './fixtures/row_major_xnyp.json' ); -var rxpyn = require( './fixtures/row_major_xpyn.json' ); -var rxnyn = require( './fixtures/row_major_xnyn.json' ); +var ru = require('./fixtures/row_major_u.json'); +var rl = require('./fixtures/row_major_l.json'); +var rx0 = require('./fixtures/row_major_x0.json'); +var rxpyp = require('./fixtures/row_major_xpyp.json'); +var rxnyp = require('./fixtures/row_major_xnyp.json'); +var rxpyn = require('./fixtures/row_major_xpyn.json'); +var rxnyn = require('./fixtures/row_major_xnyn.json'); -var cu = require( './fixtures/column_major_u.json' ); -var cl = require( './fixtures/column_major_l.json' ); -var cx0 = require( './fixtures/column_major_x0.json' ); -var cxpyp = require( './fixtures/column_major_xpyp.json' ); -var cxnyp = require( './fixtures/column_major_xnyp.json' ); -var cxpyn = require( './fixtures/column_major_xpyn.json' ); -var cxnyn = require( './fixtures/column_major_xnyn.json' ); +var cu = require('./fixtures/column_major_u.json'); +var cl = require('./fixtures/column_major_l.json'); +var cx0 = require('./fixtures/column_major_x0.json'); +var cxpyp = require('./fixtures/column_major_xpyp.json'); +var cxnyp = require('./fixtures/column_major_xnyp.json'); +var cxpyn = require('./fixtures/column_major_xpyn.json'); +var cxnyn = require('./fixtures/column_major_xnyn.json'); // TESTS // -tape( 'main export is a function', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof dsyr2, 'function', 'main export is a function' ); +tape('main export is a function', function test(t) { + t.ok(true, __filename); + t.strictEqual(typeof dsyr2, 'function', 'main export is a function'); t.end(); }); -tape( 'the function has an arity of 10', function test( t ) { - t.strictEqual( dsyr2.length, 10, 'returns expected value' ); +tape('the function has an arity of 10', function test(t) { + t.strictEqual(dsyr2.length, 10, 'returns expected value'); t.end(); }); -tape( 'the function throws an error if provided an invalid first argument', function test( t ) { +tape('the function throws an error if provided an invalid first argument', function test(t) { var values; var data; var i; @@ -73,19 +72,19 @@ tape( 'the function throws an error if provided an invalid first argument', func 'boop' ]; - for ( i = 0; i < values.length; i++ ) { - t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided ' + values[ i ] ); + for (i = 0; i < values.length; i++) { + t.throws(badValue(values[i]), TypeError, 'throws an error when provided ' + values[i]); } t.end(); - function badValue( value ) { + function badValue(value) { return function badValue() { - dsyr2( value, data.uplo, data.N, data.alpha, new Float64Array( data.x ), data.strideX, new Float64Array( data.y ), data.strideY, new Float64Array( data.A ), data.lda ); + dsyr2(value, data.uplo, data.N, data.alpha, new Float64Array(data.x), data.strideX, new Float64Array(data.y), data.strideY, new Float64Array(data.A), data.lda); }; } }); -tape( 'the function throws an error if provided an invalid second argument', function test( t ) { +tape('the function throws an error if provided an invalid second argument', function test(t) { var values; var data; var i; @@ -99,19 +98,19 @@ tape( 'the function throws an error if provided an invalid second argument', fun 'boop' ]; - for ( i = 0; i < values.length; i++ ) { - t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided ' + values[ i ] ); + for (i = 0; i < values.length; i++) { + t.throws(badValue(values[i]), TypeError, 'throws an error when provided ' + values[i]); } t.end(); - function badValue( value ) { + function badValue(value) { return function badValue() { - dsyr2( data.order, value, data.N, data.alpha, new Float64Array( data.x ), data.strideX, new Float64Array( data.y ), data.strideY, new Float64Array( data.A ), data.lda ); + dsyr2(data.order, value, data.N, data.alpha, new Float64Array(data.x), data.strideX, new Float64Array(data.y), data.strideY, new Float64Array(data.A), data.lda); }; } }); -tape( 'the function throws an error if provided an invalid third argument', function test( t ) { +tape('the function throws an error if provided an invalid third argument', function test(t) { var values; var data; var i; @@ -124,19 +123,19 @@ tape( 'the function throws an error if provided an invalid third argument', func -3 ]; - for ( i = 0; i < values.length; i++ ) { - t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] ); + for (i = 0; i < values.length; i++) { + t.throws(badValue(values[i]), RangeError, 'throws an error when provided ' + values[i]); } t.end(); - function badValue( value ) { + function badValue(value) { return function badValue() { - dsyr2( data.order, data.uplo, value, data.alpha, new Float64Array( data.x ), data.strideX, new Float64Array( data.y ), data.strideY, new Float64Array( data.A ), data.lda ); + dsyr2(data.order, data.uplo, value, data.alpha, new Float64Array(data.x), data.strideX, new Float64Array(data.y), data.strideY, new Float64Array(data.A), data.lda); }; } }); -tape( 'the function throws an error if provided an invalid sixth argument', function test( t ) { +tape('the function throws an error if provided an invalid sixth argument', function test(t) { var values; var data; var i; @@ -147,19 +146,19 @@ tape( 'the function throws an error if provided an invalid sixth argument', func 0 ]; - for ( i = 0; i < values.length; i++ ) { - t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] ); + for (i = 0; i < values.length; i++) { + t.throws(badValue(values[i]), RangeError, 'throws an error when provided ' + values[i]); } t.end(); - function badValue( value ) { + function badValue(value) { return function badValue() { - dsyr2( data.order, data.uplo, data.N, data.alpha, new Float64Array( data.x ), value, new Float64Array( data.y ), data.strideY, new Float64Array( data.A ), data.lda ); + dsyr2(data.order, data.uplo, data.N, data.alpha, new Float64Array(data.x), value, new Float64Array(data.y), data.strideY, new Float64Array(data.A), data.lda); }; } }); -tape( 'the function throws an error if provided an invalid eighth argument', function test( t ) { +tape('the function throws an error if provided an invalid eighth argument', function test(t) { var values; var data; var i; @@ -170,19 +169,19 @@ tape( 'the function throws an error if provided an invalid eighth argument', fun 0 ]; - for ( i = 0; i < values.length; i++ ) { - t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] ); + for (i = 0; i < values.length; i++) { + t.throws(badValue(values[i]), RangeError, 'throws an error when provided ' + values[i]); } t.end(); - function badValue( value ) { + function badValue(value) { return function badValue() { - dsyr2( data.order, data.uplo, data.N, data.alpha, new Float64Array( data.x ), data.strideX, new Float64Array( data.y ), value, new Float64Array( data.A ), data.lda ); + dsyr2(data.order, data.uplo, data.N, data.alpha, new Float64Array(data.x), data.strideX, new Float64Array(data.y), value, new Float64Array(data.A), data.lda); }; } }); -tape( 'the function throws an error if provided an invalid tenth argument', function test( t ) { +tape('the function throws an error if provided an invalid tenth argument', function test(t) { var values; var data; var i; @@ -198,19 +197,19 @@ tape( 'the function throws an error if provided an invalid tenth argument', func -3 ]; - for ( i = 0; i < values.length; i++ ) { - t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] ); + for (i = 0; i < values.length; i++) { + t.throws(badValue(values[i]), RangeError, 'throws an error when provided ' + values[i]); } t.end(); - function badValue( value ) { + function badValue(value) { return function badValue() { - dsyr2( data.order, data.uplo, data.N, data.alpha, new Float64Array( data.x ), data.strideX, new Float64Array( data.y ), data.strideY, new Float64Array( data.A ), value ); + dsyr2(data.order, data.uplo, data.N, data.alpha, new Float64Array(data.x), data.strideX, new Float64Array(data.y), data.strideY, new Float64Array(data.A), value); }; } }); -tape( 'the function performs the symmetric rank 2 operation `A = α*x*y^T + α*y*x^T + A` (row-major, upper)', function test( t ) { +tape('the function performs the symmetric rank 2 operation `A = α*x*y^T + α*y*x^T + A` (row-major, upper)', function test(t) { var expected; var data; var out; @@ -220,20 +219,20 @@ tape( 'the function performs the symmetric rank 2 operation `A = α*x*y^T + α*y data = ru; - a = new Float64Array( data.A ); - x = new Float64Array( data.x ); - y = new Float64Array( data.y ); + a = new Float64Array(data.A); + x = new Float64Array(data.x); + y = new Float64Array(data.y); - expected = new Float64Array( data.A_out ); + expected = new Float64Array(data.A_out); - out = dsyr2( data.order, data.uplo, data.N, data.alpha, x, data.strideX, y, data.strideY, a, data.lda ); - t.strictEqual( out, a, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); + out = dsyr2(data.order, data.uplo, data.N, data.alpha, x, data.strideX, y, data.strideY, a, data.lda); + t.strictEqual(out, a, 'returns expected value'); + t.deepEqual(out, expected, 'returns expected value'); t.end(); }); -tape( 'the function performs the symmetric rank 2 operation `A = α*x*y^T + α*y*x^T + A` (column-major, upper)', function test( t ) { +tape('the function performs the symmetric rank 2 operation `A = α*x*y^T + α*y*x^T + A` (column-major, upper)', function test(t) { var expected; var data; var out; @@ -243,20 +242,20 @@ tape( 'the function performs the symmetric rank 2 operation `A = α*x*y^T + α*y data = cu; - a = new Float64Array( data.A ); - x = new Float64Array( data.x ); - y = new Float64Array( data.y ); + a = new Float64Array(data.A); + x = new Float64Array(data.x); + y = new Float64Array(data.y); - expected = new Float64Array( data.A_out ); + expected = new Float64Array(data.A_out); - out = dsyr2( data.order, data.uplo, data.N, data.alpha, x, data.strideX, y, data.strideY, a, data.lda ); - t.strictEqual( out, a, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); + out = dsyr2(data.order, data.uplo, data.N, data.alpha, x, data.strideX, y, data.strideY, a, data.lda); + t.strictEqual(out, a, 'returns expected value'); + t.deepEqual(out, expected, 'returns expected value'); t.end(); }); -tape( 'the function performs the symmetric rank 2 operation `A = α*x*y^T + α*y*x^T + A` (row-major, lower)', function test( t ) { +tape('the function performs the symmetric rank 2 operation `A = α*x*y^T + α*y*x^T + A` (row-major, lower)', function test(t) { var expected; var data; var out; @@ -266,20 +265,20 @@ tape( 'the function performs the symmetric rank 2 operation `A = α*x*y^T + α*y data = rl; - a = new Float64Array( data.A ); - x = new Float64Array( data.x ); - y = new Float64Array( data.y ); + a = new Float64Array(data.A); + x = new Float64Array(data.x); + y = new Float64Array(data.y); - expected = new Float64Array( data.A_out ); + expected = new Float64Array(data.A_out); - out = dsyr2( data.order, data.uplo, data.N, data.alpha, x, data.strideX, y, data.strideY, a, data.lda ); - t.strictEqual( out, a, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); + out = dsyr2(data.order, data.uplo, data.N, data.alpha, x, data.strideX, y, data.strideY, a, data.lda); + t.strictEqual(out, a, 'returns expected value'); + t.deepEqual(out, expected, 'returns expected value'); t.end(); }); -tape( 'the function performs the symmetric rank 2 operation `A = α*x*y^T + α*y*x^T + A` (column-major, lower)', function test( t ) { +tape('the function performs the symmetric rank 2 operation `A = α*x*y^T + α*y*x^T + A` (column-major, lower)', function test(t) { var expected; var data; var out; @@ -289,20 +288,20 @@ tape( 'the function performs the symmetric rank 2 operation `A = α*x*y^T + α*y data = cl; - a = new Float64Array( data.A ); - x = new Float64Array( data.x ); - y = new Float64Array( data.y ); + a = new Float64Array(data.A); + x = new Float64Array(data.x); + y = new Float64Array(data.y); - expected = new Float64Array( data.A_out ); + expected = new Float64Array(data.A_out); - out = dsyr2( data.order, data.uplo, data.N, data.alpha, x, data.strideX, y, data.strideY, a, data.lda ); - t.strictEqual( out, a, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); + out = dsyr2(data.order, data.uplo, data.N, data.alpha, x, data.strideX, y, data.strideY, a, data.lda); + t.strictEqual(out, a, 'returns expected value'); + t.deepEqual(out, expected, 'returns expected value'); t.end(); }); -tape( 'the function performs the symmetric rank 2 operation `A = α*x*y^T + α*y*x^T + A` (row-major, zero-vector)', function test( t ) { +tape('the function performs the symmetric rank 2 operation `A = α*x*y^T + α*y*x^T + A` (row-major, zero-vector)', function test(t) { var expected; var data; var out; @@ -312,20 +311,20 @@ tape( 'the function performs the symmetric rank 2 operation `A = α*x*y^T + α*y data = rx0; - a = new Float64Array( data.A ); - x = new Float64Array( data.x ); - y = new Float64Array( data.y ); + a = new Float64Array(data.A); + x = new Float64Array(data.x); + y = new Float64Array(data.y); - expected = new Float64Array( data.A_out ); + expected = new Float64Array(data.A_out); - out = dsyr2( data.order, data.uplo, data.N, data.alpha, x, data.strideX, y, data.strideY, a, data.lda ); - t.strictEqual( out, a, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); + out = dsyr2(data.order, data.uplo, data.N, data.alpha, x, data.strideX, y, data.strideY, a, data.lda); + t.strictEqual(out, a, 'returns expected value'); + t.deepEqual(out, expected, 'returns expected value'); t.end(); }); -tape( 'the function performs the symmetric rank 2 operation `A = α*x*y^T + α*y*x^T + A` (column-major, zero-vector)', function test( t ) { +tape('the function performs the symmetric rank 2 operation `A = α*x*y^T + α*y*x^T + A` (column-major, zero-vector)', function test(t) { var expected; var data; var out; @@ -335,20 +334,20 @@ tape( 'the function performs the symmetric rank 2 operation `A = α*x*y^T + α*y data = cx0; - a = new Float64Array( data.A ); - x = new Float64Array( data.x ); - y = new Float64Array( data.y ); + a = new Float64Array(data.A); + x = new Float64Array(data.x); + y = new Float64Array(data.y); - expected = new Float64Array( data.A_out ); + expected = new Float64Array(data.A_out); - out = dsyr2( data.order, data.uplo, data.N, data.alpha, x, data.strideX, y, data.strideY, a, data.lda ); - t.strictEqual( out, a, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); + out = dsyr2(data.order, data.uplo, data.N, data.alpha, x, data.strideX, y, data.strideY, a, data.lda); + t.strictEqual(out, a, 'returns expected value'); + t.deepEqual(out, expected, 'returns expected value'); t.end(); }); -tape( 'the function returns a reference to the input matrix `A`', function test( t ) { +tape('the function returns a reference to the input matrix `A`', function test(t) { var data; var out; var a; @@ -357,17 +356,17 @@ tape( 'the function returns a reference to the input matrix `A`', function test( data = ru; - a = new Float64Array( data.A ); - x = new Float64Array( data.x ); - y = new Float64Array( data.y ); + a = new Float64Array(data.A); + x = new Float64Array(data.x); + y = new Float64Array(data.y); - out = dsyr2( data.order, data.uplo, data.N, data.alpha, x, data.strideX, y, data.strideY, a, data.lda ); - t.strictEqual( out, a, 'returns expected value' ); + out = dsyr2(data.order, data.uplo, data.N, data.alpha, x, data.strideX, y, data.strideY, a, data.lda); + t.strictEqual(out, a, 'returns expected value'); t.end(); }); -tape( 'if `N` is zero or the scalar constant is zero, the function returns the input matrix `A` unchanged (row-major)', function test( t ) { +tape('if `N` is zero or the scalar constant is zero, the function returns the input matrix `A` unchanged (row-major)', function test(t) { var expected; var data; var out; @@ -377,24 +376,24 @@ tape( 'if `N` is zero or the scalar constant is zero, the function returns the i data = rl; - a = new Float64Array( data.A ); - x = new Float64Array( data.x ); - y = new Float64Array( data.y ); + a = new Float64Array(data.A); + x = new Float64Array(data.x); + y = new Float64Array(data.y); - expected = new Float64Array( data.A ); + expected = new Float64Array(data.A); - out = dsyr2( data.order, data.uplo, 0, data.alpha, x, data.strideX, y, data.strideY, a, data.lda ); - t.strictEqual( out, a, 'returns expected value' ); - t.deepEqual( a, expected, 'returns expected value' ); + out = dsyr2(data.order, data.uplo, 0, data.alpha, x, data.strideX, y, data.strideY, a, data.lda); + t.strictEqual(out, a, 'returns expected value'); + t.deepEqual(a, expected, 'returns expected value'); - out = dsyr2( data.order, data.uplo, data.N, 0.0, x, data.strideX, y, data.strideY, a, data.lda ); - t.strictEqual( out, a, 'returns expected value' ); - t.deepEqual( a, expected, 'returns expected value' ); + out = dsyr2(data.order, data.uplo, data.N, 0.0, x, data.strideX, y, data.strideY, a, data.lda); + t.strictEqual(out, a, 'returns expected value'); + t.deepEqual(a, expected, 'returns expected value'); t.end(); }); -tape( 'if `N` is zero or the scalar constant is zero, the function returns the input matrix `A` unchanged (column-major)', function test( t ) { +tape('if `N` is zero or the scalar constant is zero, the function returns the input matrix `A` unchanged (column-major)', function test(t) { var expected; var data; var out; @@ -404,24 +403,24 @@ tape( 'if `N` is zero or the scalar constant is zero, the function returns the i data = cl; - a = new Float64Array( data.A ); - x = new Float64Array( data.x ); - y = new Float64Array( data.y ); + a = new Float64Array(data.A); + x = new Float64Array(data.x); + y = new Float64Array(data.y); - expected = new Float64Array( data.A ); + expected = new Float64Array(data.A); - out = dsyr2( data.order, data.uplo, 0, data.alpha, x, data.strideX, y, data.strideY, a, data.lda ); - t.strictEqual( out, a, 'returns expected value' ); - t.deepEqual( a, expected, 'returns expected value' ); + out = dsyr2(data.order, data.uplo, 0, data.alpha, x, data.strideX, y, data.strideY, a, data.lda); + t.strictEqual(out, a, 'returns expected value'); + t.deepEqual(a, expected, 'returns expected value'); - out = dsyr2( data.order, data.uplo, data.N, 0.0, x, data.strideX, y, data.strideY, a, data.lda ); - t.strictEqual( out, a, 'returns expected value' ); - t.deepEqual( a, expected, 'returns expected value' ); + out = dsyr2(data.order, data.uplo, data.N, 0.0, x, data.strideX, y, data.strideY, a, data.lda); + t.strictEqual(out, a, 'returns expected value'); + t.deepEqual(a, expected, 'returns expected value'); t.end(); }); -tape( 'the function supports specifying strides (row-major)', function test( t ) { +tape('the function supports specifying strides (row-major)', function test(t) { var expected; var data; var out; @@ -431,20 +430,20 @@ tape( 'the function supports specifying strides (row-major)', function test( t ) data = rxpyp; - a = new Float64Array( data.A ); - x = new Float64Array( data.x ); - y = new Float64Array( data.y ); + a = new Float64Array(data.A); + x = new Float64Array(data.x); + y = new Float64Array(data.y); - expected = new Float64Array( data.A_out ); + expected = new Float64Array(data.A_out); - out = dsyr2( data.order, data.uplo, data.N, data.alpha, x, data.strideX, y, data.strideY, a, data.lda ); - t.strictEqual( out, a, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); + out = dsyr2(data.order, data.uplo, data.N, data.alpha, x, data.strideX, y, data.strideY, a, data.lda); + t.strictEqual(out, a, 'returns expected value'); + t.deepEqual(out, expected, 'returns expected value'); t.end(); }); -tape( 'the function supports specifying strides (column-major)', function test( t ) { +tape('the function supports specifying strides (column-major)', function test(t) { var expected; var data; var out; @@ -454,20 +453,20 @@ tape( 'the function supports specifying strides (column-major)', function test( data = cxpyp; - a = new Float64Array( data.A ); - x = new Float64Array( data.x ); - y = new Float64Array( data.y ); + a = new Float64Array(data.A); + x = new Float64Array(data.x); + y = new Float64Array(data.y); - expected = new Float64Array( data.A_out ); + expected = new Float64Array(data.A_out); - out = dsyr2( data.order, data.uplo, data.N, data.alpha, x, data.strideX, y, data.strideY, a, data.lda ); - t.strictEqual( out, a, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); + out = dsyr2(data.order, data.uplo, data.N, data.alpha, x, data.strideX, y, data.strideY, a, data.lda); + t.strictEqual(out, a, 'returns expected value'); + t.deepEqual(out, expected, 'returns expected value'); t.end(); }); -tape( 'the function supports specifying a negative `x` stride (row-major)', function test( t ) { +tape('the function supports specifying a negative `x` stride (row-major)', function test(t) { var expected; var data; var out; @@ -477,20 +476,20 @@ tape( 'the function supports specifying a negative `x` stride (row-major)', func data = rxnyp; - a = new Float64Array( data.A ); - x = new Float64Array( data.x ); - y = new Float64Array( data.y ); + a = new Float64Array(data.A); + x = new Float64Array(data.x); + y = new Float64Array(data.y); - expected = new Float64Array( data.A_out ); + expected = new Float64Array(data.A_out); - out = dsyr2( data.order, data.uplo, data.N, data.alpha, x, data.strideX, y, data.strideY, a, data.lda ); - t.strictEqual( out, a, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); + out = dsyr2(data.order, data.uplo, data.N, data.alpha, x, data.strideX, y, data.strideY, a, data.lda); + t.strictEqual(out, a, 'returns expected value'); + t.deepEqual(out, expected, 'returns expected value'); t.end(); }); -tape( 'the function supports specifying a negative `x` stride (column-major)', function test( t ) { +tape('the function supports specifying a negative `x` stride (column-major)', function test(t) { var expected; var data; var out; @@ -500,20 +499,20 @@ tape( 'the function supports specifying a negative `x` stride (column-major)', f data = cxnyp; - a = new Float64Array( data.A ); - x = new Float64Array( data.x ); - y = new Float64Array( data.y ); + a = new Float64Array(data.A); + x = new Float64Array(data.x); + y = new Float64Array(data.y); - expected = new Float64Array( data.A_out ); + expected = new Float64Array(data.A_out); - out = dsyr2( data.order, data.uplo, data.N, data.alpha, x, data.strideX, y, data.strideY, a, data.lda ); - t.strictEqual( out, a, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); + out = dsyr2(data.order, data.uplo, data.N, data.alpha, x, data.strideX, y, data.strideY, a, data.lda); + t.strictEqual(out, a, 'returns expected value'); + t.deepEqual(out, expected, 'returns expected value'); t.end(); }); -tape( 'the function supports specifying a negative `y` stride (row-major)', function test( t ) { +tape('the function supports specifying a negative `y` stride (row-major)', function test(t) { var expected; var data; var out; @@ -523,20 +522,20 @@ tape( 'the function supports specifying a negative `y` stride (row-major)', func data = rxpyn; - a = new Float64Array( data.A ); - x = new Float64Array( data.x ); - y = new Float64Array( data.y ); + a = new Float64Array(data.A); + x = new Float64Array(data.x); + y = new Float64Array(data.y); - expected = new Float64Array( data.A_out ); + expected = new Float64Array(data.A_out); - out = dsyr2( data.order, data.uplo, data.N, data.alpha, x, data.strideX, y, data.strideY, a, data.lda ); - t.strictEqual( out, a, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); + out = dsyr2(data.order, data.uplo, data.N, data.alpha, x, data.strideX, y, data.strideY, a, data.lda); + t.strictEqual(out, a, 'returns expected value'); + t.deepEqual(out, expected, 'returns expected value'); t.end(); }); -tape( 'the function supports specifying a negative `y` stride (column-major)', function test( t ) { +tape('the function supports specifying a negative `y` stride (column-major)', function test(t) { var expected; var data; var out; @@ -546,20 +545,20 @@ tape( 'the function supports specifying a negative `y` stride (column-major)', f data = cxpyn; - a = new Float64Array( data.A ); - x = new Float64Array( data.x ); - y = new Float64Array( data.y ); + a = new Float64Array(data.A); + x = new Float64Array(data.x); + y = new Float64Array(data.y); - expected = new Float64Array( data.A_out ); + expected = new Float64Array(data.A_out); - out = dsyr2( data.order, data.uplo, data.N, data.alpha, x, data.strideX, y, data.strideY, a, data.lda ); - t.strictEqual( out, a, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); + out = dsyr2(data.order, data.uplo, data.N, data.alpha, x, data.strideX, y, data.strideY, a, data.lda); + t.strictEqual(out, a, 'returns expected value'); + t.deepEqual(out, expected, 'returns expected value'); t.end(); }); -tape( 'the function supports complex access patterns (row-major)', function test( t ) { +tape('the function supports complex access patterns (row-major)', function test(t) { var expected; var data; var out; @@ -569,20 +568,20 @@ tape( 'the function supports complex access patterns (row-major)', function test data = rxnyn; - a = new Float64Array( data.A ); - x = new Float64Array( data.x ); - y = new Float64Array( data.y ); + a = new Float64Array(data.A); + x = new Float64Array(data.x); + y = new Float64Array(data.y); - expected = new Float64Array( data.A_out ); + expected = new Float64Array(data.A_out); - out = dsyr2( data.order, data.uplo, data.N, data.alpha, x, data.strideX, y, data.strideY, a, data.lda ); - t.strictEqual( out, a, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); + out = dsyr2(data.order, data.uplo, data.N, data.alpha, x, data.strideX, y, data.strideY, a, data.lda); + t.strictEqual(out, a, 'returns expected value'); + t.deepEqual(out, expected, 'returns expected value'); t.end(); }); -tape( 'the function supports complex access patterns (column-major)', function test( t ) { +tape('the function supports complex access patterns (column-major)', function test(t) { var expected; var data; var out; @@ -592,15 +591,15 @@ tape( 'the function supports complex access patterns (column-major)', function t data = cxnyn; - a = new Float64Array( data.A ); - x = new Float64Array( data.x ); - y = new Float64Array( data.y ); + a = new Float64Array(data.A); + x = new Float64Array(data.x); + y = new Float64Array(data.y); - expected = new Float64Array( data.A_out ); + expected = new Float64Array(data.A_out); - out = dsyr2( data.order, data.uplo, data.N, data.alpha, x, data.strideX, y, data.strideY, a, data.lda ); - t.strictEqual( out, a, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); + out = dsyr2(data.order, data.uplo, data.N, data.alpha, x, data.strideX, y, data.strideY, a, data.lda); + t.strictEqual(out, a, 'returns expected value'); + t.deepEqual(out, expected, 'returns expected value'); t.end(); });