diff --git a/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/README.md b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/README.md
new file mode 100644
index 000000000000..ede0f916dc33
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/README.md
@@ -0,0 +1,340 @@
+
+
+# ccopyWithin
+
+> Perform an in-place copy of elements within a single-precision complex floating-point strided array.
+
+
+
+## Usage
+
+```javascript
+var ccopyWithin = require( '@stdlib/blas/ext/base/ccopy-within' );
+```
+
+#### ccopyWithin( N, target, start, end, x, strideX, workspace, strideW )
+
+Performs an in-place copy of elements within a single-precision complex floating-point strided array.
+
+```javascript
+var Complex64Array = require( '@stdlib/array/complex64' );
+
+var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+var w = new Complex64Array( x.length );
+
+ccopyWithin( x.length, 2, 0, 2, x, 1, w, 1 );
+// x => [ 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0 ]
+```
+
+The function has the following parameters:
+
+- **N**: number of indexed elements.
+- **target**: target index.
+- **start**: source start index (inclusive).
+- **end**: source end index (exclusive).
+- **x**: input [`Complex64Array`][@stdlib/array/complex64].
+- **strideX**: stride length for `x`.
+- **workspace**: workspace [`Complex64Array`][@stdlib/array/complex64]. Must have at least `N` indexed elements.
+- **strideW**: stride length for `workspace`.
+
+The `N` and stride parameters determine which elements in the strided array are accessed at runtime. For example, to copy every other element:
+
+```javascript
+var Complex64Array = require( '@stdlib/array/complex64' );
+
+var x = new Complex64Array( [ 1.0, 2.0, 0.0, 0.0, 3.0, 4.0, 0.0, 0.0 ] );
+var w = new Complex64Array( 2 );
+
+ccopyWithin( 2, 0, 1, 2, x, 2, w, 1 );
+// x => [ 3.0, 4.0, 0.0, 0.0, 3.0, 4.0, 0.0, 0.0 ]
+```
+
+Note that indexing is relative to the first index. To introduce an offset, use [`typed array`][mdn-typed-array] views.
+
+```javascript
+var Complex64Array = require( '@stdlib/array/complex64' );
+
+// Initial array...
+var x0 = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+
+// Create an offset view...
+var x1 = new Complex64Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // start at 2nd element
+
+// Create a workspace array...
+var w = new Complex64Array( 3 );
+
+// Copy within the view...
+ccopyWithin( 3, 0, 1, 3, x1, 1, w, 1 );
+// x0 => [ 1.0, 2.0, 5.0, 6.0, 7.0, 8.0, 7.0, 8.0 ]
+```
+
+
+
+#### ccopyWithin.ndarray( N, target, start, end, x, strideX, offsetX, workspace, strideW, offsetW )
+
+
+
+Performs an in-place copy of elements within a single-precision complex floating-point strided array using alternative indexing semantics.
+
+```javascript
+var Complex64Array = require( '@stdlib/array/complex64' );
+
+var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+var w = new Complex64Array( x.length );
+
+ccopyWithin.ndarray( x.length, 2, 0, 2, x, 1, 0, w, 1, 0 );
+// x => [ 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0 ]
+```
+
+The function has the following additional parameters:
+
+- **offsetX**: starting index for `x`.
+- **offsetW**: starting index for `workspace`.
+
+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 copy elements starting from the third element:
+
+```javascript
+var Complex64Array = require( '@stdlib/array/complex64' );
+
+var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+var w = new Complex64Array( 2 );
+
+ccopyWithin.ndarray( 2, 1, 0, 1, x, 1, 2, w, 1, 0 );
+// x => [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 5.0, 6.0 ]
+```
+
+
+
+
+
+
+
+## Notes
+
+- If `N <= 0`, both functions return the strided array unchanged.
+- If `target >= N`, both functions return the strided array unchanged.
+- If `start >= end`, both functions return the strided array unchanged.
+- If the `start` and `target` index ranges do not overlap, the `workspace` array is unused and thus ignored.
+- Both functions **mutate** the provided input strided array.
+
+
+
+
+
+
+
+## Examples
+
+
+
+```javascript
+var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
+var Complex64Array = require( '@stdlib/array/complex64' );
+var logEach = require( '@stdlib/console/log-each' );
+var zeros = require( '@stdlib/array/zeros' );
+var ccopyWithin = require( '@stdlib/blas/ext/base/ccopy-within' );
+
+var xbuf = discreteUniform( 20, 0, 500, {
+ 'dtype': 'float32'
+});
+var x = new Complex64Array( xbuf );
+logEach( '%s', x );
+
+var w = zeros( 10, 'complex64' );
+
+ccopyWithin( 10, 5, 0, 3, x, 1, w, 1 );
+logEach( '%s', x );
+```
+
+
+
+
+
+
+
+* * *
+
+
+
+## C APIs
+
+
+
+
+
+
+
+
+
+
+
+### Usage
+
+```c
+#include "stdlib/blas/ext/base/ccopy_within.h"
+```
+
+
+
+#### stdlib_strided_ccopy_within( N, target, start, end, \*X, strideX, \*W, strideW )
+
+
+
+Performs an in-place copy of elements within a single-precision complex floating-point strided array.
+
+```c
+#include "stdlib/complex/float32/ctor.h"
+
+float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
+float w[ 8 ];
+
+stdlib_strided_ccopy_within( 4, 2, 0, 2, (stdlib_complex64_t *)x, 1, (stdlib_complex64_t *)w, 1 );
+```
+
+The function accepts the following arguments:
+
+- **N**: `[in] CBLAS_INT` number of indexed elements.
+- **target**: `[in] CBLAS_INT` target index.
+- **start**: `[in] CBLAS_INT` source start index (inclusive).
+- **end**: `[in] CBLAS_INT` source end index (exclusive).
+- **X**: `[inout] stdlib_complex64_t*` input array.
+- **strideX**: `[in] CBLAS_INT` stride length for `X`.
+- **W**: `[out] stdlib_complex64_t*` workspace array. Must have at least `N` indexed elements.
+- **strideW**: `[in] CBLAS_INT` stride length for `W`.
+
+```c
+void stdlib_strided_ccopy_within( const CBLAS_INT N, const CBLAS_INT target, const CBLAS_INT start, const CBLAS_INT end, stdlib_complex64_t *X, const CBLAS_INT strideX, stdlib_complex64_t *W, const CBLAS_INT strideW );
+```
+
+
+
+#### stdlib_strided_ccopy_within_ndarray( N, target, start, end, \*X, strideX, offsetX, \*W, strideW, offsetW )
+
+
+
+Performs an in-place copy of elements within a single-precision complex floating-point strided array using alternative indexing semantics.
+
+```c
+#include "stdlib/complex/float32/ctor.h"
+
+float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
+float w[ 8 ];
+
+stdlib_strided_ccopy_within_ndarray( 3, 2, 0, 2, (stdlib_complex64_t *)x, 1, 1, (stdlib_complex64_t *)w, 1, 0 );
+```
+
+The function accepts the following arguments:
+
+- **N**: `[in] CBLAS_INT` number of indexed elements.
+- **target**: `[in] CBLAS_INT` target index.
+- **start**: `[in] CBLAS_INT` source start index (inclusive).
+- **end**: `[in] CBLAS_INT` source end index (exclusive).
+- **X**: `[inout] stdlib_complex64_t*` input array.
+- **strideX**: `[in] CBLAS_INT` stride length for `X`.
+- **offsetX**: `[in] CBLAS_INT` starting index for `X`.
+- **W**: `[out] stdlib_complex64_t*` workspace array. Must have at least `N` indexed elements.
+- **strideW**: `[in] CBLAS_INT` stride length for `W`.
+- **offsetW**: `[in] CBLAS_INT` starting index for `W`.
+
+```c
+void stdlib_strided_ccopy_within_ndarray( const CBLAS_INT N, const CBLAS_INT target, const CBLAS_INT start, const CBLAS_INT end, stdlib_complex64_t *X, const CBLAS_INT strideX, const CBLAS_INT offsetX, stdlib_complex64_t *W, const CBLAS_INT strideW, const CBLAS_INT offsetW );
+```
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+### Examples
+
+```c
+#include "stdlib/blas/ext/base/ccopy_within.h"
+#include "stdlib/complex/float32/ctor.h"
+#include
+
+int main( void ) {
+ // Create a strided array:
+ float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
+
+ // Create a workspace array:
+ float w[ 8 ];
+
+ // Specify the number of indexed elements:
+ const int N = 4;
+
+ // Specify strides:
+ const int strideX = 1;
+ const int strideW = 1;
+
+ // Copy elements:
+ stdlib_strided_ccopy_within( N, 2, 0, 2, (stdlib_complex64_t *)x, strideX, (stdlib_complex64_t *)w, strideW );
+
+ // Print the result:
+ for ( int i = 0; i < 8; i += 2 ) {
+ printf( "x[ %i ] = %f + %fi\n", i/2, x[ i ], x[ i+1 ] );
+ }
+}
+```
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+[@stdlib/array/complex64]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/array/complex64
+
+[mdn-typed-array]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray
+
+
+
+
+
+
+
+
diff --git a/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/benchmark/benchmark.js
new file mode 100644
index 000000000000..26e6a41b5a82
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/benchmark/benchmark.js
@@ -0,0 +1,111 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var bench = require( '@stdlib/bench' );
+var uniform = require( '@stdlib/random/array/uniform' );
+var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
+var pow = require( '@stdlib/math/base/special/pow' );
+var Complex64Array = require( '@stdlib/array/complex64' );
+var format = require( '@stdlib/string/format' );
+var pkg = require( './../package.json' ).name;
+var ccopyWithin = require( './../lib/ccopy_within.js' );
+
+
+// VARIABLES //
+
+var options = {
+ 'dtype': 'float32'
+};
+
+
+// FUNCTIONS //
+
+/**
+* Creates a benchmark function.
+*
+* @private
+* @param {PositiveInteger} len - array length
+* @returns {Function} benchmark function
+*/
+function createBenchmark( len ) {
+ var xbuf;
+ var wbuf;
+ var x;
+ var w;
+
+ xbuf = uniform( len*2, -100.0, 100.0, options );
+ wbuf = uniform( len*2, -100.0, 100.0, options );
+ x = new Complex64Array( xbuf.buffer );
+ w = new Complex64Array( wbuf.buffer );
+ return benchmark;
+
+ /**
+ * Benchmark function.
+ *
+ * @private
+ * @param {Benchmark} b - benchmark instance
+ */
+ function benchmark( b ) {
+ var i;
+
+ b.tic();
+ for ( i = 0; i < b.iterations; i++ ) {
+ ccopyWithin( len, 0, 0, len - 1, x, 1, w, 1 );
+ if ( isnanf( xbuf[ i%(len*2) ] ) ) {
+ b.fail( 'should not return NaN' );
+ }
+ }
+ b.toc();
+ if ( isnanf( xbuf[ i%(len*2) ] ) ) {
+ b.fail( 'should not return NaN' );
+ }
+ b.pass( 'benchmark finished' );
+ b.end();
+ }
+}
+
+
+// MAIN //
+
+/**
+* Main execution sequence.
+*
+* @private
+*/
+function main() {
+ var len;
+ var min;
+ var max;
+ var f;
+ var i;
+
+ min = 1; // 10^min
+ max = 6; // 10^max
+
+ for ( i = min; i <= max; i++ ) {
+ len = pow( 10, i );
+ f = createBenchmark( len );
+ bench( format( '%s:len=%d', pkg, len ), f );
+ }
+}
+
+main();
diff --git a/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/benchmark/benchmark.native.js
new file mode 100644
index 000000000000..625a5a57a10f
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/benchmark/benchmark.native.js
@@ -0,0 +1,116 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var resolve = require( 'path' ).resolve;
+var bench = require( '@stdlib/bench' );
+var uniform = require( '@stdlib/random/array/uniform' );
+var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
+var pow = require( '@stdlib/math/base/special/pow' );
+var Complex64Array = require( '@stdlib/array/complex64' );
+var format = require( '@stdlib/string/format' );
+var tryRequire = require( '@stdlib/utils/try-require' );
+var pkg = require( './../package.json' ).name;
+
+
+// VARIABLES //
+
+var ccopyWithin = tryRequire( resolve( __dirname, './../lib/ccopy_within.native.js' ) );
+var opts = {
+ 'skip': ( ccopyWithin instanceof Error )
+};
+var options = {
+ 'dtype': 'float32'
+};
+
+
+// FUNCTIONS //
+
+/**
+* Creates a benchmark function.
+*
+* @private
+* @param {PositiveInteger} len - array length
+* @returns {Function} benchmark function
+*/
+function createBenchmark( len ) {
+ var xbuf;
+ var wbuf;
+ var x;
+ var w;
+
+ xbuf = uniform( len*2, -100.0, 100.0, options );
+ wbuf = uniform( len*2, -100.0, 100.0, options );
+ x = new Complex64Array( xbuf.buffer );
+ w = new Complex64Array( wbuf.buffer );
+ return benchmark;
+
+ /**
+ * Benchmark function.
+ *
+ * @private
+ * @param {Benchmark} b - benchmark instance
+ */
+ function benchmark( b ) {
+ var i;
+
+ b.tic();
+ for ( i = 0; i < b.iterations; i++ ) {
+ ccopyWithin( len, 0, 0, len - 1, x, 1, w, 1 );
+ if ( isnanf( xbuf[ i%(len*2) ] ) ) {
+ b.fail( 'should not return NaN' );
+ }
+ }
+ b.toc();
+ if ( isnanf( xbuf[ i%(len*2) ] ) ) {
+ b.fail( 'should not return NaN' );
+ }
+ b.pass( 'benchmark finished' );
+ b.end();
+ }
+}
+
+
+// MAIN //
+
+/**
+* Main execution sequence.
+*
+* @private
+*/
+function main() {
+ var len;
+ var min;
+ var max;
+ var f;
+ var i;
+
+ min = 1; // 10^min
+ max = 6; // 10^max
+
+ for ( i = min; i <= max; i++ ) {
+ len = pow( 10, i );
+ f = createBenchmark( len );
+ bench( format( '%s::native:len=%d', pkg, len ), opts, f );
+ }
+}
+
+main();
diff --git a/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/benchmark/benchmark.ndarray.js
new file mode 100644
index 000000000000..f13dec4bc936
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/benchmark/benchmark.ndarray.js
@@ -0,0 +1,111 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var bench = require( '@stdlib/bench' );
+var uniform = require( '@stdlib/random/array/uniform' );
+var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
+var pow = require( '@stdlib/math/base/special/pow' );
+var Complex64Array = require( '@stdlib/array/complex64' );
+var format = require( '@stdlib/string/format' );
+var pkg = require( './../package.json' ).name;
+var ccopyWithin = require( './../lib/ndarray.js' );
+
+
+// VARIABLES //
+
+var options = {
+ 'dtype': 'float32'
+};
+
+
+// FUNCTIONS //
+
+/**
+* Creates a benchmark function.
+*
+* @private
+* @param {PositiveInteger} len - array length
+* @returns {Function} benchmark function
+*/
+function createBenchmark( len ) {
+ var xbuf;
+ var wbuf;
+ var x;
+ var w;
+
+ xbuf = uniform( len*2, -100.0, 100.0, options );
+ wbuf = uniform( len*2, -100.0, 100.0, options );
+ x = new Complex64Array( xbuf.buffer );
+ w = new Complex64Array( wbuf.buffer );
+ return benchmark;
+
+ /**
+ * Benchmark function.
+ *
+ * @private
+ * @param {Benchmark} b - benchmark instance
+ */
+ function benchmark( b ) {
+ var i;
+
+ b.tic();
+ for ( i = 0; i < b.iterations; i++ ) {
+ ccopyWithin( len, 0, 0, len - 1, x, 1, 0, w, 1, 0 );
+ if ( isnanf( xbuf[ i%(len*2) ] ) ) {
+ b.fail( 'should not return NaN' );
+ }
+ }
+ b.toc();
+ if ( isnanf( xbuf[ i%(len*2) ] ) ) {
+ b.fail( 'should not return NaN' );
+ }
+ b.pass( 'benchmark finished' );
+ b.end();
+ }
+}
+
+
+// MAIN //
+
+/**
+* Main execution sequence.
+*
+* @private
+*/
+function main() {
+ var len;
+ var min;
+ var max;
+ var f;
+ var i;
+
+ min = 1; // 10^min
+ max = 6; // 10^max
+
+ for ( i = min; i <= max; i++ ) {
+ len = pow( 10, i );
+ f = createBenchmark( len );
+ bench( format( '%s:ndarray:len=%d', pkg, len ), f );
+ }
+}
+
+main();
diff --git a/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/benchmark/benchmark.ndarray.native.js
new file mode 100644
index 000000000000..cc3e824c8919
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/benchmark/benchmark.ndarray.native.js
@@ -0,0 +1,116 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var resolve = require( 'path' ).resolve;
+var bench = require( '@stdlib/bench' );
+var uniform = require( '@stdlib/random/array/uniform' );
+var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
+var pow = require( '@stdlib/math/base/special/pow' );
+var Complex64Array = require( '@stdlib/array/complex64' );
+var format = require( '@stdlib/string/format' );
+var tryRequire = require( '@stdlib/utils/try-require' );
+var pkg = require( './../package.json' ).name;
+
+
+// VARIABLES //
+
+var ccopyWithin = tryRequire( resolve( __dirname, './../lib/ndarray.native.js' ) );
+var opts = {
+ 'skip': ( ccopyWithin instanceof Error )
+};
+var options = {
+ 'dtype': 'float32'
+};
+
+
+// FUNCTIONS //
+
+/**
+* Creates a benchmark function.
+*
+* @private
+* @param {PositiveInteger} len - array length
+* @returns {Function} benchmark function
+*/
+function createBenchmark( len ) {
+ var xbuf;
+ var wbuf;
+ var x;
+ var w;
+
+ xbuf = uniform( len*2, -100.0, 100.0, options );
+ wbuf = uniform( len*2, -100.0, 100.0, options );
+ x = new Complex64Array( xbuf.buffer );
+ w = new Complex64Array( wbuf.buffer );
+ return benchmark;
+
+ /**
+ * Benchmark function.
+ *
+ * @private
+ * @param {Benchmark} b - benchmark instance
+ */
+ function benchmark( b ) {
+ var i;
+
+ b.tic();
+ for ( i = 0; i < b.iterations; i++ ) {
+ ccopyWithin( len, 0, 0, len - 1, x, 1, 0, w, 1, 0 );
+ if ( isnanf( xbuf[ i%(len*2) ] ) ) {
+ b.fail( 'should not return NaN' );
+ }
+ }
+ b.toc();
+ if ( isnanf( xbuf[ i%(len*2) ] ) ) {
+ b.fail( 'should not return NaN' );
+ }
+ b.pass( 'benchmark finished' );
+ b.end();
+ }
+}
+
+
+// MAIN //
+
+/**
+* Main execution sequence.
+*
+* @private
+*/
+function main() {
+ var len;
+ var min;
+ var max;
+ var f;
+ var i;
+
+ min = 1; // 10^min
+ max = 6; // 10^max
+
+ for ( i = min; i <= max; i++ ) {
+ len = pow( 10, i );
+ f = createBenchmark( len );
+ bench( format( '%s::native:ndarray:len=%d', pkg, len ), opts, f );
+ }
+}
+
+main();
diff --git a/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/benchmark/c/Makefile b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/benchmark/c/Makefile
new file mode 100644
index 000000000000..0756dc7da20a
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/benchmark/c/Makefile
@@ -0,0 +1,146 @@
+#/
+# @license Apache-2.0
+#
+# Copyright (c) 2026 The Stdlib Authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#/
+
+# VARIABLES #
+
+ifndef VERBOSE
+ QUIET := @
+else
+ QUIET :=
+endif
+
+# Determine the OS ([1][1], [2][2]).
+#
+# [1]: https://en.wikipedia.org/wiki/Uname#Examples
+# [2]: http://stackoverflow.com/a/27776822/2225624
+OS ?= $(shell uname)
+ifneq (, $(findstring MINGW,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring MSYS,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring CYGWIN,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring Windows_NT,$(OS)))
+ OS := WINNT
+endif
+endif
+endif
+endif
+
+# Define the program used for compiling C source files:
+ifdef C_COMPILER
+ CC := $(C_COMPILER)
+else
+ CC := gcc
+endif
+
+# Define the command-line options when compiling C files:
+CFLAGS ?= \
+ -std=c99 \
+ -O3 \
+ -Wall \
+ -pedantic
+
+# Determine whether to generate position independent code ([1][1], [2][2]).
+#
+# [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options
+# [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option
+ifeq ($(OS), WINNT)
+ fPIC ?=
+else
+ fPIC ?= -fPIC
+endif
+
+# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`):
+INCLUDE ?=
+
+# List of source files:
+SOURCE_FILES ?=
+
+# List of libraries (e.g., `-lopenblas -lpthread`):
+LIBRARIES ?=
+
+# List of library paths (e.g., `-L /foo/bar -L /beep/boop`):
+LIBPATH ?=
+
+# List of C targets:
+c_targets := benchmark.length.out
+
+
+# RULES #
+
+#/
+# Compiles source files.
+#
+# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`)
+# @param {string} [CFLAGS] - C compiler options
+# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`)
+# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`)
+# @param {string} [SOURCE_FILES] - list of source files
+# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`)
+# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`)
+#
+# @example
+# make
+#
+# @example
+# make all
+#/
+all: $(c_targets)
+
+.PHONY: all
+
+#/
+# Compiles C source files.
+#
+# @private
+# @param {string} CC - C compiler (e.g., `gcc`)
+# @param {string} CFLAGS - C compiler options
+# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`)
+# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`)
+# @param {string} SOURCE_FILES - list of source files
+# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`)
+# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`)
+#/
+$(c_targets): %.out: %.c
+ $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES)
+
+#/
+# Runs compiled benchmarks.
+#
+# @example
+# make run
+#/
+run: $(c_targets)
+ $(QUIET) ./$<
+
+.PHONY: run
+
+#/
+# Removes generated files.
+#
+# @example
+# make clean
+#/
+clean:
+ $(QUIET) -rm -f *.o *.out
+
+.PHONY: clean
diff --git a/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/benchmark/c/benchmark.length.c
new file mode 100644
index 000000000000..64ae85eae775
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/benchmark/c/benchmark.length.c
@@ -0,0 +1,201 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+#include "stdlib/blas/ext/base/ccopy_within.h"
+#include "stdlib/complex/float32/ctor.h"
+#include "stdlib/blas/base/shared.h"
+#include
+#include
+#include
+#include
+#include
+
+#define NAME "ccopy_within"
+#define ITERATIONS 10000000
+#define REPEATS 3
+#define MIN 1
+#define MAX 6
+
+/**
+* Prints the TAP version.
+*/
+static void print_version( void ) {
+ printf( "TAP version 13\n" );
+}
+
+/**
+* Prints the TAP summary.
+*
+* @param total total number of tests
+* @param passing total number of passing tests
+*/
+static void print_summary( int total, int passing ) {
+ printf( "#\n" );
+ printf( "1..%d\n", total ); // TAP plan
+ printf( "# total %d\n", total );
+ printf( "# pass %d\n", passing );
+ printf( "#\n" );
+ printf( "# ok\n" );
+}
+
+/**
+* Prints benchmarks results.
+*
+* @param iterations number of iterations
+* @param elapsed elapsed time in seconds
+*/
+static void print_results( int iterations, double elapsed ) {
+ double rate = (double)iterations / elapsed;
+ printf( " ---\n" );
+ printf( " iterations: %d\n", iterations );
+ printf( " elapsed: %0.9f\n", elapsed );
+ printf( " rate: %0.9f\n", rate );
+ printf( " ...\n" );
+}
+
+/**
+* Returns a clock time.
+*
+* @return clock time
+*/
+static double tic( void ) {
+ struct timeval now;
+ gettimeofday( &now, NULL );
+ return (double)now.tv_sec + (double)now.tv_usec/1.0e6;
+}
+
+/**
+* Generates a random number on the interval [0,1).
+*
+* @return random number
+*/
+static float rand_float( void ) {
+ int r = rand();
+ return (float)r / ( (float)RAND_MAX + 1.0f );
+}
+
+/**
+* Runs a benchmark.
+*
+* @param iterations number of iterations
+* @param len array length
+* @return elapsed time in seconds
+*/
+static double benchmark1( int iterations, int len ) {
+ double elapsed;
+ float *x;
+ float *w;
+ double t;
+ int i;
+
+ x = (float *)malloc( len * 2 * sizeof( float ) );
+ w = (float *)malloc( len * 2 * sizeof( float ) );
+ for ( i = 0; i < len * 2; i++ ) {
+ x[ i ] = ( rand_float()*200.0f ) - 100.0f;
+ w[ i ] = 0.0f;
+ }
+ t = tic();
+ for ( i = 0; i < iterations; i++ ) {
+ API_SUFFIX(stdlib_strided_ccopy_within)( len, 0, 0, len - 1, (stdlib_complex64_t *)x, 1, (stdlib_complex64_t *)w, 1 );
+ if ( x[ 0 ] != x[ 0 ] ) {
+ printf( "should not return NaN\n" );
+ break;
+ }
+ }
+ elapsed = tic() - t;
+ if ( x[ 0 ] != x[ 0 ] ) {
+ printf( "should not return NaN\n" );
+ }
+ free( x );
+ free( w );
+ return elapsed;
+}
+
+/**
+* Runs a benchmark.
+*
+* @param iterations number of iterations
+* @param len array length
+* @return elapsed time in seconds
+*/
+static double benchmark2( int iterations, int len ) {
+ double elapsed;
+ float *x;
+ float *w;
+ double t;
+ int i;
+
+ x = (float *)malloc( len * 2 * sizeof( float ) );
+ w = (float *)malloc( len * 2 * sizeof( float ) );
+ for ( i = 0; i < len * 2; i++ ) {
+ x[ i ] = ( rand_float()*200.0f ) - 100.0f;
+ w[ i ] = 0.0f;
+ }
+ t = tic();
+ for ( i = 0; i < iterations; i++ ) {
+ API_SUFFIX(stdlib_strided_ccopy_within_ndarray)( len, 0, 0, len - 1, (stdlib_complex64_t *)x, 1, 0, (stdlib_complex64_t *)w, 1, 0 );
+ if ( x[ 0 ] != x[ 0 ] ) {
+ printf( "should not return NaN\n" );
+ break;
+ }
+ }
+ elapsed = tic() - t;
+ if ( x[ 0 ] != x[ 0 ] ) {
+ printf( "should not return NaN\n" );
+ }
+ free( x );
+ free( w );
+ return elapsed;
+}
+
+/**
+* Main execution sequence.
+*/
+int main( void ) {
+ double elapsed;
+ int count;
+ int iter;
+ int len;
+ int i;
+ int j;
+
+ // Use the current time to seed the random number generator:
+ srand( time( NULL ) );
+
+ print_version();
+ count = 0;
+ for ( i = MIN; i <= MAX; i++ ) {
+ len = pow( 10, i );
+ iter = ITERATIONS / pow( 10, i-1 );
+ for ( j = 0; j < REPEATS; j++ ) {
+ count += 1;
+ printf( "# c::%s:len=%d\n", NAME, len );
+ elapsed = benchmark1( iter, len );
+ print_results( iter, elapsed );
+ printf( "ok %d benchmark finished\n", count );
+ }
+ for ( j = 0; j < REPEATS; j++ ) {
+ count += 1;
+ printf( "# c::%s:ndarray:len=%d\n", NAME, len );
+ elapsed = benchmark2( iter, len );
+ print_results( iter, elapsed );
+ printf( "ok %d benchmark finished\n", count );
+ }
+ }
+ print_summary( count, count );
+}
diff --git a/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/binding.gyp b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/binding.gyp
new file mode 100644
index 000000000000..60dce9d0b31a
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/binding.gyp
@@ -0,0 +1,265 @@
+# @license Apache-2.0
+#
+# Copyright (c) 2026 The Stdlib Authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# A `.gyp` file for building a Node.js native add-on.
+#
+# [1]: https://gyp.gsrc.io/docs/InputFormatReference.md
+# [2]: https://gyp.gsrc.io/docs/UserDocumentation.md
+{
+ # List of files to include in this file:
+ 'includes': [
+ './include.gypi',
+ ],
+
+ # Define variables to be used throughout the configuration for all targets:
+ 'variables': {
+ # Target name should match the add-on export name:
+ 'addon_target_name%': 'addon',
+
+ # Fortran compiler (to override -Dfortran_compiler=):
+ 'fortran_compiler%': 'gfortran',
+
+ # Fortran compiler flags:
+ 'fflags': [
+ # Specify the Fortran standard to which a program is expected to conform:
+ '-std=f95',
+
+ # Indicate that the layout is free-form source code:
+ '-ffree-form',
+
+ # Aggressive optimization:
+ '-O3',
+
+ # Enable commonly used warning options:
+ '-Wall',
+
+ # Warn if source code contains problematic language features:
+ '-Wextra',
+
+ # Warn if a procedure is called without an explicit interface:
+ '-Wimplicit-interface',
+
+ # Do not transform names of entities specified in Fortran source files by appending underscores (i.e., don't mangle names, thus allowing easier usage in C wrappers):
+ '-fno-underscoring',
+
+ # Warn if source code contains Fortran 95 extensions and C-language constructs:
+ '-pedantic',
+
+ # Compile but do not link (output is an object file):
+ '-c',
+ ],
+
+ # Set variables based on the host OS:
+ 'conditions': [
+ [
+ 'OS=="win"',
+ {
+ # Define the object file suffix:
+ 'obj': 'obj',
+ },
+ {
+ # Define the object file suffix:
+ 'obj': 'o',
+ }
+ ], # end condition (OS=="win")
+ ], # end conditions
+ }, # end variables
+
+ # Define compile targets:
+ 'targets': [
+
+ # Target to generate an add-on:
+ {
+ # The target name should match the add-on export name:
+ 'target_name': '<(addon_target_name)',
+
+ # Define dependencies:
+ 'dependencies': [],
+
+ # Define directories which contain relevant include headers:
+ 'include_dirs': [
+ # Local include directory:
+ '<@(include_dirs)',
+ ],
+
+ # List of source files:
+ 'sources': [
+ '<@(src_files)',
+ ],
+
+ # Settings which should be applied when a target's object files are used as linker input:
+ 'link_settings': {
+ # Define libraries:
+ 'libraries': [
+ '<@(libraries)',
+ ],
+
+ # Define library directories:
+ 'library_dirs': [
+ '<@(library_dirs)',
+ ],
+ },
+
+ # C/C++ compiler flags:
+ 'cflags': [
+ # Enable commonly used warning options:
+ '-Wall',
+
+ # Aggressive optimization:
+ '-O3',
+ ],
+
+ # C specific compiler flags:
+ 'cflags_c': [
+ # Specify the C standard to which a program is expected to conform:
+ '-std=c99',
+ ],
+
+ # C++ specific compiler flags:
+ 'cflags_cpp': [
+ # Specify the C++ standard to which a program is expected to conform:
+ '-std=c++11',
+ ],
+
+ # Linker flags:
+ 'ldflags': [],
+
+ # Apply conditions based on the host OS:
+ 'conditions': [
+ [
+ 'OS=="mac"',
+ {
+ # Linker flags:
+ 'ldflags': [
+ '-undefined dynamic_lookup',
+ '-Wl,-no-pie',
+ '-Wl,-search_paths_first',
+ ],
+ },
+ ], # end condition (OS=="mac")
+ [
+ 'OS!="win"',
+ {
+ # C/C++ flags:
+ 'cflags': [
+ # Generate platform-independent code:
+ '-fPIC',
+ ],
+ },
+ ], # end condition (OS!="win")
+ ], # end conditions
+
+ # Define custom build actions for particular inputs:
+ 'rules': [
+ {
+ # Define a rule for processing Fortran files:
+ 'extension': 'f',
+
+ # Define the pathnames to be used as inputs when performing processing:
+ 'inputs': [
+ # Full path of the current input:
+ '<(RULE_INPUT_PATH)'
+ ],
+
+ # Define the outputs produced during processing:
+ 'outputs': [
+ # Store an output object file in a directory for placing intermediate results (only accessible within a single target):
+ '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).<(obj)'
+ ],
+
+ # Define the rule for compiling Fortran based on the host OS:
+ 'conditions': [
+ [
+ 'OS=="win"',
+
+ # Rule to compile Fortran on Windows:
+ {
+ 'rule_name': 'compile_fortran_windows',
+ 'message': 'Compiling Fortran file <(RULE_INPUT_PATH) on Windows...',
+
+ 'process_outputs_as_sources': 0,
+
+ # Define the command-line invocation:
+ 'action': [
+ '<(fortran_compiler)',
+ '<@(fflags)',
+ '<@(_inputs)',
+ '-o',
+ '<@(_outputs)',
+ ],
+ },
+
+ # Rule to compile Fortran on non-Windows:
+ {
+ 'rule_name': 'compile_fortran_linux',
+ 'message': 'Compiling Fortran file <(RULE_INPUT_PATH) on Linux...',
+
+ 'process_outputs_as_sources': 1,
+
+ # Define the command-line invocation:
+ 'action': [
+ '<(fortran_compiler)',
+ '<@(fflags)',
+ '-fPIC', # generate platform-independent code
+ '<@(_inputs)',
+ '-o',
+ '<@(_outputs)',
+ ],
+ }
+ ], # end condition (OS=="win")
+ ], # end conditions
+ }, # end rule (extension=="f")
+ ], # end rules
+ }, # end target <(addon_target_name)
+
+ # Target to copy a generated add-on to a standard location:
+ {
+ 'target_name': 'copy_addon',
+
+ # Declare that the output of this target is not linked:
+ 'type': 'none',
+
+ # Define dependencies:
+ 'dependencies': [
+ # Require that the add-on be generated before building this target:
+ '<(addon_target_name)',
+ ],
+
+ # Define a list of actions:
+ 'actions': [
+ {
+ 'action_name': 'copy_addon',
+ 'message': 'Copying addon...',
+
+ # Explicitly list the inputs in the command-line invocation below:
+ 'inputs': [],
+
+ # Declare the expected outputs:
+ 'outputs': [
+ '<(addon_output_dir)/<(addon_target_name).node',
+ ],
+
+ # Define the command-line invocation:
+ 'action': [
+ 'cp',
+ '<(PRODUCT_DIR)/<(addon_target_name).node',
+ '<(addon_output_dir)/<(addon_target_name).node',
+ ],
+ },
+ ], # end actions
+ }, # end target copy_addon
+ ], # end targets
+}
diff --git a/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/docs/repl.txt b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/docs/repl.txt
new file mode 100644
index 000000000000..0f0dd4bb6f50
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/docs/repl.txt
@@ -0,0 +1,136 @@
+
+{{alias}}( N, target, start, end, x, strideX, w, strideW )
+ Performs an in-place copy of elements within a single-precision complex
+ floating-point strided array.
+
+ The `N` and stride parameters determine which elements in the strided array
+ are accessed at runtime.
+
+ Indexing is relative to the first index. To introduce an offset, use a typed
+ array view.
+
+ If `N <= 0`, the function returns the strided array unchanged.
+
+ If `target >= N`, the function returns the strided array unchanged.
+
+ If `start >= end`, the function returns the strided array unchanged.
+
+ If the `start` and `target` index ranges do not overlap, the `workspace`
+ array is unused and thus ignored.
+
+ Parameters
+ ----------
+ N: integer
+ Number of indexed elements.
+
+ target: integer
+ Target index.
+
+ start: integer
+ Source start index (inclusive).
+
+ end: integer
+ Source end index (exclusive).
+
+ x: Complex64Array
+ Input array.
+
+ strideX: integer
+ Stride length for `x`.
+
+ w: Complex64Array
+ Workspace array. Must have at least `N` indexed elements.
+
+ strideW: integer
+ Stride length for `w`.
+
+ Returns
+ -------
+ x: Complex64Array
+ Input array.
+
+ Examples
+ --------
+ // Standard Usage:
+ > var x = new {{alias:@stdlib/array/complex64}}( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ > var w = new {{alias:@stdlib/array/complex64}}( 4 );
+ > {{alias}}( 4, 2, 0, 2, x, 1, w, 1 )
+ [ 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0 ]
+
+ // Using `N` and stride parameters:
+ > x = new {{alias:@stdlib/array/complex64}}( [ 1.0, 2.0, 0.0, 0.0, 3.0, 4.0, 0.0, 0.0 ] );
+ > w = new {{alias:@stdlib/array/complex64}}( 2 );
+ > {{alias}}( 2, 0, 1, 2, x, 2, w, 1 )
+ [ 3.0, 4.0, 0.0, 0.0, 3.0, 4.0, 0.0, 0.0 ]
+
+ // Using view offsets:
+ > var x0 = new {{alias:@stdlib/array/complex64}}( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+ > var x1 = new {{alias:@stdlib/array/complex64}}( x0.buffer, x0.BYTES_PER_ELEMENT*1 );
+ > var w0 = new {{alias:@stdlib/array/complex64}}( 2 );
+ > {{alias}}( 2, 0, 1, 2, x1, 1, w0, 1 )
+ [ 5.0, 6.0, 5.0, 6.0 ]
+ > x0
+ [ 1.0, 2.0, 5.0, 6.0, 5.0, 6.0 ]
+
+
+{{alias}}.ndarray( N, target, start, end, x,strideX,offsetX, w,strideW,offsetW )
+ Performs an in-place copy of elements within a single-precision complex
+ floating-point strided array using alternative indexing semantics.
+
+ While typed array views mandate a view offset based on the underlying
+ buffer, the offset parameters support indexing semantics based on starting
+ indices.
+
+ Parameters
+ ----------
+ N: integer
+ Number of indexed elements.
+
+ target: integer
+ Target index.
+
+ start: integer
+ Source start index (inclusive).
+
+ end: integer
+ Source end index (exclusive).
+
+ x: Complex64Array
+ Input array.
+
+ strideX: integer
+ Stride length for `x`.
+
+ offsetX: integer
+ Starting index for `x`.
+
+ w: Complex64Array
+ Workspace array. Must have at least `N` indexed elements.
+
+ strideW: integer
+ Stride length for `w`.
+
+ offsetW: integer
+ Starting index for `w`.
+
+ Returns
+ -------
+ x: Complex64Array
+ Input array.
+
+ Examples
+ --------
+ // Standard Usage:
+ > var x = new {{alias:@stdlib/array/complex64}}( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ > var w = new {{alias:@stdlib/array/complex64}}( 3 );
+ > {{alias}}.ndarray( 3, 2, 0, 2, x, 1, 1, w, 1, 0 )
+ [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 3.0, 4.0 ]
+
+ // Using an index offset:
+ > x = new {{alias:@stdlib/array/complex64}}( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ > w = new {{alias:@stdlib/array/complex64}}( 2 );
+ > {{alias}}.ndarray( 2, 1, 0, 1, x, 1, 2, w, 1, 0 )
+ [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 5.0, 6.0 ]
+
+ See Also
+ --------
diff --git a/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/docs/types/index.d.ts
new file mode 100644
index 000000000000..0e29abe8d014
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/docs/types/index.d.ts
@@ -0,0 +1,128 @@
+/*
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+// TypeScript Version: 4.1
+
+///
+
+import { Complex64Array } from '@stdlib/types/array';
+
+/**
+* Interface describing `ccopyWithin`.
+*/
+interface Routine {
+ /**
+ * Performs an in-place copy of elements within a single-precision complex floating-point strided array.
+ *
+ * ## Notes
+ *
+ * - If the `start` and `target` index ranges do not overlap, the `workspace` array is unused and thus ignored.
+ *
+ * @param N - number of indexed elements
+ * @param target - target index
+ * @param start - source start index (inclusive)
+ * @param end - source end index (exclusive)
+ * @param x - input array
+ * @param strideX - stride length for `x`
+ * @param workspace - workspace array
+ * @param strideW - stride length for `workspace`
+ * @returns `x`
+ *
+ * @example
+ * var Complex64Array = require( '@stdlib/array/complex64' );
+ *
+ * var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ * var w = new Complex64Array( x.length );
+ *
+ * ccopyWithin( x.length, 2, 0, 2, x, 1, w, 1 );
+ * // x => [ 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0 ]
+ */
+ ( N: number, target: number, start: number, end: number, x: Complex64Array, strideX: number, workspace: Complex64Array, strideW: number ): Complex64Array;
+
+ /**
+ * Performs an in-place copy of elements within a single-precision complex floating-point strided array using alternative indexing semantics.
+ *
+ * ## Notes
+ *
+ * - If the `start` and `target` index ranges do not overlap, the `workspace` array is unused and thus ignored.
+ *
+ * @param N - number of indexed elements
+ * @param target - target index
+ * @param start - source start index (inclusive)
+ * @param end - source end index (exclusive)
+ * @param x - input array
+ * @param strideX - stride length for `x`
+ * @param offsetX - starting index for `x`
+ * @param workspace - workspace array
+ * @param strideW - stride length for `workspace`
+ * @param offsetW - starting index for `workspace`
+ * @returns `x`
+ *
+ * @example
+ * var Complex64Array = require( '@stdlib/array/complex64' );
+ *
+ * var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ * var w = new Complex64Array( x.length );
+ *
+ * ccopyWithin.ndarray( x.length, 2, 0, 2, x, 1, 0, w, 1, 0 );
+ * // x => [ 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0 ]
+ */
+ ndarray( N: number, target: number, start: number, end: number, x: Complex64Array, strideX: number, offsetX: number, workspace: Complex64Array, strideW: number, offsetW: number ): Complex64Array;
+}
+
+/**
+* Performs an in-place copy of elements within a single-precision complex floating-point strided array.
+*
+* ## Notes
+*
+* - If the `start` and `target` index ranges do not overlap, the `workspace` array is unused and thus ignored.
+*
+* @param N - number of indexed elements
+* @param target - target index
+* @param start - source start index (inclusive)
+* @param end - source end index (exclusive)
+* @param x - input array
+* @param strideX - stride length for `x`
+* @param workspace - workspace array
+* @param strideW - stride length for `workspace`
+* @returns `x`
+*
+* @example
+* var Complex64Array = require( '@stdlib/array/complex64' );
+*
+* var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+* var w = new Complex64Array( x.length );
+*
+* ccopyWithin( x.length, 3, 1, 4, x, 1, w, 1 );
+* // x => [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ]
+*
+* @example
+* var Complex64Array = require( '@stdlib/array/complex64' );
+*
+* var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+* var w = new Complex64Array( x.length );
+*
+* ccopyWithin.ndarray( x.length, 3, 1, 4, x, 1, 0, w, 1, 0 );
+* // x => [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ]
+*/
+declare var ccopyWithin: Routine;
+
+
+// EXPORTS //
+
+export = ccopyWithin;
diff --git a/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/docs/types/test.ts b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/docs/types/test.ts
new file mode 100644
index 000000000000..df9505fa1201
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/docs/types/test.ts
@@ -0,0 +1,345 @@
+/*
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+import Complex64Array = require( '@stdlib/array/complex64' );
+import ccopyWithin = require( './index' );
+
+
+// TESTS //
+
+// The function returns a Complex64Array...
+{
+ const x = new Complex64Array( 10 );
+ const w = new Complex64Array( 10 );
+
+ ccopyWithin( x.length, 3, 1, 4, x, 1, w, 1 ); // $ExpectType Complex64Array
+}
+
+// The compiler throws an error if the function is provided a first argument which is not a number...
+{
+ const x = new Complex64Array( 10 );
+ const w = new Complex64Array( 10 );
+
+ ccopyWithin( '3', 3, 1, 2, x, 1, w, 1 ); // $ExpectError
+ ccopyWithin( true, 3, 1, 2, x, 1, w, 1 ); // $ExpectError
+ ccopyWithin( false, 3, 1, 2, x, 1, w, 1 ); // $ExpectError
+ ccopyWithin( null, 3, 1, 2, x, 1, w, 1 ); // $ExpectError
+ ccopyWithin( undefined, 3, 1, 2, x, 1, w, 1 ); // $ExpectError
+ ccopyWithin( [], 3, 1, 2, x, 1, w, 1 ); // $ExpectError
+ ccopyWithin( {}, 3, 1, 2, x, 1, w, 1 ); // $ExpectError
+ ccopyWithin( ( x: number ): number => x, 3, 1, 2, x, 1, w, 1 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a second argument which is not a number...
+{
+ const x = new Complex64Array( 10 );
+ const w = new Complex64Array( 10 );
+
+ ccopyWithin( x.length, '3', 1, 2, x, 1, w, 1 ); // $ExpectError
+ ccopyWithin( x.length, true, 1, 2, x, 1, w, 1 ); // $ExpectError
+ ccopyWithin( x.length, false, 1, 2, x, 1, w, 1 ); // $ExpectError
+ ccopyWithin( x.length, null, 1, 2, x, 1, w, 1 ); // $ExpectError
+ ccopyWithin( x.length, undefined, 1, 2, x, 1, w, 1 ); // $ExpectError
+ ccopyWithin( x.length, [], 1, 2, x, 1, w, 1 ); // $ExpectError
+ ccopyWithin( x.length, {}, 1, 2, x, 1, w, 1 ); // $ExpectError
+ ccopyWithin( x.length, ( x: number ): number => x, 1, 2, x, 1, w, 1 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a third argument which is not a number...
+{
+ const x = new Complex64Array( 10 );
+ const w = new Complex64Array( 10 );
+
+ ccopyWithin( x.length, 3, '1', 2, x, 1, w, 1 ); // $ExpectError
+ ccopyWithin( x.length, 3, true, 2, x, 1, w, 1 ); // $ExpectError
+ ccopyWithin( x.length, 3, false, 2, x, 1, w, 1 ); // $ExpectError
+ ccopyWithin( x.length, 3, null, 2, x, 1, w, 1 ); // $ExpectError
+ ccopyWithin( x.length, 3, undefined, 2, x, 1, w, 1 ); // $ExpectError
+ ccopyWithin( x.length, 3, [], 2, x, 1, w, 1 ); // $ExpectError
+ ccopyWithin( x.length, 3, {}, 2, x, 1, w, 1 ); // $ExpectError
+ ccopyWithin( x.length, 3, ( x: number ): number => x, 2, x, 1, w, 1 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a fourth argument which is not a number...
+{
+ const x = new Complex64Array( 10 );
+ const w = new Complex64Array( 10 );
+
+ ccopyWithin( x.length, 3, 1, '2', x, 1, w, 1 ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, true, x, 1, w, 1 ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, false, x, 1, w, 1 ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, null, x, 1, w, 1 ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, undefined, x, 1, w, 1 ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, [], x, 1, w, 1 ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, {}, x, 1, w, 1 ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, ( x: number ): number => x, x, 1, w, 1 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a fifth argument which is not a Complex64Array...
+{
+ const x = new Complex64Array( 10 );
+ const w = new Complex64Array( 10 );
+
+ ccopyWithin( x.length, 3, 1, 2, '5', 1, w, 1 ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, 2, 5, 1, w, 1 ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, 2, true, 1, w, 1 ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, 2, false, 1, w, 1 ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, 2, null, 1, w, 1 ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, 2, undefined, 1, w, 1 ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, 2, [], 1, w, 1 ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, 2, {}, 1, w, 1 ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, 2, ( x: number ): number => x, 1, w, 1 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a sixth argument which is not a number...
+{
+ const x = new Complex64Array( 10 );
+ const w = new Complex64Array( 10 );
+
+ ccopyWithin( x.length, 3, 1, 2, x, '4', w, 1 ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, 2, x, true, w, 1 ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, 2, x, false, w, 1 ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, 2, x, null, w, 1 ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, 2, x, undefined, w, 1 ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, 2, x, [], w, 1 ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, 2, x, {}, w, 1 ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, 2, x, ( x: number ): number => x, w, 1 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a seventh argument which is not a Complex64Array...
+{
+ const x = new Complex64Array( 10 );
+
+ ccopyWithin( x.length, 3, 1, 2, x, 1, '5', 1 ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, 2, x, 1, 5, 1 ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, 2, x, 1, true, 1 ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, 2, x, 1, false, 1 ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, 2, x, 1, null, 1 ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, 2, x, 1, undefined, 1 ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, 2, x, 1, [], 1 ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, 2, x, 1, {}, 1 ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, 2, x, 1, ( x: number ): number => x, 1 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided an eighth argument which is not a number...
+{
+ const x = new Complex64Array( 10 );
+ const w = new Complex64Array( 10 );
+
+ ccopyWithin( x.length, 3, 1, 2, x, 1, w, '1' ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, 2, x, 1, w, true ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, 2, x, 1, w, false ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, 2, x, 1, w, null ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, 2, x, 1, w, undefined ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, 2, x, 1, w, [] ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, 2, x, 1, w, {} ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, 2, x, 1, w, ( x: number ): number => x ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided insufficient arguments...
+{
+ const x = new Complex64Array( 10 );
+ const w = new Complex64Array( 10 );
+
+ ccopyWithin(); // $ExpectError
+ ccopyWithin( x.length ); // $ExpectError
+ ccopyWithin( x.length, 3 ); // $ExpectError
+ ccopyWithin( x.length, 3, 1 ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, 2 ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, 2, x ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, 2, x, 1 ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, 2, x, 1, w ); // $ExpectError
+ ccopyWithin( x.length, 3, 1, 2, x, 1, w, 1, {} ); // $ExpectError
+}
+
+// Attached to main export is an `ndarray` method which returns a Complex64Array...
+{
+ const x = new Complex64Array( 10 );
+ const w = new Complex64Array( 10 );
+
+ ccopyWithin.ndarray( x.length, 3, 1, 4, x, 1, 0, w, 1, 0 ); // $ExpectType Complex64Array
+}
+
+// The compiler throws an error if the `ndarray` method is provided a first argument which is not a number...
+{
+ const x = new Complex64Array( 10 );
+ const w = new Complex64Array( 10 );
+
+ ccopyWithin.ndarray( '2', 3, 1, 2, x, 1, 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( true, 3, 1, 2, x, 1, 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( false, 3, 1, 2, x, 1, 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( null, 3, 1, 2, x, 1, 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( undefined, 3, 1, 2, x, 1, 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( [], 3, 1, 2, x, 1, 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( {}, 3, 1, 2, x, 1, 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( ( x: number ): number => x, 3, 1, 2, x, 1, 0, w, 1, 0 ); // $ExpectError
+}
+
+// The compiler throws an error if the `ndarray` method is provided a second argument which is not a number...
+{
+ const x = new Complex64Array( 10 );
+ const w = new Complex64Array( 10 );
+
+ ccopyWithin.ndarray( x.length, '3', 1, 2, x, 1, 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, true, 1, 2, x, 1, 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, false, 1, 2, x, 1, 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, null, 1, 2, x, 1, 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, undefined, 1, 2, x, 1, 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, [], 1, 2, x, 1, 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, {}, 1, 2, x, 1, 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, ( x: number ): number => x, 1, 2, x, 1, 0, w, 1, 0 ); // $ExpectError
+}
+
+// The compiler throws an error if the `ndarray` method is provided a third argument which is not a number...
+{
+ const x = new Complex64Array( 10 );
+ const w = new Complex64Array( 10 );
+
+ ccopyWithin.ndarray( x.length, 3, '1', 2, x, 1, 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, true, 2, x, 1, 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, false, 2, x, 1, 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, null, 2, x, 1, 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, undefined, 2, x, 1, 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, [], 2, x, 1, 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, {}, 2, x, 1, 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, ( x: number ): number => x, 2, x, 1, 0, w, 1, 0 ); // $ExpectError
+}
+
+// The compiler throws an error if the `ndarray` method is provided a fourth argument which is not a number...
+{
+ const x = new Complex64Array( 10 );
+ const w = new Complex64Array( 10 );
+
+ ccopyWithin.ndarray( x.length, 3, 1, '2', x, 1, 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, true, x, 1, 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, false, x, 1, 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, null, x, 1, 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, undefined, x, 1, 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, [], x, 1, 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, {}, x, 1, 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, ( x: number ): number => x, x, 1, 0, w, 1, 0 ); // $ExpectError
+}
+
+// The compiler throws an error if the `ndarray` method is provided a fifth argument which is not a Complex64Array...
+{
+ const x = new Complex64Array( 10 );
+ const w = new Complex64Array( 10 );
+
+ ccopyWithin.ndarray( x.length, 3, 1, 2, '5', 1, 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, 5, 1, 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, true, 1, 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, false, 1, 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, null, 1, 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, undefined, 1, 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, [], 1, 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, {}, 1, 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, ( x: number ): number => x, 1, 0, w, 1, 0 ); // $ExpectError
+}
+
+// The compiler throws an error if the `ndarray` method is provided a sixth argument which is not a number...
+{
+ const x = new Complex64Array( 10 );
+ const w = new Complex64Array( 10 );
+
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, '4', 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, true, 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, false, 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, null, 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, undefined, 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, [], 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, {}, 0, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, ( x: number ): number => x, 0, w, 1, 0 ); // $ExpectError
+}
+
+// The compiler throws an error if the `ndarray` method is provided a seventh argument which is not a number...
+{
+ const x = new Complex64Array( 10 );
+ const w = new Complex64Array( 10 );
+
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, 1, '0', w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, 1, true, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, 1, false, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, 1, null, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, 1, undefined, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, 1, [], w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, 1, {}, w, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, 1, ( x: number ): number => x, w, 1, 0 ); // $ExpectError
+}
+
+// The compiler throws an error if the `ndarray` method is provided an eighth argument which is not a Complex64Array...
+{
+ const x = new Complex64Array( 10 );
+
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, 1, 0, '5', 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, 1, 0, 5, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, 1, 0, true, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, 1, 0, false, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, 1, 0, null, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, 1, 0, undefined, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, 1, 0, [], 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, 1, 0, {}, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, 1, 0, ( x: number ): number => x, 1, 0 ); // $ExpectError
+}
+
+// The compiler throws an error if the `ndarray` method is provided a ninth argument which is not a number...
+{
+ const x = new Complex64Array( 10 );
+ const w = new Complex64Array( 10 );
+
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, 1, 0, w, '1', 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, 1, 0, w, true, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, 1, 0, w, false, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, 1, 0, w, null, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, 1, 0, w, undefined, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, 1, 0, w, [], 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, 1, 0, w, {}, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, 1, 0, w, ( x: number ): number => x, 0 ); // $ExpectError
+}
+
+// The compiler throws an error if the `ndarray` method is provided a tenth argument which is not a number...
+{
+ const x = new Complex64Array( 10 );
+ const w = new Complex64Array( 10 );
+
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, 1, 0, w, 1, '0' ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, 1, 0, w, 1, true ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, 1, 0, w, 1, false ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, 1, 0, w, 1, null ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, 1, 0, w, 1, undefined ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, 1, 0, w, 1, [] ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, 1, 0, w, 1, {} ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, 1, 0, w, 1, ( x: number ): number => x ); // $ExpectError
+}
+
+// The compiler throws an error if the `ndarray` method is provided insufficient arguments...
+{
+ const x = new Complex64Array( 10 );
+ const w = new Complex64Array( 10 );
+
+ ccopyWithin.ndarray(); // $ExpectError
+ ccopyWithin.ndarray( x.length ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, 1 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, 1, 0 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, 1, 0, w ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, 1, 0, w, 1 ); // $ExpectError
+ ccopyWithin.ndarray( x.length, 3, 1, 2, x, 1, 0, w, 1, 0, {} ); // $ExpectError
+}
diff --git a/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/examples/c/Makefile b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/examples/c/Makefile
new file mode 100644
index 000000000000..c8f8e9a1517b
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/examples/c/Makefile
@@ -0,0 +1,146 @@
+#/
+# @license Apache-2.0
+#
+# Copyright (c) 2026 The Stdlib Authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#/
+
+# VARIABLES #
+
+ifndef VERBOSE
+ QUIET := @
+else
+ QUIET :=
+endif
+
+# Determine the OS ([1][1], [2][2]).
+#
+# [1]: https://en.wikipedia.org/wiki/Uname#Examples
+# [2]: http://stackoverflow.com/a/27776822/2225624
+OS ?= $(shell uname)
+ifneq (, $(findstring MINGW,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring MSYS,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring CYGWIN,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring Windows_NT,$(OS)))
+ OS := WINNT
+endif
+endif
+endif
+endif
+
+# Define the program used for compiling C source files:
+ifdef C_COMPILER
+ CC := $(C_COMPILER)
+else
+ CC := gcc
+endif
+
+# Define the command-line options when compiling C files:
+CFLAGS ?= \
+ -std=c99 \
+ -O3 \
+ -Wall \
+ -pedantic
+
+# Determine whether to generate position independent code ([1][1], [2][2]).
+#
+# [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options
+# [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option
+ifeq ($(OS), WINNT)
+ fPIC ?=
+else
+ fPIC ?= -fPIC
+endif
+
+# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`):
+INCLUDE ?=
+
+# List of source files:
+SOURCE_FILES ?=
+
+# List of libraries (e.g., `-lopenblas -lpthread`):
+LIBRARIES ?=
+
+# List of library paths (e.g., `-L /foo/bar -L /beep/boop`):
+LIBPATH ?=
+
+# List of C targets:
+c_targets := example.out
+
+
+# RULES #
+
+#/
+# Compiles source files.
+#
+# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`)
+# @param {string} [CFLAGS] - C compiler options
+# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`)
+# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`)
+# @param {string} [SOURCE_FILES] - list of source files
+# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`)
+# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`)
+#
+# @example
+# make
+#
+# @example
+# make all
+#/
+all: $(c_targets)
+
+.PHONY: all
+
+#/
+# Compiles C source files.
+#
+# @private
+# @param {string} CC - C compiler (e.g., `gcc`)
+# @param {string} CFLAGS - C compiler options
+# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`)
+# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`)
+# @param {string} SOURCE_FILES - list of source files
+# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`)
+# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`)
+#/
+$(c_targets): %.out: %.c
+ $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES)
+
+#/
+# Runs compiled examples.
+#
+# @example
+# make run
+#/
+run: $(c_targets)
+ $(QUIET) ./$<
+
+.PHONY: run
+
+#/
+# Removes generated files.
+#
+# @example
+# make clean
+#/
+clean:
+ $(QUIET) -rm -f *.o *.out
+
+.PHONY: clean
diff --git a/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/examples/c/example.c b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/examples/c/example.c
new file mode 100644
index 000000000000..a562e63977f3
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/examples/c/example.c
@@ -0,0 +1,44 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+#include "stdlib/blas/ext/base/ccopy_within.h"
+#include "stdlib/complex/float32/ctor.h"
+#include
+
+int main( void ) {
+ // Create a strided array:
+ float x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 };
+
+ // Create a workspace array:
+ float w[ 8 ];
+
+ // Specify the number of indexed elements:
+ const int N = 4;
+
+ // Specify strides:
+ const int strideX = 1;
+ const int strideW = 1;
+
+ // Copy elements:
+ stdlib_strided_ccopy_within( N, 2, 0, 2, (stdlib_complex64_t *)x, strideX, (stdlib_complex64_t *)w, strideW );
+
+ // Print the result:
+ for ( int i = 0; i < 8; i += 2 ) {
+ printf( "x[ %i ] = %f + %fi\n", i/2, x[ i ], x[ i+1 ] );
+ }
+}
diff --git a/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/examples/index.js b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/examples/index.js
new file mode 100644
index 000000000000..276e3be40369
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/examples/index.js
@@ -0,0 +1,36 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
+var Complex64Array = require( '@stdlib/array/complex64' );
+var logEach = require( '@stdlib/console/log-each' );
+var zeros = require( '@stdlib/array/zeros' );
+var ccopyWithin = require( './../lib' );
+
+var xbuf = discreteUniform( 20, 0, 500, {
+ 'dtype': 'float32'
+});
+var x = new Complex64Array( xbuf );
+logEach( '%s', x );
+
+var w = zeros( 10, 'complex64' );
+
+ccopyWithin( 10, 5, 0, 3, x, 1, w, 1 );
+logEach( '%s', x );
diff --git a/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/include.gypi b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/include.gypi
new file mode 100644
index 000000000000..bee8d41a2caf
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/include.gypi
@@ -0,0 +1,53 @@
+# @license Apache-2.0
+#
+# Copyright (c) 2026 The Stdlib Authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# A GYP include file for building a Node.js native add-on.
+#
+# Main documentation:
+#
+# [1]: https://gyp.gsrc.io/docs/InputFormatReference.md
+# [2]: https://gyp.gsrc.io/docs/UserDocumentation.md
+{
+ # Define variables to be used throughout the configuration for all targets:
+ 'variables': {
+ # Source directory:
+ 'src_dir': './src',
+
+ # Include directories:
+ 'include_dirs': [
+ ' [ 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0 ]
+*/
+function ccopyWithin( N, target, start, end, x, strideX, workspace, strideW ) {
+ var ox = stride2offset( N, strideX );
+ var ow = stride2offset( N, strideW );
+ return ndarray( N, target, start, end, x, strideX, ox, workspace, strideW, ow ); // eslint-disable-line max-len
+}
+
+
+// EXPORTS //
+
+module.exports = ccopyWithin;
diff --git a/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/lib/ccopy_within.native.js b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/lib/ccopy_within.native.js
new file mode 100644
index 000000000000..648e967df578
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/lib/ccopy_within.native.js
@@ -0,0 +1,61 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var reinterpret = require( '@stdlib/strided/base/reinterpret-complex64' );
+var addon = require( './../src/addon.node' );
+
+
+// MAIN //
+
+/**
+* Performs an in-place copy of elements within a single-precision complex floating-point strided array.
+*
+* @param {PositiveInteger} N - number of indexed elements
+* @param {NonNegativeInteger} target - target index
+* @param {NonNegativeInteger} start - source start index (inclusive)
+* @param {NonNegativeInteger} end - source end index (exclusive)
+* @param {Complex64Array} x - input array
+* @param {integer} strideX - stride length for `x`
+* @param {Complex64Array} workspace - workspace array
+* @param {integer} strideW - stride length for `workspace`
+* @returns {Complex64Array} input array
+*
+* @example
+* var Complex64Array = require( '@stdlib/array/complex64' );
+*
+* var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+* var w = new Complex64Array( x.length );
+*
+* ccopyWithin( x.length, 2, 0, 2, x, 1, w, 1 );
+* // x => [ 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0 ]
+*/
+function ccopyWithin( N, target, start, end, x, strideX, workspace, strideW ) {
+ var viewX = reinterpret( x, 0 );
+ var viewW = reinterpret( workspace, 0 );
+ addon( N, target, start, end, viewX, strideX, viewW, strideW );
+ return x;
+}
+
+
+// EXPORTS //
+
+module.exports = ccopyWithin;
diff --git a/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/lib/index.js b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/lib/index.js
new file mode 100644
index 000000000000..854320409df9
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/lib/index.js
@@ -0,0 +1,70 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+/**
+* Perform an in-place copy of elements within a single-precision complex floating-point strided array.
+*
+* @module @stdlib/blas/ext/base/ccopy-within
+*
+* @example
+* var Complex64Array = require( '@stdlib/array/complex64' );
+* var ccopyWithin = require( '@stdlib/blas/ext/base/ccopy-within' );
+*
+* var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+* var w = new Complex64Array( x.length );
+*
+* ccopyWithin( x.length, 2, 0, 2, x, 1, w, 1 );
+* // x => [ 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0 ]
+*
+* @example
+* var Complex64Array = require( '@stdlib/array/complex64' );
+* var ccopyWithin = require( '@stdlib/blas/ext/base/ccopy-within' );
+*
+* var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+* var w = new Complex64Array( x.length );
+*
+* ccopyWithin.ndarray( x.length, 2, 0, 2, x, 1, 0, w, 1, 0 );
+* // x => [ 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0 ]
+*/
+
+// MODULES //
+
+var join = require( 'path' ).join;
+var tryRequire = require( '@stdlib/utils/try-require' );
+var isError = require( '@stdlib/assert/is-error' );
+var main = require( './main.js' );
+
+
+// MAIN //
+
+var ccopyWithin;
+var tmp = tryRequire( join( __dirname, './native.js' ) );
+if ( isError( tmp ) ) {
+ ccopyWithin = main;
+} else {
+ ccopyWithin = tmp;
+}
+
+
+// EXPORTS //
+
+module.exports = ccopyWithin;
+
+// exports: { "ndarray": "ccopyWithin.ndarray" }
diff --git a/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/lib/main.js b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/lib/main.js
new file mode 100644
index 000000000000..614434f5fb99
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/lib/main.js
@@ -0,0 +1,35 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var setReadOnly = require( '@stdlib/utils/define-nonenumerable-read-only-property' );
+var ccopyWithin = require( './ccopy_within.js' );
+var ndarray = require( './ndarray.js' );
+
+
+// MAIN //
+
+setReadOnly( ccopyWithin, 'ndarray', ndarray );
+
+
+// EXPORTS //
+
+module.exports = ccopyWithin;
diff --git a/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/lib/native.js b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/lib/native.js
new file mode 100644
index 000000000000..19228bd1f974
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/lib/native.js
@@ -0,0 +1,35 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var setReadOnly = require( '@stdlib/utils/define-nonenumerable-read-only-property' );
+var ccopyWithin = require( './ccopy_within.native.js' );
+var ndarray = require( './ndarray.native.js' );
+
+
+// MAIN //
+
+setReadOnly( ccopyWithin, 'ndarray', ndarray );
+
+
+// EXPORTS //
+
+module.exports = ccopyWithin;
diff --git a/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/lib/ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/lib/ndarray.js
new file mode 100644
index 000000000000..1707d6904db5
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/lib/ndarray.js
@@ -0,0 +1,87 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var min = require( '@stdlib/math/base/special/fast/min' );
+var ccopy = require( '@stdlib/blas/base/ccopy' ).ndarray;
+
+
+// MAIN //
+
+/**
+* Performs an in-place copy of elements within a single-precision complex floating-point strided array.
+*
+* ## Notes
+*
+* - If the `start` and `target` index ranges do not overlap, the `workspace` array is unused and thus ignored.
+*
+* @param {PositiveInteger} N - number of indexed elements
+* @param {NonNegativeInteger} target - target index
+* @param {NonNegativeInteger} start - source start index (inclusive)
+* @param {NonNegativeInteger} end - source end index (exclusive)
+* @param {Complex64Array} x - input array
+* @param {integer} strideX - stride length for `x`
+* @param {NonNegativeInteger} offsetX - starting index for `x`
+* @param {Complex64Array} workspace - workspace array
+* @param {integer} strideW - stride length for `workspace`
+* @param {NonNegativeInteger} offsetW - starting index for `workspace`
+* @returns {Complex64Array} input array
+*
+* @example
+* var Complex64Array = require( '@stdlib/array/complex64' );
+*
+* var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+* var w = new Complex64Array( x.length );
+*
+* ccopyWithin( x.length, 2, 0, 2, x, 1, 0, w, 1, 0 );
+* // x => [ 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0 ]
+*/
+function ccopyWithin( N, target, start, end, x, strideX, offsetX, workspace, strideW, offsetW ) { // eslint-disable-line max-len
+ var ssi;
+ var tsi;
+ var cl;
+
+ if ( N <= 0 || strideX === 0 || target >= N ) {
+ return x;
+ }
+ // Resolve the number of elements to copy:
+ cl = min( min( end, N ) - start, N - target );
+ if ( cl <= 0 ) {
+ return x;
+ }
+ // Resolve the starting source and target indices...
+ ssi = offsetX + ( start * strideX );
+ tsi = offsetX + ( target * strideX );
+
+ // When the source and target index ranges overlap, copying directly could overwrite source elements before they are read, and, thus, we first copy the source elements to a workspace array:
+ if ( start < target+cl && target < start+cl ) {
+ ccopy( cl, x, strideX, ssi, workspace, strideW, offsetW );
+ ccopy( cl, workspace, strideW, offsetW, x, strideX, tsi );
+ return x;
+ }
+ ccopy( cl, x, strideX, ssi, x, strideX, tsi );
+ return x;
+}
+
+
+// EXPORTS //
+
+module.exports = ccopyWithin;
diff --git a/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/lib/ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/lib/ndarray.native.js
new file mode 100644
index 000000000000..e6dcc6d2376d
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/lib/ndarray.native.js
@@ -0,0 +1,63 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var reinterpret = require( '@stdlib/strided/base/reinterpret-complex64' );
+var addon = require( './../src/addon.node' );
+
+
+// MAIN //
+
+/**
+* Performs an in-place copy of elements within a single-precision complex floating-point strided array.
+*
+* @param {PositiveInteger} N - number of indexed elements
+* @param {NonNegativeInteger} target - target index
+* @param {NonNegativeInteger} start - source start index (inclusive)
+* @param {NonNegativeInteger} end - source end index (exclusive)
+* @param {Complex64Array} x - input array
+* @param {integer} strideX - stride length for `x`
+* @param {NonNegativeInteger} offsetX - starting index for `x`
+* @param {Complex64Array} workspace - workspace array
+* @param {integer} strideW - stride length for `workspace`
+* @param {NonNegativeInteger} offsetW - starting index for `workspace`
+* @returns {Complex64Array} input array
+*
+* @example
+* var Complex64Array = require( '@stdlib/array/complex64' );
+*
+* var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+* var w = new Complex64Array( x.length );
+*
+* ccopyWithin( x.length, 2, 0, 2, x, 1, 0, w, 1, 0 );
+* // x => [ 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0 ]
+*/
+function ccopyWithin( N, target, start, end, x, strideX, offsetX, workspace, strideW, offsetW ) { // eslint-disable-line max-len
+ var viewX = reinterpret( x, 0 );
+ var viewW = reinterpret( workspace, 0 );
+ addon.ndarray( N, target, start, end, viewX, strideX, offsetX, viewW, strideW, offsetW ); // eslint-disable-line max-len
+ return x;
+}
+
+
+// EXPORTS //
+
+module.exports = ccopyWithin;
diff --git a/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/manifest.json b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/manifest.json
new file mode 100644
index 000000000000..a85441b0cf28
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/manifest.json
@@ -0,0 +1,106 @@
+{
+ "options": {
+ "task": "build",
+ "wasm": false
+ },
+ "fields": [
+ {
+ "field": "src",
+ "resolve": true,
+ "relative": true
+ },
+ {
+ "field": "include",
+ "resolve": true,
+ "relative": true
+ },
+ {
+ "field": "libraries",
+ "resolve": false,
+ "relative": false
+ },
+ {
+ "field": "libpath",
+ "resolve": true,
+ "relative": false
+ }
+ ],
+ "confs": [
+ {
+ "task": "build",
+ "wasm": false,
+ "src": [
+ "./src/main.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/blas/base/ccopy",
+ "@stdlib/complex/float32/ctor",
+ "@stdlib/strided/base/stride2offset",
+ "@stdlib/napi/export",
+ "@stdlib/napi/argv",
+ "@stdlib/napi/argv-int64",
+ "@stdlib/napi/argv-strided-complex64array"
+ ]
+ },
+ {
+ "task": "benchmark",
+ "wasm": false,
+ "src": [
+ "./src/main.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/blas/base/ccopy",
+ "@stdlib/complex/float32/ctor",
+ "@stdlib/strided/base/stride2offset"
+ ]
+ },
+ {
+ "task": "examples",
+ "wasm": false,
+ "src": [
+ "./src/main.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/blas/base/ccopy",
+ "@stdlib/complex/float32/ctor",
+ "@stdlib/strided/base/stride2offset"
+ ]
+ },
+ {
+ "task": "build",
+ "wasm": true,
+ "src": [
+ "./src/main.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/blas/base/ccopy",
+ "@stdlib/complex/float32/ctor",
+ "@stdlib/strided/base/stride2offset"
+ ]
+ }
+ ]
+}
diff --git a/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/package.json b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/package.json
new file mode 100644
index 000000000000..3dd29bc9d7ec
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/package.json
@@ -0,0 +1,75 @@
+{
+ "name": "@stdlib/blas/ext/base/ccopy-within",
+ "version": "0.0.0",
+ "description": "Perform an in-place copy of elements within a single-precision complex floating-point strided array.",
+ "license": "Apache-2.0",
+ "author": {
+ "name": "The Stdlib Authors",
+ "url": "https://github.com/stdlib-js/stdlib/graphs/contributors"
+ },
+ "contributors": [
+ {
+ "name": "The Stdlib Authors",
+ "url": "https://github.com/stdlib-js/stdlib/graphs/contributors"
+ }
+ ],
+ "main": "./lib",
+ "browser": "./lib/main.js",
+ "gypfile": true,
+ "directories": {
+ "benchmark": "./benchmark",
+ "doc": "./docs",
+ "example": "./examples",
+ "include": "./include",
+ "lib": "./lib",
+ "src": "./src",
+ "test": "./test"
+ },
+ "types": "./docs/types",
+ "scripts": {},
+ "homepage": "https://github.com/stdlib-js/stdlib",
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/stdlib-js/stdlib.git"
+ },
+ "bugs": {
+ "url": "https://github.com/stdlib-js/stdlib/issues"
+ },
+ "dependencies": {},
+ "devDependencies": {},
+ "engines": {
+ "node": ">=0.10.0",
+ "npm": ">2.7.0"
+ },
+ "os": [
+ "aix",
+ "darwin",
+ "freebsd",
+ "linux",
+ "macos",
+ "openbsd",
+ "sunos",
+ "win32",
+ "windows"
+ ],
+ "keywords": [
+ "stdlib",
+ "stdmath",
+ "mathematics",
+ "math",
+ "blas",
+ "extended",
+ "copy",
+ "copywithin",
+ "within",
+ "move",
+ "strided",
+ "array",
+ "ndarray",
+ "complex64",
+ "complex",
+ "single-precision complex",
+ "complex64array"
+ ],
+ "__stdlib__": {}
+}
diff --git a/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/src/Makefile b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/src/Makefile
new file mode 100644
index 000000000000..2caf905cedbe
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/src/Makefile
@@ -0,0 +1,70 @@
+#/
+# @license Apache-2.0
+#
+# Copyright (c) 2026 The Stdlib Authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#/
+
+# VARIABLES #
+
+ifndef VERBOSE
+ QUIET := @
+else
+ QUIET :=
+endif
+
+# Determine the OS ([1][1], [2][2]).
+#
+# [1]: https://en.wikipedia.org/wiki/Uname#Examples
+# [2]: http://stackoverflow.com/a/27776822/2225624
+OS ?= $(shell uname)
+ifneq (, $(findstring MINGW,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring MSYS,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring CYGWIN,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring Windows_NT,$(OS)))
+ OS := WINNT
+endif
+endif
+endif
+endif
+
+
+# RULES #
+
+#/
+# Removes generated files for building an add-on.
+#
+# @example
+# make clean-addon
+#/
+clean-addon:
+ $(QUIET) -rm -f *.o *.node
+
+.PHONY: clean-addon
+
+#/
+# Removes generated files.
+#
+# @example
+# make clean
+#/
+clean: clean-addon
+
+.PHONY: clean
diff --git a/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/src/addon.c b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/src/addon.c
new file mode 100644
index 000000000000..d965ea265eed
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/src/addon.c
@@ -0,0 +1,72 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+#include "stdlib/blas/ext/base/ccopy_within.h"
+#include "stdlib/complex/float32/ctor.h"
+#include "stdlib/blas/base/shared.h"
+#include "stdlib/napi/export.h"
+#include "stdlib/napi/argv.h"
+#include "stdlib/napi/argv_int64.h"
+#include "stdlib/napi/argv_strided_complex64array.h"
+#include
+
+/**
+* Receives JavaScript callback invocation data.
+*
+* @param env environment under which the function is invoked
+* @param info callback data
+* @return Node-API value
+*/
+static napi_value addon( napi_env env, napi_callback_info info ) {
+ STDLIB_NAPI_ARGV( env, info, argv, argc, 8 );
+ STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 );
+ STDLIB_NAPI_ARGV_INT64( env, target, argv, 1 );
+ STDLIB_NAPI_ARGV_INT64( env, start, argv, 2 );
+ STDLIB_NAPI_ARGV_INT64( env, end, argv, 3 );
+ STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 5 );
+ STDLIB_NAPI_ARGV_INT64( env, strideW, argv, 7 );
+ STDLIB_NAPI_ARGV_STRIDED_COMPLEX64ARRAY( env, X, N, strideX, argv, 4 );
+ STDLIB_NAPI_ARGV_STRIDED_COMPLEX64ARRAY( env, W, N, strideW, argv, 6 );
+ API_SUFFIX(stdlib_strided_ccopy_within)( N, target, start, end, (stdlib_complex64_t *)X, strideX, (stdlib_complex64_t *)W, strideW );
+ return NULL;
+}
+
+/**
+* Receives JavaScript callback invocation data.
+*
+* @param env environment under which the function is invoked
+* @param info callback data
+* @return Node-API value
+*/
+static napi_value addon_method( napi_env env, napi_callback_info info ) {
+ STDLIB_NAPI_ARGV( env, info, argv, argc, 10 );
+ STDLIB_NAPI_ARGV_INT64( env, N, argv, 0 );
+ STDLIB_NAPI_ARGV_INT64( env, target, argv, 1 );
+ STDLIB_NAPI_ARGV_INT64( env, start, argv, 2 );
+ STDLIB_NAPI_ARGV_INT64( env, end, argv, 3 );
+ STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 5 );
+ STDLIB_NAPI_ARGV_INT64( env, offsetX, argv, 6 );
+ STDLIB_NAPI_ARGV_INT64( env, strideW, argv, 8 );
+ STDLIB_NAPI_ARGV_INT64( env, offsetW, argv, 9 );
+ STDLIB_NAPI_ARGV_STRIDED_COMPLEX64ARRAY( env, X, N, strideX, argv, 4 );
+ STDLIB_NAPI_ARGV_STRIDED_COMPLEX64ARRAY( env, W, N, strideW, argv, 7 );
+ API_SUFFIX(stdlib_strided_ccopy_within_ndarray)( N, target, start, end, (stdlib_complex64_t *)X, strideX, offsetX, (stdlib_complex64_t *)W, strideW, offsetW );
+ return NULL;
+}
+
+STDLIB_NAPI_MODULE_EXPORT_FCN_WITH_METHOD( addon, "ndarray", addon_method )
diff --git a/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/src/main.c b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/src/main.c
new file mode 100644
index 000000000000..d8ffb654b0bf
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/src/main.c
@@ -0,0 +1,85 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+#include "stdlib/blas/ext/base/ccopy_within.h"
+#include "stdlib/blas/base/shared.h"
+#include "stdlib/blas/base/ccopy.h"
+#include "stdlib/complex/float32/ctor.h"
+#include "stdlib/strided/base/stride2offset.h"
+
+/**
+* Performs an in-place copy of elements within a single-precision complex floating-point strided array.
+*
+* @param N number of indexed elements
+* @param target target index
+* @param start source start index (inclusive)
+* @param end source end index (exclusive)
+* @param X input array
+* @param strideX stride length for `X`
+* @param W workspace array
+* @param strideW stride length for `W`
+*/
+void API_SUFFIX(stdlib_strided_ccopy_within)( const CBLAS_INT N, const CBLAS_INT target, const CBLAS_INT start, const CBLAS_INT end, stdlib_complex64_t *X, const CBLAS_INT strideX, stdlib_complex64_t *W, const CBLAS_INT strideW ) {
+ const CBLAS_INT ox = stdlib_strided_stride2offset( N, strideX );
+ const CBLAS_INT ow = stdlib_strided_stride2offset( N, strideW );
+ API_SUFFIX(stdlib_strided_ccopy_within_ndarray)( N, target, start, end, X, strideX, ox, W, strideW, ow );
+}
+
+/**
+* Performs an in-place copy of elements within a single-precision complex floating-point strided array using alternative indexing semantics.
+*
+* @param N number of indexed elements
+* @param target target index
+* @param start source start index (inclusive)
+* @param end source end index (exclusive)
+* @param X input array
+* @param strideX stride length for `X`
+* @param offsetX starting index for `X`
+* @param W workspace array
+* @param strideW stride length for `W`
+* @param offsetW starting index for `W`
+*/
+void API_SUFFIX(stdlib_strided_ccopy_within_ndarray)( const CBLAS_INT N, const CBLAS_INT target, const CBLAS_INT start, const CBLAS_INT end, stdlib_complex64_t *X, const CBLAS_INT strideX, const CBLAS_INT offsetX, stdlib_complex64_t *W, const CBLAS_INT strideW, const CBLAS_INT offsetW ) {
+ CBLAS_INT ssi;
+ CBLAS_INT tsi;
+ CBLAS_INT cl;
+
+ if ( N <= 0 || strideX == 0 || target >= N ) {
+ return;
+ }
+ // Resolve the number of elements to copy...
+ cl = ( ( end < N ) ? end : N ) - start;
+ if ( cl > N - target ) {
+ cl = N - target;
+ }
+ if ( cl <= 0 ) {
+ return;
+ }
+ // Resolve the starting source and target indices...
+ ssi = offsetX + ( start * strideX );
+ tsi = offsetX + ( target * strideX );
+
+ // When the source and target index ranges overlap, copying directly could overwrite source elements before they are read, and, thus, we first copy the source elements to a workspace array:
+ if ( start < target + cl && target < start + cl ) {
+ API_SUFFIX(c_ccopy_ndarray)( cl, X, strideX, ssi, W, strideW, offsetW );
+ API_SUFFIX(c_ccopy_ndarray)( cl, W, strideW, offsetW, X, strideX, tsi );
+ return;
+ }
+ API_SUFFIX(c_ccopy_ndarray)( cl, X, strideX, ssi, X, strideX, tsi );
+ return;
+}
diff --git a/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/test/test.ccopy_within.js b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/test/test.ccopy_within.js
new file mode 100644
index 000000000000..37128e0edf05
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/test/test.ccopy_within.js
@@ -0,0 +1,282 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var tape = require( 'tape' );
+var isSameComplex64Array = require( '@stdlib/assert/is-same-complex64array' );
+var Complex64Array = require( '@stdlib/array/complex64' );
+var ccopyWithin = require( './../lib/ccopy_within.js' );
+
+
+// TESTS //
+
+tape( 'main export is a function', function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof ccopyWithin, 'function', 'main export is a function' );
+ t.end();
+});
+
+tape( 'the function has an arity of 8', function test( t ) {
+ t.strictEqual( ccopyWithin.length, 8, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function copies values within the provided single-precision complex floating-point strided array', function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+ w = new Complex64Array( 6 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+
+ actual = ccopyWithin( 6, 3, 1, 4, x, 1, w, 1 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+ w = new Complex64Array( 6 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+
+ actual = ccopyWithin( 6, 3, 0, 3, x, 1, w, 1 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0 ] );
+ w = new Complex64Array( 5 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+
+ actual = ccopyWithin( 5, 2, 0, 5, x, 1, w, 1 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'if provided `target` parameter is greater than or equal to the `N` parameter, the function returns the strided array unchanged', function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+ w = new Complex64Array( 6 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+
+ actual = ccopyWithin( 6, 6, 0, 3, x, 1, w, 1 );
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ actual = ccopyWithin( 6, 10, 0, 3, x, 1, w, 1 );
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ actual = ccopyWithin( 4, 5, 0, 3, x, 1, w, 1 );
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'if provided `N` parameter is less than or equal to `0`, the function returns the strided array unchanged', function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+ w = new Complex64Array( 6 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+
+ actual = ccopyWithin( 0, 3, 1, 4, x, 1, w, 1 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ actual = ccopyWithin( -1, 3, 1, 4, x, 1, w, 1 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'if provided `start` parameter is greater than or equal to the `end` parameter, the function returns the strided array unchanged', function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+ w = new Complex64Array( 6 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+
+ actual = ccopyWithin( 6, 0, 3, 1, x, 1, w, 1 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+ w = new Complex64Array( 6 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+
+ actual = ccopyWithin( 6, 0, 2, 2, x, 1, w, 1 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+ t.end();
+});
+
+tape( 'if provided `end` parameter is greater than the number of indexed elements, the function copies elements up to the last indexed element', function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0 ] );
+ w = new Complex64Array( 5 );
+ expected = new Complex64Array( [ 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 7.0, 8.0, 9.0, 10.0 ] );
+
+ actual = ccopyWithin( 5, 0, 2, 10, x, 1, w, 1 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports providing an `x` stride parameter', function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0 ] );
+ w = new Complex64Array( 4 );
+ expected = new Complex64Array( [ 9.0, 10.0, 3.0, 4.0, 13.0, 14.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0 ] );
+
+ actual = ccopyWithin( 4, 0, 2, 4, x, 2, w, 1 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports providing an `x` negative stride parameter', function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+ w = new Complex64Array( 3 );
+ expected = new Complex64Array( [ 1.0, 2.0, 1.0, 2.0, 3.0, 4.0 ] );
+
+ actual = ccopyWithin( 3, 0, 1, 3, x, -1, w, 1 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ w = new Complex64Array( 4 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0 ] );
+
+ actual = ccopyWithin( 4, 0, 2, 4, x, -1, w, 1 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function supports a stride of zero', function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+ w = new Complex64Array( 6 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+
+ actual = ccopyWithin( 6, 1, 0, 2, x, 0, w, 1 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports providing a `workspace` stride parameter', function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+ w = new Complex64Array( 5 );
+ expected = new Complex64Array( [ 1.0, 2.0, 1.0, 2.0, 3.0, 4.0 ] );
+
+ actual = ccopyWithin( 3, 1, 0, 2, x, 1, w, 2 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports providing a `workspace` negative stride parameter', function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+ w = new Complex64Array( 6 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+
+ actual = ccopyWithin( 6, 3, 1, 4, x, 1, w, -1 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports view offsets', function test( t ) {
+ var expected;
+ var x0;
+ var x1;
+ var w;
+
+ x0 = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0 ] ); // eslint-disable-line max-len
+
+ x1 = new Complex64Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 );
+
+ w = new Complex64Array( 6 );
+
+ ccopyWithin( 6, 0, 3, 6, x1, 1, w, 1 );
+
+ expected = new Complex64Array( [ 1.0, 2.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0 ] );
+
+ t.strictEqual( isSameComplex64Array( x0, expected ), true, 'returns expected value' );
+ t.end();
+});
diff --git a/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/test/test.ccopy_within.native.js b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/test/test.ccopy_within.native.js
new file mode 100644
index 000000000000..e9a7b005ee9e
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/test/test.ccopy_within.native.js
@@ -0,0 +1,291 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var resolve = require( 'path' ).resolve;
+var tape = require( 'tape' );
+var isSameComplex64Array = require( '@stdlib/assert/is-same-complex64array' );
+var Complex64Array = require( '@stdlib/array/complex64' );
+var tryRequire = require( '@stdlib/utils/try-require' );
+
+
+// VARIABLES //
+
+var ccopyWithin = tryRequire( resolve( __dirname, './../lib/ccopy_within.native.js' ) );
+var opts = {
+ 'skip': ( ccopyWithin instanceof Error )
+};
+
+
+// TESTS //
+
+tape( 'main export is a function', opts, function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof ccopyWithin, 'function', 'main export is a function' );
+ t.end();
+});
+
+tape( 'the function has an arity of 8', opts, function test( t ) {
+ t.strictEqual( ccopyWithin.length, 8, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function copies values within the provided single-precision complex floating-point strided array', opts, function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+ w = new Complex64Array( 6 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+
+ actual = ccopyWithin( 6, 3, 1, 4, x, 1, w, 1 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+ w = new Complex64Array( 6 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+
+ actual = ccopyWithin( 6, 3, 0, 3, x, 1, w, 1 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0 ] );
+ w = new Complex64Array( 5 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+
+ actual = ccopyWithin( 5, 2, 0, 5, x, 1, w, 1 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'if provided `target` parameter is greater than or equal to the `N` parameter, the function returns the strided array unchanged', opts, function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+ w = new Complex64Array( 6 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+
+ actual = ccopyWithin( 6, 6, 0, 3, x, 1, w, 1 );
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ actual = ccopyWithin( 6, 10, 0, 3, x, 1, w, 1 );
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ actual = ccopyWithin( 4, 5, 0, 3, x, 1, w, 1 );
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'if provided `N` parameter is less than or equal to `0`, the function returns the strided array unchanged', opts, function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+ w = new Complex64Array( 6 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+
+ actual = ccopyWithin( 0, 3, 1, 4, x, 1, w, 1 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ actual = ccopyWithin( -1, 3, 1, 4, x, 1, w, 1 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'if provided `start` parameter is greater than or equal to the `end` parameter, the function returns the strided array unchanged', opts, function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+ w = new Complex64Array( 6 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+
+ actual = ccopyWithin( 6, 0, 3, 1, x, 1, w, 1 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+ w = new Complex64Array( 6 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+
+ actual = ccopyWithin( 6, 0, 2, 2, x, 1, w, 1 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+ t.end();
+});
+
+tape( 'if provided `end` parameter is greater than the number of indexed elements, the function copies elements up to the last indexed element', opts, function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0 ] );
+ w = new Complex64Array( 5 );
+ expected = new Complex64Array( [ 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 7.0, 8.0, 9.0, 10.0 ] );
+
+ actual = ccopyWithin( 5, 0, 2, 10, x, 1, w, 1 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports providing an `x` stride parameter', opts, function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0 ] );
+ w = new Complex64Array( 4 );
+ expected = new Complex64Array( [ 9.0, 10.0, 3.0, 4.0, 13.0, 14.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0 ] );
+
+ actual = ccopyWithin( 4, 0, 2, 4, x, 2, w, 1 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports providing an `x` negative stride parameter', opts, function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+ w = new Complex64Array( 3 );
+ expected = new Complex64Array( [ 1.0, 2.0, 1.0, 2.0, 3.0, 4.0 ] );
+
+ actual = ccopyWithin( 3, 0, 1, 3, x, -1, w, 1 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ w = new Complex64Array( 4 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0 ] );
+
+ actual = ccopyWithin( 4, 0, 2, 4, x, -1, w, 1 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function supports a stride of zero', opts, function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+ w = new Complex64Array( 6 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+
+ actual = ccopyWithin( 6, 1, 0, 2, x, 0, w, 1 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports providing a `workspace` stride parameter', opts, function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+ w = new Complex64Array( 5 );
+ expected = new Complex64Array( [ 1.0, 2.0, 1.0, 2.0, 3.0, 4.0 ] );
+
+ actual = ccopyWithin( 3, 1, 0, 2, x, 1, w, 2 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports providing a `workspace` negative stride parameter', opts, function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+ w = new Complex64Array( 6 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+
+ actual = ccopyWithin( 6, 3, 1, 4, x, 1, w, -1 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports view offsets', opts, function test( t ) {
+ var expected;
+ var x0;
+ var x1;
+ var w;
+
+ x0 = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0 ] ); // eslint-disable-line max-len
+
+ x1 = new Complex64Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 );
+
+ w = new Complex64Array( 6 );
+
+ ccopyWithin( 6, 0, 3, 6, x1, 1, w, 1 );
+
+ expected = new Complex64Array( [ 1.0, 2.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0 ] );
+
+ t.strictEqual( isSameComplex64Array( x0, expected ), true, 'returns expected value' );
+ t.end();
+});
diff --git a/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/test/test.js b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/test/test.js
new file mode 100644
index 000000000000..0b13d4daf3d5
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/test/test.js
@@ -0,0 +1,82 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var tape = require( 'tape' );
+var proxyquire = require( 'proxyquire' );
+var IS_BROWSER = require( '@stdlib/assert/is-browser' );
+var ccopyWithin = require( './../lib' );
+
+
+// VARIABLES //
+
+var opts = {
+ 'skip': IS_BROWSER
+};
+
+
+// TESTS //
+
+tape( 'main export is a function', function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof ccopyWithin, 'function', 'main export is a function' );
+ t.end();
+});
+
+tape( 'attached to the main export is a method providing an ndarray interface', function test( t ) {
+ t.strictEqual( typeof ccopyWithin.ndarray, 'function', 'method is a function' );
+ t.end();
+});
+
+tape( 'if a native implementation is available, the main export is the native implementation', opts, function test( t ) {
+ var ccopyWithin = proxyquire( './../lib', {
+ '@stdlib/utils/try-require': tryRequire
+ });
+
+ t.strictEqual( ccopyWithin, mock, 'returns expected value' );
+ t.end();
+
+ function tryRequire() {
+ return mock;
+ }
+
+ function mock() {
+ // Mock...
+ }
+});
+
+tape( 'if a native implementation is not available, the main export is a JavaScript implementation', opts, function test( t ) {
+ var ccopyWithin;
+ var main;
+
+ main = require( './../lib/main.js' );
+
+ ccopyWithin = proxyquire( './../lib', {
+ '@stdlib/utils/try-require': tryRequire
+ });
+
+ t.strictEqual( ccopyWithin, main, 'returns expected value' );
+ t.end();
+
+ function tryRequire() {
+ return new Error( 'Cannot find module' );
+ }
+});
diff --git a/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/test/test.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/test/test.ndarray.js
new file mode 100644
index 000000000000..b846336391e6
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/test/test.ndarray.js
@@ -0,0 +1,296 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var tape = require( 'tape' );
+var isSameComplex64Array = require( '@stdlib/assert/is-same-complex64array' );
+var Complex64Array = require( '@stdlib/array/complex64' );
+var ccopyWithin = require( './../lib/ndarray.js' );
+
+
+// TESTS //
+
+tape( 'main export is a function', function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof ccopyWithin, 'function', 'main export is a function' );
+ t.end();
+});
+
+tape( 'the function has an arity of 10', function test( t ) {
+ t.strictEqual( ccopyWithin.length, 10, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function copies values within the provided single-precision complex floating-point strided array', function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+ w = new Complex64Array( 6 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+
+ actual = ccopyWithin( 6, 3, 1, 4, x, 1, 0, w, 1, 0 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+ w = new Complex64Array( 6 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+
+ actual = ccopyWithin( 6, 3, 0, 3, x, 1, 0, w, 1, 0 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0 ] );
+ w = new Complex64Array( 5 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+
+ actual = ccopyWithin( 5, 2, 0, 5, x, 1, 0, w, 1, 0 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'if provided `target` parameter is greater than or equal to the `N` parameter, the function returns the strided array unchanged', function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+ w = new Complex64Array( 6 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+
+ actual = ccopyWithin( 6, 6, 0, 3, x, 1, 0, w, 1, 0 );
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ actual = ccopyWithin( 6, 10, 0, 3, x, 1, 0, w, 1, 0 );
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ actual = ccopyWithin( 4, 5, 0, 3, x, 1, 0, w, 1, 0 );
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'if provided `N` parameter is less than or equal to `0`, the function returns the strided array unchanged', function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+ w = new Complex64Array( 6 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+
+ actual = ccopyWithin( 0, 3, 1, 4, x, 1, 0, w, 1, 0 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ actual = ccopyWithin( -1, 3, 1, 4, x, 1, 0, w, 1, 0 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'if provided `start` parameter is greater than or equal to the `end` parameter, the function returns the strided array unchanged', function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+ w = new Complex64Array( 6 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+
+ actual = ccopyWithin( 6, 0, 3, 1, x, 1, 0, w, 1, 0 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+ w = new Complex64Array( 6 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+
+ actual = ccopyWithin( 6, 0, 2, 2, x, 1, 0, w, 1, 0 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+ t.end();
+});
+
+tape( 'if provided `end` parameter is greater than the number of indexed elements, the function copies elements up to the last indexed element', function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0 ] );
+ w = new Complex64Array( 5 );
+ expected = new Complex64Array( [ 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 7.0, 8.0, 9.0, 10.0 ] );
+
+ actual = ccopyWithin( 5, 0, 2, 10, x, 1, 0, w, 1, 0 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports providing an `x` stride parameter', function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0 ] );
+ w = new Complex64Array( 4 );
+ expected = new Complex64Array( [ 9.0, 10.0, 3.0, 4.0, 13.0, 14.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0 ] );
+
+ actual = ccopyWithin( 4, 0, 2, 4, x, 2, 0, w, 1, 0 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports providing an `x` negative stride parameter', function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+ w = new Complex64Array( 3 );
+ expected = new Complex64Array( [ 1.0, 2.0, 1.0, 2.0, 3.0, 4.0 ] );
+
+ actual = ccopyWithin( 3, 0, 1, 3, x, -1, 2, w, 1, 0 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ w = new Complex64Array( 4 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0 ] );
+
+ actual = ccopyWithin( 4, 0, 2, 4, x, -1, 3, w, 1, 0 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function supports a stride of zero', function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+ w = new Complex64Array( 6 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+
+ actual = ccopyWithin( 6, 1, 0, 2, x, 0, 0, w, 1, 0 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports providing an `x` offset parameter', function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+ w = new Complex64Array( 4 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 3.0, 4.0, 5.0, 6.0, 11.0, 12.0 ] );
+
+ actual = ccopyWithin( 4, 2, 0, 2, x, 1, 1, w, 1, 0 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports providing a `workspace` stride parameter', function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+ w = new Complex64Array( 5 );
+ expected = new Complex64Array( [ 1.0, 2.0, 1.0, 2.0, 3.0, 4.0 ] );
+
+ actual = ccopyWithin( 3, 1, 0, 2, x, 1, 0, w, 2, 0 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports providing a `workspace` negative stride parameter', function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+ w = new Complex64Array( 6 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+
+ actual = ccopyWithin( 6, 3, 1, 4, x, 1, 0, w, -1, 5 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports providing a `workspace` offset parameter', function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+ w = new Complex64Array( 5 );
+ expected = new Complex64Array( [ 1.0, 2.0, 1.0, 2.0, 3.0, 4.0 ] );
+
+ actual = ccopyWithin( 3, 1, 0, 2, x, 1, 0, w, 1, 2 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+ t.end();
+});
diff --git a/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/test/test.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/test/test.ndarray.native.js
new file mode 100644
index 000000000000..195310db383c
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/ccopy-within/test/test.ndarray.native.js
@@ -0,0 +1,305 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var resolve = require( 'path' ).resolve;
+var tape = require( 'tape' );
+var isSameComplex64Array = require( '@stdlib/assert/is-same-complex64array' );
+var Complex64Array = require( '@stdlib/array/complex64' );
+var tryRequire = require( '@stdlib/utils/try-require' );
+
+
+// VARIABLES //
+
+var ccopyWithin = tryRequire( resolve( __dirname, './../lib/ndarray.native.js' ) );
+var opts = {
+ 'skip': ( ccopyWithin instanceof Error )
+};
+
+
+// TESTS //
+
+tape( 'main export is a function', opts, function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof ccopyWithin, 'function', 'main export is a function' );
+ t.end();
+});
+
+tape( 'the function has an arity of 10', opts, function test( t ) {
+ t.strictEqual( ccopyWithin.length, 10, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function copies values within the provided single-precision complex floating-point strided array', opts, function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+ w = new Complex64Array( 6 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+
+ actual = ccopyWithin( 6, 3, 1, 4, x, 1, 0, w, 1, 0 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+ w = new Complex64Array( 6 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+
+ actual = ccopyWithin( 6, 3, 0, 3, x, 1, 0, w, 1, 0 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0 ] );
+ w = new Complex64Array( 5 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+
+ actual = ccopyWithin( 5, 2, 0, 5, x, 1, 0, w, 1, 0 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'if provided `target` parameter is greater than or equal to the `N` parameter, the function returns the strided array unchanged', opts, function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+ w = new Complex64Array( 6 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+
+ actual = ccopyWithin( 6, 6, 0, 3, x, 1, 0, w, 1, 0 );
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ actual = ccopyWithin( 6, 10, 0, 3, x, 1, 0, w, 1, 0 );
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ actual = ccopyWithin( 4, 5, 0, 3, x, 1, 0, w, 1, 0 );
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'if provided `N` parameter is less than or equal to `0`, the function returns the strided array unchanged', opts, function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+ w = new Complex64Array( 6 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+
+ actual = ccopyWithin( 0, 3, 1, 4, x, 1, 0, w, 1, 0 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ actual = ccopyWithin( -1, 3, 1, 4, x, 1, 0, w, 1, 0 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'if provided `start` parameter is greater than or equal to the `end` parameter, the function returns the strided array unchanged', opts, function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+ w = new Complex64Array( 6 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+
+ actual = ccopyWithin( 6, 0, 3, 1, x, 1, 0, w, 1, 0 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+ w = new Complex64Array( 6 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+
+ actual = ccopyWithin( 6, 0, 2, 2, x, 1, 0, w, 1, 0 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+ t.end();
+});
+
+tape( 'if provided `end` parameter is greater than the number of indexed elements, the function copies elements up to the last indexed element', opts, function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0 ] );
+ w = new Complex64Array( 5 );
+ expected = new Complex64Array( [ 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 7.0, 8.0, 9.0, 10.0 ] );
+
+ actual = ccopyWithin( 5, 0, 2, 10, x, 1, 0, w, 1, 0 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports providing an `x` stride parameter', opts, function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0 ] );
+ w = new Complex64Array( 4 );
+ expected = new Complex64Array( [ 9.0, 10.0, 3.0, 4.0, 13.0, 14.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0 ] );
+
+ actual = ccopyWithin( 4, 0, 2, 4, x, 2, 0, w, 1, 0 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports providing an `x` negative stride parameter', opts, function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+ w = new Complex64Array( 3 );
+ expected = new Complex64Array( [ 1.0, 2.0, 1.0, 2.0, 3.0, 4.0 ] );
+
+ actual = ccopyWithin( 3, 0, 1, 3, x, -1, 2, w, 1, 0 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+ w = new Complex64Array( 4 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0 ] );
+
+ actual = ccopyWithin( 4, 0, 2, 4, x, -1, 3, w, 1, 0 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function supports a stride of zero', opts, function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+ w = new Complex64Array( 6 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+
+ actual = ccopyWithin( 6, 1, 0, 2, x, 0, 0, w, 1, 0 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports providing an `x` offset parameter', opts, function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+ w = new Complex64Array( 4 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 3.0, 4.0, 5.0, 6.0, 11.0, 12.0 ] );
+
+ actual = ccopyWithin( 4, 2, 0, 2, x, 1, 1, w, 1, 0 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports providing a `workspace` stride parameter', opts, function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+ w = new Complex64Array( 5 );
+ expected = new Complex64Array( [ 1.0, 2.0, 1.0, 2.0, 3.0, 4.0 ] );
+
+ actual = ccopyWithin( 3, 1, 0, 2, x, 1, 0, w, 2, 0 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports providing a `workspace` negative stride parameter', opts, function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
+ w = new Complex64Array( 6 );
+ expected = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
+
+ actual = ccopyWithin( 6, 3, 1, 4, x, 1, 0, w, -1, 5 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports providing a `workspace` offset parameter', opts, function test( t ) {
+ var expected;
+ var actual;
+ var x;
+ var w;
+
+ x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+ w = new Complex64Array( 5 );
+ expected = new Complex64Array( [ 1.0, 2.0, 1.0, 2.0, 3.0, 4.0 ] );
+
+ actual = ccopyWithin( 3, 1, 0, 2, x, 1, 0, w, 1, 2 );
+
+ t.strictEqual( actual, x, 'returns expected value' );
+ t.strictEqual( isSameComplex64Array( x, expected ), true, 'returns expected value' );
+ t.end();
+});