diff --git a/lib/node_modules/@stdlib/blas/ext/base/greplicate/README.md b/lib/node_modules/@stdlib/blas/ext/base/greplicate/README.md
new file mode 100644
index 000000000000..909f0efa1a8a
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/greplicate/README.md
@@ -0,0 +1,176 @@
+
+
+# greplicate
+
+> Replicate each strided array element a specified number of times.
+
+
+
+
+
+
+
+## Usage
+
+```javascript
+var greplicate = require( '@stdlib/blas/ext/base/greplicate' );
+```
+
+#### greplicate( N, k, x, strideX, out, strideOut )
+
+Replicates each strided array element a specified number of times.
+
+```javascript
+var x = [ 1.0, 2.0, 3.0 ];
+var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+
+greplicate( x.length, 2, x, 1, out, 1 );
+// out => [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ]
+```
+
+The function has the following parameters:
+
+- **N**: number of indexed elements.
+- **k**: number of times to replicate.
+- **x**: input array.
+- **strideX**: stride length for `x`.
+- **out**: output array.
+- **strideOut**: stride length for `out`.
+
+The `N` and stride parameters determine which elements in the strided arrays are accessed at runtime. For example, to replicate every other element:
+
+```javascript
+var x = [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ];
+var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+
+greplicate( 3, 2, x, 2, out, 1 );
+// out => [ 1.0, 1.0, 3.0, 3.0, 5.0, 5.0 ]
+```
+
+Note that indexing is relative to the first index. To introduce an offset, use [`typed array`][mdn-typed-array] views.
+
+
+
+```javascript
+var Float64Array = require( '@stdlib/array/float64' );
+
+// Initial arrays...
+var x0 = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+var out0 = new Float64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
+
+// Create offset views...
+var x1 = new Float64Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // start at 2nd element
+var out1 = new Float64Array( out0.buffer, out0.BYTES_PER_ELEMENT*2 ); // start at 3rd element
+
+greplicate( 3, 2, x1, 2, out1, 1 );
+// out0 => [ 0.0, 0.0, 2.0, 2.0, 4.0, 4.0, 6.0, 6.0 ]
+```
+
+#### greplicate.ndarray( N, k, x, strideX, offsetX, out, strideOut, offsetOut )
+
+Replicates each strided array element a specified number of times using alternative indexing semantics.
+
+```javascript
+var x = [ 1.0, 2.0, 3.0 ];
+var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+
+greplicate.ndarray( x.length, 2, x, 1, 0, out, 1, 0 );
+// out => [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ]
+```
+
+The function has the following additional parameters:
+
+- **offsetX**: starting index for `x`.
+- **offsetOut**: starting index for `out`.
+
+While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying buffer, offset parameters support indexing semantics based on starting indices. For example, to replicate every other element in the strided input array starting from the second element and to store in the last `N*k` elements of the strided output array starting from the last element:
+
+```javascript
+var x = [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ];
+var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+
+greplicate.ndarray( 3, 2, x, 2, 1, out, -1, out.length-1 );
+// out => [ 6.0, 6.0, 4.0, 4.0, 2.0, 2.0 ]
+```
+
+
+
+
+
+
+
+## Notes
+
+- If `N <= 0` or `k <= 0`, both functions return `out` unchanged.
+- Both functions support array-like objects having getter and setter accessors for array element access (e.g., [`@stdlib/array/base/accessor`][@stdlib/array/base/accessor]).
+
+
+
+
+
+
+
+## Examples
+
+
+
+```javascript
+var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
+var Float64Array = require( '@stdlib/array/float64' );
+var greplicate = require( '@stdlib/blas/ext/base/greplicate' );
+
+var x = discreteUniform( 10, -100, 100, {
+ 'dtype': 'float64'
+});
+console.log( x );
+
+var out = new Float64Array( x.length * 3 );
+console.log( out );
+
+greplicate( x.length, 3, x, 1, out, 1 );
+console.log( out );
+```
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+[mdn-typed-array]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray
+
+[@stdlib/array/base/accessor]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/array/base/accessor
+
+
+
+
diff --git a/lib/node_modules/@stdlib/blas/ext/base/greplicate/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/greplicate/benchmark/benchmark.js
new file mode 100644
index 000000000000..fa40e657c74b
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/greplicate/benchmark/benchmark.js
@@ -0,0 +1,106 @@
+/**
+* @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 isnan = require( '@stdlib/math/base/assert/is-nan' );
+var pow = require( '@stdlib/math/base/special/pow' );
+var zeros = require( '@stdlib/array/zeros' );
+var format = require( '@stdlib/string/format' );
+var pkg = require( './../package.json' ).name;
+var greplicate = require( './../lib/main.js' );
+
+
+// VARIABLES //
+
+var options = {
+ 'dtype': 'generic'
+};
+
+
+// FUNCTIONS //
+
+/**
+* Creates a benchmark function.
+*
+* @private
+* @param {PositiveInteger} len - array length
+* @returns {Function} benchmark function
+*/
+function createBenchmark( len ) {
+ var out = zeros( len * 2, options.dtype );
+ var x = uniform( len, -100, 100, options );
+ return benchmark;
+
+ /**
+ * Benchmark function.
+ *
+ * @private
+ * @param {Benchmark} b - benchmark instance
+ */
+ function benchmark( b ) {
+ var v;
+ var i;
+
+ b.tic();
+ for ( i = 0; i < b.iterations; i++ ) {
+ x[ 0 ] += 1.0;
+ v = greplicate( x.length, 2, x, 1, out, 1 );
+ if ( isnan( v[ i % ( len * 2 ) ] ) ) {
+ b.fail( 'should not return NaN' );
+ }
+ }
+ b.toc();
+ if ( isnan( v[ 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/greplicate/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/greplicate/benchmark/benchmark.ndarray.js
new file mode 100644
index 000000000000..aa6ec6ad0d2b
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/greplicate/benchmark/benchmark.ndarray.js
@@ -0,0 +1,106 @@
+/**
+* @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 isnan = require( '@stdlib/math/base/assert/is-nan' );
+var pow = require( '@stdlib/math/base/special/pow' );
+var zeros = require( '@stdlib/array/zeros' );
+var format = require( '@stdlib/string/format' );
+var pkg = require( './../package.json' ).name;
+var greplicate = require( './../lib/ndarray.js' );
+
+
+// VARIABLES //
+
+var options = {
+ 'dtype': 'generic'
+};
+
+
+// FUNCTIONS //
+
+/**
+* Creates a benchmark function.
+*
+* @private
+* @param {PositiveInteger} len - array length
+* @returns {Function} benchmark function
+*/
+function createBenchmark( len ) {
+ var out = zeros( len * 2, options.dtype );
+ var x = uniform( len, -100, 100, options );
+ return benchmark;
+
+ /**
+ * Benchmark function.
+ *
+ * @private
+ * @param {Benchmark} b - benchmark instance
+ */
+ function benchmark( b ) {
+ var v;
+ var i;
+
+ b.tic();
+ for ( i = 0; i < b.iterations; i++ ) {
+ x[ 0 ] += 1.0;
+ v = greplicate( x.length, 2, x, 1, 0, out, 1, 0 );
+ if ( isnan( v[ i % ( len * 2 ) ] ) ) {
+ b.fail( 'should not return NaN' );
+ }
+ }
+ b.toc();
+ if ( isnan( v[ 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/greplicate/docs/repl.txt b/lib/node_modules/@stdlib/blas/ext/base/greplicate/docs/repl.txt
new file mode 100644
index 000000000000..3bcd4e86be97
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/greplicate/docs/repl.txt
@@ -0,0 +1,118 @@
+
+{{alias}}( N, k, x, strideX, out, strideOut )
+ Replicates each strided array element a specified number of times.
+
+ The `N` and stride parameters determine which elements in the strided arrays
+ are accessed at runtime.
+
+ Indexing is relative to the first index. To introduce an offset, use a typed
+ array view.
+
+ If `N <= 0` or `k <= 0`, the function returns `out` unchanged.
+
+ Parameters
+ ----------
+ N: integer
+ Number of indexed elements.
+
+ k: integer
+ Number of times to replicate.
+
+ x: Array|TypedArray
+ Input array.
+
+ strideX: integer
+ Stride length for `x`.
+
+ out: Array|TypedArray
+ Output array.
+
+ strideOut: integer
+ Stride length for `out`.
+
+ Returns
+ -------
+ out: Array|TypedArray
+ Output array.
+
+ Examples
+ --------
+ // Standard Usage:
+ > var x = [ 1.0, 2.0, 3.0 ];
+ > var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+ > {{alias}}( x.length, 2, x, 1, out, 1 )
+ [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ]
+
+ // Using `N` and stride parameters:
+ > x = [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ];
+ > out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+ > {{alias}}( 3, 2, x, 2, out, 1 )
+ [ 1.0, 1.0, 3.0, 3.0, 5.0, 5.0 ]
+
+ // Using view offsets:
+ > var x0 = new {{alias:@stdlib/array/float64}}( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
+ > var out0 = new {{alias:@stdlib/array/float64}}( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
+ > var x1 = new {{alias:@stdlib/array/float64}}( x0.buffer, x0.BYTES_PER_ELEMENT*1 );
+ > var out1 = new {{alias:@stdlib/array/float64}}( out0.buffer, out0.BYTES_PER_ELEMENT*2 );
+ > {{alias}}( 3, 2, x1, 2, out1, 1 )
+ [ 2.0, 2.0, 4.0, 4.0, 6.0, 6.0 ]
+ > out0
+ [ 0.0, 0.0, 2.0, 2.0, 4.0, 4.0, 6.0, 6.0 ]
+
+
+{{alias}}.ndarray( N, k, x, strideX, offsetX, out, strideOut, offsetOut )
+ Replicates each strided array element a specified number of times 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.
+
+ k: integer
+ Number of times to replicate.
+
+ x: Array|TypedArray
+ Input array.
+
+ strideX: integer
+ Stride length for `x`.
+
+ offsetX: integer
+ Starting index for `x`.
+
+ out: Array|TypedArray
+ Output array.
+
+ strideOut: integer
+ Stride length for `out`.
+
+ offsetOut: integer
+ Starting index for `out`.
+
+ Returns
+ -------
+ out: Array|TypedArray
+ Output array.
+
+ Examples
+ --------
+ // Standard Usage:
+ > var x = [ 1.0, 2.0, 3.0 ];
+ > var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+ > {{alias}}.ndarray( x.length, 2, x, 1, 0, out, 1, 0 )
+ [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ]
+
+ // Advanced indexing:
+ > x = [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ];
+ > out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+ > {{alias}}.ndarray( 3, 2, x, 2, 1, out, -1, out.length-1 )
+ [ 6.0, 6.0, 4.0, 4.0, 2.0, 2.0 ]
+
+ See Also
+ --------
+
diff --git a/lib/node_modules/@stdlib/blas/ext/base/greplicate/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/ext/base/greplicate/docs/types/index.d.ts
new file mode 100644
index 000000000000..82323b51dc22
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/greplicate/docs/types/index.d.ts
@@ -0,0 +1,112 @@
+/*
+* @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 { Collection, AccessorArrayLike } from '@stdlib/types/array';
+
+/**
+* Input array.
+*/
+type InputArray = Collection | AccessorArrayLike;
+
+/**
+* Output array.
+*/
+type OutputArray = Collection | AccessorArrayLike;
+
+/**
+* Interface describing `greplicate`.
+*/
+interface Routine {
+ /**
+ * Replicates each strided array element a specified number of times.
+ *
+ * @param N - number of indexed elements
+ * @param k - number of times to replicate
+ * @param x - input array
+ * @param strideX - stride length for `x`
+ * @param out - output array
+ * @param strideOut - stride length for `out`
+ * @returns output array
+ *
+ * @example
+ * var x = [ 1.0, 2.0, 3.0 ];
+ * var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+ *
+ * greplicate( x.length, 2, x, 1, out, 1 );
+ * // out => [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ]
+ */
+ ( N: number, k: number, x: InputArray, strideX: number, out: T, strideOut: number ): T;
+
+ /**
+ * Replicates each strided array element a specified number of times using alternative indexing semantics.
+ *
+ * @param N - number of indexed elements
+ * @param k - number of times to replicate
+ * @param x - input array
+ * @param strideX - stride length for `x`
+ * @param offsetX - starting index for `x`
+ * @param out - output array
+ * @param strideOut - stride length for `out`
+ * @param offsetOut - starting index for `out`
+ * @returns output array
+ *
+ * @example
+ * var x = [ 1.0, 2.0, 3.0 ];
+ * var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+ *
+ * greplicate.ndarray( x.length, 2, x, 1, 0, out, 1, 0 );
+ * // out => [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ]
+ */
+ ndarray( N: number, k: number, x: InputArray, strideX: number, offsetX: number, out: T, strideOut: number, offsetOut: number ): T;
+}
+
+/**
+* Replicates each strided array element a specified number of times.
+*
+* @param N - number of indexed elements
+* @param k - number of times to replicate
+* @param x - input array
+* @param strideX - stride length for `x`
+* @param out - output array
+* @param strideOut - stride length for `out`
+* @returns output array
+*
+* @example
+* var x = [ 1.0, 2.0, 3.0 ];
+* var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+*
+* greplicate( x.length, 2, x, 1, out, 1 );
+* // out => [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ]
+*
+* @example
+* var x = [ 1.0, 2.0, 3.0 ];
+* var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+*
+* greplicate.ndarray( x.length, 2, x, 1, 0, out, 1, 0 );
+* // out => [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ]
+*/
+declare var greplicate: Routine;
+
+
+// EXPORTS //
+
+export = greplicate;
diff --git a/lib/node_modules/@stdlib/blas/ext/base/greplicate/docs/types/test.ts b/lib/node_modules/@stdlib/blas/ext/base/greplicate/docs/types/test.ts
new file mode 100644
index 000000000000..70e83d73a87d
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/greplicate/docs/types/test.ts
@@ -0,0 +1,283 @@
+/*
+* @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 AccessorArray = require( '@stdlib/array/base/accessor' );
+import greplicate = require( './index' );
+
+
+// TESTS //
+
+// The function returns a numeric array...
+{
+ const x = new Float64Array( 10 );
+ const out = new Float64Array( 20 );
+
+ greplicate( x.length, 2, x, 1, out, 1 ); // $ExpectType Float64Array
+ greplicate( x.length, 2, new AccessorArray( x ), 1, new AccessorArray( out ), 1 ); // $ExpectType AccessorArray
+}
+
+// The compiler throws an error if the function is provided a first argument which is not a number...
+{
+ const x = new Float64Array( 10 );
+ const out = new Float64Array( 20 );
+
+ greplicate( '10', 2, x, 1, out, 1 ); // $ExpectError
+ greplicate( true, 2, x, 1, out, 1 ); // $ExpectError
+ greplicate( false, 2, x, 1, out, 1 ); // $ExpectError
+ greplicate( null, 2, x, 1, out, 1 ); // $ExpectError
+ greplicate( undefined, 2, x, 1, out, 1 ); // $ExpectError
+ greplicate( [], 2, x, 1, out, 1 ); // $ExpectError
+ greplicate( {}, 2, x, 1, out, 1 ); // $ExpectError
+ greplicate( ( x: number ): number => x, 2, x, 1, out, 1 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a second argument which is not a number...
+{
+ const x = new Float64Array( 10 );
+ const out = new Float64Array( 20 );
+
+ greplicate( x.length, '10', x, 1, out, 1 ); // $ExpectError
+ greplicate( x.length, true, x, 1, out, 1 ); // $ExpectError
+ greplicate( x.length, false, x, 1, out, 1 ); // $ExpectError
+ greplicate( x.length, null, x, 1, out, 1 ); // $ExpectError
+ greplicate( x.length, undefined, x, 1, out, 1 ); // $ExpectError
+ greplicate( x.length, [], x, 1, out, 1 ); // $ExpectError
+ greplicate( x.length, {}, x, 1, out, 1 ); // $ExpectError
+ greplicate( x.length, ( x: number ): number => x, x, 1, out, 1 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a third argument which is not a numeric array...
+{
+ const x = new Float64Array( 10 );
+ const out = new Float64Array( 20 );
+
+ greplicate( x.length, 2, 10, 1, out, 1 ); // $ExpectError
+ greplicate( x.length, 2, '10', 1, out, 1 ); // $ExpectError
+ greplicate( x.length, 2, true, 1, out, 1 ); // $ExpectError
+ greplicate( x.length, 2, false, 1, out, 1 ); // $ExpectError
+ greplicate( x.length, 2, null, 1, out, 1 ); // $ExpectError
+ greplicate( x.length, 2, undefined, 1, out, 1 ); // $ExpectError
+ greplicate( x.length, 2, [ '1' ], 1, out, 1 ); // $ExpectError
+ greplicate( x.length, 2, {}, 1, out, 1 ); // $ExpectError
+ greplicate( x.length, 2, ( x: number ): number => x, 1, out, 1 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a fourth argument which is not a number...
+{
+ const x = new Float64Array( 10 );
+ const out = new Float64Array( 20 );
+
+ greplicate( x.length, 2, x, '10', out, 1 ); // $ExpectError
+ greplicate( x.length, 2, x, true, out, 1 ); // $ExpectError
+ greplicate( x.length, 2, x, false, out, 1 ); // $ExpectError
+ greplicate( x.length, 2, x, null, out, 1 ); // $ExpectError
+ greplicate( x.length, 2, x, undefined, out, 1 ); // $ExpectError
+ greplicate( x.length, 2, x, [], out, 1 ); // $ExpectError
+ greplicate( x.length, 2, x, {}, out, 1 ); // $ExpectError
+ greplicate( x.length, 2, x, ( x: number ): number => x, out, 1 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a fifth argument which is not a numeric array...
+{
+ const x = new Float64Array( 10 );
+
+ greplicate( x.length, 2, x, 1, 10, 1 ); // $ExpectError
+ greplicate( x.length, 2, x, 1, '10', 1 ); // $ExpectError
+ greplicate( x.length, 2, x, 1, true, 1 ); // $ExpectError
+ greplicate( x.length, 2, x, 1, false, 1 ); // $ExpectError
+ greplicate( x.length, 2, x, 1, null, 1 ); // $ExpectError
+ greplicate( x.length, 2, x, 1, undefined, 1 ); // $ExpectError
+ greplicate( x.length, 2, x, 1, [ '1' ], 1 ); // $ExpectError
+ greplicate( x.length, 2, x, 1, {}, 1 ); // $ExpectError
+ greplicate( x.length, 2, x, 1, ( x: number ): number => x, 1 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a sixth argument which is not a number...
+{
+ const x = new Float64Array( 10 );
+ const out = new Float64Array( 20 );
+
+ greplicate( x.length, 2, x, 1, out, '10' ); // $ExpectError
+ greplicate( x.length, 2, x, 1, out, true ); // $ExpectError
+ greplicate( x.length, 2, x, 1, out, false ); // $ExpectError
+ greplicate( x.length, 2, x, 1, out, null ); // $ExpectError
+ greplicate( x.length, 2, x, 1, out, undefined ); // $ExpectError
+ greplicate( x.length, 2, x, 1, out, [] ); // $ExpectError
+ greplicate( x.length, 2, x, 1, out, {} ); // $ExpectError
+ greplicate( x.length, 2, x, 1, out, ( x: number ): number => x ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided an unsupported number of arguments...
+{
+ const x = new Float64Array( 10 );
+ const out = new Float64Array( 20 );
+
+ greplicate(); // $ExpectError
+ greplicate( x.length ); // $ExpectError
+ greplicate( x.length, 2 ); // $ExpectError
+ greplicate( x.length, 2, x ); // $ExpectError
+ greplicate( x.length, 2, x, 1 ); // $ExpectError
+ greplicate( x.length, 2, x, 1, out ); // $ExpectError
+ greplicate( x.length, 2, x, 1, out, 1, 10 ); // $ExpectError
+}
+
+// Attached to main export is an `ndarray` method which returns a numeric array...
+{
+ const x = new Float64Array( 10 );
+ const out = new Float64Array( 20 );
+
+ greplicate.ndarray( x.length, 2, x, 1, 0, out, 1, 0 ); // $ExpectType Float64Array
+ greplicate.ndarray( x.length, 2, new AccessorArray( x ), 1, 0, new AccessorArray( out ), 1, 0 ); // $ExpectType AccessorArray
+}
+
+// The compiler throws an error if the `ndarray` method is provided a first argument which is not a number...
+{
+ const x = new Float64Array( 10 );
+ const out = new Float64Array( 20 );
+
+ greplicate.ndarray( '10', 2, x, 1, 0, out, 1, 0 ); // $ExpectError
+ greplicate.ndarray( true, 2, x, 1, 0, out, 1, 0 ); // $ExpectError
+ greplicate.ndarray( false, 2, x, 1, 0, out, 1, 0 ); // $ExpectError
+ greplicate.ndarray( null, 2, x, 1, 0, out, 1, 0 ); // $ExpectError
+ greplicate.ndarray( undefined, 2, x, 1, 0, out, 1, 0 ); // $ExpectError
+ greplicate.ndarray( [], 2, x, 1, 0, out, 1, 0 ); // $ExpectError
+ greplicate.ndarray( {}, 2, x, 1, 0, out, 1, 0 ); // $ExpectError
+ greplicate.ndarray( ( x: number ): number => x, 2, x, 1, 0, out, 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 Float64Array( 10 );
+ const out = new Float64Array( 20 );
+
+ greplicate.ndarray( x.length, '10', x, 1, 0, out, 1, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, true, x, 1, 0, out, 1, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, false, x, 1, 0, out, 1, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, null, x, 1, 0, out, 1, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, undefined, x, 1, 0, out, 1, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, [], x, 1, 0, out, 1, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, {}, x, 1, 0, out, 1, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, ( x: number ): number => x, x, 1, 0, out, 1, 0 ); // $ExpectError
+}
+
+// The compiler throws an error if the `ndarray` method is provided a third argument which is not a numeric array...
+{
+ const x = new Float64Array( 10 );
+ const out = new Float64Array( 20 );
+
+ greplicate.ndarray( x.length, 2, 10, 1, 0, out, 1, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, 2, '10', 1, 0, out, 1, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, 2, true, 1, 0, out, 1, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, 2, false, 1, 0, out, 1, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, 2, null, 1, 0, out, 1, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, 2, undefined, 1, 0, out, 1, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, 2, [ '1' ], 1, 0, out, 1, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, 2, {}, 1, 0, out, 1, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, 2, ( x: number ): number => x, 1, 0, out, 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 Float64Array( 10 );
+ const out = new Float64Array( 20 );
+
+ greplicate.ndarray( x.length, 2, x, '10', 0, out, 1, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x, true, 0, out, 1, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x, false, 0, out, 1, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x, null, 0, out, 1, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x, undefined, 0, out, 1, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x, [], 0, out, 1, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x, {}, 0, out, 1, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x, ( x: number ): number => x, 0, out, 1, 0 ); // $ExpectError
+}
+
+// The compiler throws an error if the `ndarray` method is provided a fifth argument which is not a number...
+{
+ const x = new Float64Array( 10 );
+ const out = new Float64Array( 20 );
+
+ greplicate.ndarray( x.length, 2, x, 1, '10', out, 1, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x, 1, true, out, 1, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x, 1, false, out, 1, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x, 1, null, out, 1, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x, 1, undefined, out, 1, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x, 1, [], out, 1, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x, 1, {}, out, 1, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x, 1, ( x: number ): number => x, out, 1, 0 ); // $ExpectError
+}
+
+// The compiler throws an error if the `ndarray` method is provided a sixth argument which is not a numeric array...
+{
+ const x = new Float64Array( 10 );
+
+ greplicate.ndarray( x.length, 2, x, 1, 0, 10, 1, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x, 1, 0, '10', 1, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x, 1, 0, true, 1, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x, 1, 0, false, 1, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x, 1, 0, null, 1, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x, 1, 0, undefined, 1, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x, 1, 0, [ '1' ], 1, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x, 1, 0, {}, 1, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x, 1, 0, ( x: number ): number => x, 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 Float64Array( 10 );
+ const out = new Float64Array( 20 );
+
+ greplicate.ndarray( x.length, 2, x, 1, 0, out, '10', 0 ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x, 1, 0, out, true, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x, 1, 0, out, false, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x, 1, 0, out, null, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x, 1, 0, out, undefined, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x, 1, 0, out, [], 0 ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x, 1, 0, out, {}, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x, 1, 0, out, ( x: number ): number => x, 0 ); // $ExpectError
+}
+
+// The compiler throws an error if the `ndarray` method is provided an eighth argument which is not a number...
+{
+ const x = new Float64Array( 10 );
+ const out = new Float64Array( 20 );
+
+ greplicate.ndarray( x.length, 2, x, 1, 0, out, 1, '10' ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x, 1, 0, out, 1, true ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x, 1, 0, out, 1, false ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x, 1, 0, out, 1, null ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x, 1, 0, out, 1, undefined ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x, 1, 0, out, 1, [] ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x, 1, 0, out, 1, {} ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x, 1, 0, out, 1, ( x: number ): number => x ); // $ExpectError
+}
+
+// The compiler throws an error if the `ndarray` method is provided an unsupported number of arguments...
+{
+ const x = new Float64Array( 10 );
+ const out = new Float64Array( 20 );
+
+ greplicate.ndarray(); // $ExpectError
+ greplicate.ndarray( x.length ); // $ExpectError
+ greplicate.ndarray( x.length, 2 ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x, 1 ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x, 1, 0 ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x, 1, 0, out ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x, 1, 0, out, 1 ); // $ExpectError
+ greplicate.ndarray( x.length, 2, x, 1, 0, out, 1, 0, 10 ); // $ExpectError
+}
diff --git a/lib/node_modules/@stdlib/blas/ext/base/greplicate/examples/index.js b/lib/node_modules/@stdlib/blas/ext/base/greplicate/examples/index.js
new file mode 100644
index 000000000000..8b0db9a9d84e
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/greplicate/examples/index.js
@@ -0,0 +1,34 @@
+/**
+* @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 Float64Array = require( '@stdlib/array/float64' );
+var greplicate = require( './../lib' );
+
+var x = discreteUniform( 10, -100, 100, {
+ 'dtype': 'float64'
+});
+console.log( x );
+
+var out = new Float64Array( x.length * 3 );
+console.log( out );
+
+greplicate( x.length, 3, x, 1, out, 1 );
+console.log( out );
diff --git a/lib/node_modules/@stdlib/blas/ext/base/greplicate/lib/accessors.js b/lib/node_modules/@stdlib/blas/ext/base/greplicate/lib/accessors.js
new file mode 100644
index 000000000000..338c294b76d0
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/greplicate/lib/accessors.js
@@ -0,0 +1,88 @@
+/**
+* @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';
+
+// MAIN //
+
+/**
+* Replicates each strided array element a specified number of times.
+*
+* @private
+* @param {PositiveInteger} N - number of indexed elements
+* @param {PositiveInteger} k - number of times to replicate
+* @param {Object} x - input array object
+* @param {Collection} x.data - input array data
+* @param {Array} x.accessors - array element accessors
+* @param {integer} strideX - stride length for `x`
+* @param {NonNegativeInteger} offsetX - starting index for `x`
+* @param {Object} out - output array object
+* @param {Collection} out.data - output array data
+* @param {Array} out.accessors - array element accessors
+* @param {integer} strideOut - stride length for `out`
+* @param {NonNegativeInteger} offsetOut - starting index for `out`
+* @returns {Object} output array object
+*
+* @example
+* var toAccessorArray = require( '@stdlib/array/base/to-accessor-array' );
+* var arraylike2object = require( '@stdlib/array/base/arraylike2object' );
+*
+* var x = toAccessorArray( [ 1.0, 2.0, 3.0 ] );
+* var out = toAccessorArray( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
+*
+* greplicate( 3, 2, arraylike2object( x ), 1, 0, arraylike2object( out ), 1, 0 );
+*
+* var v = out.get( 0 );
+* // returns 1.0
+*/
+function greplicate( N, k, x, strideX, offsetX, out, strideOut, offsetOut ) {
+ var xbuf;
+ var obuf;
+ var get;
+ var set;
+ var io;
+ var ix;
+ var v;
+ var i;
+ var j;
+
+ // Cache references to array data:
+ xbuf = x.data;
+ obuf = out.data;
+
+ // Cache references to element accessors:
+ get = x.accessors[ 0 ];
+ set = out.accessors[ 1 ];
+
+ ix = offsetX;
+ io = offsetOut;
+ for ( i = 0; i < N; i++ ) {
+ v = get( xbuf, ix );
+ for ( j = 0; j < k; j++ ) {
+ set( obuf, io, v );
+ io += strideOut;
+ }
+ ix += strideX;
+ }
+ return out;
+}
+
+
+// EXPORTS //
+
+module.exports = greplicate;
diff --git a/lib/node_modules/@stdlib/blas/ext/base/greplicate/lib/index.js b/lib/node_modules/@stdlib/blas/ext/base/greplicate/lib/index.js
new file mode 100644
index 000000000000..b3f1cb204333
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/greplicate/lib/index.js
@@ -0,0 +1,59 @@
+/**
+* @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';
+
+/**
+* Replicate each strided array element a specified number of times.
+*
+* @module @stdlib/blas/ext/base/greplicate
+*
+* @example
+* var greplicate = require( '@stdlib/blas/ext/base/greplicate' );
+*
+* var x = [ 1.0, 2.0, 3.0 ];
+* var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+*
+* greplicate( x.length, 2, x, 1, out, 1 );
+* // out => [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ]
+*
+* @example
+* var greplicate = require( '@stdlib/blas/ext/base/greplicate' );
+*
+* var x = [ 1.0, 2.0, 3.0 ];
+* var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+*
+* greplicate.ndarray( 3, 2, x, 1, 0, out, 1, 0 );
+* // out => [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ]
+*/
+
+// MODULES //
+
+var setReadOnly = require( '@stdlib/utils/define-nonenumerable-read-only-property' );
+var main = require( './main.js' );
+var ndarray = require( './ndarray.js' );
+
+
+// MAIN //
+
+setReadOnly( main, 'ndarray', ndarray );
+
+
+// EXPORTS //
+
+module.exports = main;
diff --git a/lib/node_modules/@stdlib/blas/ext/base/greplicate/lib/main.js b/lib/node_modules/@stdlib/blas/ext/base/greplicate/lib/main.js
new file mode 100644
index 000000000000..53bd83a7e389
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/greplicate/lib/main.js
@@ -0,0 +1,56 @@
+/**
+* @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 stride2offset = require( '@stdlib/strided/base/stride2offset' );
+var ndarray = require( './ndarray.js' );
+
+
+// MAIN //
+
+/**
+* Replicates each strided array element a specified number of times.
+*
+* @param {PositiveInteger} N - number of indexed elements
+* @param {PositiveInteger} k - number of times to replicate
+* @param {Collection} x - input array
+* @param {integer} strideX - stride length for `x`
+* @param {Collection} out - output array
+* @param {integer} strideOut - stride length for `out`
+* @returns {Collection} output array
+*
+* @example
+* var x = [ 1.0, 2.0, 3.0 ];
+* var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+*
+* greplicate( x.length, 2, x, 1, out, 1 );
+* // out => [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ]
+*/
+function greplicate( N, k, x, strideX, out, strideOut ) {
+ var ox = stride2offset( N, strideX );
+ var oo = stride2offset( N * k, strideOut );
+ return ndarray( N, k, x, strideX, ox, out, strideOut, oo );
+}
+
+
+// EXPORTS //
+
+module.exports = greplicate;
diff --git a/lib/node_modules/@stdlib/blas/ext/base/greplicate/lib/ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/greplicate/lib/ndarray.js
new file mode 100644
index 000000000000..a3f4a6ca73bd
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/greplicate/lib/ndarray.js
@@ -0,0 +1,83 @@
+/**
+* @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 arraylike2object = require( '@stdlib/array/base/arraylike2object' );
+var accessors = require( './accessors.js' );
+
+
+// MAIN //
+
+/**
+* Replicates each strided array element a specified number of times.
+*
+* @param {PositiveInteger} N - number of indexed elements
+* @param {PositiveInteger} k - number of times to replicate
+* @param {Collection} x - input array
+* @param {integer} strideX - stride length for `x`
+* @param {NonNegativeInteger} offsetX - starting index for `x`
+* @param {Collection} out - output array
+* @param {integer} strideOut - stride length for `out`
+* @param {NonNegativeInteger} offsetOut - starting index for `out`
+* @returns {Collection} output array
+*
+* @example
+* var x = [ 1.0, 2.0, 3.0 ];
+* var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+*
+* greplicate( 3, 2, x, 1, 0, out, 1, 0 );
+* // out => [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ]
+*/
+function greplicate( N, k, x, strideX, offsetX, out, strideOut, offsetOut ) {
+ var io;
+ var ix;
+ var ox;
+ var oy;
+ var v;
+ var i;
+ var j;
+
+ if ( N <= 0 || k <= 0 ) {
+ return out;
+ }
+ ox = arraylike2object( x );
+ oy = arraylike2object( out );
+ if ( ox.accessorProtocol || oy.accessorProtocol ) {
+ accessors( N, k, ox, strideX, offsetX, oy, strideOut, offsetOut );
+ return out;
+ }
+ ix = offsetX;
+ io = offsetOut;
+ for ( i = 0; i < N; i++ ) {
+ v = x[ ix ];
+ for ( j = 0; j < k; j++ ) {
+ out[ io ] = v;
+ io += strideOut;
+ }
+ ix += strideX;
+ }
+ return out;
+}
+
+
+// EXPORTS //
+
+module.exports = greplicate;
diff --git a/lib/node_modules/@stdlib/blas/ext/base/greplicate/package.json b/lib/node_modules/@stdlib/blas/ext/base/greplicate/package.json
new file mode 100644
index 000000000000..d3f54d4bca0b
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/greplicate/package.json
@@ -0,0 +1,67 @@
+{
+ "name": "@stdlib/blas/ext/base/greplicate",
+ "version": "0.0.0",
+ "description": "Replicate each strided array element a specified number of times.",
+ "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",
+ "directories": {
+ "benchmark": "./benchmark",
+ "doc": "./docs",
+ "example": "./examples",
+ "lib": "./lib",
+ "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",
+ "replicate",
+ "repeat",
+ "copy",
+ "strided",
+ "strided array",
+ "typed",
+ "array"
+ ],
+ "__stdlib__": {}
+}
diff --git a/lib/node_modules/@stdlib/blas/ext/base/greplicate/test/test.js b/lib/node_modules/@stdlib/blas/ext/base/greplicate/test/test.js
new file mode 100644
index 000000000000..f39caae9e253
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/greplicate/test/test.js
@@ -0,0 +1,38 @@
+/**
+* @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 greplicate = require( './../lib' );
+
+
+// TESTS //
+
+tape( 'main export is a function', function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof greplicate, '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 greplicate.ndarray, 'function', 'method is a function' );
+ t.end();
+});
diff --git a/lib/node_modules/@stdlib/blas/ext/base/greplicate/test/test.main.js b/lib/node_modules/@stdlib/blas/ext/base/greplicate/test/test.main.js
new file mode 100644
index 000000000000..5a4c57480349
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/greplicate/test/test.main.js
@@ -0,0 +1,430 @@
+/**
+* @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 toAccessorArray = require( '@stdlib/array/base/to-accessor-array' );
+var Float64Array = require( '@stdlib/array/float64' );
+var greplicate = require( './../lib' );
+
+
+// TESTS //
+
+tape( 'main export is a function', function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof greplicate, 'function', 'main export is a function' );
+ t.end();
+});
+
+tape( 'the function has an arity of 6', function test( t ) {
+ t.strictEqual( greplicate.length, 6, 'has expected arity' );
+ t.end();
+});
+
+tape( 'the function replicates each strided array element', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = [ 1.0, 2.0, 3.0 ];
+ out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+
+ greplicate( x.length, 2, x, 1, out, 1 );
+ expected = [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ];
+ t.deepEqual( out, expected, 'returns expected value' );
+
+ x = [ 1.0, 2.0, 3.0, 4.0 ];
+ out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+
+ greplicate( x.length, 3, x, 1, out, 1 );
+ expected = [ 1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 3.0, 3.0, 3.0, 4.0, 4.0, 4.0 ];
+ t.deepEqual( out, expected, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function replicates each strided array element (k=1)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = [ 1.0, 2.0, 3.0 ];
+ out = [ 0.0, 0.0, 0.0 ];
+
+ greplicate( x.length, 1, x, 1, out, 1 );
+ expected = [ 1.0, 2.0, 3.0 ];
+ t.deepEqual( out, expected, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function replicates each strided array element (N=1)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = [ 5.0 ];
+ out = [ 0.0, 0.0, 0.0 ];
+
+ greplicate( 1, 3, x, 1, out, 1 );
+ expected = [ 5.0, 5.0, 5.0 ];
+ t.deepEqual( out, expected, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function replicates each strided array element (accessors)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = [ 1.0, 2.0, 3.0 ];
+ out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+
+ greplicate( x.length, 2, toAccessorArray( x ), 1, toAccessorArray( out ), 1 );
+ expected = [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ];
+ t.deepEqual( out, expected, 'returns expected value' );
+
+ x = [ 1.0, 2.0, 3.0, 4.0 ];
+ out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+
+ greplicate( x.length, 3, toAccessorArray( x ), 1, toAccessorArray( out ), 1 );
+ expected = [ 1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 3.0, 3.0, 3.0, 4.0, 4.0, 4.0 ];
+ t.deepEqual( out, expected, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function returns a reference to the output array', function test( t ) {
+ var out;
+ var x;
+ var v;
+
+ x = [ 1.0, 2.0, 3.0 ];
+ out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+
+ v = greplicate( x.length, 2, x, 1, out, 1 );
+
+ t.strictEqual( v, out, 'same reference' );
+ t.end();
+});
+
+tape( 'the function returns a reference to the output array (accessors)', function test( t ) {
+ var out;
+ var x;
+ var v;
+
+ x = toAccessorArray( [ 1.0, 2.0, 3.0 ] );
+ out = toAccessorArray( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
+
+ v = greplicate( x.length, 2, x, 1, out, 1 );
+
+ t.strictEqual( v, out, 'same reference' );
+ t.end();
+});
+
+tape( 'if provided an `N` parameter less than or equal to `0`, the function returns the output array unchanged', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = [ 1.0, 2.0, 3.0 ];
+ out = [ 6.0, 7.0, 8.0, 9.0, 10.0, 11.0 ];
+
+ expected = [ 6.0, 7.0, 8.0, 9.0, 10.0, 11.0 ];
+
+ greplicate( -1, 2, x, 1, out, 1 );
+ t.deepEqual( out, expected, 'returns expected value' );
+
+ greplicate( 0, 2, x, 1, out, 1 );
+ t.deepEqual( out, expected, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'if provided a `k` parameter less than or equal to `0`, the function returns the output array unchanged', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = [ 1.0, 2.0, 3.0 ];
+ out = [ 6.0, 7.0, 8.0, 9.0, 10.0, 11.0 ];
+
+ expected = [ 6.0, 7.0, 8.0, 9.0, 10.0, 11.0 ];
+
+ greplicate( x.length, -1, x, 1, out, 1 );
+ t.deepEqual( out, expected, 'returns expected value' );
+
+ greplicate( x.length, 0, x, 1, out, 1 );
+ t.deepEqual( out, expected, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function supports an `x` stride', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = [
+ 1.0, // 0
+ 2.0,
+ 3.0, // 1
+ 4.0,
+ 5.0 // 2
+ ];
+ out = [
+ 0.0, // 0
+ 0.0, // 0
+ 0.0, // 1
+ 0.0, // 1
+ 0.0, // 2
+ 0.0 // 2
+ ];
+
+ greplicate( 3, 2, x, 2, out, 1 );
+
+ expected = [ 1.0, 1.0, 3.0, 3.0, 5.0, 5.0 ];
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports an `x` stride (accessors)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = [
+ 1.0, // 0
+ 2.0,
+ 3.0, // 1
+ 4.0,
+ 5.0 // 2
+ ];
+ out = [
+ 0.0, // 0
+ 0.0, // 0
+ 0.0, // 1
+ 0.0, // 1
+ 0.0, // 2
+ 0.0 // 2
+ ];
+
+ greplicate( 3, 2, toAccessorArray( x ), 2, toAccessorArray( out ), 1 );
+
+ expected = [ 1.0, 1.0, 3.0, 3.0, 5.0, 5.0 ];
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports an output stride', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = [
+ 1.0, // 0
+ 2.0, // 1
+ 3.0 // 2
+ ];
+ out = [
+ 0.0, // 0
+ 0.0,
+ 0.0, // 0
+ 0.0,
+ 0.0, // 1
+ 0.0,
+ 0.0, // 1
+ 0.0,
+ 0.0, // 2
+ 0.0,
+ 0.0, // 2
+ 0.0
+ ];
+
+ greplicate( 3, 2, x, 1, out, 2 );
+
+ expected = [ 1.0, 0.0, 1.0, 0.0, 2.0, 0.0, 2.0, 0.0, 3.0, 0.0, 3.0, 0.0 ];
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports an output stride (accessors)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = [
+ 1.0, // 0
+ 2.0, // 1
+ 3.0 // 2
+ ];
+ out = [
+ 0.0, // 0
+ 0.0,
+ 0.0, // 0
+ 0.0,
+ 0.0, // 1
+ 0.0,
+ 0.0, // 1
+ 0.0,
+ 0.0, // 2
+ 0.0,
+ 0.0, // 2
+ 0.0
+ ];
+
+ greplicate( 3, 2, toAccessorArray( x ), 1, toAccessorArray( out ), 2 );
+
+ expected = [ 1.0, 0.0, 1.0, 0.0, 2.0, 0.0, 2.0, 0.0, 3.0, 0.0, 3.0, 0.0 ];
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports negative strides', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = [
+ 1.0, // 2
+ 2.0,
+ 3.0, // 1
+ 4.0,
+ 5.0 // 0
+ ];
+ out = [
+ 0.0, // 2
+ 0.0, // 2
+ 0.0, // 1
+ 0.0, // 1
+ 0.0, // 0
+ 0.0 // 0
+ ];
+
+ greplicate( 3, 2, x, -2, out, -1 );
+
+ expected = [ 1.0, 1.0, 3.0, 3.0, 5.0, 5.0 ];
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports negative strides (accessors)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = [
+ 1.0, // 2
+ 2.0,
+ 3.0, // 1
+ 4.0,
+ 5.0 // 0
+ ];
+ out = [
+ 0.0, // 2
+ 0.0, // 2
+ 0.0, // 1
+ 0.0, // 1
+ 0.0, // 0
+ 0.0 // 0
+ ];
+
+ greplicate( 3, 2, toAccessorArray( x ), -2, toAccessorArray( out ), -1 );
+
+ expected = [ 1.0, 1.0, 3.0, 3.0, 5.0, 5.0 ];
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports complex access patterns', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = [
+ 1.0, // 0
+ 2.0,
+ 3.0, // 1
+ 4.0,
+ 5.0 // 2
+ ];
+ out = [
+ 0.0, // 2
+ 0.0, // 2
+ 0.0, // 1
+ 0.0, // 1
+ 0.0, // 0
+ 0.0 // 0
+ ];
+
+ greplicate( 3, 2, x, 2, out, -1 );
+
+ expected = [ 5.0, 5.0, 3.0, 3.0, 1.0, 1.0 ];
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports view offsets', function test( t ) {
+ var expected;
+ var out0;
+ var out1;
+ var x0;
+ var x1;
+
+ // Initial arrays...
+ x0 = new Float64Array([
+ 1.0,
+ 2.0, // 0
+ 3.0,
+ 4.0, // 1
+ 5.0,
+ 6.0 // 2
+ ]);
+ out0 = new Float64Array([
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0, // 0
+ 0.0, // 0
+ 0.0, // 1
+ 0.0, // 1
+ 0.0, // 2
+ 0.0 // 2
+ ]);
+
+ // Create offset views...
+ x1 = new Float64Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // begin at 2nd element
+ out1 = new Float64Array( out0.buffer, out0.BYTES_PER_ELEMENT*3 ); // begin at the 4th element
+
+ greplicate( 3, 2, x1, 2, out1, 1 );
+ expected = new Float64Array( [ 0.0, 0.0, 0.0, 2.0, 2.0, 4.0, 4.0, 6.0, 6.0 ] );
+
+ t.deepEqual( out0, expected, 'returns expected value' );
+ t.end();
+});
diff --git a/lib/node_modules/@stdlib/blas/ext/base/greplicate/test/test.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/greplicate/test/test.ndarray.js
new file mode 100644
index 000000000000..1d7b621c0491
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/greplicate/test/test.ndarray.js
@@ -0,0 +1,543 @@
+/**
+* @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 toAccessorArray = require( '@stdlib/array/base/to-accessor-array' );
+var greplicate = require( './../lib/ndarray.js' );
+
+
+// TESTS //
+
+tape( 'main export is a function', function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof greplicate, 'function', 'main export is a function' );
+ t.end();
+});
+
+tape( 'the function has an arity of 8', function test( t ) {
+ t.strictEqual( greplicate.length, 8, 'has expected arity' );
+ t.end();
+});
+
+tape( 'the function replicates each strided array element', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = [ 1.0, 2.0, 3.0 ];
+ out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+
+ greplicate( x.length, 2, x, 1, 0, out, 1, 0 );
+ expected = [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ];
+ t.deepEqual( out, expected, 'returns expected value' );
+
+ x = [ 1.0, 2.0, 3.0, 4.0 ];
+ out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+
+ greplicate( x.length, 3, x, 1, 0, out, 1, 0 );
+ expected = [ 1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 3.0, 3.0, 3.0, 4.0, 4.0, 4.0 ];
+ t.deepEqual( out, expected, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function replicates each strided array element (k=1)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = [ 1.0, 2.0, 3.0 ];
+ out = [ 0.0, 0.0, 0.0 ];
+
+ greplicate( x.length, 1, x, 1, 0, out, 1, 0 );
+ expected = [ 1.0, 2.0, 3.0 ];
+ t.deepEqual( out, expected, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function replicates each strided array element (N=1)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = [ 5.0 ];
+ out = [ 0.0, 0.0, 0.0 ];
+
+ greplicate( 1, 3, x, 1, 0, out, 1, 0 );
+ expected = [ 5.0, 5.0, 5.0 ];
+ t.deepEqual( out, expected, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function replicates each strided array element (accessors)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = [ 1.0, 2.0, 3.0 ];
+ out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+
+ greplicate( x.length, 2, toAccessorArray( x ), 1, 0, toAccessorArray( out ), 1, 0 );
+ expected = [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ];
+ t.deepEqual( out, expected, 'returns expected value' );
+
+ x = [ 1.0, 2.0, 3.0, 4.0 ];
+ out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+
+ greplicate( x.length, 3, toAccessorArray( x ), 1, 0, toAccessorArray( out ), 1, 0 );
+ expected = [ 1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 3.0, 3.0, 3.0, 4.0, 4.0, 4.0 ];
+ t.deepEqual( out, expected, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function returns a reference to the output array', function test( t ) {
+ var out;
+ var x;
+ var v;
+
+ x = [ 1.0, 2.0, 3.0 ];
+ out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+
+ v = greplicate( x.length, 2, x, 1, 0, out, 1, 0 );
+
+ t.strictEqual( v, out, 'same reference' );
+ t.end();
+});
+
+tape( 'the function returns a reference to the output array (accessors)', function test( t ) {
+ var out;
+ var x;
+ var v;
+
+ x = toAccessorArray( [ 1.0, 2.0, 3.0 ] );
+ out = toAccessorArray( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] );
+
+ v = greplicate( x.length, 2, x, 1, 0, out, 1, 0 );
+
+ t.strictEqual( v, out, 'same reference' );
+ t.end();
+});
+
+tape( 'if provided an `N` parameter less than or equal to `0`, the function returns the output array unchanged', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = [ 1.0, 2.0, 3.0 ];
+ out = [ 6.0, 7.0, 8.0, 9.0, 10.0, 11.0 ];
+
+ expected = [ 6.0, 7.0, 8.0, 9.0, 10.0, 11.0 ];
+
+ greplicate( -1, 2, x, 1, 0, out, 1, 0 );
+ t.deepEqual( out, expected, 'returns expected value' );
+
+ greplicate( 0, 2, x, 1, 0, out, 1, 0 );
+ t.deepEqual( out, expected, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'if provided a `k` parameter less than or equal to `0`, the function returns the output array unchanged', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = [ 1.0, 2.0, 3.0 ];
+ out = [ 6.0, 7.0, 8.0, 9.0, 10.0, 11.0 ];
+
+ expected = [ 6.0, 7.0, 8.0, 9.0, 10.0, 11.0 ];
+
+ greplicate( x.length, -1, x, 1, 0, out, 1, 0 );
+ t.deepEqual( out, expected, 'returns expected value' );
+
+ greplicate( x.length, 0, x, 1, 0, out, 1, 0 );
+ t.deepEqual( out, expected, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function supports an `x` stride', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = [
+ 1.0, // 0
+ 2.0,
+ 3.0, // 1
+ 4.0,
+ 5.0 // 2
+ ];
+ out = [
+ 0.0, // 0
+ 0.0, // 0
+ 0.0, // 1
+ 0.0, // 1
+ 0.0, // 2
+ 0.0 // 2
+ ];
+
+ greplicate( 3, 2, x, 2, 0, out, 1, 0 );
+
+ expected = [ 1.0, 1.0, 3.0, 3.0, 5.0, 5.0 ];
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports an `x` stride (accessors)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = [
+ 1.0, // 0
+ 2.0,
+ 3.0, // 1
+ 4.0,
+ 5.0 // 2
+ ];
+ out = [
+ 0.0, // 0
+ 0.0, // 0
+ 0.0, // 1
+ 0.0, // 1
+ 0.0, // 2
+ 0.0 // 2
+ ];
+
+ greplicate( 3, 2, toAccessorArray( x ), 2, 0, toAccessorArray( out ), 1, 0 );
+
+ expected = [ 1.0, 1.0, 3.0, 3.0, 5.0, 5.0 ];
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports an output stride', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = [
+ 1.0, // 0
+ 2.0, // 1
+ 3.0 // 2
+ ];
+ out = [
+ 0.0, // 0
+ 0.0,
+ 0.0, // 0
+ 0.0,
+ 0.0, // 1
+ 0.0,
+ 0.0, // 1
+ 0.0,
+ 0.0, // 2
+ 0.0,
+ 0.0, // 2
+ 0.0
+ ];
+
+ greplicate( 3, 2, x, 1, 0, out, 2, 0 );
+
+ expected = [ 1.0, 0.0, 1.0, 0.0, 2.0, 0.0, 2.0, 0.0, 3.0, 0.0, 3.0, 0.0 ];
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports an output stride (accessors)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = [
+ 1.0, // 0
+ 2.0, // 1
+ 3.0 // 2
+ ];
+ out = [
+ 0.0, // 0
+ 0.0,
+ 0.0, // 0
+ 0.0,
+ 0.0, // 1
+ 0.0,
+ 0.0, // 1
+ 0.0,
+ 0.0, // 2
+ 0.0,
+ 0.0, // 2
+ 0.0
+ ];
+
+ greplicate( 3, 2, toAccessorArray( x ), 1, 0, toAccessorArray( out ), 2, 0 );
+
+ expected = [ 1.0, 0.0, 1.0, 0.0, 2.0, 0.0, 2.0, 0.0, 3.0, 0.0, 3.0, 0.0 ];
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports negative strides', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = [
+ 1.0, // 2
+ 2.0,
+ 3.0, // 1
+ 4.0,
+ 5.0 // 0
+ ];
+ out = [
+ 0.0, // 2
+ 0.0, // 2
+ 0.0, // 1
+ 0.0, // 1
+ 0.0, // 0
+ 0.0 // 0
+ ];
+
+ greplicate( 3, 2, x, -2, 4, out, -1, 5 );
+
+ expected = [ 1.0, 1.0, 3.0, 3.0, 5.0, 5.0 ];
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports negative strides (accessors)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = [
+ 1.0, // 2
+ 2.0,
+ 3.0, // 1
+ 4.0,
+ 5.0 // 0
+ ];
+ out = [
+ 0.0, // 2
+ 0.0, // 2
+ 0.0, // 1
+ 0.0, // 1
+ 0.0, // 0
+ 0.0 // 0
+ ];
+
+ greplicate( 3, 2, toAccessorArray( x ), -2, 4, toAccessorArray( out ), -1, 5 );
+
+ expected = [ 1.0, 1.0, 3.0, 3.0, 5.0, 5.0 ];
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports an `x` offset', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = [
+ 2.0,
+ 1.0, // 0
+ 2.0,
+ -2.0, // 1
+ -2.0,
+ 2.0, // 2
+ 3.0,
+ 4.0 // 3
+ ];
+ out = [
+ 0.0, // 0
+ 0.0, // 0
+ 0.0, // 1
+ 0.0, // 1
+ 0.0, // 2
+ 0.0, // 2
+ 0.0, // 3
+ 0.0 // 3
+ ];
+
+ greplicate( 4, 2, x, 2, 1, out, 1, 0 );
+
+ expected = [ 1.0, 1.0, -2.0, -2.0, 2.0, 2.0, 4.0, 4.0 ];
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports an `x` offset (accessors)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = [
+ 2.0,
+ 1.0, // 0
+ 2.0,
+ -2.0, // 1
+ -2.0,
+ 2.0, // 2
+ 3.0,
+ 4.0 // 3
+ ];
+ out = [
+ 0.0, // 0
+ 0.0, // 0
+ 0.0, // 1
+ 0.0, // 1
+ 0.0, // 2
+ 0.0, // 2
+ 0.0, // 3
+ 0.0 // 3
+ ];
+
+ greplicate( 4, 2, toAccessorArray( x ), 2, 1, toAccessorArray( out ), 1, 0 );
+
+ expected = [ 1.0, 1.0, -2.0, -2.0, 2.0, 2.0, 4.0, 4.0 ];
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports an output offset', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = [
+ 1.0, // 0
+ 2.0, // 1
+ 3.0 // 2
+ ];
+ out = [
+ 0.0,
+ 0.0,
+ 0.0, // 0
+ 0.0, // 0
+ 0.0, // 1
+ 0.0, // 1
+ 0.0, // 2
+ 0.0 // 2
+ ];
+
+ greplicate( 3, 2, x, 1, 0, out, 1, 2 );
+
+ expected = [ 0.0, 0.0, 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ];
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports an output offset (accessors)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = [
+ 1.0, // 0
+ 2.0, // 1
+ 3.0 // 2
+ ];
+ out = [
+ 0.0,
+ 0.0,
+ 0.0, // 0
+ 0.0, // 0
+ 0.0, // 1
+ 0.0, // 1
+ 0.0, // 2
+ 0.0 // 2
+ ];
+
+ greplicate( 3, 2, toAccessorArray( x ), 1, 0, toAccessorArray( out ), 1, 2 );
+
+ expected = [ 0.0, 0.0, 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ];
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports a zero `x` stride', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = [
+ 1.0,
+ 2.0, // 0, 1, 2
+ 3.0
+ ];
+ out = [
+ 0.0, // 0
+ 0.0, // 0
+ 0.0, // 1
+ 0.0, // 1
+ 0.0, // 2
+ 0.0 // 2
+ ];
+
+ greplicate( 3, 2, x, 0, 1, out, 1, 0 );
+
+ expected = [ 2.0, 2.0, 2.0, 2.0, 2.0, 2.0 ];
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports complex access patterns', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = [
+ 1.0, // 0
+ 2.0,
+ 3.0, // 1
+ 4.0,
+ 5.0 // 2
+ ];
+ out = [
+ 0.0, // 2
+ 0.0, // 2
+ 0.0, // 1
+ 0.0, // 1
+ 0.0, // 0
+ 0.0 // 0
+ ];
+
+ greplicate( 3, 2, x, 2, 0, out, -1, 5 );
+
+ expected = [ 5.0, 5.0, 3.0, 3.0, 1.0, 1.0 ];
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});