diff --git a/lib/node_modules/@stdlib/blas/base/zdrot/README.md b/lib/node_modules/@stdlib/blas/base/zdrot/README.md
index e599f7818e0e..65982c50c201 100644
--- a/lib/node_modules/@stdlib/blas/base/zdrot/README.md
+++ b/lib/node_modules/@stdlib/blas/base/zdrot/README.md
@@ -20,7 +20,7 @@ limitations under the License.
# zdrot
-> Applies a plane rotation.
+> Apply a plane rotation.
@@ -30,40 +30,40 @@ limitations under the License.
var zdrot = require( '@stdlib/blas/base/zdrot' );
```
-#### zdrot( N, zx, strideX, zy, strideY, c, s )
+#### zdrot( N, x, strideX, y, strideY, c, s )
Applies a plane rotation.
```javascript
var Complex128Array = require( '@stdlib/array/complex128' );
-var zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
-var zy = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
+var x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+var y = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
-zdrot( zx.length, zx, 1, zy, 1, 0.8, 0.6 );
-// zx => [ ~0.8, ~1.6, ~2.4, ~3.2, 4.0, ~4.8, ~5.6, ~6.4 ]
-// zy => [ ~-0.6, ~-1.2, ~-1.8, ~-2.4, -3.0, ~-3.6, ~-4.2, ~-4.8 ]
+zdrot( x.length, x, 1, y, 1, 0.8, 0.6 );
+// x => [ ~0.8, ~1.6, ~2.4, ~3.2, 4.0, ~4.8, ~5.6, ~6.4 ]
+// y => [ ~-0.6, ~-1.2, ~-1.8, ~-2.4, -3.0, ~-3.6, ~-4.2, ~-4.8 ]
```
The function has the following parameters:
- **N**: number of indexed elements.
-- **zx**: first input [`Complex128Array`][@stdlib/array/complex128].
-- **strideX**: index increment for `zx`.
-- **zy**: second input [`Complex128Array`][@stdlib/array/complex128].
-- **strideY**: index increment for `zy`.
+- **x**: first input [`Complex128Array`][@stdlib/array/complex128].
+- **strideX**: index increment for `x`.
+- **y**: second input [`Complex128Array`][@stdlib/array/complex128].
+- **strideY**: index increment for `y`.
-The `N` and stride parameters determine how values from `zx` and `zy` are accessed at runtime. For example, to apply a plane rotation to every other element,
+The `N` and stride parameters determine how values from `x` and `y` are accessed at runtime. For example, to apply a plane rotation to every other element,
```javascript
var Complex128Array = require( '@stdlib/array/complex128' );
-var zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
-var zy = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
+var x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+var y = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
-zdrot( 2, zx, 2, zy, 2, 0.8, 0.6 );
-// zx => [ ~0.8, ~1.6, 3.0, 4.0, 4.0, ~4.8, 7.0, 8.0 ]
-// zy => [ ~-0.6, ~-1.2, 0.0, 0.0, -3.0, ~-3.6, 0.0, 0.0 ]
+zdrot( 2, x, 2, y, 2, 0.8, 0.6 );
+// x => [ ~0.8, ~1.6, 3.0, 4.0, 4.0, ~4.8, 7.0, 8.0 ]
+// y => [ ~-0.6, ~-1.2, 0.0, 0.0, -3.0, ~-3.6, 0.0, 0.0 ]
```
Note that indexing is relative to the first index. To introduce an offset, use [`typed array`][mdn-typed-array] views.
@@ -74,49 +74,49 @@ Note that indexing is relative to the first index. To introduce an offset, use [
var Complex128Array = require( '@stdlib/array/complex128' );
// Initial arrays...
-var zx0 = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
-var zy0 = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
+var x0 = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+var y0 = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
// Create offset views...
-var zx1 = new Complex128Array( zx0.buffer, zx0.BYTES_PER_ELEMENT*1 ); // start at 2nd element
-var zy1 = new Complex128Array( zy0.buffer, zy0.BYTES_PER_ELEMENT*2 ); // start at 3rd element
+var x1 = new Complex128Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // start at 2nd element
+var y1 = new Complex128Array( y0.buffer, y0.BYTES_PER_ELEMENT*2 ); // start at 3rd element
-zdrot( 2, zx1, -2, zy1, 1, 0.8, 0.6 );
-// zx0 => [ 1.0, 2.0, ~2.4, ~3.2, 5.0, 6.0, ~5.6, ~6.4 ]
-// zy0 => [ 0.0, 0.0, 0.0, 0.0, ~-4.2, ~-4.8, ~-1.8, ~-2.4 ]
+zdrot( 2, x1, -2, y1, 1, 0.8, 0.6 );
+// x0 => [ 1.0, 2.0, ~2.4, ~3.2, 5.0, 6.0, ~5.6, ~6.4 ]
+// y0 => [ 0.0, 0.0, 0.0, 0.0, ~-4.2, ~-4.8, ~-1.8, ~-2.4 ]
```
-#### zdrot.ndarray( N, zx, strideX, offsetX, zy, strideY, offsetY, c, s )
+#### zdrot.ndarray( N, x, strideX, offsetX, y, strideY, offsetY, c, s )
Applies a plane rotation using alternative indexing semantics.
```javascript
var Complex128Array = require( '@stdlib/array/complex128' );
-var zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
-var zy = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
+var x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+var y = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
-zdrot.ndarray( zx.length, zx, 1, 0, zy, 1, 0, 0.8, 0.6 );
-// zx => [ ~0.8, ~1.6, ~2.4, ~3.2, 4.0, ~4.8 ]
-// zy => [ ~-0.6, ~-1.2, ~-1.8, ~-2.4, -3.0, ~-3.6 ]
+zdrot.ndarray( x.length, x, 1, 0, y, 1, 0, 0.8, 0.6 );
+// x => [ ~0.8, ~1.6, ~2.4, ~3.2, 4.0, ~4.8 ]
+// y => [ ~-0.6, ~-1.2, ~-1.8, ~-2.4, -3.0, ~-3.6 ]
```
The function has the following additional parameters:
-- **offsetX**: starting index for `zx`.
-- **offsetY**: starting index for `zy`.
+- **offsetX**: starting index for `x`.
+- **offsetY**: starting index for `y`.
While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying buffer, the offset parameters support indexing semantics based on starting indices. For example, to apply a plane rotation to every other element starting from the second element,
```javascript
var Complex128Array = require( '@stdlib/array/complex128' );
-var zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
-var zy = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
+var x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+var y = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
-zdrot.ndarray( 2, zx, 2, 1, zy, 2, 1, 0.8, 0.6 );
-// zx => [ 1.0, 2.0, ~2.4, ~3.2, 5.0, 6.0, ~5.6, ~6.4 ]
-// zy => [ 0.0, 0.0, ~-1.8, ~-2.4, 0.0, 0.0, ~-4.2, ~-4.8 ]
+zdrot.ndarray( 2, x, 2, 1, y, 2, 1, 0.8, 0.6 );
+// x => [ 1.0, 2.0, ~2.4, ~3.2, 5.0, 6.0, ~5.6, ~6.4 ]
+// y => [ 0.0, 0.0, ~-1.8, ~-2.4, 0.0, 0.0, ~-4.2, ~-4.8 ]
```
@@ -127,7 +127,7 @@ zdrot.ndarray( 2, zx, 2, 1, zy, 2, 1, 0.8, 0.6 );
## Notes
-- If `N <= 0`, both functions leave `zx` and `zy` unchanged.
+- If `N <= 0`, both functions leave `x` and `y` unchanged.
- `zdrot()` corresponds to the [BLAS][blas] level 1 function [`zdrot`][zdrot].
@@ -154,17 +154,17 @@ function rand() {
}
// Generate random input arrays:
-var zx = filledarrayBy( 10, 'complex128', rand );
-var zxc = zcopy( zx.length, zx, 1, zeros( zx.length, 'complex128' ), 1 );
+var x = filledarrayBy( 10, 'complex128', rand );
+var xc = zcopy( x.length, x, 1, zeros( x.length, 'complex128' ), 1 );
-var zy = filledarrayBy( 10, 'complex128', rand );
-var zyc = zcopy( zy.length, zy, 1, zeros( zy.length, 'complex128' ), 1 );
+var y = filledarrayBy( 10, 'complex128', rand );
+var yc = zcopy( y.length, y, 1, zeros( y.length, 'complex128' ), 1 );
// Apply a plane rotation:
-zdrot( zx.length, zx, 1, zy, 1, 0.8, 0.6 );
+zdrot( x.length, x, 1, y, 1, 0.8, 0.6 );
// Print the results:
-logEach( '(%s,%s) => (%s,%s)', zxc, zyc, zx, zy );
+logEach( '(%s,%s) => (%s,%s)', xc, yc, x, y );
```
@@ -211,10 +211,10 @@ c_zdrot( 2, (void *)x, 1, (void *)y, 1, 0.8, 0.6 );
The function accepts the following arguments:
- **N**: `[in] CBLAS_INT` number of indexed elements.
-- **zx**: `[inout] void*` first input array.
-- **strideX**: `[in] CBLAS_INT` index increment for `zx`.
-- **zy**: `[inout] void*` second input array.
-- **strideY**: `[in] CBLAS_INT` index increment for `zy`.
+- **X**: `[inout] void*` first input array.
+- **strideX**: `[in] CBLAS_INT` index increment for `X`.
+- **Y**: `[inout] void*` second input array.
+- **strideY**: `[in] CBLAS_INT` index increment for `Y`.
- **c**: `[in] double` cosine of the angle of rotation.
- **s**: `[in] double` sine of the angle of rotation.
@@ -236,12 +236,12 @@ c_zdrot_ndarray( 2, (void *)x, 1, 0, (void *)y, 1, 0, 0.8, 0.6 );
The function accepts the following arguments:
- **N**: `[in] CBLAS_INT` number of indexed elements.
-- **zx**: `[inout] void*` first input array.
-- **strideX**: `[in] CBLAS_INT` index increment for `zx`.
-- **offsetX**: `[in] CBLAS_INT` starting index for `zx`.
-- **zy**: `[inout] void*` second input array.
-- **strideY**: `[in] CBLAS_INT` index increment for `zy`.
-- **offsetY**: `[in] CBLAS_INT` starting index for `zy`.
+- **X**: `[inout] void*` first input array.
+- **strideX**: `[in] CBLAS_INT` index increment for `X`.
+- **offsetX**: `[in] CBLAS_INT` starting index for `X`.
+- **Y**: `[inout] void*` second input array.
+- **strideY**: `[in] CBLAS_INT` index increment for `Y`.
+- **offsetY**: `[in] CBLAS_INT` starting index for `Y`.
- **c**: `[in] double` cosine of the angle of rotation.
- **s**: `[in] double` sine of the angle of rotation.
@@ -273,8 +273,8 @@ void c_zdrot_ndarray( const CBLAS_INT N, void *X, const CBLAS_INT strideX, const
int main( void ) {
// Create strided arrays:
- double zx[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
- double zy[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
+ double x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
+ double y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
// Specify the number of elements:
const int N = 4;
@@ -284,12 +284,12 @@ int main( void ) {
const int strideY = -1;
// Copy elements:
- c_zdrot( N, (void *)zx, strideX, (void *)zy, strideY, 0.8, 0.6 );
+ c_zdrot( N, (void *)x, strideX, (void *)y, strideY, 0.8, 0.6 );
// Print the result:
for ( int i = 0; i < N; i++ ) {
- printf( "zx[ %i ] = %lf + %lfj\n", i, zx[ i*2 ], zx[ (i*2)+1 ] );
- printf( "zy[ %i ] = %lf + %lfj\n", i, zy[ i*2 ], zy[ (i*2)+1 ] );
+ printf( "x[ %i ] = %lf + %lfj\n", i, x[ i*2 ], x[ (i*2)+1 ] );
+ printf( "y[ %i ] = %lf + %lfj\n", i, y[ i*2 ], y[ (i*2)+1 ] );
}
}
```
diff --git a/lib/node_modules/@stdlib/blas/base/zdrot/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/zdrot/benchmark/benchmark.js
index 3d20c9556129..b3ec57808f0a 100644
--- a/lib/node_modules/@stdlib/blas/base/zdrot/benchmark/benchmark.js
+++ b/lib/node_modules/@stdlib/blas/base/zdrot/benchmark/benchmark.js
@@ -47,11 +47,11 @@ var options = {
* @returns {Function} benchmark function
*/
function createBenchmark( len ) {
- var zx;
- var zy;
+ var x;
+ var y;
- zx = new Complex128Array( uniform( len*2, -100.0, 100.0, options ) );
- zy = new Complex128Array( uniform( len*2, -100.0, 100.0, options ) );
+ x = new Complex128Array( uniform( len*2, -100.0, 100.0, options ) );
+ y = new Complex128Array( uniform( len*2, -100.0, 100.0, options ) );
return benchmark;
@@ -65,10 +65,10 @@ function createBenchmark( len ) {
var viewX;
var i;
- viewX = reinterpret( zx, 0 );
+ viewX = reinterpret( x, 0 );
b.tic();
for ( i = 0; i < b.iterations; i++ ) {
- zdrot( zx.length, zx, 1, zy, 1, 0.8, 0.6 );
+ zdrot( x.length, x, 1, y, 1, 0.8, 0.6 );
if ( isnan( viewX[ i%(len*2) ] ) ) {
b.fail( 'should not return NaN' );
}
diff --git a/lib/node_modules/@stdlib/blas/base/zdrot/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/base/zdrot/benchmark/benchmark.native.js
index d4c176b5e559..1947822864d5 100644
--- a/lib/node_modules/@stdlib/blas/base/zdrot/benchmark/benchmark.native.js
+++ b/lib/node_modules/@stdlib/blas/base/zdrot/benchmark/benchmark.native.js
@@ -52,11 +52,11 @@ var options = {
* @returns {Function} benchmark function
*/
function createBenchmark( len ) {
- var zx;
- var zy;
+ var x;
+ var y;
- zx = new Complex128Array( uniform( len*2, -100.0, 100.0, options ) );
- zy = new Complex128Array( uniform( len*2, -100.0, 100.0, options ) );
+ x = new Complex128Array( uniform( len*2, -100.0, 100.0, options ) );
+ y = new Complex128Array( uniform( len*2, -100.0, 100.0, options ) );
return benchmark;
@@ -70,10 +70,10 @@ function createBenchmark( len ) {
var viewX;
var i;
- viewX = reinterpret( zx, 0 );
+ viewX = reinterpret( x, 0 );
b.tic();
for ( i = 0; i < b.iterations; i++ ) {
- zdrot( zx.length, zx, 1, zy, 1, 0.8, 0.6 );
+ zdrot( x.length, x, 1, y, 1, 0.8, 0.6 );
if ( isnan( viewX[ i%(len*2) ] ) ) {
b.fail( 'should not return NaN' );
}
diff --git a/lib/node_modules/@stdlib/blas/base/zdrot/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/zdrot/benchmark/benchmark.ndarray.js
index 696a2d8c0ff2..0d3d0a43ae28 100644
--- a/lib/node_modules/@stdlib/blas/base/zdrot/benchmark/benchmark.ndarray.js
+++ b/lib/node_modules/@stdlib/blas/base/zdrot/benchmark/benchmark.ndarray.js
@@ -47,11 +47,11 @@ var options = {
* @returns {Function} benchmark function
*/
function createBenchmark( len ) {
- var zx;
- var zy;
+ var x;
+ var y;
- zx = new Complex128Array( uniform( len*2, -100.0, 100.0, options ) );
- zy = new Complex128Array( uniform( len*2, -100.0, 100.0, options ) );
+ x = new Complex128Array( uniform( len*2, -100.0, 100.0, options ) );
+ y = new Complex128Array( uniform( len*2, -100.0, 100.0, options ) );
return benchmark;
@@ -65,10 +65,10 @@ function createBenchmark( len ) {
var viewX;
var i;
- viewX = reinterpret( zx, 0 );
+ viewX = reinterpret( x, 0 );
b.tic();
for ( i = 0; i < b.iterations; i++ ) {
- zdrot( zx.length, zx, 1, 0, zy, 1, 0, 0.8, 0.6 );
+ zdrot( x.length, x, 1, 0, y, 1, 0, 0.8, 0.6 );
if ( isnan( viewX[ i%(len*2) ] ) ) {
b.fail( 'should not return NaN' );
}
diff --git a/lib/node_modules/@stdlib/blas/base/zdrot/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/base/zdrot/benchmark/benchmark.ndarray.native.js
index eeb70f5b52a5..ee32dd108250 100644
--- a/lib/node_modules/@stdlib/blas/base/zdrot/benchmark/benchmark.ndarray.native.js
+++ b/lib/node_modules/@stdlib/blas/base/zdrot/benchmark/benchmark.ndarray.native.js
@@ -52,11 +52,11 @@ var options = {
* @returns {Function} benchmark function
*/
function createBenchmark( len ) {
- var zx;
- var zy;
+ var x;
+ var y;
- zx = new Complex128Array( uniform( len*2, -100.0, 100.0, options ) );
- zy = new Complex128Array( uniform( len*2, -100.0, 100.0, options ) );
+ x = new Complex128Array( uniform( len*2, -100.0, 100.0, options ) );
+ y = new Complex128Array( uniform( len*2, -100.0, 100.0, options ) );
return benchmark;
@@ -70,10 +70,10 @@ function createBenchmark( len ) {
var viewX;
var i;
- viewX = reinterpret( zx, 0 );
+ viewX = reinterpret( x, 0 );
b.tic();
for ( i = 0; i < b.iterations; i++ ) {
- zdrot( zx.length, zx, 1, 0, zy, 1, 0, 0.8, 0.6 );
+ zdrot( x.length, x, 1, 0, y, 1, 0, 0.8, 0.6 );
if ( isnan( viewX[ i%(len*2) ] ) ) {
b.fail( 'should not return NaN' );
}
diff --git a/lib/node_modules/@stdlib/blas/base/zdrot/benchmark/fortran/benchmark.length.f b/lib/node_modules/@stdlib/blas/base/zdrot/benchmark/fortran/benchmark.length.f
index 8a8104a9ccd6..fdb5e80217e8 100644
--- a/lib/node_modules/@stdlib/blas/base/zdrot/benchmark/fortran/benchmark.length.f
+++ b/lib/node_modules/@stdlib/blas/base/zdrot/benchmark/fortran/benchmark.length.f
@@ -117,8 +117,8 @@ double precision function benchmark( iterations, len )
! ..
! External functions:
interface
- subroutine zdrot( N, zx, strideX, zy, strideY, c, s )
- complex(kind=kind(0.0d0)) :: zx(*), zy(*)
+ subroutine zdrot( N, x, strideX, y, strideY, c, s )
+ complex(kind=kind(0.0d0)) :: x(*), y(*)
integer :: strideX, strideY, N
double precision :: c, s
end subroutine zdrot
@@ -208,4 +208,4 @@ subroutine main()
end do
call print_summary( count, count )
end subroutine main
-end program bench
\ No newline at end of file
+end program bench
diff --git a/lib/node_modules/@stdlib/blas/base/zdrot/docs/repl.txt b/lib/node_modules/@stdlib/blas/base/zdrot/docs/repl.txt
index 2fcd462261d5..9fb8856d21c6 100644
--- a/lib/node_modules/@stdlib/blas/base/zdrot/docs/repl.txt
+++ b/lib/node_modules/@stdlib/blas/base/zdrot/docs/repl.txt
@@ -1,5 +1,5 @@
-{{alias}}( N, zx, strideX, zy, strideY, c, s )
+{{alias}}( N, x, strideX, y, strideY, c, s )
Applies a plane rotation.
The `N` and stride parameters determine how values in the strided arrays are
@@ -15,17 +15,17 @@
N: integer
Number of indexed elements.
- zx: Complex128Array
+ x: Complex128Array
First input array.
strideX: integer
- Index increment for `zx`.
+ Index increment for `x`.
- zy: Complex128Array
+ y: Complex128Array
Second input array.
strideY: integer
- Index increment for `zy`.
+ Index increment for `y`.
c: number
Cosine of the angle of rotation.
@@ -35,42 +35,42 @@
Returns
-------
- zy: Complex128Array
- Input array `zy`.
+ y: Complex128Array
+ Input array `y`.
Examples
--------
// Standard usage:
- > var zx = new {{alias:@stdlib/array/complex128}}( [ 1.0, 2.0, 3.0, 4.0 ] );
- > var zy = new {{alias:@stdlib/array/complex128}}( [ 0.0, 0.0, 0.0, 0.0 ] );
- > {{alias}}( zx.length, zx, 1, zy, 1, 0.8, 0.6 );
- > zx
+ > var x = new {{alias:@stdlib/array/complex128}}( [ 1.0, 2.0, 3.0, 4.0 ] );
+ > var y = new {{alias:@stdlib/array/complex128}}( [ 0.0, 0.0, 0.0, 0.0 ] );
+ > {{alias}}( x.length, x, 1, y, 1, 0.8, 0.6 );
+ > x
[ ~0.8, ~1.6, ~2.4, ~3.2 ]
- > zy
+ > y
[ ~-0.6, ~-1.2, ~-1.8, ~-2.4 ]
// Advanced indexing:
- > zx = new {{alias:@stdlib/array/complex128}}( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
- > zy = new {{alias:@stdlib/array/complex128}}( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
- > {{alias}}( 2, zx, -2, zy, 1, 0.8, 0.6 );
- > zx
+ > x = new {{alias:@stdlib/array/complex128}}( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ > y = new {{alias:@stdlib/array/complex128}}( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
+ > {{alias}}( 2, x, -2, y, 1, 0.8, 0.6 );
+ > x
[ ~0.8, ~1.6, 3.0, 4.0, 4.0, ~4.8, 7.0, 8.0 ]
- > zy
+ > y
[ -3.0, ~-3.6, ~-0.6, ~-1.2, 0.0, 0.0, 0.0, 0.0 ]
// Using typed array views:
- > var zx0 = new {{alias:@stdlib/array/complex128}}( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
- > var zy0 = new {{alias:@stdlib/array/complex128}}( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
- > var zx1 = new {{alias:@stdlib/array/complex128}}( zx0.buffer, zx0.BYTES_PER_ELEMENT*1 );
- > var zy1 = new {{alias:@stdlib/array/complex128}}( zy0.buffer, zy0.BYTES_PER_ELEMENT*2 );
- > {{alias}}( 1, zx1, 1, zy1, 1, 0.8, 0.6 );
- > zx0
+ > var x0 = new {{alias:@stdlib/array/complex128}}( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+ > var y0 = new {{alias:@stdlib/array/complex128}}( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
+ > var x1 = new {{alias:@stdlib/array/complex128}}( x0.buffer, x0.BYTES_PER_ELEMENT*1 );
+ > var y1 = new {{alias:@stdlib/array/complex128}}( y0.buffer, y0.BYTES_PER_ELEMENT*2 );
+ > {{alias}}( 1, x1, 1, y1, 1, 0.8, 0.6 );
+ > x0
[ 1.0, 2.0, ~2.4, ~3.2, 5.0, 6.0 ]
- > zy0
+ > y0
[ 0.0, 0.0, 0.0, 0.0, ~-1.8, ~-2.4 ]
-{{alias}}.ndarray( N, zx, strideX, offsetX, zy, strideY, offsetY, c, s )
+{{alias}}.ndarray( N, x, strideX, offsetX, y, strideY, offsetY, c, s )
Applies a plane rotation using alternative indexing semantics.
While typed array views mandate a view offset based on the underlying
@@ -82,23 +82,23 @@
N: integer
Number of indexed elements.
- zx: Complex128Array
+ x: Complex128Array
First input array.
strideX: integer
- Index increment for `zx`.
+ Index increment for `x`.
offsetX: integer
- Starting index for `zx`.
+ Starting index for `x`.
- zy: Complex128Array
+ y: Complex128Array
Second input array.
strideY: integer
- Index increment for `zy`.
+ Index increment for `y`.
offsetY: integer
- Starting index for `zy`.
+ Starting index for `y`.
c: number
Cosine of the angle of rotation.
@@ -108,27 +108,27 @@
Returns
-------
- zy: Complex128Array
- Input array `zy`.
+ y: Complex128Array
+ Input array `y`.
Examples
--------
// Standard usage:
- > var zx = new {{alias:@stdlib/array/complex128}}( [ 1.0, 2.0, 3.0, 4.0 ] );
- > var zy = new {{alias:@stdlib/array/complex128}}( [ 0.0, 0.0, 0.0, 0.0 ] );
- > {{alias}}.ndarray( zx.length, zx, 1, 0, zy, 1, 0, 0.8, 0.6 );
- > zx
+ > var x = new {{alias:@stdlib/array/complex128}}( [ 1.0, 2.0, 3.0, 4.0 ] );
+ > var y = new {{alias:@stdlib/array/complex128}}( [ 0.0, 0.0, 0.0, 0.0 ] );
+ > {{alias}}.ndarray( x.length, x, 1, 0, y, 1, 0, 0.8, 0.6 );
+ > x
[ ~0.8, ~1.6, ~2.4, ~3.2 ]
- > zy
+ > y
[ ~-0.6, ~-1.2, ~-1.8, ~-2.4 ]
// Advanced indexing:
- > zx = new {{alias:@stdlib/array/complex128}}( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
- > zy = new {{alias:@stdlib/array/complex128}}( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
- > {{alias}}.ndarray( 1, zx, 2, 1, zy, 2, 1, 0.8, 0.6 );
- > zx
+ > x = new {{alias:@stdlib/array/complex128}}( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+ > y = new {{alias:@stdlib/array/complex128}}( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
+ > {{alias}}.ndarray( 1, x, 2, 1, y, 2, 1, 0.8, 0.6 );
+ > x
[ 1.0, 2.0, ~2.4, ~3.2, 5.0, 6.0 ]
- > zy
+ > y
[ 0.0, 0.0, ~-1.8, ~-2.4, 0.0, 0.0 ]
See Also
diff --git a/lib/node_modules/@stdlib/blas/base/zdrot/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/base/zdrot/docs/types/index.d.ts
index 55ca4b6d8ea4..22392b030174 100644
--- a/lib/node_modules/@stdlib/blas/base/zdrot/docs/types/index.d.ts
+++ b/lib/node_modules/@stdlib/blas/base/zdrot/docs/types/index.d.ts
@@ -30,84 +30,84 @@ interface Routine {
* Applies a plane rotation.
*
* @param N - number of indexed elements
- * @param zx - first input array
- * @param strideX - `zx` stride length
- * @param zy - second input array
- * @param strideY - `zy` stride length
+ * @param x - first input array
+ * @param strideX - `x` stride length
+ * @param y - second input array
+ * @param strideY - `y` stride length
* @param c - cosine of the angle of rotation
* @param s - sine of the angle of rotation
- * @returns `zy`
+ * @returns `y`
*
* @example
* var Complex128Array = require( '@stdlib/array/complex128' );
*
- * var zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
- * var zy = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
+ * var x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ * var y = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
*
- * zdrot( zx.length, zx, 1, zy, 1, 0.8, 0.6 );
- * // zx => [ ~0.8, ~1.6, ~2.4, ~3.2, 4.0, ~4.8, ~5.6, ~6.4 ]
- * // zy => [ ~-0.6, ~-1.2, ~-1.8, ~-2.4, -3.0, ~-3.6, ~-4.2, ~-4.8 ]
+ * zdrot( x.length, x, 1, y, 1, 0.8, 0.6 );
+ * // x => [ ~0.8, ~1.6, ~2.4, ~3.2, 4.0, ~4.8, ~5.6, ~6.4 ]
+ * // y => [ ~-0.6, ~-1.2, ~-1.8, ~-2.4, -3.0, ~-3.6, ~-4.2, ~-4.8 ]
*/
- ( N: number, zx: Complex128Array, strideX: number, zy: Complex128Array, strideY: number, c: number, s: number ): Complex128Array;
+ ( N: number, x: Complex128Array, strideX: number, y: Complex128Array, strideY: number, c: number, s: number ): Complex128Array;
/**
* Applies a plane rotation using alternative indexing semantics.
*
* @param N - number of indexed elements
- * @param zx - first input array
- * @param strideX - `zx` stride length
- * @param offsetX - starting index for `zx`
- * @param zy - second input array
- * @param strideY - `zy` stride length
- * @param offsetY - starting index for `zy`
+ * @param x - first input array
+ * @param strideX - `x` stride length
+ * @param offsetX - starting index for `x`
+ * @param y - second input array
+ * @param strideY - `y` stride length
+ * @param offsetY - starting index for `y`
* @param c - cosine of the angle of rotation
* @param s - sine of the angle of rotation
- * @returns `zy`
+ * @returns `y`
*
* @example
* var Complex128Array = require( '@stdlib/array/complex128' );
*
- * var zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
- * var zy = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
+ * var x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ * var y = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
*
- * zdrot.ndarray( zx.length, zx, 1, 0, zy, 1, 0, 0.8, 0.6 );
- * // zx => [ ~0.8, ~1.6, ~2.4, ~3.2, 4.0, ~4.8, ~5.6, ~6.4 ]
- * // zy => [ ~-0.6, ~-1.2, ~-1.8, ~-2.4, -3.0, ~-3.6, ~-4.2, ~-4.8 ]
+ * zdrot.ndarray( x.length, x, 1, 0, y, 1, 0, 0.8, 0.6 );
+ * // x => [ ~0.8, ~1.6, ~2.4, ~3.2, 4.0, ~4.8, ~5.6, ~6.4 ]
+ * // y => [ ~-0.6, ~-1.2, ~-1.8, ~-2.4, -3.0, ~-3.6, ~-4.2, ~-4.8 ]
*/
- ndarray( N: number, zx: Complex128Array, strideX: number, offsetX: number, zy: Complex128Array, strideY: number, offsetY: number, c: number, s: number ): Complex128Array;
+ ndarray( N: number, x: Complex128Array, strideX: number, offsetX: number, y: Complex128Array, strideY: number, offsetY: number, c: number, s: number ): Complex128Array;
}
/**
* Applies a plane rotation.
*
* @param N - number of indexed elements
-* @param zx - first input array
-* @param strideX - `zx` stride length
-* @param zy - second input array
-* @param strideY - `zy` stride length
+* @param x - first input array
+* @param strideX - `x` stride length
+* @param y - second input array
+* @param strideY - `y` stride length
* @param c - cosine of the angle of rotation
* @param s - sine of the angle of rotation
-* @returns `zy`
+* @returns `y`
*
* @example
* var Complex128Array = require( '@stdlib/array/complex128' );
*
-* var zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
-* var zy = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
+* var x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+* var y = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
*
-* zdrot( 2, zx, 2, zy, 1, 0.8, 0.6 );
-* // zx => [ ~0.8, ~1.6, 3.0, 4.0, 4.0, ~4.8, 7.0, 8.0 ]
-* // zy => [ ~-0.6, ~-1.2, -3.0, ~-3.6, 0.0, 0.0, 0.0, 0.0 ]
+* zdrot( 2, x, 2, y, 1, 0.8, 0.6 );
+* // x => [ ~0.8, ~1.6, 3.0, 4.0, 4.0, ~4.8, 7.0, 8.0 ]
+* // y => [ ~-0.6, ~-1.2, -3.0, ~-3.6, 0.0, 0.0, 0.0, 0.0 ]
*
* @example
* var Complex128Array = require( '@stdlib/array/complex128' );
*
-* var zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
-* var zy = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
+* var x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+* var y = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
*
-* zdrot.ndarray( 2, zx, 2, 0, zy, 1, 0, 0.8, 0.6 );
-* // zx => [ ~0.8, ~1.6, 3.0, 4.0, 4.0, ~4.8, 7.0, 8.0 ]
-* // zy => [ ~-0.6, ~-1.2, -3.0, ~-3.6, 0.0, 0.0, 0.0, 0.0 ]
+* zdrot.ndarray( 2, x, 2, 0, y, 1, 0, 0.8, 0.6 );
+* // x => [ ~0.8, ~1.6, 3.0, 4.0, 4.0, ~4.8, 7.0, 8.0 ]
+* // y => [ ~-0.6, ~-1.2, -3.0, ~-3.6, 0.0, 0.0, 0.0, 0.0 ]
*/
declare var zdrot: Routine;
diff --git a/lib/node_modules/@stdlib/blas/base/zdrot/docs/types/test.ts b/lib/node_modules/@stdlib/blas/base/zdrot/docs/types/test.ts
index 73eb674da514..b0583d78366d 100644
--- a/lib/node_modules/@stdlib/blas/base/zdrot/docs/types/test.ts
+++ b/lib/node_modules/@stdlib/blas/base/zdrot/docs/types/test.ts
@@ -24,289 +24,289 @@ import zdrot = require( './index' );
// The function returns a Complex128Array...
{
- const zx = new Complex128Array( 10 );
- const zy = new Complex128Array( 10 );
+ const x = new Complex128Array( 10 );
+ const y = new Complex128Array( 10 );
- zdrot( zx.length, zx, 1, zy, 1, 0.8, 0.6 ); // $ExpectType Complex128Array
+ zdrot( x.length, x, 1, y, 1, 0.8, 0.6 ); // $ExpectType Complex128Array
}
// The compiler throws an error if the function is provided a first argument which is not a number...
{
- const zx = new Complex128Array( 10 );
- const zy = new Complex128Array( 10 );
-
- zdrot( '10', zx, 1, zy, 1, 0.8, 0.6 ); // $ExpectError
- zdrot( true, zx, 1, zy, 1, 0.8, 0.6 ); // $ExpectError
- zdrot( false, zx, 1, zy, 1, 0.8, 0.6 ); // $ExpectError
- zdrot( null, zx, 1, zy, 1, 0.8, 0.6 ); // $ExpectError
- zdrot( undefined, zx, 1, zy, 1, 0.8, 0.6 ); // $ExpectError
- zdrot( [], zx, 1, zy, 1, 0.8, 0.6 ); // $ExpectError
- zdrot( {}, zx, 1, zy, 1, 0.8, 0.6 ); // $ExpectError
- zdrot( ( zx: number ): number => zx, zx, 1, zy, 1, 0.8, 0.6 ); // $ExpectError
+ const x = new Complex128Array( 10 );
+ const y = new Complex128Array( 10 );
+
+ zdrot( '10', x, 1, y, 1, 0.8, 0.6 ); // $ExpectError
+ zdrot( true, x, 1, y, 1, 0.8, 0.6 ); // $ExpectError
+ zdrot( false, x, 1, y, 1, 0.8, 0.6 ); // $ExpectError
+ zdrot( null, x, 1, y, 1, 0.8, 0.6 ); // $ExpectError
+ zdrot( undefined, x, 1, y, 1, 0.8, 0.6 ); // $ExpectError
+ zdrot( [], x, 1, y, 1, 0.8, 0.6 ); // $ExpectError
+ zdrot( {}, x, 1, y, 1, 0.8, 0.6 ); // $ExpectError
+ zdrot( ( x: number ): number => x, x, 1, y, 1, 0.8, 0.6 ); // $ExpectError
}
// The compiler throws an error if the function is provided a second argument which is not a Complex128Array...
{
- const zx = new Complex128Array( 10 );
- const zy = new Complex128Array( 10 );
-
- zdrot( zx.length, 10, 1, zy, 1, 0.8, 0.6 ); // $ExpectError
- zdrot( zx.length, '10', 1, zy, 1, 0.8, 0.6 ); // $ExpectError
- zdrot( zx.length, true, 1, zy, 1, 0.8, 0.6 ); // $ExpectError
- zdrot( zx.length, false, 1, zy, 1, 0.8, 0.6 ); // $ExpectError
- zdrot( zx.length, null, 1, zy, 1, 0.8, 0.6 ); // $ExpectError
- zdrot( zx.length, undefined, 1, zy, 1, 0.8, 0.6 ); // $ExpectError
- zdrot( zx.length, [ '1' ], 1, zy, 1, 0.8, 0.6 ); // $ExpectError
- zdrot( zx.length, {}, 1, zy, 1, 0.8, 0.6 ); // $ExpectError
- zdrot( zx.length, ( zx: number ): number => zx, 1, zy, 1, 0.8, 0.6 ); // $ExpectError
+ const x = new Complex128Array( 10 );
+ const y = new Complex128Array( 10 );
+
+ zdrot( x.length, 10, 1, y, 1, 0.8, 0.6 ); // $ExpectError
+ zdrot( x.length, '10', 1, y, 1, 0.8, 0.6 ); // $ExpectError
+ zdrot( x.length, true, 1, y, 1, 0.8, 0.6 ); // $ExpectError
+ zdrot( x.length, false, 1, y, 1, 0.8, 0.6 ); // $ExpectError
+ zdrot( x.length, null, 1, y, 1, 0.8, 0.6 ); // $ExpectError
+ zdrot( x.length, undefined, 1, y, 1, 0.8, 0.6 ); // $ExpectError
+ zdrot( x.length, [ '1' ], 1, y, 1, 0.8, 0.6 ); // $ExpectError
+ zdrot( x.length, {}, 1, y, 1, 0.8, 0.6 ); // $ExpectError
+ zdrot( x.length, ( x: number ): number => x, 1, y, 1, 0.8, 0.6 ); // $ExpectError
}
// The compiler throws an error if the function is provided a third argument which is not a number...
{
- const zx = new Complex128Array( 10 );
- const zy = new Complex128Array( 10 );
-
- zdrot( zx.length, zx, '10', zy, 1, 0.8, 0.6 ); // $ExpectError
- zdrot( zx.length, zx, true, zy, 1, 0.8, 0.6 ); // $ExpectError
- zdrot( zx.length, zx, false, zy, 1, 0.8, 0.6 ); // $ExpectError
- zdrot( zx.length, zx, null, zy, 1, 0.8, 0.6 ); // $ExpectError
- zdrot( zx.length, zx, undefined, zy, 1, 0.8, 0.6 ); // $ExpectError
- zdrot( zx.length, zx, [], zy, 1, 0.8, 0.6 ); // $ExpectError
- zdrot( zx.length, zx, {}, zy, 1, 0.8, 0.6 ); // $ExpectError
- zdrot( zx.length, zx, ( zx: number ): number => zx, zy, 1, 0.8, 0.6 ); // $ExpectError
+ const x = new Complex128Array( 10 );
+ const y = new Complex128Array( 10 );
+
+ zdrot( x.length, x, '10', y, 1, 0.8, 0.6 ); // $ExpectError
+ zdrot( x.length, x, true, y, 1, 0.8, 0.6 ); // $ExpectError
+ zdrot( x.length, x, false, y, 1, 0.8, 0.6 ); // $ExpectError
+ zdrot( x.length, x, null, y, 1, 0.8, 0.6 ); // $ExpectError
+ zdrot( x.length, x, undefined, y, 1, 0.8, 0.6 ); // $ExpectError
+ zdrot( x.length, x, [], y, 1, 0.8, 0.6 ); // $ExpectError
+ zdrot( x.length, x, {}, y, 1, 0.8, 0.6 ); // $ExpectError
+ zdrot( x.length, x, ( x: number ): number => x, y, 1, 0.8, 0.6 ); // $ExpectError
}
// The compiler throws an error if the function is provided a fourth argument which is not a Complex128Array...
{
- const zx = new Complex128Array( 10 );
-
- zdrot( zx.length, zx, 1, 10, 1, 0.8, 0.6 ); // $ExpectError
- zdrot( zx.length, zx, 1, '10', 1, 0.8, 0.6 ); // $ExpectError
- zdrot( zx.length, zx, 1, true, 1, 0.8, 0.6 ); // $ExpectError
- zdrot( zx.length, zx, 1, false, 1, 0.8, 0.6 ); // $ExpectError
- zdrot( zx.length, zx, 1, null, 1, 0.8, 0.6 ); // $ExpectError
- zdrot( zx.length, zx, 1, undefined, 1, 0.8, 0.6 ); // $ExpectError
- zdrot( zx.length, zx, 1, [ '1' ], 1, 0.8, 0.6 ); // $ExpectError
- zdrot( zx.length, zx, 1, {}, 1, 0.8, 0.6 ); // $ExpectError
- zdrot( zx.length, zx, 1, ( zx: number ): number => zx, 1, 0.8, 0.6 ); // $ExpectError
+ const x = new Complex128Array( 10 );
+
+ zdrot( x.length, x, 1, 10, 1, 0.8, 0.6 ); // $ExpectError
+ zdrot( x.length, x, 1, '10', 1, 0.8, 0.6 ); // $ExpectError
+ zdrot( x.length, x, 1, true, 1, 0.8, 0.6 ); // $ExpectError
+ zdrot( x.length, x, 1, false, 1, 0.8, 0.6 ); // $ExpectError
+ zdrot( x.length, x, 1, null, 1, 0.8, 0.6 ); // $ExpectError
+ zdrot( x.length, x, 1, undefined, 1, 0.8, 0.6 ); // $ExpectError
+ zdrot( x.length, x, 1, [ '1' ], 1, 0.8, 0.6 ); // $ExpectError
+ zdrot( x.length, x, 1, {}, 1, 0.8, 0.6 ); // $ExpectError
+ zdrot( x.length, x, 1, ( x: number ): number => x, 1, 0.8, 0.6 ); // $ExpectError
}
// The compiler throws an error if the function is provided a fifth argument which is not a number...
{
- const zx = new Complex128Array( 10 );
- const zy = new Complex128Array( 10 );
-
- zdrot( zx.length, zx, 1, zy, '10', 0.8, 0.6 ); // $ExpectError
- zdrot( zx.length, zx, 1, zy, true, 0.8, 0.6 ); // $ExpectError
- zdrot( zx.length, zx, 1, zy, false, 0.8, 0.6 ); // $ExpectError
- zdrot( zx.length, zx, 1, zy, null, 0.8, 0.6 ); // $ExpectError
- zdrot( zx.length, zx, 1, zy, undefined, 0.8, 0.6 ); // $ExpectError
- zdrot( zx.length, zx, 1, zy, [], 0.8, 0.6 ); // $ExpectError
- zdrot( zx.length, zx, 1, zy, {}, 0.8, 0.6 ); // $ExpectError
- zdrot( zx.length, zx, 1, zy, ( zx: number ): number => zx, 0.8, 0.6 ); // $ExpectError
+ const x = new Complex128Array( 10 );
+ const y = new Complex128Array( 10 );
+
+ zdrot( x.length, x, 1, y, '10', 0.8, 0.6 ); // $ExpectError
+ zdrot( x.length, x, 1, y, true, 0.8, 0.6 ); // $ExpectError
+ zdrot( x.length, x, 1, y, false, 0.8, 0.6 ); // $ExpectError
+ zdrot( x.length, x, 1, y, null, 0.8, 0.6 ); // $ExpectError
+ zdrot( x.length, x, 1, y, undefined, 0.8, 0.6 ); // $ExpectError
+ zdrot( x.length, x, 1, y, [], 0.8, 0.6 ); // $ExpectError
+ zdrot( x.length, x, 1, y, {}, 0.8, 0.6 ); // $ExpectError
+ zdrot( x.length, x, 1, y, ( x: number ): number => x, 0.8, 0.6 ); // $ExpectError
}
// The compiler throws an error if the function is provided a sixth argument which is not a number...
{
- const zx = new Complex128Array( 10 );
- const zy = new Complex128Array( 10 );
-
- zdrot( zx.length, zx, 1, zy, 1, '10', 0.8 ); // $ExpectError
- zdrot( zx.length, zx, 1, zy, 1, true, 0.8 ); // $ExpectError
- zdrot( zx.length, zx, 1, zy, 1, false, 0.8 ); // $ExpectError
- zdrot( zx.length, zx, 1, zy, 1, null, 0.8 ); // $ExpectError
- zdrot( zx.length, zx, 1, zy, 1, undefined, 0.8 ); // $ExpectError
- zdrot( zx.length, zx, 1, zy, 1, [], 0.8 ); // $ExpectError
- zdrot( zx.length, zx, 1, zy, 1, {}, 0.8 ); // $ExpectError
- zdrot( zx.length, zx, 1, zy, 1, ( zx: number ): number => zx, 0.8 ); // $ExpectError
+ const x = new Complex128Array( 10 );
+ const y = new Complex128Array( 10 );
+
+ zdrot( x.length, x, 1, y, 1, '10', 0.8 ); // $ExpectError
+ zdrot( x.length, x, 1, y, 1, true, 0.8 ); // $ExpectError
+ zdrot( x.length, x, 1, y, 1, false, 0.8 ); // $ExpectError
+ zdrot( x.length, x, 1, y, 1, null, 0.8 ); // $ExpectError
+ zdrot( x.length, x, 1, y, 1, undefined, 0.8 ); // $ExpectError
+ zdrot( x.length, x, 1, y, 1, [], 0.8 ); // $ExpectError
+ zdrot( x.length, x, 1, y, 1, {}, 0.8 ); // $ExpectError
+ zdrot( x.length, x, 1, y, 1, ( x: number ): number => x, 0.8 ); // $ExpectError
}
// The compiler throws an error if the function is provided a seventh argument which is not a number...
{
- const zx = new Complex128Array( 10 );
- const zy = new Complex128Array( 10 );
-
- zdrot( zx.length, zx, 1, zy, 1, 0.8, '10' ); // $ExpectError
- zdrot( zx.length, zx, 1, zy, 1, 0.8, true ); // $ExpectError
- zdrot( zx.length, zx, 1, zy, 1, 0.8, false ); // $ExpectError
- zdrot( zx.length, zx, 1, zy, 1, 0.8, null ); // $ExpectError
- zdrot( zx.length, zx, 1, zy, 1, 0.8, undefined ); // $ExpectError
- zdrot( zx.length, zx, 1, zy, 1, 0.8, [] ); // $ExpectError
- zdrot( zx.length, zx, 1, zy, 1, 0.8, {} ); // $ExpectError
- zdrot( zx.length, zx, 1, zy, 1, 0.8, ( zx: number ): number => zx ); // $ExpectError
+ const x = new Complex128Array( 10 );
+ const y = new Complex128Array( 10 );
+
+ zdrot( x.length, x, 1, y, 1, 0.8, '10' ); // $ExpectError
+ zdrot( x.length, x, 1, y, 1, 0.8, true ); // $ExpectError
+ zdrot( x.length, x, 1, y, 1, 0.8, false ); // $ExpectError
+ zdrot( x.length, x, 1, y, 1, 0.8, null ); // $ExpectError
+ zdrot( x.length, x, 1, y, 1, 0.8, undefined ); // $ExpectError
+ zdrot( x.length, x, 1, y, 1, 0.8, [] ); // $ExpectError
+ zdrot( x.length, x, 1, y, 1, 0.8, {} ); // $ExpectError
+ zdrot( x.length, x, 1, y, 1, 0.8, ( x: number ): number => x ); // $ExpectError
}
// The compiler throws an error if the function is provided an unsupported number of arguments...
{
- const zx = new Complex128Array( 10 );
- const zy = new Complex128Array( 10 );
+ const x = new Complex128Array( 10 );
+ const y = new Complex128Array( 10 );
zdrot(); // $ExpectError
- zdrot( zx.length ); // $ExpectError
- zdrot( zx.length, zx ); // $ExpectError
- zdrot( zx.length, zx, 1 ); // $ExpectError
- zdrot( zx.length, zx, 1, zy ); // $ExpectError
- zdrot( zx.length, zx, 1, zy, 1, 0.8 ); // $ExpectError
- zdrot( zx.length, zx, 1, zy, 1, 0.8, 0.6, 10 ); // $ExpectError
+ zdrot( x.length ); // $ExpectError
+ zdrot( x.length, x ); // $ExpectError
+ zdrot( x.length, x, 1 ); // $ExpectError
+ zdrot( x.length, x, 1, y ); // $ExpectError
+ zdrot( x.length, x, 1, y, 1, 0.8 ); // $ExpectError
+ zdrot( x.length, x, 1, y, 1, 0.8, 0.6, 10 ); // $ExpectError
}
// Attached to main export is an `ndarray` method which returns a Complex128Array...
{
- const zx = new Complex128Array( 10 );
- const zy = new Complex128Array( 10 );
+ const x = new Complex128Array( 10 );
+ const y = new Complex128Array( 10 );
- zdrot.ndarray( zx.length, zx, 1, 0, zy, 1, 0, 0.8, 0.6 ); // $ExpectType Complex128Array
+ zdrot.ndarray( x.length, x, 1, 0, y, 1, 0, 0.8, 0.6 ); // $ExpectType Complex128Array
}
// The compiler throws an error if the `ndarray` method is provided a first argument which is not a number...
{
- const zx = new Complex128Array( 10 );
- const zy = new Complex128Array( 10 );
-
- zdrot.ndarray( '10', zx, 1, 0, zy, 1, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( true, zx, 1, 0, zy, 1, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( false, zx, 1, 0, zy, 1, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( null, zx, 1, 0, zy, 1, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( undefined, zx, 1, 0, zy, 1, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( [], zx, 1, 0, zy, 1, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( {}, zx, 1, 0, zy, 1, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( ( zx: number ): number => zx, zx, 1, 0, zy, 1, 0, 0.8, 0.6 ); // $ExpectError
+ const x = new Complex128Array( 10 );
+ const y = new Complex128Array( 10 );
+
+ zdrot.ndarray( '10', x, 1, 0, y, 1, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( true, x, 1, 0, y, 1, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( false, x, 1, 0, y, 1, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( null, x, 1, 0, y, 1, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( undefined, x, 1, 0, y, 1, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( [], x, 1, 0, y, 1, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( {}, x, 1, 0, y, 1, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( ( x: number ): number => x, x, 1, 0, y, 1, 0, 0.8, 0.6 ); // $ExpectError
}
// The compiler throws an error if the `ndarray` method is provided a second argument which is not a Complex128Array...
{
- const zx = new Complex128Array( 10 );
- const zy = new Complex128Array( 10 );
-
- zdrot.ndarray( zx.length, 10, 1, 0, zy, 1, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, '10', 1, 0, zy, 1, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, true, 1, 0, zy, 1, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, false, 1, 0, zy, 1, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, null, 1, 0, zy, 1, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, undefined, 1, 0, zy, 1, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, [ '1' ], 1, 0, zy, 1, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, {}, 1, 0, zy, 1, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, ( zx: number ): number => zx, 1, 0, zy, 1, 0, 0.8, 0.6 ); // $ExpectError
+ const x = new Complex128Array( 10 );
+ const y = new Complex128Array( 10 );
+
+ zdrot.ndarray( x.length, 10, 1, 0, y, 1, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, '10', 1, 0, y, 1, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, true, 1, 0, y, 1, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, false, 1, 0, y, 1, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, null, 1, 0, y, 1, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, undefined, 1, 0, y, 1, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, [ '1' ], 1, 0, y, 1, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, {}, 1, 0, y, 1, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, ( x: number ): number => x, 1, 0, y, 1, 0, 0.8, 0.6 ); // $ExpectError
}
// The compiler throws an error if the `ndarray` method is provided a third argument which is not a number...
{
- const zx = new Complex128Array( 10 );
- const zy = new Complex128Array( 10 );
-
- zdrot.ndarray( zx.length, zx, '10', 0, zy, 1, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, true, 0, zy, 1, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, false, 0, zy, 1, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, null, 0, zy, 1, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, undefined, 0, zy, 1, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, [], 0, zy, 1, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, {}, 0, zy, 1, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, ( zx: number ): number => zx, 0, zy, 1, 0, 0.8, 0.6 ); // $ExpectError
+ const x = new Complex128Array( 10 );
+ const y = new Complex128Array( 10 );
+
+ zdrot.ndarray( x.length, x, '10', 0, y, 1, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, true, 0, y, 1, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, false, 0, y, 1, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, null, 0, y, 1, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, undefined, 0, y, 1, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, [], 0, y, 1, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, {}, 0, y, 1, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, ( x: number ): number => x, 0, y, 1, 0, 0.8, 0.6 ); // $ExpectError
}
// The compiler throws an error if the `ndarray` method is provided a fourth argument which is not a number...
{
- const zx = new Complex128Array( 10 );
- const zy = new Complex128Array( 10 );
-
- zdrot.ndarray( zx.length, zx, 1, '10', zy, 1, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, true, zy, 1, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, false, zy, 1, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, null, zy, 1, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, undefined, zy, 1, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, [], zy, 1, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, {}, zy, 1, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, ( zx: number ): number => zx, zy, 1, 0, 0.8, 0.6 ); // $ExpectError
+ const x = new Complex128Array( 10 );
+ const y = new Complex128Array( 10 );
+
+ zdrot.ndarray( x.length, x, 1, '10', y, 1, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, true, y, 1, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, false, y, 1, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, null, y, 1, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, undefined, y, 1, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, [], y, 1, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, {}, y, 1, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, ( x: number ): number => x, y, 1, 0, 0.8, 0.6 ); // $ExpectError
}
// The compiler throws an error if the `ndarray` method is provided a fifth argument which is not a Complex128Array...
{
- const zx = new Complex128Array( 10 );
-
- zdrot.ndarray( zx.length, zx, 1, 0, 10, 1, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0, '10', 1, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0, true, 1, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0, false, 1, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0, null, 1, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0, undefined, 1, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0, [ '1' ], 1, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0, {}, 1, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0, ( zx: number ): number => zx, 1, 0, 0.8, 0.6 ); // $ExpectError
+ const x = new Complex128Array( 10 );
+
+ zdrot.ndarray( x.length, x, 1, 0, 10, 1, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0, '10', 1, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0, true, 1, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0, false, 1, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0, null, 1, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0, undefined, 1, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0, [ '1' ], 1, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0, {}, 1, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0, ( x: number ): number => x, 1, 0, 0.8, 0.6 ); // $ExpectError
}
// The compiler throws an error if the `ndarray` method is provided a sixth argument which is not a number...
{
- const zx = new Complex128Array( 10 );
- const zy = new Complex128Array( 10 );
-
- zdrot.ndarray( zx.length, zx, 1, 0, zy, '10', 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0, zy, true, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0, zy, false, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0, zy, null, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0, zy, undefined, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0, zy, [], 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0, zy, {}, 0, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0, zy, ( zx: number ): number => zx, 0, 0.8, 0.6 ); // $ExpectError
+ const x = new Complex128Array( 10 );
+ const y = new Complex128Array( 10 );
+
+ zdrot.ndarray( x.length, x, 1, 0, y, '10', 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0, y, true, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0, y, false, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0, y, null, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0, y, undefined, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0, y, [], 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0, y, {}, 0, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0, y, ( x: number ): number => x, 0, 0.8, 0.6 ); // $ExpectError
}
// The compiler throws an error if the `ndarray` method is provided a seventh argument which is not a number...
{
- const zx = new Complex128Array( 10 );
- const zy = new Complex128Array( 10 );
-
- zdrot.ndarray( zx.length, zx, 1, 0, zy, 1, '10', 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0, zy, 1, true, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0, zy, 1, false, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0, zy, 1, null, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0, zy, 1, undefined, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0, zy, 1, [], 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0, zy, 1, {}, 0.8, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0, zy, 1, ( zx: number ): number => zx, 0.8, 0.6 ); // $ExpectError
+ const x = new Complex128Array( 10 );
+ const y = new Complex128Array( 10 );
+
+ zdrot.ndarray( x.length, x, 1, 0, y, 1, '10', 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0, y, 1, true, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0, y, 1, false, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0, y, 1, null, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0, y, 1, undefined, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0, y, 1, [], 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0, y, 1, {}, 0.8, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0, y, 1, ( x: number ): number => x, 0.8, 0.6 ); // $ExpectError
}
// The compiler throws an error if the `ndarray` method is provided an eighth argument which is not a number...
{
- const zx = new Complex128Array( 10 );
- const zy = new Complex128Array( 10 );
-
- zdrot.ndarray( zx.length, zx, 1, 0, zy, 1, 0, '10', 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0, zy, 1, 0, true, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0, zy, 1, 0, false, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0, zy, 1, 0, null, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0, zy, 1, 0, undefined, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0, zy, 1, 0, [], 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0, zy, 1, 0, {}, 0.6 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0, zy, 1, 0, ( zx: number ): number => zx, 0.6 ); // $ExpectError
+ const x = new Complex128Array( 10 );
+ const y = new Complex128Array( 10 );
+
+ zdrot.ndarray( x.length, x, 1, 0, y, 1, 0, '10', 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0, y, 1, 0, true, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0, y, 1, 0, false, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0, y, 1, 0, null, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0, y, 1, 0, undefined, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0, y, 1, 0, [], 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0, y, 1, 0, {}, 0.6 ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0, y, 1, 0, ( x: number ): number => x, 0.6 ); // $ExpectError
}
// The compiler throws an error if the `ndarray` method is provided a ninth argument which is not a number...
{
- const zx = new Complex128Array( 10 );
- const zy = new Complex128Array( 10 );
-
- zdrot.ndarray( zx.length, zx, 1, 0, zy, 1, 0, 0.8, '10' ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0, zy, 1, 0, 0.8, true ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0, zy, 1, 0, 0.8, false ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0, zy, 1, 0, 0.8, null ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0, zy, 1, 0, 0.8, undefined ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0, zy, 1, 0, 0.8, [] ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0, zy, 1, 0, 0.8, {} ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0, zy, 1, 0, 0.8, ( zx: number ): number => zx ); // $ExpectError
+ const x = new Complex128Array( 10 );
+ const y = new Complex128Array( 10 );
+
+ zdrot.ndarray( x.length, x, 1, 0, y, 1, 0, 0.8, '10' ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0, y, 1, 0, 0.8, true ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0, y, 1, 0, 0.8, false ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0, y, 1, 0, 0.8, null ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0, y, 1, 0, 0.8, undefined ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0, y, 1, 0, 0.8, [] ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0, y, 1, 0, 0.8, {} ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0, y, 1, 0, 0.8, ( x: number ): number => x ); // $ExpectError
}
// The compiler throws an error if the `ndarray` method is provided an unsupported number of arguments...
{
- const zx = new Complex128Array( 10 );
- const zy = new Complex128Array( 10 );
+ const x = new Complex128Array( 10 );
+ const y = new Complex128Array( 10 );
zdrot.ndarray(); // $ExpectError
- zdrot.ndarray( zx.length ); // $ExpectError
- zdrot.ndarray( zx.length, zx ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0, zy ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0, zy, 1 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0, zy, 1, 0 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0, zy, 1, 0, 0.8 ); // $ExpectError
- zdrot.ndarray( zx.length, zx, 1, 0, zy, 1, 0, 0.8, 0.6, 10 ); // $ExpectError
+ zdrot.ndarray( x.length ); // $ExpectError
+ zdrot.ndarray( x.length, x ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1 ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0 ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0, y ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0, y, 1 ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0, y, 1, 0 ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0, y, 1, 0, 0.8 ); // $ExpectError
+ zdrot.ndarray( x.length, x, 1, 0, y, 1, 0, 0.8, 0.6, 10 ); // $ExpectError
}
diff --git a/lib/node_modules/@stdlib/blas/base/zdrot/examples/index.js b/lib/node_modules/@stdlib/blas/base/zdrot/examples/index.js
index 7d95538b523c..175bb4985e5f 100644
--- a/lib/node_modules/@stdlib/blas/base/zdrot/examples/index.js
+++ b/lib/node_modules/@stdlib/blas/base/zdrot/examples/index.js
@@ -31,14 +31,14 @@ function rand() {
}
// Generate random input arrays:
-var zx = filledarrayBy( 10, 'complex128', rand );
-var zxc = zcopy( zx.length, zx, 1, zeros( zx.length, 'complex128' ), 1 );
+var x = filledarrayBy( 10, 'complex128', rand );
+var xc = zcopy( x.length, x, 1, zeros( x.length, 'complex128' ), 1 );
-var zy = filledarrayBy( 10, 'complex128', rand );
-var zyc = zcopy( zy.length, zy, 1, zeros( zy.length, 'complex128' ), 1 );
+var y = filledarrayBy( 10, 'complex128', rand );
+var yc = zcopy( y.length, y, 1, zeros( y.length, 'complex128' ), 1 );
// Apply a plane rotation:
-zdrot( zx.length, zx, 1, zy, 1, 0.8, 0.6 );
+zdrot( x.length, x, 1, y, 1, 0.8, 0.6 );
// Print the results:
-logEach( '(%s,%s) => (%s,%s)', zxc, zyc, zx, zy );
+logEach( '(%s,%s) => (%s,%s)', xc, yc, x, y );
diff --git a/lib/node_modules/@stdlib/blas/base/zdrot/include/stdlib/blas/base/zdrot.h b/lib/node_modules/@stdlib/blas/base/zdrot/include/stdlib/blas/base/zdrot.h
index 4bf4995ae26d..a885b4857d4f 100644
--- a/lib/node_modules/@stdlib/blas/base/zdrot/include/stdlib/blas/base/zdrot.h
+++ b/lib/node_modules/@stdlib/blas/base/zdrot/include/stdlib/blas/base/zdrot.h
@@ -34,12 +34,12 @@ extern "C" {
/**
* Applies a plane rotation.
*/
-void API_SUFFIX(c_zdrot)( const CBLAS_INT N, void *ZX, const CBLAS_INT strideX, void *ZY, const CBLAS_INT strideY, const double c, const double s );
+void API_SUFFIX(c_zdrot)( const CBLAS_INT N, void *X, const CBLAS_INT strideX, void *Y, const CBLAS_INT strideY, const double c, const double s );
/**
* Applies a plane rotation using alternative indexing semantics.
*/
-void API_SUFFIX(c_zdrot_ndarray)( const CBLAS_INT N, void *ZX, const CBLAS_INT strideX, const CBLAS_INT offsetX, void *ZY, const CBLAS_INT strideY, const CBLAS_INT offsetY, const double c, const double s );
+void API_SUFFIX(c_zdrot_ndarray)( const CBLAS_INT N, void *X, const CBLAS_INT strideX, const CBLAS_INT offsetX, void *Y, const CBLAS_INT strideY, const CBLAS_INT offsetY, const double c, const double s );
#ifdef __cplusplus
}
diff --git a/lib/node_modules/@stdlib/blas/base/zdrot/include/stdlib/blas/base/zdrot_cblas.h b/lib/node_modules/@stdlib/blas/base/zdrot/include/stdlib/blas/base/zdrot_cblas.h
index b4862c8d4c2e..7851220ce025 100644
--- a/lib/node_modules/@stdlib/blas/base/zdrot/include/stdlib/blas/base/zdrot_cblas.h
+++ b/lib/node_modules/@stdlib/blas/base/zdrot/include/stdlib/blas/base/zdrot_cblas.h
@@ -34,7 +34,7 @@ extern "C" {
/**
* Applies a plane rotation.
*/
-void API_SUFFIX(cblas_zdrot)( const CBLAS_INT N, void *ZX, const CBLAS_INT strideX, void *ZY, const CBLAS_INT strideY, const double c, const double s );
+void API_SUFFIX(cblas_zdrot)( const CBLAS_INT N, void *X, const CBLAS_INT strideX, void *Y, const CBLAS_INT strideY, const double c, const double s );
#ifdef __cplusplus
}
diff --git a/lib/node_modules/@stdlib/blas/base/zdrot/lib/index.js b/lib/node_modules/@stdlib/blas/base/zdrot/lib/index.js
index d33ae0d0dffd..c7e41978e4f4 100644
--- a/lib/node_modules/@stdlib/blas/base/zdrot/lib/index.js
+++ b/lib/node_modules/@stdlib/blas/base/zdrot/lib/index.js
@@ -27,23 +27,23 @@
* var Complex128Array = require( '@stdlib/array/complex128' );
* var zdrot = require( '@stdlib/blas/base/zdrot' );
*
-* var zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
-* var zy = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
+* var x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+* var y = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
*
-* zdrot( zx.length, zx, 1, zy, 1, 0.8, 0.6 );
-* // zx => [ ~0.8, ~1.6, ~2.4, ~3.2, 4.0, ~4.8, ~5.6, ~6.4 ]
-* // zy => [ ~-0.6, ~-1.2, ~-1.8, ~-2.4, -3.0, ~-3.6, ~-4.2, ~-4.8 ]
+* zdrot( x.length, x, 1, y, 1, 0.8, 0.6 );
+* // x => [ ~0.8, ~1.6, ~2.4, ~3.2, 4.0, ~4.8, ~5.6, ~6.4 ]
+* // y => [ ~-0.6, ~-1.2, ~-1.8, ~-2.4, -3.0, ~-3.6, ~-4.2, ~-4.8 ]
*
* @example
* var Complex128Array = require( '@stdlib/array/complex128' );
* var zdrot = require( '@stdlib/blas/base/zdrot' );
*
-* var zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
-* var zy = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
+* var x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+* var y = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
*
-* zdrot.ndarray( zx.length, zx, 1, 0, zy, 1, 0, 0.8, 0.6 );
-* // zx => [ ~0.8, ~1.6, ~2.4, ~3.2, 4.0, ~4.8, ~5.6, ~6.4 ]
-* // zy => [ ~-0.6, ~-1.2, ~-1.8, ~-2.4, -3.0, ~-3.6, ~-4.2, ~-4.8 ]
+* zdrot.ndarray( x.length, x, 1, 0, y, 1, 0, 0.8, 0.6 );
+* // x => [ ~0.8, ~1.6, ~2.4, ~3.2, 4.0, ~4.8, ~5.6, ~6.4 ]
+* // y => [ ~-0.6, ~-1.2, ~-1.8, ~-2.4, -3.0, ~-3.6, ~-4.2, ~-4.8 ]
*/
// MODULES //
diff --git a/lib/node_modules/@stdlib/blas/base/zdrot/lib/ndarray.js b/lib/node_modules/@stdlib/blas/base/zdrot/lib/ndarray.js
index 816aa4bc45ab..f87c591e0c78 100644
--- a/lib/node_modules/@stdlib/blas/base/zdrot/lib/ndarray.js
+++ b/lib/node_modules/@stdlib/blas/base/zdrot/lib/ndarray.js
@@ -29,27 +29,27 @@ var reinterpret = require( '@stdlib/strided/base/reinterpret-complex128' );
* Applies a plane rotation.
*
* @param {PositiveInteger} N - number of indexed elements
-* @param {Complex128Array} zx - first input array
-* @param {integer} strideX - `zx` stride length
-* @param {NonNegativeInteger} offsetX - starting `zx` index
-* @param {Complex128Array} zy - second input array
-* @param {integer} strideY - `zy` stride length
-* @param {NonNegativeInteger} offsetY - starting `zy` index
+* @param {Complex128Array} x - first input array
+* @param {integer} strideX - `x` stride length
+* @param {NonNegativeInteger} offsetX - starting `x` index
+* @param {Complex128Array} y - second input array
+* @param {integer} strideY - `y` stride length
+* @param {NonNegativeInteger} offsetY - starting `y` index
* @param {number} c - cosine of the angle of rotation
* @param {number} s - sine of the angle of rotation
-* @returns {Complex128Array} `zy`
+* @returns {Complex128Array} `y`
*
* @example
* var Complex128Array = require( '@stdlib/array/complex128' );
*
-* var zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
-* var zy = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
+* var x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+* var y = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
*
-* zdrot( zx.length, zx, 1, 0, zy, 1, 0, 0.8, 0.6 );
-* // zx => [ ~0.8, ~1.6, ~2.4, ~3.2, 4.0, ~4.8, ~5.6, ~6.4 ]
-* // zy => [ ~-0.6, ~-1.2, ~-1.8, ~-2.4, -3.0, ~-3.6, ~-4.2, ~-4.8 ]
+* zdrot( x.length, x, 1, 0, y, 1, 0, 0.8, 0.6 );
+* // x => [ ~0.8, ~1.6, ~2.4, ~3.2, 4.0, ~4.8, ~5.6, ~6.4 ]
+* // y => [ ~-0.6, ~-1.2, ~-1.8, ~-2.4, -3.0, ~-3.6, ~-4.2, ~-4.8 ]
*/
-function zdrot( N, zx, strideX, offsetX, zy, strideY, offsetY, c, s ) {
+function zdrot( N, x, strideX, offsetX, y, strideY, offsetY, c, s ) {
var viewX;
var viewY;
var tmp;
@@ -60,10 +60,10 @@ function zdrot( N, zx, strideX, offsetX, zy, strideY, offsetY, c, s ) {
var i;
if ( N <= 0 ) {
- return zy;
+ return y;
}
- viewX = reinterpret( zx, 0 );
- viewY = reinterpret( zy, 0 );
+ viewX = reinterpret( x, 0 );
+ viewY = reinterpret( y, 0 );
sx = strideX * 2;
sy = strideY * 2;
ix = offsetX * 2;
@@ -80,7 +80,7 @@ function zdrot( N, zx, strideX, offsetX, zy, strideY, offsetY, c, s ) {
ix += sx;
iy += sy;
}
- return zy;
+ return y;
}
diff --git a/lib/node_modules/@stdlib/blas/base/zdrot/lib/ndarray.native.js b/lib/node_modules/@stdlib/blas/base/zdrot/lib/ndarray.native.js
index 1a8aaa1108e9..6d7dae2b3951 100644
--- a/lib/node_modules/@stdlib/blas/base/zdrot/lib/ndarray.native.js
+++ b/lib/node_modules/@stdlib/blas/base/zdrot/lib/ndarray.native.js
@@ -30,31 +30,31 @@ var addon = require( './../src/addon.node' );
* Applies a plane rotation.
*
* @param {PositiveInteger} N - number of indexed elements
-* @param {Complex128Array} zx - first input array
-* @param {integer} strideX - `zx` stride length
-* @param {NonNegativeInteger} offsetX - starting `zx` index
-* @param {Complex128Array} zy - second input array
-* @param {integer} strideY - `zy` stride length
-* @param {NonNegativeInteger} offsetY - starting `zy` index
+* @param {Complex128Array} x - first input array
+* @param {integer} strideX - `x` stride length
+* @param {NonNegativeInteger} offsetX - starting `x` index
+* @param {Complex128Array} y - second input array
+* @param {integer} strideY - `y` stride length
+* @param {NonNegativeInteger} offsetY - starting `y` index
* @param {number} c - cosine of the angle of rotation
* @param {number} s - sine of the angle of rotation
-* @returns {Complex128Array} `zy`
+* @returns {Complex128Array} `y`
*
* @example
* var Complex128Array = require( '@stdlib/array/complex128' );
*
-* var zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
-* var zy = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
+* var x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+* var y = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
*
-* zdrot( zx.length, zx, 1, 0, zy, 1, 0, 0.8, 0.6 );
-* // zx => [ ~0.8, ~1.6, ~2.4, ~3.2, 4.0, ~4.8, ~5.6, ~6.4 ]
-* // zy => [ ~-0.6, ~-1.2, ~-1.8, ~-2.4, -3.0, ~-3.6, ~-4.2, ~-4.8 ]
+* zdrot( x.length, x, 1, 0, y, 1, 0, 0.8, 0.6 );
+* // x => [ ~0.8, ~1.6, ~2.4, ~3.2, 4.0, ~4.8, ~5.6, ~6.4 ]
+* // y => [ ~-0.6, ~-1.2, ~-1.8, ~-2.4, -3.0, ~-3.6, ~-4.2, ~-4.8 ]
*/
-function zdrot( N, zx, strideX, offsetX, zy, strideY, offsetY, c, s ) {
- var viewX = reinterpret( zx, 0 );
- var viewY = reinterpret( zy, 0 );
+function zdrot( N, x, strideX, offsetX, y, strideY, offsetY, c, s ) {
+ var viewX = reinterpret( x, 0 );
+ var viewY = reinterpret( y, 0 );
addon.ndarray( N, viewX, strideX, offsetX, viewY, strideY, offsetY, c, s );
- return zy;
+ return y;
}
diff --git a/lib/node_modules/@stdlib/blas/base/zdrot/lib/zdrot.js b/lib/node_modules/@stdlib/blas/base/zdrot/lib/zdrot.js
index 1c4923f57937..fad3f369ced6 100644
--- a/lib/node_modules/@stdlib/blas/base/zdrot/lib/zdrot.js
+++ b/lib/node_modules/@stdlib/blas/base/zdrot/lib/zdrot.js
@@ -30,28 +30,28 @@ var ndarray = require( './ndarray.js' );
* Applies a plane rotation.
*
* @param {PositiveInteger} N - number of indexed elements
-* @param {Complex128Array} zx - first input array
-* @param {integer} strideX - `zx` stride length
-* @param {Complex128Array} zy - second input array
-* @param {integer} strideY - `zy` stride length
+* @param {Complex128Array} x - first input array
+* @param {integer} strideX - `x` stride length
+* @param {Complex128Array} y - second input array
+* @param {integer} strideY - `y` stride length
* @param {number} c - cosine of the angle of rotation
* @param {number} s - sine of the angle of rotation
-* @returns {Complex128Array} `zy`
+* @returns {Complex128Array} `y`
*
* @example
* var Complex128Array = require( '@stdlib/array/complex128' );
*
-* var zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
-* var zy = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
+* var x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+* var y = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
*
-* zdrot( zx.length, zx, 1, zy, 1, 0.8, 0.6 );
-* // zx => [ ~0.8, ~1.6, ~2.4, ~3.2, 4.0, ~4.8, ~5.6, ~6.4 ]
-* // zy => [ ~-0.6, ~-1.2, ~-1.8, ~-2.4, -3.0, ~-3.6, ~-4.2, ~-4.8 ]
+* zdrot( x.length, x, 1, y, 1, 0.8, 0.6 );
+* // x => [ ~0.8, ~1.6, ~2.4, ~3.2, 4.0, ~4.8, ~5.6, ~6.4 ]
+* // y => [ ~-0.6, ~-1.2, ~-1.8, ~-2.4, -3.0, ~-3.6, ~-4.2, ~-4.8 ]
*/
-function zdrot( N, zx, strideX, zy, strideY, c, s ) {
+function zdrot( N, x, strideX, y, strideY, c, s ) {
var ix = stride2offset( N, strideX );
var iy = stride2offset( N, strideY );
- return ndarray( N, zx, strideX, ix, zy, strideY, iy, c, s );
+ return ndarray( N, x, strideX, ix, y, strideY, iy, c, s );
}
diff --git a/lib/node_modules/@stdlib/blas/base/zdrot/lib/zdrot.native.js b/lib/node_modules/@stdlib/blas/base/zdrot/lib/zdrot.native.js
index c217831a2e70..a1bea44d061d 100644
--- a/lib/node_modules/@stdlib/blas/base/zdrot/lib/zdrot.native.js
+++ b/lib/node_modules/@stdlib/blas/base/zdrot/lib/zdrot.native.js
@@ -30,29 +30,29 @@ var addon = require( './../src/addon.node' );
* Applies a plane rotation.
*
* @param {PositiveInteger} N - number of indexed elements
-* @param {Complex128Array} zx - first input array
-* @param {integer} strideX - `zx` stride length
-* @param {Complex128Array} zy - second input array
-* @param {integer} strideY - `zy` stride length
+* @param {Complex128Array} x - first input array
+* @param {integer} strideX - `x` stride length
+* @param {Complex128Array} y - second input array
+* @param {integer} strideY - `y` stride length
* @param {number} c - cosine of the angle of rotation
* @param {number} s - sine of the angle of rotation
-* @returns {Complex128Array} `zy`
+* @returns {Complex128Array} `y`
*
* @example
* var Complex128Array = require( '@stdlib/array/complex128' );
*
-* var zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
-* var zy = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
+* var x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+* var y = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
*
-* zdrot( zx.length, zx, 1, zy, 1, 0.8, 0.6 );
-* // zx => [ ~0.8, ~1.6, ~2.4, ~3.2, 4.0, ~4.8, ~5.6, ~6.4 ]
-* // zy => [ ~-0.6, ~-1.2, ~-1.8, ~-2.4, -3.0, ~-3.6, ~-4.2, ~-4.8 ]
+* zdrot( x.length, x, 1, y, 1, 0.8, 0.6 );
+* // x => [ ~0.8, ~1.6, ~2.4, ~3.2, 4.0, ~4.8, ~5.6, ~6.4 ]
+* // y => [ ~-0.6, ~-1.2, ~-1.8, ~-2.4, -3.0, ~-3.6, ~-4.2, ~-4.8 ]
*/
-function zdrot( N, zx, strideX, zy, strideY, c, s ) {
- var viewX = reinterpret( zx, 0 );
- var viewY = reinterpret( zy, 0 );
+function zdrot( N, x, strideX, y, strideY, c, s ) {
+ var viewX = reinterpret( x, 0 );
+ var viewY = reinterpret( y, 0 );
addon( N, viewX, strideX, viewY, strideY, c, s );
- return zy;
+ return y;
}
diff --git a/lib/node_modules/@stdlib/blas/base/zdrot/src/zdrot.c b/lib/node_modules/@stdlib/blas/base/zdrot/src/zdrot.c
index ccdd384ac05c..672f36ace36a 100644
--- a/lib/node_modules/@stdlib/blas/base/zdrot/src/zdrot.c
+++ b/lib/node_modules/@stdlib/blas/base/zdrot/src/zdrot.c
@@ -24,15 +24,15 @@
* Applies a plane rotation.
*
* @param N number of indexed elements
-* @param ZX first input array
-* @param strideX ZX stride length
-* @param ZY second input array
-* @param strideY ZY stride length
+* @param X first input array
+* @param strideX X stride length
+* @param Y second input array
+* @param strideY Y stride length
* @param c cosine of the angle of rotation
* @param s sine of the angle of rotation
*/
-void API_SUFFIX(c_zdrot)( const CBLAS_INT N, void *ZX, const CBLAS_INT strideX, void *ZY, const CBLAS_INT strideY, const double c, const double s ) {
+void API_SUFFIX(c_zdrot)( const CBLAS_INT N, void *X, const CBLAS_INT strideX, void *Y, const CBLAS_INT strideY, const double c, const double s ) {
CBLAS_INT ox = stdlib_strided_stride2offset( N, strideX );
CBLAS_INT oy = stdlib_strided_stride2offset( N, strideY );
- API_SUFFIX(c_zdrot_ndarray)( N, ZX, strideX, ox, ZY, strideY, oy, c, s );
+ API_SUFFIX(c_zdrot_ndarray)( N, X, strideX, ox, Y, strideY, oy, c, s );
}
diff --git a/lib/node_modules/@stdlib/blas/base/zdrot/src/zdrot.f b/lib/node_modules/@stdlib/blas/base/zdrot/src/zdrot.f
index 28bf58412531..a26c55b14dbe 100644
--- a/lib/node_modules/@stdlib/blas/base/zdrot/src/zdrot.f
+++ b/lib/node_modules/@stdlib/blas/base/zdrot/src/zdrot.f
@@ -42,14 +42,14 @@
! > * We will gladly answer any questions regarding the software. If a modification is done, however, it is the responsibility of the person who modified the routine to provide support.
!
! @param {integer} N - number of indexed elements
-! @param {Array>} zx - first input array
-! @param {integer} strideX - `zx` stride length
-! @param {Array>} zy - second input array
-! @param {integer} strideY - `zy` stride length
+! @param {Array>} x - first input array
+! @param {integer} strideX - `x` stride length
+! @param {Array>} y - second input array
+! @param {integer} strideY - `y` stride length
! @param {double} c - cosine of the angle of rotation
! @param {double} s - sine of the angle of rotation
!<
-subroutine zdrot( N, zx, strideX, zy, strideY, c, s )
+subroutine zdrot( N, x, strideX, y, strideY, c, s )
implicit none
! ..
! Scalar arguments:
@@ -57,7 +57,7 @@ subroutine zdrot( N, zx, strideX, zy, strideY, c, s )
double precision :: c, s
! ..
! Array arguments:
- complex(kind=kind(0.0d0)) :: zx(*), zy(*)
+ complex(kind=kind(0.0d0)) :: x(*), y(*)
! ..
! Local scalars:
integer :: ix, iy, i
@@ -69,9 +69,9 @@ subroutine zdrot( N, zx, strideX, zy, strideY, c, s )
! ..
if ( strideX == 1 .AND. strideY == 1 ) then
do i = 1, N
- ztmp = ( c*zx( i ) ) + ( s*zy( i ) )
- zy( i ) = ( c*zy( i ) ) - ( s*zx( i ) )
- zx( i ) = ztmp
+ ztmp = ( c*x( i ) ) + ( s*y( i ) )
+ y( i ) = ( c*y( i ) ) - ( s*x( i ) )
+ x( i ) = ztmp
end do
else
if ( strideX < 0 ) then
@@ -85,12 +85,12 @@ subroutine zdrot( N, zx, strideX, zy, strideY, c, s )
iy = 1
end if
do i = 1, N
- ztmp = ( c*zx( ix ) ) + ( s*zy( iy ) )
- zy( iy ) = ( c*zy( iy ) ) - ( s*zx( ix ) )
- zx( ix ) = ztmp
+ ztmp = ( c*x( ix ) ) + ( s*y( iy ) )
+ y( iy ) = ( c*y( iy ) ) - ( s*x( ix ) )
+ x( ix ) = ztmp
ix = ix + strideX
iy = iy + strideY
end do
end if
return
-end subroutine zdrot
\ No newline at end of file
+end subroutine zdrot
diff --git a/lib/node_modules/@stdlib/blas/base/zdrot/src/zdrot_cblas.c b/lib/node_modules/@stdlib/blas/base/zdrot/src/zdrot_cblas.c
index af86dfe07bc8..c7cc2e9a12da 100644
--- a/lib/node_modules/@stdlib/blas/base/zdrot/src/zdrot_cblas.c
+++ b/lib/node_modules/@stdlib/blas/base/zdrot/src/zdrot_cblas.c
@@ -26,34 +26,34 @@
* Applies a plane rotation.
*
* @param N number of indexed elements
-* @param ZX first input array
-* @param strideX ZX stride length
-* @param ZY second input array
-* @param strideY ZY stride length
+* @param X first input array
+* @param strideX X stride length
+* @param Y second input array
+* @param strideY Y stride length
* @param c cosine of the angle of rotation
* @param s sine of the angle of rotation
*/
-void API_SUFFIX(c_zdrot)( const CBLAS_INT N, void *ZX, const CBLAS_INT strideX, void *ZY, const CBLAS_INT strideY, const double c, const double s ) {
- API_SUFFIX(cblas_zdrot)( N, ZX, strideX, ZY, strideY, c, s );
+void API_SUFFIX(c_zdrot)( const CBLAS_INT N, void *X, const CBLAS_INT strideX, void *Y, const CBLAS_INT strideY, const double c, const double s ) {
+ API_SUFFIX(cblas_zdrot)( N, X, strideX, Y, strideY, c, s );
}
/**
* Applies a plane rotation using alternative indexing semantics.
*
* @param N number of indexed elements
-* @param ZX first input array
-* @param strideX ZX stride length
-* @param offsetX starting index for ZX
-* @param ZY second input array
-* @param strideY ZY stride length
-* @param offsetY starting index for ZY
+* @param X first input array
+* @param strideX X stride length
+* @param offsetX starting index for X
+* @param Y second input array
+* @param strideY Y stride length
+* @param offsetY starting index for Y
* @param c cosine of the angle of rotation
* @param s sine of the angle of rotation
*/
-void API_SUFFIX(c_zdrot_ndarray)( const CBLAS_INT N, void *ZX, const CBLAS_INT strideX, const CBLAS_INT offsetX, void *ZY, const CBLAS_INT strideY, const CBLAS_INT offsetY, const double c, const double s ) {
- stdlib_complex128_t *zx = (stdlib_complex128_t *)ZX;
- stdlib_complex128_t *zy = (stdlib_complex128_t *)ZY;
- zx += stdlib_strided_min_view_buffer_index( N, strideX, offsetX ); // adjust array pointer
- zy += stdlib_strided_min_view_buffer_index( N, strideY, offsetY ); // adjust array pointer
- API_SUFFIX(cblas_zdrot)( N, (void *)zx, strideX, (void *)zy, strideY, c, s );
+void API_SUFFIX(c_zdrot_ndarray)( const CBLAS_INT N, void *X, const CBLAS_INT strideX, const CBLAS_INT offsetX, void *Y, const CBLAS_INT strideY, const CBLAS_INT offsetY, const double c, const double s ) {
+ stdlib_complex128_t *x = (stdlib_complex128_t *)X;
+ stdlib_complex128_t *y = (stdlib_complex128_t *)Y;
+ x += stdlib_strided_min_view_buffer_index( N, strideX, offsetX ); // adjust array pointer
+ y += stdlib_strided_min_view_buffer_index( N, strideY, offsetY ); // adjust array pointer
+ API_SUFFIX(cblas_zdrot)( N, (void *)x, strideX, (void *)y, strideY, c, s );
}
diff --git a/lib/node_modules/@stdlib/blas/base/zdrot/src/zdrot_f.c b/lib/node_modules/@stdlib/blas/base/zdrot/src/zdrot_f.c
index 7ba3f615c89c..23235ee23f40 100644
--- a/lib/node_modules/@stdlib/blas/base/zdrot/src/zdrot_f.c
+++ b/lib/node_modules/@stdlib/blas/base/zdrot/src/zdrot_f.c
@@ -26,35 +26,35 @@
* Applies a plane rotation.
*
* @param N number of indexed elements
-* @param ZX first input array
-* @param strideX ZX stride length
-* @param ZY second input array
-* @param strideY ZY stride length
+* @param X first input array
+* @param strideX X stride length
+* @param Y second input array
+* @param strideY Y stride length
* @param c cosine of the angle of rotation
* @param s sine of the angle of rotation
*/
-void API_SUFFIX(c_zdrot)( const CBLAS_INT N, void *ZX, const CBLAS_INT strideX, void *ZY, const CBLAS_INT strideY, const double c, const double s ) {
- zdrot( &N, ZX, &strideX, ZY, &strideY, &c, &s );
+void API_SUFFIX(c_zdrot)( const CBLAS_INT N, void *X, const CBLAS_INT strideX, void *Y, const CBLAS_INT strideY, const double c, const double s ) {
+ zdrot( &N, X, &strideX, Y, &strideY, &c, &s );
}
/**
* Applies a plane rotation using alternative indexing semantics.
*
* @param N number of indexed elements
-* @param ZX first input array
-* @param strideX ZX stride length
-* @param offsetX starting index for ZX
-* @param ZY second input array
-* @param strideY ZY stride length
-* @param offsetY starting index for ZY
+* @param X first input array
+* @param strideX X stride length
+* @param offsetX starting index for X
+* @param Y second input array
+* @param strideY Y stride length
+* @param offsetY starting index for Y
* @param c cosine of the angle of rotation
* @param s sine of the angle of rotation
*/
-void API_SUFFIX(c_zdrot_ndarray)( const CBLAS_INT N, void *ZX, const CBLAS_INT strideX, const CBLAS_INT offsetX, void *ZY, const CBLAS_INT strideY, const CBLAS_INT offsetY, const double c, const double s ) {
- stdlib_complex128_t *zx = (stdlib_complex128_t *)ZX;
- stdlib_complex128_t *zy = (stdlib_complex128_t *)ZY;
+void API_SUFFIX(c_zdrot_ndarray)( const CBLAS_INT N, void *X, const CBLAS_INT strideX, const CBLAS_INT offsetX, void *Y, const CBLAS_INT strideY, const CBLAS_INT offsetY, const double c, const double s ) {
+ stdlib_complex128_t *x = (stdlib_complex128_t *)X;
+ stdlib_complex128_t *y = (stdlib_complex128_t *)Y;
- zx += stdlib_strided_min_view_buffer_index( N, strideX, offsetX );
- zy += stdlib_strided_min_view_buffer_index( N, strideY, offsetY );
- zdrot( &N, (void *)zx, &strideX, (void *)zy, &strideY, &c, &s );
+ x += stdlib_strided_min_view_buffer_index( N, strideX, offsetX );
+ y += stdlib_strided_min_view_buffer_index( N, strideY, offsetY );
+ zdrot( &N, (void *)x, &strideX, (void *)y, &strideY, &c, &s );
}
diff --git a/lib/node_modules/@stdlib/blas/base/zdrot/src/zdrot_ndarray.c b/lib/node_modules/@stdlib/blas/base/zdrot/src/zdrot_ndarray.c
index 28de0d0e3bfb..b9cc716abf15 100644
--- a/lib/node_modules/@stdlib/blas/base/zdrot/src/zdrot_ndarray.c
+++ b/lib/node_modules/@stdlib/blas/base/zdrot/src/zdrot_ndarray.c
@@ -23,18 +23,18 @@
* Applies a plane rotation using alternative indexing semantics.
*
* @param N number of indexed elements
-* @param ZX first input array
-* @param strideX ZX stride length
-* @param offsetX starting index for ZX
-* @param ZY second input array
-* @param strideY ZY stride length
-* @param offsetY starting index for ZY
+* @param X first input array
+* @param strideX X stride length
+* @param offsetX starting index for X
+* @param Y second input array
+* @param strideY Y stride length
+* @param offsetY starting index for Y
* @param c cosine of the angle of rotation
* @param s sine of the angle of rotation
*/
-void API_SUFFIX(c_zdrot_ndarray)( const CBLAS_INT N, void *ZX, const CBLAS_INT strideX, const CBLAS_INT offsetX, void *ZY, const CBLAS_INT strideY, const CBLAS_INT offsetY, const double c, const double s ) {
- double *zx = (double *)ZX;
- double *zy = (double *)ZY;
+void API_SUFFIX(c_zdrot_ndarray)( const CBLAS_INT N, void *X, const CBLAS_INT strideX, const CBLAS_INT offsetX, void *Y, const CBLAS_INT strideY, const CBLAS_INT offsetY, const double c, const double s ) {
+ double *x = (double *)X;
+ double *y = (double *)Y;
CBLAS_INT ix;
CBLAS_INT iy;
CBLAS_INT sx;
@@ -50,13 +50,13 @@ void API_SUFFIX(c_zdrot_ndarray)( const CBLAS_INT N, void *ZX, const CBLAS_INT s
ix = offsetX * 2;
iy = offsetY * 2;
for ( i = 0; i < N; i++ ) {
- tmp = ( c*zx[ ix ] ) + ( s*zy[ iy ] );
- zy[ iy ] = ( c*zy[ iy ] ) - ( s*zx[ ix ] );
- zx[ ix ] = tmp;
+ tmp = ( c*x[ ix ] ) + ( s*y[ iy ] );
+ y[ iy ] = ( c*y[ iy ] ) - ( s*x[ ix ] );
+ x[ ix ] = tmp;
- tmp = ( c*zx[ ix+1 ] ) + ( s*zy[ iy+1 ] );
- zy[ iy+1 ] = ( c*zy[ iy+1 ] ) - ( s*zx[ ix+1 ] );
- zx[ ix+1 ] = tmp;
+ tmp = ( c*x[ ix+1 ] ) + ( s*y[ iy+1 ] );
+ y[ iy+1 ] = ( c*y[ iy+1 ] ) - ( s*x[ ix+1 ] );
+ x[ ix+1 ] = tmp;
ix += sx;
iy += sy;
diff --git a/lib/node_modules/@stdlib/blas/base/zdrot/test/test.ndarray.js b/lib/node_modules/@stdlib/blas/base/zdrot/test/test.ndarray.js
index abbc19bf9be5..bc6ad67c23dc 100644
--- a/lib/node_modules/@stdlib/blas/base/zdrot/test/test.ndarray.js
+++ b/lib/node_modules/@stdlib/blas/base/zdrot/test/test.ndarray.js
@@ -73,13 +73,13 @@ tape( 'the function has an arity of 9', function test( t ) {
tape( 'the function applies a plane rotation', function test( t ) {
var viewX;
var viewY;
- var cxe;
- var cye;
var out;
- var cx;
- var cy;
+ var xe;
+ var ye;
+ var x;
+ var y;
- cx = new Complex128Array( [
+ x = new Complex128Array([
1.0, // 1
2.0, // 1
3.0, // 2
@@ -88,8 +88,8 @@ tape( 'the function applies a plane rotation', function test( t ) {
6.0, // 3
7.0, // 4
8.0 // 4
- ] );
- cy = new Complex128Array( [
+ ]);
+ y = new Complex128Array([
0.0, // 1
0.0, // 1
0.0, // 2
@@ -98,12 +98,12 @@ tape( 'the function applies a plane rotation', function test( t ) {
0.0, // 3
0.0, // 4
0.0 // 4
- ] );
+ ]);
- viewX = new Float64Array( cx.buffer );
- viewY = new Float64Array( cy.buffer );
+ viewX = new Float64Array( x.buffer );
+ viewY = new Float64Array( y.buffer );
- cxe = new Float64Array( [
+ xe = new Float64Array([
0.8, // 1
1.6, // 1
2.4, // 2
@@ -112,8 +112,8 @@ tape( 'the function applies a plane rotation', function test( t ) {
4.8, // 3
5.6, // 4
6.4 // 4
- ] );
- cye = new Float64Array( [
+ ]);
+ ye = new Float64Array([
-0.6, // 1
-1.2, // 1
-1.8, // 2
@@ -122,25 +122,25 @@ tape( 'the function applies a plane rotation', function test( t ) {
-3.6, // 3
-4.2, // 4
-4.8 // 4
- ] );
+ ]);
- out = zdrot( cx.length, cx, 1, 0, cy, 1, 0, 0.8, 0.6 );
- isApprox( t, viewX, cxe, 2.0 );
- isApprox( t, viewY, cye, 2.0 );
- t.strictEqual( out, cy, 'returns expected value' );
+ out = zdrot( x.length, x, 1, 0, y, 1, 0, 0.8, 0.6 );
+ isApprox( t, viewX, xe, 2.0 );
+ isApprox( t, viewY, ye, 2.0 );
+ t.strictEqual( out, y, 'returns expected value' );
t.end();
});
tape( 'the function supports an `x` stride', function test( t ) {
var viewX;
var viewY;
- var cxe;
- var cye;
var out;
- var cx;
- var cy;
+ var xe;
+ var ye;
+ var x;
+ var y;
- cx = new Complex128Array( [
+ x = new Complex128Array([
1.0, // 1
2.0, // 1
3.0,
@@ -149,8 +149,8 @@ tape( 'the function supports an `x` stride', function test( t ) {
6.0, // 2
7.0,
8.0
- ] );
- cy = new Complex128Array( [
+ ]);
+ y = new Complex128Array([
0.0, // 1
0.0, // 1
0.0, // 2
@@ -159,12 +159,12 @@ tape( 'the function supports an `x` stride', function test( t ) {
0.0,
0.0,
0.0
- ] );
+ ]);
- viewX = new Float64Array( cx.buffer );
- viewY = new Float64Array( cy.buffer );
+ viewX = new Float64Array( x.buffer );
+ viewY = new Float64Array( y.buffer );
- cxe = new Float64Array( [
+ xe = new Float64Array([
0.8, // 1
1.6, // 1
3.0,
@@ -173,8 +173,8 @@ tape( 'the function supports an `x` stride', function test( t ) {
4.8, // 2
7.0,
8.0
- ] );
- cye = new Float64Array( [
+ ]);
+ ye = new Float64Array([
-0.6, // 1
-1.2, // 1
-3.0, // 2
@@ -183,25 +183,25 @@ tape( 'the function supports an `x` stride', function test( t ) {
0.0,
0.0,
0.0
- ] );
+ ]);
- out = zdrot( 2, cx, 2, 0, cy, 1, 0, 0.8, 0.6 );
- isApprox( t, viewX, cxe, 2.0 );
- isApprox( t, viewY, cye, 2.0 );
- t.strictEqual( out, cy, 'returns expected value' );
+ out = zdrot( 2, x, 2, 0, y, 1, 0, 0.8, 0.6 );
+ isApprox( t, viewX, xe, 2.0 );
+ isApprox( t, viewY, ye, 2.0 );
+ t.strictEqual( out, y, 'returns expected value' );
t.end();
});
tape( 'the function supports an `x` offset', function test( t ) {
var viewX;
var viewY;
- var cxe;
- var cye;
var out;
- var cx;
- var cy;
+ var xe;
+ var ye;
+ var x;
+ var y;
- cx = new Complex128Array( [
+ x = new Complex128Array([
1.0,
2.0,
3.0, // 1
@@ -210,8 +210,8 @@ tape( 'the function supports an `x` offset', function test( t ) {
6.0, // 2
7.0, // 3
8.0 // 3
- ] );
- cy = new Complex128Array( [
+ ]);
+ y = new Complex128Array([
0.0, // 1
0.0, // 1
0.0, // 2
@@ -220,12 +220,12 @@ tape( 'the function supports an `x` offset', function test( t ) {
0.0, // 3
0.0,
0.0
- ] );
+ ]);
- viewX = new Float64Array( cx.buffer );
- viewY = new Float64Array( cy.buffer );
+ viewX = new Float64Array( x.buffer );
+ viewY = new Float64Array( y.buffer );
- cxe = new Float64Array( [
+ xe = new Float64Array([
1.0,
2.0,
2.4, // 1
@@ -234,8 +234,8 @@ tape( 'the function supports an `x` offset', function test( t ) {
4.8, // 2
5.6, // 3
6.4 // 3
- ] );
- cye = new Float64Array( [
+ ]);
+ ye = new Float64Array([
-1.8, // 1
-2.4, // 1
-3.0, // 2
@@ -244,25 +244,25 @@ tape( 'the function supports an `x` offset', function test( t ) {
-4.8, // 3
0.0,
0.0
- ] );
+ ]);
- out = zdrot( 3, cx, 1, 1, cy, 1, 0, 0.8, 0.6 );
- isApprox( t, viewX, cxe, 2.0 );
- isApprox( t, viewY, cye, 2.0 );
- t.strictEqual( out, cy, 'returns expected value' );
+ out = zdrot( 3, x, 1, 1, y, 1, 0, 0.8, 0.6 );
+ isApprox( t, viewX, xe, 2.0 );
+ isApprox( t, viewY, ye, 2.0 );
+ t.strictEqual( out, y, 'returns expected value' );
t.end();
});
tape( 'the function supports a `y` stride', function test( t ) {
var viewX;
var viewY;
- var cxe;
- var cye;
var out;
- var cx;
- var cy;
+ var xe;
+ var ye;
+ var x;
+ var y;
- cx = new Complex128Array( [
+ x = new Complex128Array([
1.0, // 1
2.0, // 1
3.0, // 2
@@ -271,8 +271,8 @@ tape( 'the function supports a `y` stride', function test( t ) {
6.0,
7.0,
8.0
- ] );
- cy = new Complex128Array( [
+ ]);
+ y = new Complex128Array([
0.0, // 1
0.0, // 1
0.0,
@@ -281,12 +281,12 @@ tape( 'the function supports a `y` stride', function test( t ) {
0.0, // 2
0.0,
0.0
- ] );
+ ]);
- viewX = new Float64Array( cx.buffer );
- viewY = new Float64Array( cy.buffer );
+ viewX = new Float64Array( x.buffer );
+ viewY = new Float64Array( y.buffer );
- cxe = new Float64Array( [
+ xe = new Float64Array([
0.8, // 1
1.6, // 1
2.4, // 2
@@ -295,8 +295,8 @@ tape( 'the function supports a `y` stride', function test( t ) {
6.0,
7.0,
8.0
- ] );
- cye = new Float64Array( [
+ ]);
+ ye = new Float64Array([
-0.6, // 1
-1.2, // 1
0.0,
@@ -305,25 +305,25 @@ tape( 'the function supports a `y` stride', function test( t ) {
-2.4, // 2
0.0,
0.0
- ] );
+ ]);
- out = zdrot( 2, cx, 1, 0, cy, 2, 0, 0.8, 0.6 );
- isApprox( t, viewX, cxe, 2.0 );
- isApprox( t, viewY, cye, 2.0 );
- t.strictEqual( out, cy, 'returns expected value' );
+ out = zdrot( 2, x, 1, 0, y, 2, 0, 0.8, 0.6 );
+ isApprox( t, viewX, xe, 2.0 );
+ isApprox( t, viewY, ye, 2.0 );
+ t.strictEqual( out, y, 'returns expected value' );
t.end();
});
tape( 'the function supports a `y` offset', function test( t ) {
var viewX;
var viewY;
- var cxe;
- var cye;
var out;
- var cx;
- var cy;
+ var xe;
+ var ye;
+ var x;
+ var y;
- cx = new Complex128Array( [
+ x = new Complex128Array([
1.0, // 1
2.0, // 1
3.0,
@@ -332,8 +332,8 @@ tape( 'the function supports a `y` offset', function test( t ) {
6.0, // 2
7.0,
8.0
- ] );
- cy = new Complex128Array( [
+ ]);
+ y = new Complex128Array([
0.0, // 2
0.0, // 2
0.0, // 1
@@ -342,12 +342,12 @@ tape( 'the function supports a `y` offset', function test( t ) {
0.0,
0.0,
0.0
- ] );
+ ]);
- viewX = new Float64Array( cx.buffer );
- viewY = new Float64Array( cy.buffer );
+ viewX = new Float64Array( x.buffer );
+ viewY = new Float64Array( y.buffer );
- cxe = new Float64Array( [
+ xe = new Float64Array([
0.8, // 1
1.6, // 1
3.0,
@@ -356,8 +356,8 @@ tape( 'the function supports a `y` offset', function test( t ) {
4.8, // 2
7.0,
8.0
- ] );
- cye = new Float64Array( [
+ ]);
+ ye = new Float64Array([
-3.0, // 2
-3.6, // 2
-0.6, // 1
@@ -366,53 +366,53 @@ tape( 'the function supports a `y` offset', function test( t ) {
0.0,
0.0,
0.0
- ] );
+ ]);
- out = zdrot( 2, cx, 2, 0, cy, -1, 1, 0.8, 0.6 );
- isApprox( t, viewX, cxe, 2.0 );
- isApprox( t, viewY, cye, 2.0 );
- t.strictEqual( out, cy, 'returns expected value' );
+ out = zdrot( 2, x, 2, 0, y, -1, 1, 0.8, 0.6 );
+ isApprox( t, viewX, xe, 2.0 );
+ isApprox( t, viewY, ye, 2.0 );
+ t.strictEqual( out, y, 'returns expected value' );
t.end();
});
tape( 'the function returns a reference to the destination array', function test( t ) {
var out;
- var cx;
- var cy;
+ var x;
+ var y;
- cx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
- cy = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
+ x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ y = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
- out = zdrot( cx.length, cx, 1, 0, cy, 1, 0, 0.8, 0.6 );
+ out = zdrot( x.length, x, 1, 0, y, 1, 0, 0.8, 0.6 );
- t.strictEqual( out, cy, 'returns expected value' );
+ t.strictEqual( out, y, 'returns expected value' );
t.end();
});
tape( 'if provided an `N` parameter less than or equal to `0`, the function returns both vectors unchanged', function test( t ) {
var viewX;
var viewY;
- var cxe;
- var cye;
- var cx;
- var cy;
+ var xe;
+ var ye;
+ var x;
+ var y;
- cx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
- cy = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
+ x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ y = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
- viewX = new Float64Array( cx.buffer );
- viewY = new Float64Array( cy.buffer );
+ viewX = new Float64Array( x.buffer );
+ viewY = new Float64Array( y.buffer );
- cxe = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
- cye = new Float64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
+ xe = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ ye = new Float64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
- zdrot( -1, cx, 1, 0, cy, 1, 0, 0.8, 0.6 );
- t.deepEqual( viewX, cxe, 'returns expected value' );
- t.deepEqual( viewY, cye, 'returns expected value' );
+ zdrot( -1, x, 1, 0, y, 1, 0, 0.8, 0.6 );
+ t.deepEqual( viewX, xe, 'returns expected value' );
+ t.deepEqual( viewY, ye, 'returns expected value' );
- zdrot( 0, cx, 1, 0, cy, 1, 0, 0.8, 0.6 );
- t.deepEqual( viewX, cxe, 'returns expected value' );
- t.deepEqual( viewY, cye, 'returns expected value' );
+ zdrot( 0, x, 1, 0, y, 1, 0, 0.8, 0.6 );
+ t.deepEqual( viewX, xe, 'returns expected value' );
+ t.deepEqual( viewY, ye, 'returns expected value' );
t.end();
});
@@ -420,13 +420,13 @@ tape( 'if provided an `N` parameter less than or equal to `0`, the function retu
tape( 'the function supports negative strides', function test( t ) {
var viewX;
var viewY;
- var cxe;
- var cye;
var out;
- var cx;
- var cy;
+ var xe;
+ var ye;
+ var x;
+ var y;
- cx = new Complex128Array( [
+ x = new Complex128Array([
1.0, // 2
2.0, // 2
3.0, // 1
@@ -435,8 +435,8 @@ tape( 'the function supports negative strides', function test( t ) {
6.0,
7.0,
8.0
- ] );
- cy = new Complex128Array( [
+ ]);
+ y = new Complex128Array([
0.0, // 2
0.0, // 2
0.0,
@@ -445,12 +445,12 @@ tape( 'the function supports negative strides', function test( t ) {
0.0, // 1
0.0,
0.0
- ] );
+ ]);
- viewX = new Float64Array( cx.buffer );
- viewY = new Float64Array( cy.buffer );
+ viewX = new Float64Array( x.buffer );
+ viewY = new Float64Array( y.buffer );
- cxe = new Float64Array( [
+ xe = new Float64Array([
0.8, // 2
1.6, // 2
2.4, // 1
@@ -459,8 +459,8 @@ tape( 'the function supports negative strides', function test( t ) {
6.0,
7.0,
8.0
- ] );
- cye = new Float64Array( [
+ ]);
+ ye = new Float64Array([
-0.6, // 2
-1.2, // 2
0.0,
@@ -469,25 +469,25 @@ tape( 'the function supports negative strides', function test( t ) {
-2.4, // 1
0.0,
0.0
- ] );
+ ]);
- out = zdrot( 2, cx, -1, 1, cy, -2, 2, 0.8, 0.6 );
- isApprox( t, viewX, cxe, 2.0 );
- isApprox( t, viewY, cye, 2.0 );
- t.strictEqual( out, cy, 'returns expected value' );
+ out = zdrot( 2, x, -1, 1, y, -2, 2, 0.8, 0.6 );
+ isApprox( t, viewX, xe, 2.0 );
+ isApprox( t, viewY, ye, 2.0 );
+ t.strictEqual( out, y, 'returns expected value' );
t.end();
});
tape( 'the function supports complex access patterns', function test( t ) {
var viewX;
var viewY;
- var cxe;
- var cye;
var out;
- var cx;
- var cy;
+ var xe;
+ var ye;
+ var x;
+ var y;
- cx = new Complex128Array( [
+ x = new Complex128Array([
1.0, // 1
2.0, // 1
3.0,
@@ -496,8 +496,8 @@ tape( 'the function supports complex access patterns', function test( t ) {
6.0, // 2
7.0,
8.0
- ] );
- cy = new Complex128Array( [
+ ]);
+ y = new Complex128Array([
0.0, // 1
0.0, // 1
0.0, // 2
@@ -506,12 +506,12 @@ tape( 'the function supports complex access patterns', function test( t ) {
0.0,
0.0,
0.0
- ] );
+ ]);
- viewX = new Float64Array( cx.buffer );
- viewY = new Float64Array( cy.buffer );
+ viewX = new Float64Array( x.buffer );
+ viewY = new Float64Array( y.buffer );
- cxe = new Float64Array( [
+ xe = new Float64Array([
1.0,
2.0,
2.4, // 1
@@ -520,8 +520,8 @@ tape( 'the function supports complex access patterns', function test( t ) {
6.0,
5.6, // 2
6.4 // 2
- ] );
- cye = new Float64Array( [
+ ]);
+ ye = new Float64Array([
0.0,
0.0,
0.0,
@@ -530,11 +530,11 @@ tape( 'the function supports complex access patterns', function test( t ) {
-2.4, // 1
-4.2, // 2
-4.8 // 2
- ] );
+ ]);
- out = zdrot( 2, cx, 2, 1, cy, 1, 2, 0.8, 0.6 );
- isApprox( t, viewX, cxe, 2.0 );
- isApprox( t, viewY, cye, 2.0 );
- t.strictEqual( out, cy, 'returns expected value' );
+ out = zdrot( 2, x, 2, 1, y, 1, 2, 0.8, 0.6 );
+ isApprox( t, viewX, xe, 2.0 );
+ isApprox( t, viewY, ye, 2.0 );
+ t.strictEqual( out, y, 'returns expected value' );
t.end();
});
diff --git a/lib/node_modules/@stdlib/blas/base/zdrot/test/test.ndarray.native.js b/lib/node_modules/@stdlib/blas/base/zdrot/test/test.ndarray.native.js
index 6acdb596a613..12a5c4a10933 100644
--- a/lib/node_modules/@stdlib/blas/base/zdrot/test/test.ndarray.native.js
+++ b/lib/node_modules/@stdlib/blas/base/zdrot/test/test.ndarray.native.js
@@ -82,13 +82,13 @@ tape( 'the function has an arity of 9', opts, function test( t ) {
tape( 'the function applies a plane rotation', opts, function test( t ) {
var viewX;
var viewY;
- var cxe;
- var cye;
var out;
- var cx;
- var cy;
+ var xe;
+ var ye;
+ var x;
+ var y;
- cx = new Complex128Array( [
+ x = new Complex128Array([
1.0, // 1
2.0, // 1
3.0, // 2
@@ -97,8 +97,8 @@ tape( 'the function applies a plane rotation', opts, function test( t ) {
6.0, // 3
7.0, // 4
8.0 // 4
- ] );
- cy = new Complex128Array( [
+ ]);
+ y = new Complex128Array([
0.0, // 1
0.0, // 1
0.0, // 2
@@ -107,12 +107,12 @@ tape( 'the function applies a plane rotation', opts, function test( t ) {
0.0, // 3
0.0, // 4
0.0 // 4
- ] );
+ ]);
- viewX = new Float64Array( cx.buffer );
- viewY = new Float64Array( cy.buffer );
+ viewX = new Float64Array( x.buffer );
+ viewY = new Float64Array( y.buffer );
- cxe = new Float64Array( [
+ xe = new Float64Array([
0.8, // 1
1.6, // 1
2.4, // 2
@@ -121,8 +121,8 @@ tape( 'the function applies a plane rotation', opts, function test( t ) {
4.8, // 3
5.6, // 4
6.4 // 4
- ] );
- cye = new Float64Array( [
+ ]);
+ ye = new Float64Array([
-0.6, // 1
-1.2, // 1
-1.8, // 2
@@ -131,25 +131,25 @@ tape( 'the function applies a plane rotation', opts, function test( t ) {
-3.6, // 3
-4.2, // 4
-4.8 // 4
- ] );
+ ]);
- out = zdrot( cx.length, cx, 1, 0, cy, 1, 0, 0.8, 0.6 );
- isApprox( t, viewX, cxe, 2.0 );
- isApprox( t, viewY, cye, 2.0 );
- t.strictEqual( out, cy, 'returns expected value' );
+ out = zdrot( x.length, x, 1, 0, y, 1, 0, 0.8, 0.6 );
+ isApprox( t, viewX, xe, 2.0 );
+ isApprox( t, viewY, ye, 2.0 );
+ t.strictEqual( out, y, 'returns expected value' );
t.end();
});
tape( 'the function supports an `x` stride', opts, function test( t ) {
var viewX;
var viewY;
- var cxe;
- var cye;
var out;
- var cx;
- var cy;
+ var xe;
+ var ye;
+ var x;
+ var y;
- cx = new Complex128Array( [
+ x = new Complex128Array([
1.0, // 1
2.0, // 1
3.0,
@@ -158,8 +158,8 @@ tape( 'the function supports an `x` stride', opts, function test( t ) {
6.0, // 2
7.0,
8.0
- ] );
- cy = new Complex128Array( [
+ ]);
+ y = new Complex128Array([
0.0, // 1
0.0, // 1
0.0, // 2
@@ -168,12 +168,12 @@ tape( 'the function supports an `x` stride', opts, function test( t ) {
0.0,
0.0,
0.0
- ] );
+ ]);
- viewX = new Float64Array( cx.buffer );
- viewY = new Float64Array( cy.buffer );
+ viewX = new Float64Array( x.buffer );
+ viewY = new Float64Array( y.buffer );
- cxe = new Float64Array( [
+ xe = new Float64Array([
0.8, // 1
1.6, // 1
3.0,
@@ -182,8 +182,8 @@ tape( 'the function supports an `x` stride', opts, function test( t ) {
4.8, // 2
7.0,
8.0
- ] );
- cye = new Float64Array( [
+ ]);
+ ye = new Float64Array([
-0.6, // 1
-1.2, // 1
-3.0, // 2
@@ -192,25 +192,25 @@ tape( 'the function supports an `x` stride', opts, function test( t ) {
0.0,
0.0,
0.0
- ] );
+ ]);
- out = zdrot( 2, cx, 2, 0, cy, 1, 0, 0.8, 0.6 );
- isApprox( t, viewX, cxe, 2.0 );
- isApprox( t, viewY, cye, 2.0 );
- t.strictEqual( out, cy, 'returns expected value' );
+ out = zdrot( 2, x, 2, 0, y, 1, 0, 0.8, 0.6 );
+ isApprox( t, viewX, xe, 2.0 );
+ isApprox( t, viewY, ye, 2.0 );
+ t.strictEqual( out, y, 'returns expected value' );
t.end();
});
tape( 'the function supports an `x` offset', opts, function test( t ) {
var viewX;
var viewY;
- var cxe;
- var cye;
var out;
- var cx;
- var cy;
+ var xe;
+ var ye;
+ var x;
+ var y;
- cx = new Complex128Array( [
+ x = new Complex128Array([
1.0,
2.0,
3.0, // 1
@@ -219,8 +219,8 @@ tape( 'the function supports an `x` offset', opts, function test( t ) {
6.0, // 2
7.0, // 3
8.0 // 3
- ] );
- cy = new Complex128Array( [
+ ]);
+ y = new Complex128Array([
0.0, // 1
0.0, // 1
0.0, // 2
@@ -229,12 +229,12 @@ tape( 'the function supports an `x` offset', opts, function test( t ) {
0.0, // 3
0.0,
0.0
- ] );
+ ]);
- viewX = new Float64Array( cx.buffer );
- viewY = new Float64Array( cy.buffer );
+ viewX = new Float64Array( x.buffer );
+ viewY = new Float64Array( y.buffer );
- cxe = new Float64Array( [
+ xe = new Float64Array([
1.0,
2.0,
2.4, // 1
@@ -243,8 +243,8 @@ tape( 'the function supports an `x` offset', opts, function test( t ) {
4.8, // 2
5.6, // 3
6.4 // 3
- ] );
- cye = new Float64Array( [
+ ]);
+ ye = new Float64Array([
-1.8, // 1
-2.4, // 1
-3.0, // 2
@@ -253,25 +253,25 @@ tape( 'the function supports an `x` offset', opts, function test( t ) {
-4.8, // 3
0.0,
0.0
- ] );
+ ]);
- out = zdrot( 3, cx, 1, 1, cy, 1, 0, 0.8, 0.6 );
- isApprox( t, viewX, cxe, 2.0 );
- isApprox( t, viewY, cye, 2.0 );
- t.strictEqual( out, cy, 'returns expected value' );
+ out = zdrot( 3, x, 1, 1, y, 1, 0, 0.8, 0.6 );
+ isApprox( t, viewX, xe, 2.0 );
+ isApprox( t, viewY, ye, 2.0 );
+ t.strictEqual( out, y, 'returns expected value' );
t.end();
});
tape( 'the function supports a `y` stride', opts, function test( t ) {
var viewX;
var viewY;
- var cxe;
- var cye;
var out;
- var cx;
- var cy;
+ var xe;
+ var ye;
+ var x;
+ var y;
- cx = new Complex128Array( [
+ x = new Complex128Array([
1.0, // 1
2.0, // 1
3.0, // 2
@@ -280,8 +280,8 @@ tape( 'the function supports a `y` stride', opts, function test( t ) {
6.0,
7.0,
8.0
- ] );
- cy = new Complex128Array( [
+ ]);
+ y = new Complex128Array([
0.0, // 1
0.0, // 1
0.0,
@@ -290,12 +290,12 @@ tape( 'the function supports a `y` stride', opts, function test( t ) {
0.0, // 2
0.0,
0.0
- ] );
+ ]);
- viewX = new Float64Array( cx.buffer );
- viewY = new Float64Array( cy.buffer );
+ viewX = new Float64Array( x.buffer );
+ viewY = new Float64Array( y.buffer );
- cxe = new Float64Array( [
+ xe = new Float64Array([
0.8, // 1
1.6, // 1
2.4, // 2
@@ -304,8 +304,8 @@ tape( 'the function supports a `y` stride', opts, function test( t ) {
6.0,
7.0,
8.0
- ] );
- cye = new Float64Array( [
+ ]);
+ ye = new Float64Array([
-0.6, // 1
-1.2, // 1
0.0,
@@ -314,25 +314,25 @@ tape( 'the function supports a `y` stride', opts, function test( t ) {
-2.4, // 2
0.0,
0.0
- ] );
+ ]);
- out = zdrot( 2, cx, 1, 0, cy, 2, 0, 0.8, 0.6 );
- isApprox( t, viewX, cxe, 2.0 );
- isApprox( t, viewY, cye, 2.0 );
- t.strictEqual( out, cy, 'returns expected value' );
+ out = zdrot( 2, x, 1, 0, y, 2, 0, 0.8, 0.6 );
+ isApprox( t, viewX, xe, 2.0 );
+ isApprox( t, viewY, ye, 2.0 );
+ t.strictEqual( out, y, 'returns expected value' );
t.end();
});
tape( 'the function supports a `y` offset', opts, function test( t ) {
var viewX;
var viewY;
- var cxe;
- var cye;
var out;
- var cx;
- var cy;
+ var xe;
+ var ye;
+ var x;
+ var y;
- cx = new Complex128Array( [
+ x = new Complex128Array([
1.0, // 1
2.0, // 1
3.0,
@@ -341,8 +341,8 @@ tape( 'the function supports a `y` offset', opts, function test( t ) {
6.0, // 2
7.0,
8.0
- ] );
- cy = new Complex128Array( [
+ ]);
+ y = new Complex128Array([
0.0, // 2
0.0, // 2
0.0, // 1
@@ -351,12 +351,12 @@ tape( 'the function supports a `y` offset', opts, function test( t ) {
0.0,
0.0,
0.0
- ] );
+ ]);
- viewX = new Float64Array( cx.buffer );
- viewY = new Float64Array( cy.buffer );
+ viewX = new Float64Array( x.buffer );
+ viewY = new Float64Array( y.buffer );
- cxe = new Float64Array( [
+ xe = new Float64Array([
0.8, // 1
1.6, // 1
3.0,
@@ -365,8 +365,8 @@ tape( 'the function supports a `y` offset', opts, function test( t ) {
4.8, // 2
7.0,
8.0
- ] );
- cye = new Float64Array( [
+ ]);
+ ye = new Float64Array([
-3.0, // 2
-3.6, // 2
-0.6, // 1
@@ -375,53 +375,53 @@ tape( 'the function supports a `y` offset', opts, function test( t ) {
0.0,
0.0,
0.0
- ] );
+ ]);
- out = zdrot( 2, cx, 2, 0, cy, -1, 1, 0.8, 0.6 );
- isApprox( t, viewX, cxe, 2.0 );
- isApprox( t, viewY, cye, 2.0 );
- t.strictEqual( out, cy, 'returns expected value' );
+ out = zdrot( 2, x, 2, 0, y, -1, 1, 0.8, 0.6 );
+ isApprox( t, viewX, xe, 2.0 );
+ isApprox( t, viewY, ye, 2.0 );
+ t.strictEqual( out, y, 'returns expected value' );
t.end();
});
tape( 'the function returns a reference to the destination array', opts, function test( t ) {
var out;
- var cx;
- var cy;
+ var x;
+ var y;
- cx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
- cy = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
+ x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ y = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
- out = zdrot( cx.length, cx, 1, 0, cy, 1, 0, 0.8, 0.6 );
+ out = zdrot( x.length, x, 1, 0, y, 1, 0, 0.8, 0.6 );
- t.strictEqual( out, cy, 'returns expected value' );
+ t.strictEqual( out, y, 'returns expected value' );
t.end();
});
tape( 'if provided an `N` parameter less than or equal to `0`, the function returns both vectors unchanged', opts, function test( t ) {
var viewX;
var viewY;
- var cxe;
- var cye;
- var cx;
- var cy;
+ var xe;
+ var ye;
+ var x;
+ var y;
- cx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
- cy = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
+ x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ y = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
- viewX = new Float64Array( cx.buffer );
- viewY = new Float64Array( cy.buffer );
+ viewX = new Float64Array( x.buffer );
+ viewY = new Float64Array( y.buffer );
- cxe = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
- cye = new Float64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
+ xe = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ ye = new Float64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
- zdrot( -1, cx, 1, 0, cy, 1, 0, 0.8, 0.6 );
- t.deepEqual( viewX, cxe, 'returns expected value' );
- t.deepEqual( viewY, cye, 'returns expected value' );
+ zdrot( -1, x, 1, 0, y, 1, 0, 0.8, 0.6 );
+ t.deepEqual( viewX, xe, 'returns expected value' );
+ t.deepEqual( viewY, ye, 'returns expected value' );
- zdrot( 0, cx, 1, 0, cy, 1, 0, 0.8, 0.6 );
- t.deepEqual( viewX, cxe, 'returns expected value' );
- t.deepEqual( viewY, cye, 'returns expected value' );
+ zdrot( 0, x, 1, 0, y, 1, 0, 0.8, 0.6 );
+ t.deepEqual( viewX, xe, 'returns expected value' );
+ t.deepEqual( viewY, ye, 'returns expected value' );
t.end();
});
@@ -429,13 +429,13 @@ tape( 'if provided an `N` parameter less than or equal to `0`, the function retu
tape( 'the function supports negative strides', opts, function test( t ) {
var viewX;
var viewY;
- var cxe;
- var cye;
var out;
- var cx;
- var cy;
+ var xe;
+ var ye;
+ var x;
+ var y;
- cx = new Complex128Array( [
+ x = new Complex128Array([
1.0, // 2
2.0, // 2
3.0, // 1
@@ -444,8 +444,8 @@ tape( 'the function supports negative strides', opts, function test( t ) {
6.0,
7.0,
8.0
- ] );
- cy = new Complex128Array( [
+ ]);
+ y = new Complex128Array([
0.0, // 2
0.0, // 2
0.0,
@@ -454,12 +454,12 @@ tape( 'the function supports negative strides', opts, function test( t ) {
0.0, // 1
0.0,
0.0
- ] );
+ ]);
- viewX = new Float64Array( cx.buffer );
- viewY = new Float64Array( cy.buffer );
+ viewX = new Float64Array( x.buffer );
+ viewY = new Float64Array( y.buffer );
- cxe = new Float64Array( [
+ xe = new Float64Array([
0.8, // 2
1.6, // 2
2.4, // 1
@@ -468,8 +468,8 @@ tape( 'the function supports negative strides', opts, function test( t ) {
6.0,
7.0,
8.0
- ] );
- cye = new Float64Array( [
+ ]);
+ ye = new Float64Array([
-0.6, // 2
-1.2, // 2
0.0,
@@ -478,25 +478,25 @@ tape( 'the function supports negative strides', opts, function test( t ) {
-2.4, // 1
0.0,
0.0
- ] );
+ ]);
- out = zdrot( 2, cx, -1, 1, cy, -2, 2, 0.8, 0.6 );
- isApprox( t, viewX, cxe, 2.0 );
- isApprox( t, viewY, cye, 2.0 );
- t.strictEqual( out, cy, 'returns expected value' );
+ out = zdrot( 2, x, -1, 1, y, -2, 2, 0.8, 0.6 );
+ isApprox( t, viewX, xe, 2.0 );
+ isApprox( t, viewY, ye, 2.0 );
+ t.strictEqual( out, y, 'returns expected value' );
t.end();
});
tape( 'the function supports complex access patterns', opts, function test( t ) {
var viewX;
var viewY;
- var cxe;
- var cye;
var out;
- var cx;
- var cy;
+ var xe;
+ var ye;
+ var x;
+ var y;
- cx = new Complex128Array( [
+ x = new Complex128Array([
1.0, // 1
2.0, // 1
3.0,
@@ -505,8 +505,8 @@ tape( 'the function supports complex access patterns', opts, function test( t )
6.0, // 2
7.0,
8.0
- ] );
- cy = new Complex128Array( [
+ ]);
+ y = new Complex128Array([
0.0, // 1
0.0, // 1
0.0, // 2
@@ -515,12 +515,12 @@ tape( 'the function supports complex access patterns', opts, function test( t )
0.0,
0.0,
0.0
- ] );
+ ]);
- viewX = new Float64Array( cx.buffer );
- viewY = new Float64Array( cy.buffer );
+ viewX = new Float64Array( x.buffer );
+ viewY = new Float64Array( y.buffer );
- cxe = new Float64Array( [
+ xe = new Float64Array([
1.0,
2.0,
2.4, // 1
@@ -529,8 +529,8 @@ tape( 'the function supports complex access patterns', opts, function test( t )
6.0,
5.6, // 2
6.4 // 2
- ] );
- cye = new Float64Array( [
+ ]);
+ ye = new Float64Array([
0.0,
0.0,
0.0,
@@ -539,11 +539,11 @@ tape( 'the function supports complex access patterns', opts, function test( t )
-2.4, // 1
-4.2, // 2
-4.8 // 2
- ] );
+ ]);
- out = zdrot( 2, cx, 2, 1, cy, 1, 2, 0.8, 0.6 );
- isApprox( t, viewX, cxe, 2.0 );
- isApprox( t, viewY, cye, 2.0 );
- t.strictEqual( out, cy, 'returns expected value' );
+ out = zdrot( 2, x, 2, 1, y, 1, 2, 0.8, 0.6 );
+ isApprox( t, viewX, xe, 2.0 );
+ isApprox( t, viewY, ye, 2.0 );
+ t.strictEqual( out, y, 'returns expected value' );
t.end();
});
diff --git a/lib/node_modules/@stdlib/blas/base/zdrot/test/test.zdrot.js b/lib/node_modules/@stdlib/blas/base/zdrot/test/test.zdrot.js
index a34e64eb33a6..4d7bc96789f8 100644
--- a/lib/node_modules/@stdlib/blas/base/zdrot/test/test.zdrot.js
+++ b/lib/node_modules/@stdlib/blas/base/zdrot/test/test.zdrot.js
@@ -73,13 +73,13 @@ tape( 'the function has an arity of 7', function test( t ) {
tape( 'the function applies a plane rotation', function test( t ) {
var viewX;
var viewY;
- var cxe;
- var cye;
var out;
- var cx;
- var cy;
+ var xe;
+ var ye;
+ var x;
+ var y;
- cx = new Complex128Array( [
+ x = new Complex128Array([
1.0, // 1
2.0, // 1
3.0, // 2
@@ -88,8 +88,8 @@ tape( 'the function applies a plane rotation', function test( t ) {
6.0, // 3
7.0, // 4
8.0 // 4
- ] );
- cy = new Complex128Array( [
+ ]);
+ y = new Complex128Array([
0.0, // 1
0.0, // 1
0.0, // 2
@@ -98,12 +98,12 @@ tape( 'the function applies a plane rotation', function test( t ) {
0.0, // 3
0.0, // 4
0.0 // 4
- ] );
+ ]);
- viewX = new Float64Array( cx.buffer );
- viewY = new Float64Array( cy.buffer );
+ viewX = new Float64Array( x.buffer );
+ viewY = new Float64Array( y.buffer );
- cxe = new Float64Array( [
+ xe = new Float64Array([
0.8, // 1
1.6, // 1
2.4, // 2
@@ -112,8 +112,8 @@ tape( 'the function applies a plane rotation', function test( t ) {
4.8, // 3
5.6, // 4
6.4 // 4
- ] );
- cye = new Float64Array( [
+ ]);
+ ye = new Float64Array([
-0.6, // 1
-1.2, // 1
-1.8, // 2
@@ -122,25 +122,25 @@ tape( 'the function applies a plane rotation', function test( t ) {
-3.6, // 3
-4.2, // 4
-4.8 // 4
- ] );
+ ]);
- out = zdrot( cx.length, cx, 1, cy, 1, 0.8, 0.6 );
- isApprox( t, viewX, cxe, 2.0 );
- isApprox( t, viewY, cye, 2.0 );
- t.strictEqual( out, cy, 'returns expected value' );
+ out = zdrot( x.length, x, 1, y, 1, 0.8, 0.6 );
+ isApprox( t, viewX, xe, 2.0 );
+ isApprox( t, viewY, ye, 2.0 );
+ t.strictEqual( out, y, 'returns expected value' );
t.end();
});
tape( 'the function supports an `x` stride', function test( t ) {
var viewX;
var viewY;
- var cxe;
- var cye;
var out;
- var cx;
- var cy;
+ var xe;
+ var ye;
+ var x;
+ var y;
- cx = new Complex128Array( [
+ x = new Complex128Array([
1.0, // 1
2.0, // 1
3.0,
@@ -149,8 +149,8 @@ tape( 'the function supports an `x` stride', function test( t ) {
6.0, // 2
7.0,
8.0
- ] );
- cy = new Complex128Array( [
+ ]);
+ y = new Complex128Array([
0.0, // 1
0.0, // 1
0.0, // 2
@@ -159,12 +159,12 @@ tape( 'the function supports an `x` stride', function test( t ) {
0.0,
0.0,
0.0
- ] );
+ ]);
- viewX = new Float64Array( cx.buffer );
- viewY = new Float64Array( cy.buffer );
+ viewX = new Float64Array( x.buffer );
+ viewY = new Float64Array( y.buffer );
- cxe = new Float64Array( [
+ xe = new Float64Array([
0.8, // 1
1.6, // 1
3.0,
@@ -173,8 +173,8 @@ tape( 'the function supports an `x` stride', function test( t ) {
4.8, // 2
7.0,
8.0
- ] );
- cye = new Float64Array( [
+ ]);
+ ye = new Float64Array([
-0.6, // 1
-1.2, // 1
-3.0, // 2
@@ -183,25 +183,25 @@ tape( 'the function supports an `x` stride', function test( t ) {
0.0,
0.0,
0.0
- ] );
+ ]);
- out = zdrot( 2, cx, 2, cy, 1, 0.8, 0.6 );
- isApprox( t, viewX, cxe, 2.0 );
- isApprox( t, viewY, cye, 2.0 );
- t.strictEqual( out, cy, 'returns expected value' );
+ out = zdrot( 2, x, 2, y, 1, 0.8, 0.6 );
+ isApprox( t, viewX, xe, 2.0 );
+ isApprox( t, viewY, ye, 2.0 );
+ t.strictEqual( out, y, 'returns expected value' );
t.end();
});
tape( 'the function supports a `y` stride', function test( t ) {
var viewX;
var viewY;
- var cxe;
- var cye;
var out;
- var cx;
- var cy;
+ var xe;
+ var ye;
+ var x;
+ var y;
- cx = new Complex128Array( [
+ x = new Complex128Array([
1.0, // 1
2.0, // 1
3.0, // 2
@@ -210,8 +210,8 @@ tape( 'the function supports a `y` stride', function test( t ) {
6.0,
7.0,
8.0
- ] );
- cy = new Complex128Array( [
+ ]);
+ y = new Complex128Array([
0.0, // 1
0.0, // 1
0.0,
@@ -220,12 +220,12 @@ tape( 'the function supports a `y` stride', function test( t ) {
0.0, // 2
0.0,
0.0
- ] );
+ ]);
- viewX = new Float64Array( cx.buffer );
- viewY = new Float64Array( cy.buffer );
+ viewX = new Float64Array( x.buffer );
+ viewY = new Float64Array( y.buffer );
- cxe = new Float64Array( [
+ xe = new Float64Array([
0.8, // 1
1.6, // 1
2.4, // 2
@@ -234,8 +234,8 @@ tape( 'the function supports a `y` stride', function test( t ) {
6.0,
7.0,
8.0
- ] );
- cye = new Float64Array( [
+ ]);
+ ye = new Float64Array([
-0.6, // 1
-1.2, // 1
0.0,
@@ -244,53 +244,53 @@ tape( 'the function supports a `y` stride', function test( t ) {
-2.4, // 2
0.0,
0.0
- ] );
+ ]);
- out = zdrot( 2, cx, 1, cy, 2, 0.8, 0.6 );
- isApprox( t, viewX, cxe, 2.0 );
- isApprox( t, viewY, cye, 2.0 );
- t.strictEqual( out, cy, 'returns expected value' );
+ out = zdrot( 2, x, 1, y, 2, 0.8, 0.6 );
+ isApprox( t, viewX, xe, 2.0 );
+ isApprox( t, viewY, ye, 2.0 );
+ t.strictEqual( out, y, 'returns expected value' );
t.end();
});
tape( 'the function returns a reference to the destination array', function test( t ) {
var out;
- var cx;
- var cy;
+ var x;
+ var y;
- cx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
- cy = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
+ x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ y = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
- out = zdrot( cx.length, cx, 1, cy, 1, 0.8, 0.6 );
+ out = zdrot( x.length, x, 1, y, 1, 0.8, 0.6 );
- t.strictEqual( out, cy, 'returns expected value' );
+ t.strictEqual( out, y, 'returns expected value' );
t.end();
});
tape( 'if provided an `N` parameter less than or equal to `0`, the function returns both vectors unchanged', function test( t ) {
var viewX;
var viewY;
- var cxe;
- var cye;
- var cx;
- var cy;
+ var xe;
+ var ye;
+ var x;
+ var y;
- cx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
- cy = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
+ x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ y = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
- viewX = new Float64Array( cx.buffer );
- viewY = new Float64Array( cy.buffer );
+ viewX = new Float64Array( x.buffer );
+ viewY = new Float64Array( y.buffer );
- cxe = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
- cye = new Float64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
+ xe = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ ye = new Float64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
- zdrot( -1, cx, 1, cy, 1, 0.8, 0.6 );
- t.deepEqual( viewX, cxe, 'returns expected value' );
- t.deepEqual( viewY, cye, 'returns expected value' );
+ zdrot( -1, x, 1, y, 1, 0.8, 0.6 );
+ t.deepEqual( viewX, xe, 'returns expected value' );
+ t.deepEqual( viewY, ye, 'returns expected value' );
- zdrot( 0, cx, 1, cy, 1, 0.8, 0.6 );
- t.deepEqual( viewX, cxe, 'returns expected value' );
- t.deepEqual( viewY, cye, 'returns expected value' );
+ zdrot( 0, x, 1, y, 1, 0.8, 0.6 );
+ t.deepEqual( viewX, xe, 'returns expected value' );
+ t.deepEqual( viewY, ye, 'returns expected value' );
t.end();
});
@@ -298,13 +298,13 @@ tape( 'if provided an `N` parameter less than or equal to `0`, the function retu
tape( 'the function supports negative strides', function test( t ) {
var viewX;
var viewY;
- var cxe;
- var cye;
var out;
- var cx;
- var cy;
+ var xe;
+ var ye;
+ var x;
+ var y;
- cx = new Complex128Array( [
+ x = new Complex128Array([
1.0, // 2
2.0, // 2
3.0, // 1
@@ -313,8 +313,8 @@ tape( 'the function supports negative strides', function test( t ) {
6.0,
7.0,
8.0
- ] );
- cy = new Complex128Array( [
+ ]);
+ y = new Complex128Array([
0.0, // 2
0.0, // 2
0.0,
@@ -323,12 +323,12 @@ tape( 'the function supports negative strides', function test( t ) {
0.0, // 1
0.0,
0.0
- ] );
+ ]);
- viewX = new Float64Array( cx.buffer );
- viewY = new Float64Array( cy.buffer );
+ viewX = new Float64Array( x.buffer );
+ viewY = new Float64Array( y.buffer );
- cxe = new Float64Array( [
+ xe = new Float64Array([
0.8, // 2
1.6, // 2
2.4, // 1
@@ -337,8 +337,8 @@ tape( 'the function supports negative strides', function test( t ) {
6.0,
7.0,
8.0
- ] );
- cye = new Float64Array( [
+ ]);
+ ye = new Float64Array([
-0.6, // 2
-1.2, // 2
0.0,
@@ -347,25 +347,25 @@ tape( 'the function supports negative strides', function test( t ) {
-2.4, // 1
0.0,
0.0
- ] );
+ ]);
- out = zdrot( 2, cx, -1, cy, -2, 0.8, 0.6 );
- isApprox( t, viewX, cxe, 2.0 );
- isApprox( t, viewY, cye, 2.0 );
- t.strictEqual( out, cy, 'returns expected value' );
+ out = zdrot( 2, x, -1, y, -2, 0.8, 0.6 );
+ isApprox( t, viewX, xe, 2.0 );
+ isApprox( t, viewY, ye, 2.0 );
+ t.strictEqual( out, y, 'returns expected value' );
t.end();
});
tape( 'the function supports complex access patterns', function test( t ) {
var viewX;
var viewY;
- var cxe;
- var cye;
var out;
- var cx;
- var cy;
+ var xe;
+ var ye;
+ var x;
+ var y;
- cx = new Complex128Array( [
+ x = new Complex128Array([
1.0, // 1
2.0, // 1
3.0,
@@ -374,8 +374,8 @@ tape( 'the function supports complex access patterns', function test( t ) {
6.0, // 2
7.0,
8.0
- ] );
- cy = new Complex128Array( [
+ ]);
+ y = new Complex128Array([
0.0, // 2
0.0, // 2
0.0, // 1
@@ -384,12 +384,12 @@ tape( 'the function supports complex access patterns', function test( t ) {
0.0,
0.0,
0.0
- ] );
+ ]);
- viewX = new Float64Array( cx.buffer );
- viewY = new Float64Array( cy.buffer );
+ viewX = new Float64Array( x.buffer );
+ viewY = new Float64Array( y.buffer );
- cxe = new Float64Array( [
+ xe = new Float64Array([
0.8, // 1
1.6, // 1
3.0,
@@ -398,8 +398,8 @@ tape( 'the function supports complex access patterns', function test( t ) {
4.8, // 2
7.0,
8.0
- ] );
- cye = new Float64Array( [
+ ]);
+ ye = new Float64Array([
-3.0, // 2
-3.6, // 2
-0.6, // 1
@@ -408,28 +408,28 @@ tape( 'the function supports complex access patterns', function test( t ) {
0.0,
0.0,
0.0
- ] );
+ ]);
- out = zdrot( 2, cx, 2, cy, -1, 0.8, 0.6 );
- isApprox( t, viewX, cxe, 2.0 );
- isApprox( t, viewY, cye, 2.0 );
- t.strictEqual( out, cy, 'returns expected value' );
+ out = zdrot( 2, x, 2, y, -1, 0.8, 0.6 );
+ isApprox( t, viewX, xe, 2.0 );
+ isApprox( t, viewY, ye, 2.0 );
+ t.strictEqual( out, y, 'returns expected value' );
t.end();
});
tape( 'the function supports view offsets', function test( t ) {
var viewX;
var viewY;
- var cx0;
- var cy0;
- var cx1;
- var cy1;
- var cxe;
- var cye;
var out;
+ var x0;
+ var y0;
+ var x1;
+ var y1;
+ var xe;
+ var ye;
// Initial arrays...
- cx0 = new Complex128Array([
+ x0 = new Complex128Array([
1.0,
2.0,
3.0, // 2
@@ -439,7 +439,7 @@ tape( 'the function supports view offsets', function test( t ) {
7.0, // 1
8.0 // 1
]);
- cy0 = new Complex128Array([
+ y0 = new Complex128Array([
0.0,
0.0,
0.0,
@@ -451,13 +451,13 @@ tape( 'the function supports view offsets', function test( t ) {
]);
// Create offset views...
- cx1 = new Complex128Array( cx0.buffer, cx0.BYTES_PER_ELEMENT*1 ); // begin at the 2nd element
- cy1 = new Complex128Array( cy0.buffer, cy0.BYTES_PER_ELEMENT*2 ); // begin at the 3rd element
+ x1 = new Complex128Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // begin at the 2nd element
+ y1 = new Complex128Array( y0.buffer, y0.BYTES_PER_ELEMENT*2 ); // begin at the 3rd element
- viewX = new Float64Array( cx0.buffer );
- viewY = new Float64Array( cy0.buffer );
+ viewX = new Float64Array( x0.buffer );
+ viewY = new Float64Array( y0.buffer );
- cxe = new Float64Array( [
+ xe = new Float64Array([
1.0,
2.0,
2.4, // 2
@@ -466,8 +466,8 @@ tape( 'the function supports view offsets', function test( t ) {
6.0,
5.6, // 1
6.4 // 1
- ] );
- cye = new Float64Array( [
+ ]);
+ ye = new Float64Array([
0.0,
0.0,
0.0,
@@ -476,11 +476,11 @@ tape( 'the function supports view offsets', function test( t ) {
-4.8, // 1
-1.8, // 2
-2.4 // 2
- ] );
+ ]);
- out = zdrot( 2, cx1, -2, cy1, 1, 0.8, 0.6 );
- isApprox( t, viewX, cxe, 2.0 );
- isApprox( t, viewY, cye, 2.0 );
- t.strictEqual( out, cy1, 'returns expected value' );
+ out = zdrot( 2, x1, -2, y1, 1, 0.8, 0.6 );
+ isApprox( t, viewX, xe, 2.0 );
+ isApprox( t, viewY, ye, 2.0 );
+ t.strictEqual( out, y1, 'returns expected value' );
t.end();
});
diff --git a/lib/node_modules/@stdlib/blas/base/zdrot/test/test.zdrot.native.js b/lib/node_modules/@stdlib/blas/base/zdrot/test/test.zdrot.native.js
index 1a69d7a03c77..8926f85aca4d 100644
--- a/lib/node_modules/@stdlib/blas/base/zdrot/test/test.zdrot.native.js
+++ b/lib/node_modules/@stdlib/blas/base/zdrot/test/test.zdrot.native.js
@@ -82,13 +82,13 @@ tape( 'the function has an arity of 7', opts, function test( t ) {
tape( 'the function applies a plane rotation', opts, function test( t ) {
var viewX;
var viewY;
- var cxe;
- var cye;
var out;
- var cx;
- var cy;
+ var xe;
+ var ye;
+ var x;
+ var y;
- cx = new Complex128Array( [
+ x = new Complex128Array([
1.0, // 1
2.0, // 1
3.0, // 2
@@ -97,8 +97,8 @@ tape( 'the function applies a plane rotation', opts, function test( t ) {
6.0, // 3
7.0, // 4
8.0 // 4
- ] );
- cy = new Complex128Array( [
+ ]);
+ y = new Complex128Array([
0.0, // 1
0.0, // 1
0.0, // 2
@@ -107,12 +107,12 @@ tape( 'the function applies a plane rotation', opts, function test( t ) {
0.0, // 3
0.0, // 4
0.0 // 4
- ] );
+ ]);
- viewX = new Float64Array( cx.buffer );
- viewY = new Float64Array( cy.buffer );
+ viewX = new Float64Array( x.buffer );
+ viewY = new Float64Array( y.buffer );
- cxe = new Float64Array( [
+ xe = new Float64Array([
0.8, // 1
1.6, // 1
2.4, // 2
@@ -121,8 +121,8 @@ tape( 'the function applies a plane rotation', opts, function test( t ) {
4.8, // 3
5.6, // 4
6.4 // 4
- ] );
- cye = new Float64Array( [
+ ]);
+ ye = new Float64Array([
-0.6, // 1
-1.2, // 1
-1.8, // 2
@@ -131,25 +131,25 @@ tape( 'the function applies a plane rotation', opts, function test( t ) {
-3.6, // 3
-4.2, // 4
-4.8 // 4
- ] );
+ ]);
- out = zdrot( cx.length, cx, 1, cy, 1, 0.8, 0.6 );
- isApprox( t, viewX, cxe, 2.0 );
- isApprox( t, viewY, cye, 2.0 );
- t.strictEqual( out, cy, 'returns expected value' );
+ out = zdrot( x.length, x, 1, y, 1, 0.8, 0.6 );
+ isApprox( t, viewX, xe, 2.0 );
+ isApprox( t, viewY, ye, 2.0 );
+ t.strictEqual( out, y, 'returns expected value' );
t.end();
});
tape( 'the function supports an `x` stride', opts, function test( t ) {
var viewX;
var viewY;
- var cxe;
- var cye;
var out;
- var cx;
- var cy;
+ var xe;
+ var ye;
+ var x;
+ var y;
- cx = new Complex128Array( [
+ x = new Complex128Array([
1.0, // 1
2.0, // 1
3.0,
@@ -158,8 +158,8 @@ tape( 'the function supports an `x` stride', opts, function test( t ) {
6.0, // 2
7.0,
8.0
- ] );
- cy = new Complex128Array( [
+ ]);
+ y = new Complex128Array([
0.0, // 1
0.0, // 1
0.0, // 2
@@ -168,12 +168,12 @@ tape( 'the function supports an `x` stride', opts, function test( t ) {
0.0,
0.0,
0.0
- ] );
+ ]);
- viewX = new Float64Array( cx.buffer );
- viewY = new Float64Array( cy.buffer );
+ viewX = new Float64Array( x.buffer );
+ viewY = new Float64Array( y.buffer );
- cxe = new Float64Array( [
+ xe = new Float64Array([
0.8, // 1
1.6, // 1
3.0,
@@ -182,8 +182,8 @@ tape( 'the function supports an `x` stride', opts, function test( t ) {
4.8, // 2
7.0,
8.0
- ] );
- cye = new Float64Array( [
+ ]);
+ ye = new Float64Array([
-0.6, // 1
-1.2, // 1
-3.0, // 2
@@ -192,25 +192,25 @@ tape( 'the function supports an `x` stride', opts, function test( t ) {
0.0,
0.0,
0.0
- ] );
+ ]);
- out = zdrot( 2, cx, 2, cy, 1, 0.8, 0.6 );
- isApprox( t, viewX, cxe, 2.0 );
- isApprox( t, viewY, cye, 2.0 );
- t.strictEqual( out, cy, 'returns expected value' );
+ out = zdrot( 2, x, 2, y, 1, 0.8, 0.6 );
+ isApprox( t, viewX, xe, 2.0 );
+ isApprox( t, viewY, ye, 2.0 );
+ t.strictEqual( out, y, 'returns expected value' );
t.end();
});
tape( 'the function supports a `y` stride', opts, function test( t ) {
var viewX;
var viewY;
- var cxe;
- var cye;
var out;
- var cx;
- var cy;
+ var xe;
+ var ye;
+ var x;
+ var y;
- cx = new Complex128Array( [
+ x = new Complex128Array([
1.0, // 1
2.0, // 1
3.0, // 2
@@ -219,8 +219,8 @@ tape( 'the function supports a `y` stride', opts, function test( t ) {
6.0,
7.0,
8.0
- ] );
- cy = new Complex128Array( [
+ ]);
+ y = new Complex128Array([
0.0, // 1
0.0, // 1
0.0,
@@ -229,12 +229,12 @@ tape( 'the function supports a `y` stride', opts, function test( t ) {
0.0, // 2
0.0,
0.0
- ] );
+ ]);
- viewX = new Float64Array( cx.buffer );
- viewY = new Float64Array( cy.buffer );
+ viewX = new Float64Array( x.buffer );
+ viewY = new Float64Array( y.buffer );
- cxe = new Float64Array( [
+ xe = new Float64Array([
0.8, // 1
1.6, // 1
2.4, // 2
@@ -243,8 +243,8 @@ tape( 'the function supports a `y` stride', opts, function test( t ) {
6.0,
7.0,
8.0
- ] );
- cye = new Float64Array( [
+ ]);
+ ye = new Float64Array([
-0.6, // 1
-1.2, // 1
0.0,
@@ -253,53 +253,53 @@ tape( 'the function supports a `y` stride', opts, function test( t ) {
-2.4, // 2
0.0,
0.0
- ] );
+ ]);
- out = zdrot( 2, cx, 1, cy, 2, 0.8, 0.6 );
- isApprox( t, viewX, cxe, 2.0 );
- isApprox( t, viewY, cye, 2.0 );
- t.strictEqual( out, cy, 'returns expected value' );
+ out = zdrot( 2, x, 1, y, 2, 0.8, 0.6 );
+ isApprox( t, viewX, xe, 2.0 );
+ isApprox( t, viewY, ye, 2.0 );
+ t.strictEqual( out, y, 'returns expected value' );
t.end();
});
tape( 'the function returns a reference to the destination array', opts, function test( t ) {
var out;
- var cx;
- var cy;
+ var x;
+ var y;
- cx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
- cy = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
+ x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ y = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
- out = zdrot( cx.length, cx, 1, cy, 1, 0.8, 0.6 );
+ out = zdrot( x.length, x, 1, y, 1, 0.8, 0.6 );
- t.strictEqual( out, cy, 'returns expected value' );
+ t.strictEqual( out, y, 'returns expected value' );
t.end();
});
tape( 'if provided an `N` parameter less than or equal to `0`, the function returns both vectors unchanged', opts, function test( t ) {
var viewX;
var viewY;
- var cxe;
- var cye;
- var cx;
- var cy;
+ var xe;
+ var ye;
+ var x;
+ var y;
- cx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
- cy = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
+ x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ y = new Complex128Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
- viewX = new Float64Array( cx.buffer );
- viewY = new Float64Array( cy.buffer );
+ viewX = new Float64Array( x.buffer );
+ viewY = new Float64Array( y.buffer );
- cxe = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
- cye = new Float64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
+ xe = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ ye = new Float64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
- zdrot( -1, cx, 1, cy, 1, 0.8, 0.6 );
- t.deepEqual( viewX, cxe, 'returns expected value' );
- t.deepEqual( viewY, cye, 'returns expected value' );
+ zdrot( -1, x, 1, y, 1, 0.8, 0.6 );
+ t.deepEqual( viewX, xe, 'returns expected value' );
+ t.deepEqual( viewY, ye, 'returns expected value' );
- zdrot( 0, cx, 1, cy, 1, 0.8, 0.6 );
- t.deepEqual( viewX, cxe, 'returns expected value' );
- t.deepEqual( viewY, cye, 'returns expected value' );
+ zdrot( 0, x, 1, y, 1, 0.8, 0.6 );
+ t.deepEqual( viewX, xe, 'returns expected value' );
+ t.deepEqual( viewY, ye, 'returns expected value' );
t.end();
});
@@ -307,13 +307,13 @@ tape( 'if provided an `N` parameter less than or equal to `0`, the function retu
tape( 'the function supports negative strides', opts, function test( t ) {
var viewX;
var viewY;
- var cxe;
- var cye;
var out;
- var cx;
- var cy;
+ var xe;
+ var ye;
+ var x;
+ var y;
- cx = new Complex128Array( [
+ x = new Complex128Array([
1.0, // 2
2.0, // 2
3.0, // 1
@@ -322,8 +322,8 @@ tape( 'the function supports negative strides', opts, function test( t ) {
6.0,
7.0,
8.0
- ] );
- cy = new Complex128Array( [
+ ]);
+ y = new Complex128Array([
0.0, // 2
0.0, // 2
0.0,
@@ -332,12 +332,12 @@ tape( 'the function supports negative strides', opts, function test( t ) {
0.0, // 1
0.0,
0.0
- ] );
+ ]);
- viewX = new Float64Array( cx.buffer );
- viewY = new Float64Array( cy.buffer );
+ viewX = new Float64Array( x.buffer );
+ viewY = new Float64Array( y.buffer );
- cxe = new Float64Array( [
+ xe = new Float64Array([
0.8, // 2
1.6, // 2
2.4, // 1
@@ -346,8 +346,8 @@ tape( 'the function supports negative strides', opts, function test( t ) {
6.0,
7.0,
8.0
- ] );
- cye = new Float64Array( [
+ ]);
+ ye = new Float64Array([
-0.6, // 2
-1.2, // 2
0.0,
@@ -356,25 +356,25 @@ tape( 'the function supports negative strides', opts, function test( t ) {
-2.4, // 1
0.0,
0.0
- ] );
+ ]);
- out = zdrot( 2, cx, -1, cy, -2, 0.8, 0.6 );
- isApprox( t, viewX, cxe, 2.0 );
- isApprox( t, viewY, cye, 2.0 );
- t.strictEqual( out, cy, 'returns expected value' );
+ out = zdrot( 2, x, -1, y, -2, 0.8, 0.6 );
+ isApprox( t, viewX, xe, 2.0 );
+ isApprox( t, viewY, ye, 2.0 );
+ t.strictEqual( out, y, 'returns expected value' );
t.end();
});
tape( 'the function supports complex access patterns', opts, function test( t ) {
var viewX;
var viewY;
- var cxe;
- var cye;
var out;
- var cx;
- var cy;
+ var xe;
+ var ye;
+ var x;
+ var y;
- cx = new Complex128Array( [
+ x = new Complex128Array([
1.0, // 1
2.0, // 1
3.0,
@@ -383,8 +383,8 @@ tape( 'the function supports complex access patterns', opts, function test( t )
6.0, // 2
7.0,
8.0
- ] );
- cy = new Complex128Array( [
+ ]);
+ y = new Complex128Array([
0.0, // 2
0.0, // 2
0.0, // 1
@@ -393,12 +393,12 @@ tape( 'the function supports complex access patterns', opts, function test( t )
0.0,
0.0,
0.0
- ] );
+ ]);
- viewX = new Float64Array( cx.buffer );
- viewY = new Float64Array( cy.buffer );
+ viewX = new Float64Array( x.buffer );
+ viewY = new Float64Array( y.buffer );
- cxe = new Float64Array( [
+ xe = new Float64Array([
0.8, // 1
1.6, // 1
3.0,
@@ -407,8 +407,8 @@ tape( 'the function supports complex access patterns', opts, function test( t )
4.8, // 2
7.0,
8.0
- ] );
- cye = new Float64Array( [
+ ]);
+ ye = new Float64Array([
-3.0, // 2
-3.6, // 2
-0.6, // 1
@@ -417,28 +417,28 @@ tape( 'the function supports complex access patterns', opts, function test( t )
0.0,
0.0,
0.0
- ] );
+ ]);
- out = zdrot( 2, cx, 2, cy, -1, 0.8, 0.6 );
- isApprox( t, viewX, cxe, 2.0 );
- isApprox( t, viewY, cye, 2.0 );
- t.strictEqual( out, cy, 'returns expected value' );
+ out = zdrot( 2, x, 2, y, -1, 0.8, 0.6 );
+ isApprox( t, viewX, xe, 2.0 );
+ isApprox( t, viewY, ye, 2.0 );
+ t.strictEqual( out, y, 'returns expected value' );
t.end();
});
tape( 'the function supports view offsets', opts, function test( t ) {
var viewX;
var viewY;
- var cx0;
- var cy0;
- var cx1;
- var cy1;
- var cxe;
- var cye;
var out;
+ var x0;
+ var y0;
+ var x1;
+ var y1;
+ var xe;
+ var ye;
// Initial arrays...
- cx0 = new Complex128Array([
+ x0 = new Complex128Array([
1.0,
2.0,
3.0, // 2
@@ -448,7 +448,7 @@ tape( 'the function supports view offsets', opts, function test( t ) {
7.0, // 1
8.0 // 1
]);
- cy0 = new Complex128Array([
+ y0 = new Complex128Array([
0.0,
0.0,
0.0,
@@ -460,13 +460,13 @@ tape( 'the function supports view offsets', opts, function test( t ) {
]);
// Create offset views...
- cx1 = new Complex128Array( cx0.buffer, cx0.BYTES_PER_ELEMENT*1 ); // begin at the 2nd element
- cy1 = new Complex128Array( cy0.buffer, cy0.BYTES_PER_ELEMENT*2 ); // begin at the 3rd element
+ x1 = new Complex128Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // begin at the 2nd element
+ y1 = new Complex128Array( y0.buffer, y0.BYTES_PER_ELEMENT*2 ); // begin at the 3rd element
- viewX = new Float64Array( cx0.buffer );
- viewY = new Float64Array( cy0.buffer );
+ viewX = new Float64Array( x0.buffer );
+ viewY = new Float64Array( y0.buffer );
- cxe = new Float64Array( [
+ xe = new Float64Array([
1.0,
2.0,
2.4, // 2
@@ -475,8 +475,8 @@ tape( 'the function supports view offsets', opts, function test( t ) {
6.0,
5.6, // 1
6.4 // 1
- ] );
- cye = new Float64Array( [
+ ]);
+ ye = new Float64Array([
0.0,
0.0,
0.0,
@@ -485,11 +485,11 @@ tape( 'the function supports view offsets', opts, function test( t ) {
-4.8, // 1
-1.8, // 2
-2.4 // 2
- ] );
+ ]);
- out = zdrot( 2, cx1, -2, cy1, 1, 0.8, 0.6 );
- isApprox( t, viewX, cxe, 2.0 );
- isApprox( t, viewY, cye, 2.0 );
- t.strictEqual( out, cy1, 'returns expected value' );
+ out = zdrot( 2, x1, -2, y1, 1, 0.8, 0.6 );
+ isApprox( t, viewX, xe, 2.0 );
+ isApprox( t, viewY, ye, 2.0 );
+ t.strictEqual( out, y1, 'returns expected value' );
t.end();
});