diff --git a/lib/node_modules/@stdlib/blas/ext/base/gright-pad-edge/README.md b/lib/node_modules/@stdlib/blas/ext/base/gright-pad-edge/README.md
new file mode 100644
index 000000000000..ea6048525ab2
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/gright-pad-edge/README.md
@@ -0,0 +1,179 @@
+
+
+# grightPadEdge
+
+> Append elements to a strided array by repeating the trailing edge element.
+
+
+
+
+
+
+
+## Usage
+
+```javascript
+var grightPadEdge = require( '@stdlib/blas/ext/base/gright-pad-edge' );
+```
+
+#### grightPadEdge( N, k, x, strideX, y, strideY )
+
+Appends elements to a strided array by repeating the trailing edge element.
+
+```javascript
+var x = [ 1.0, 2.0, 3.0, 4.0 ];
+var y = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+
+grightPadEdge( x.length, 6, x, 1, y, 1 );
+// y => [ 1.0, 2.0, 3.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0 ]
+```
+
+The function has the following parameters:
+
+- **N**: number of indexed elements in `x`.
+- **k**: number of elements to pad.
+- **x**: input array.
+- **strideX**: stride length for `x`.
+- **y**: output array. Must contain `N + max(0,k)` indexed elements.
+- **strideY**: stride length for `y`.
+
+The `N` and stride parameters determine which elements in the strided arrays are accessed at runtime. For example, to pad every other element in `x`:
+
+```javascript
+var x = [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ];
+var y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
+
+grightPadEdge( 3, 2, x, 2, y, 1 );
+// y => [ 1.0, 3.0, 5.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 y0 = new Float64Array( [ 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 y1 = new Float64Array( y0.buffer, y0.BYTES_PER_ELEMENT*2 ); // start at 3rd element
+
+grightPadEdge( 3, 2, x1, 2, y1, 1 );
+// y0 => [ 0.0, 0.0, 2.0, 4.0, 6.0, 6.0, 6.0 ]
+```
+
+#### grightPadEdge.ndarray( N, k, x, strideX, offsetX, y, strideY, offsetY )
+
+Appends elements to a strided array by repeating the trailing edge element using alternative indexing semantics.
+
+```javascript
+var x = [ 1.0, 2.0, 3.0, 4.0 ];
+var y = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+
+grightPadEdge.ndarray( x.length, 6, x, 1, 0, y, 1, 0 );
+// y => [ 1.0, 2.0, 3.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0 ]
+```
+
+The function has the following additional parameters:
+
+- **offsetX**: starting index for `x`.
+- **offsetY**: starting index for `y`.
+
+While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying buffer, offset parameters support indexing semantics based on starting indices. For example, to pad 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 y = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+
+grightPadEdge.ndarray( 3, 2, x, 2, 1, y, -1, y.length-1 );
+// y => [ 0.0, 0.0, 6.0, 6.0, 6.0, 4.0, 2.0 ]
+```
+
+
+
+
+
+
+
+## Notes
+
+- If `N <= 0`, both functions return `y` unchanged.
+- If `k < 0`, both functions clamp `k` to `0`, such that indexed elements in `x` are copied to `y` without padding.
+- 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 grightPadEdge = require( '@stdlib/blas/ext/base/gright-pad-edge' );
+
+var x = discreteUniform( 10, -100, 100, {
+ 'dtype': 'float64'
+});
+console.log( x );
+
+var k = 5;
+
+var y = new Float64Array( x.length + k );
+console.log( y );
+
+grightPadEdge( x.length, k, x, 1, y, 1 );
+console.log( y );
+```
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+[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/gright-pad-edge/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/gright-pad-edge/benchmark/benchmark.js
new file mode 100644
index 000000000000..08cab8a68ca7
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/gright-pad-edge/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 grightPadEdge = 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 y = zeros( len * 2, options.dtype );
+ var x = uniform( len, -100.0, 100.0, 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 = grightPadEdge( x.length, len, x, 1, y, 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/gright-pad-edge/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gright-pad-edge/benchmark/benchmark.ndarray.js
new file mode 100644
index 000000000000..59d9386997bd
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/gright-pad-edge/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 grightPadEdge = 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 y = zeros( len * 2, options.dtype );
+ var x = uniform( len, -100.0, 100.0, 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 = grightPadEdge( x.length, len, x, 1, 0, y, 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/gright-pad-edge/docs/repl.txt b/lib/node_modules/@stdlib/blas/ext/base/gright-pad-edge/docs/repl.txt
new file mode 100644
index 000000000000..0217eeb09ce1
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/gright-pad-edge/docs/repl.txt
@@ -0,0 +1,121 @@
+
+{{alias}}( N, k, x, strideX, y, strideY )
+ Appends elements to a strided array by repeating the trailing edge element.
+
+ 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`, the function returns `y` unchanged.
+
+ If `k < 0`, the function clamps `k` to `0`, such that indexed elements in
+ `x` are copied to `y` without padding.
+
+ Parameters
+ ----------
+ N: integer
+ Number of indexed elements in `x`.
+
+ k: integer
+ Number of elements to pad.
+
+ x: ArrayLikeObject
+ Input array.
+
+ strideX: integer
+ Stride length for `x`.
+
+ y: ArrayLikeObject
+ Output array. Must contain `N + max(0,k)` indexed elements.
+
+ strideY: integer
+ Stride length for `y`.
+
+ Returns
+ -------
+ y: ArrayLikeObject
+ Output array.
+
+ Examples
+ --------
+ // Standard Usage:
+ > var x = [ 1.0, 2.0, 3.0, 4.0 ];
+ > var y = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+ > {{alias}}( x.length, 6, x, 1, y, 1 )
+ [ 1.0, 2.0, 3.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0 ]
+
+ // Using `N` and stride parameters:
+ > x = [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ];
+ > y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
+ > {{alias}}( 3, 2, x, 2, y, 1 )
+ [ 1.0, 3.0, 5.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 y0 = new {{alias:@stdlib/array/float64}}( [ 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 y1 = new {{alias:@stdlib/array/float64}}( y0.buffer, y0.BYTES_PER_ELEMENT*2 );
+ > {{alias}}( 3, 2, x1, 2, y1, 1 )
+ [ 2.0, 4.0, 6.0, 6.0, 6.0 ]
+ > y0
+ [ 0.0, 0.0, 2.0, 4.0, 6.0, 6.0, 6.0 ]
+
+
+{{alias}}.ndarray( N, k, x, strideX, offsetX, y, strideY, offsetY )
+ Appends elements to a strided array by repeating the trailing edge element
+ 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 in `x`.
+
+ k: integer
+ Number of elements to pad.
+
+ x: ArrayLikeObject
+ Input array.
+
+ strideX: integer
+ Stride length for `x`.
+
+ offsetX: integer
+ Starting index for `x`.
+
+ y: ArrayLikeObject
+ Output array. Must contain `N + max(0,k)` indexed elements.
+
+ strideY: integer
+ Stride length for `y`.
+
+ offsetY: integer
+ Starting index for `y`.
+
+ Returns
+ -------
+ y: ArrayLikeObject
+ Output array.
+
+ Examples
+ --------
+ // Standard Usage:
+ > var x = [ 1.0, 2.0, 3.0, 4.0 ];
+ > var y = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+ > {{alias}}.ndarray( x.length, 6, x, 1, 0, y, 1, 0 )
+ [ 1.0, 2.0, 3.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0 ]
+
+ // Advanced indexing:
+ > x = [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ];
+ > y = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+ > {{alias}}.ndarray( 3, 2, x, 2, 1, y, -1, y.length-1 )
+ [ 0.0, 0.0, 6.0, 6.0, 6.0, 4.0, 2.0 ]
+
+ See Also
+ --------
+
diff --git a/lib/node_modules/@stdlib/blas/ext/base/gright-pad-edge/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/ext/base/gright-pad-edge/docs/types/index.d.ts
new file mode 100644
index 000000000000..92af4f3ede0b
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/gright-pad-edge/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 `grightPadEdge`.
+*/
+interface Routine {
+ /**
+ * Appends elements to a strided array by repeating the trailing edge element.
+ *
+ * @param N - number of indexed elements in `x`
+ * @param k - number of elements to pad
+ * @param x - input array
+ * @param strideX - stride length for `x`
+ * @param y - output array
+ * @param strideY - stride length for `y`
+ * @returns output array
+ *
+ * @example
+ * var x = [ 1.0, 2.0, 3.0, 4.0 ];
+ * var y = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+ *
+ * grightPadEdge( x.length, 6, x, 1, y, 1 );
+ * // y => [ 1.0, 2.0, 3.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0 ]
+ */
+ = InputArray, V = unknown, W extends OutputArray = OutputArray>( N: number, k: number, x: U, strideX: number, y: W, strideY: number ): W;
+
+ /**
+ * Appends elements to a strided array by repeating the trailing edge element using alternative indexing semantics.
+ *
+ * @param N - number of indexed elements in `x`
+ * @param k - number of elements to pad
+ * @param x - input array
+ * @param strideX - stride length for `x`
+ * @param offsetX - starting index for `x`
+ * @param y - output array
+ * @param strideY - stride length for `y`
+ * @param offsetY - starting index for `y`
+ * @returns output array
+ *
+ * @example
+ * var x = [ 1.0, 2.0, 3.0, 4.0 ];
+ * var y = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+ *
+ * grightPadEdge.ndarray( x.length, 6, x, 1, 0, y, 1, 0 );
+ * // y => [ 1.0, 2.0, 3.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0 ]
+ */
+ ndarray = InputArray, V = unknown, W extends OutputArray = OutputArray>( N: number, k: number, x: U, strideX: number, offsetX: number, y: W, strideY: number, offsetY: number ): W;
+}
+
+/**
+* Appends elements to a strided array by repeating the trailing edge element.
+*
+* @param N - number of indexed elements in `x`
+* @param k - number of elements to pad
+* @param x - input array
+* @param strideX - stride length for `x`
+* @param y - output array
+* @param strideY - stride length for `y`
+* @returns output array
+*
+* @example
+* var x = [ 1.0, 2.0, 3.0, 4.0 ];
+* var y = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+*
+* grightPadEdge( x.length, 6, x, 1, y, 1 );
+* // y => [ 1.0, 2.0, 3.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0 ]
+*
+* @example
+* var x = [ 1.0, 2.0, 3.0, 4.0 ];
+* var y = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+*
+* grightPadEdge.ndarray( x.length, 6, x, 1, 0, y, 1, 0 );
+* // y => [ 1.0, 2.0, 3.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0 ]
+*/
+declare var grightPadEdge: Routine;
+
+
+// EXPORTS //
+
+export = grightPadEdge;
diff --git a/lib/node_modules/@stdlib/blas/ext/base/gright-pad-edge/docs/types/test.ts b/lib/node_modules/@stdlib/blas/ext/base/gright-pad-edge/docs/types/test.ts
new file mode 100644
index 000000000000..01e6bb1fc4b9
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/gright-pad-edge/docs/types/test.ts
@@ -0,0 +1,275 @@
+/*
+* @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 grightPadEdge = require( './index' );
+
+
+// TESTS //
+
+// The function returns a collection...
+{
+ const x = new Float64Array( 10 );
+ const y = new Float64Array( 12 );
+
+ grightPadEdge( x.length, 2, x, 1, y, 1 ); // $ExpectType Float64Array
+ grightPadEdge( x.length, 2, new AccessorArray( x ), 1, new AccessorArray( y ), 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 y = new Float64Array( 12 );
+
+ grightPadEdge( '10', 2, x, 1, y, 1 ); // $ExpectError
+ grightPadEdge( true, 2, x, 1, y, 1 ); // $ExpectError
+ grightPadEdge( false, 2, x, 1, y, 1 ); // $ExpectError
+ grightPadEdge( null, 2, x, 1, y, 1 ); // $ExpectError
+ grightPadEdge( undefined, 2, x, 1, y, 1 ); // $ExpectError
+ grightPadEdge( [], 2, x, 1, y, 1 ); // $ExpectError
+ grightPadEdge( {}, 2, x, 1, y, 1 ); // $ExpectError
+ grightPadEdge( ( x: number ): number => x, 2, x, 1, y, 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 y = new Float64Array( 12 );
+
+ grightPadEdge( x.length, '10', x, 1, y, 1 ); // $ExpectError
+ grightPadEdge( x.length, true, x, 1, y, 1 ); // $ExpectError
+ grightPadEdge( x.length, false, x, 1, y, 1 ); // $ExpectError
+ grightPadEdge( x.length, null, x, 1, y, 1 ); // $ExpectError
+ grightPadEdge( x.length, undefined, x, 1, y, 1 ); // $ExpectError
+ grightPadEdge( x.length, [], x, 1, y, 1 ); // $ExpectError
+ grightPadEdge( x.length, {}, x, 1, y, 1 ); // $ExpectError
+ grightPadEdge( x.length, ( x: number ): number => x, x, 1, y, 1 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a third argument which is not a collection...
+{
+ const x = new Float64Array( 10 );
+ const y = new Float64Array( 12 );
+
+ grightPadEdge( x.length, 2, 10, 1, y, 1 ); // $ExpectError
+ grightPadEdge( x.length, 2, true, 1, y, 1 ); // $ExpectError
+ grightPadEdge( x.length, 2, false, 1, y, 1 ); // $ExpectError
+ grightPadEdge( x.length, 2, null, 1, y, 1 ); // $ExpectError
+ grightPadEdge( x.length, 2, undefined, 1, y, 1 ); // $ExpectError
+ grightPadEdge( x.length, 2, {}, 1, y, 1 ); // $ExpectError
+ grightPadEdge( x.length, 2, ( x: number ): number => x, 1, y, 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 y = new Float64Array( 12 );
+
+ grightPadEdge( x.length, 2, x, '10', y, 1 ); // $ExpectError
+ grightPadEdge( x.length, 2, x, true, y, 1 ); // $ExpectError
+ grightPadEdge( x.length, 2, x, false, y, 1 ); // $ExpectError
+ grightPadEdge( x.length, 2, x, null, y, 1 ); // $ExpectError
+ grightPadEdge( x.length, 2, x, undefined, y, 1 ); // $ExpectError
+ grightPadEdge( x.length, 2, x, [], y, 1 ); // $ExpectError
+ grightPadEdge( x.length, 2, x, {}, y, 1 ); // $ExpectError
+ grightPadEdge( x.length, 2, x, ( x: number ): number => x, y, 1 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a fifth argument which is not a collection...
+{
+ const x = new Float64Array( 10 );
+
+ grightPadEdge( x.length, 2, x, 1, 10, 1 ); // $ExpectError
+ grightPadEdge( x.length, 2, x, 1, true, 1 ); // $ExpectError
+ grightPadEdge( x.length, 2, x, 1, false, 1 ); // $ExpectError
+ grightPadEdge( x.length, 2, x, 1, null, 1 ); // $ExpectError
+ grightPadEdge( x.length, 2, x, 1, undefined, 1 ); // $ExpectError
+ grightPadEdge( x.length, 2, x, 1, {}, 1 ); // $ExpectError
+ grightPadEdge( 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 y = new Float64Array( 12 );
+
+ grightPadEdge( x.length, 2, x, 1, y, '10' ); // $ExpectError
+ grightPadEdge( x.length, 2, x, 1, y, true ); // $ExpectError
+ grightPadEdge( x.length, 2, x, 1, y, false ); // $ExpectError
+ grightPadEdge( x.length, 2, x, 1, y, null ); // $ExpectError
+ grightPadEdge( x.length, 2, x, 1, y, undefined ); // $ExpectError
+ grightPadEdge( x.length, 2, x, 1, y, [] ); // $ExpectError
+ grightPadEdge( x.length, 2, x, 1, y, {} ); // $ExpectError
+ grightPadEdge( x.length, 2, x, 1, y, ( 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 y = new Float64Array( 12 );
+
+ grightPadEdge(); // $ExpectError
+ grightPadEdge( x.length ); // $ExpectError
+ grightPadEdge( x.length, 2 ); // $ExpectError
+ grightPadEdge( x.length, 2, x ); // $ExpectError
+ grightPadEdge( x.length, 2, x, 1 ); // $ExpectError
+ grightPadEdge( x.length, 2, x, 1, y ); // $ExpectError
+ grightPadEdge( x.length, 2, x, 1, y, 1, {} ); // $ExpectError
+}
+
+// Attached to main export is an `ndarray` method which returns a collection...
+{
+ const x = new Float64Array( 10 );
+ const y = new Float64Array( 12 );
+
+ grightPadEdge.ndarray( x.length, 2, x, 1, 0, y, 1, 0 ); // $ExpectType Float64Array
+ grightPadEdge.ndarray( x.length, 2, new AccessorArray( x ), 1, 0, new AccessorArray( y ), 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 y = new Float64Array( 12 );
+
+ grightPadEdge.ndarray( '10', 2, x, 1, 0, y, 1, 0 ); // $ExpectError
+ grightPadEdge.ndarray( true, 2, x, 1, 0, y, 1, 0 ); // $ExpectError
+ grightPadEdge.ndarray( false, 2, x, 1, 0, y, 1, 0 ); // $ExpectError
+ grightPadEdge.ndarray( null, 2, x, 1, 0, y, 1, 0 ); // $ExpectError
+ grightPadEdge.ndarray( undefined, 2, x, 1, 0, y, 1, 0 ); // $ExpectError
+ grightPadEdge.ndarray( [], 2, x, 1, 0, y, 1, 0 ); // $ExpectError
+ grightPadEdge.ndarray( {}, 2, x, 1, 0, y, 1, 0 ); // $ExpectError
+ grightPadEdge.ndarray( ( x: number ): number => x, 2, x, 1, 0, y, 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 y = new Float64Array( 12 );
+
+ grightPadEdge.ndarray( x.length, '10', x, 1, 0, y, 1, 0 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, true, x, 1, 0, y, 1, 0 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, false, x, 1, 0, y, 1, 0 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, null, x, 1, 0, y, 1, 0 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, undefined, x, 1, 0, y, 1, 0 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, [], x, 1, 0, y, 1, 0 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, {}, x, 1, 0, y, 1, 0 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, ( x: number ): number => x, x, 1, 0, y, 1, 0 ); // $ExpectError
+}
+
+// The compiler throws an error if the `ndarray` method is provided a third argument which is not a collection...
+{
+ const x = new Float64Array( 10 );
+ const y = new Float64Array( 12 );
+
+ grightPadEdge.ndarray( x.length, 2, 10, 1, 0, y, 1, 0 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, true, 1, 0, y, 1, 0 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, false, 1, 0, y, 1, 0 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, null, 1, 0, y, 1, 0 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, undefined, 1, 0, y, 1, 0 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, {}, 1, 0, y, 1, 0 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, ( x: number ): number => x, 1, 0, y, 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 y = new Float64Array( 12 );
+
+ grightPadEdge.ndarray( x.length, 2, x, '10', 0, y, 1, 0 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, x, true, 0, y, 1, 0 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, x, false, 0, y, 1, 0 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, x, null, 0, y, 1, 0 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, x, undefined, 0, y, 1, 0 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, x, [], 0, y, 1, 0 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, x, {}, 0, y, 1, 0 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, x, ( x: number ): number => x, 0, y, 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 y = new Float64Array( 12 );
+
+ grightPadEdge.ndarray( x.length, 2, x, 1, '10', y, 1, 0 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, x, 1, true, y, 1, 0 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, x, 1, false, y, 1, 0 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, x, 1, null, y, 1, 0 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, x, 1, undefined, y, 1, 0 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, x, 1, [], y, 1, 0 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, x, 1, {}, y, 1, 0 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, x, 1, ( x: number ): number => x, y, 1, 0 ); // $ExpectError
+}
+
+// The compiler throws an error if the `ndarray` method is provided a sixth argument which is not a collection...
+{
+ const x = new Float64Array( 10 );
+
+ grightPadEdge.ndarray( x.length, 2, x, 1, 0, 10, 1, 0 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, x, 1, 0, true, 1, 0 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, x, 1, 0, false, 1, 0 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, x, 1, 0, null, 1, 0 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, x, 1, 0, undefined, 1, 0 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, x, 1, 0, {}, 1, 0 ); // $ExpectError
+ grightPadEdge.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 y = new Float64Array( 12 );
+
+ grightPadEdge.ndarray( x.length, 2, x, 1, 0, y, '10', 0 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, x, 1, 0, y, true, 0 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, x, 1, 0, y, false, 0 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, x, 1, 0, y, null, 0 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, x, 1, 0, y, undefined, 0 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, x, 1, 0, y, [], 0 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, x, 1, 0, y, {}, 0 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, x, 1, 0, y, ( 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 y = new Float64Array( 12 );
+
+ grightPadEdge.ndarray( x.length, 2, x, 1, 0, y, 1, '10' ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, x, 1, 0, y, 1, true ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, x, 1, 0, y, 1, false ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, x, 1, 0, y, 1, null ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, x, 1, 0, y, 1, undefined ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, x, 1, 0, y, 1, [] ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, x, 1, 0, y, 1, {} ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, x, 1, 0, y, 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 y = new Float64Array( 12 );
+
+ grightPadEdge.ndarray(); // $ExpectError
+ grightPadEdge.ndarray( x.length ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, x ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, x, 1 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, x, 1, 0 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, x, 1, 0, y ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, x, 1, 0, y, 1 ); // $ExpectError
+ grightPadEdge.ndarray( x.length, 2, x, 1, 0, y, 1, 0, {} ); // $ExpectError
+}
diff --git a/lib/node_modules/@stdlib/blas/ext/base/gright-pad-edge/examples/index.js b/lib/node_modules/@stdlib/blas/ext/base/gright-pad-edge/examples/index.js
new file mode 100644
index 000000000000..fa98873330bd
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/gright-pad-edge/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 Float64Array = require( '@stdlib/array/float64' );
+var grightPadEdge = require( './../lib' );
+
+var x = discreteUniform( 10, -100, 100, {
+ 'dtype': 'float64'
+});
+console.log( x );
+
+var k = 5;
+
+var y = new Float64Array( x.length + k );
+console.log( y );
+
+grightPadEdge( x.length, k, x, 1, y, 1 );
+console.log( y );
diff --git a/lib/node_modules/@stdlib/blas/ext/base/gright-pad-edge/lib/accessors.js b/lib/node_modules/@stdlib/blas/ext/base/gright-pad-edge/lib/accessors.js
new file mode 100644
index 000000000000..99af638d88af
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/gright-pad-edge/lib/accessors.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';
+
+// MAIN //
+
+/**
+* Appends elements to a strided array by repeating the trailing edge element.
+*
+* @private
+* @param {PositiveInteger} N - number of indexed elements in `x`
+* @param {NonNegativeInteger} k - number of elements to pad
+* @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} y - output array object
+* @param {Collection} y.data - output array data
+* @param {Array} y.accessors - array element accessors
+* @param {integer} strideY - stride length for `y`
+* @param {NonNegativeInteger} offsetY - starting index for `y`
+* @returns {Object} output array object
+*
+* @example
+* var toAccessorArray = require( '@stdlib/array/base/to-accessor-array' );
+* var arraylike2object = require( '@stdlib/array/base/arraylike2object' );
+*
+* var x = [ 1.0, 2.0, 3.0, 4.0 ];
+* var y = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+*
+* grightPadEdge( 4, 6, arraylike2object( toAccessorArray( x ) ), 1, 0, arraylike2object( toAccessorArray( y ) ), 1, 0 );
+* // y => [ 1.0, 2.0, 3.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0 ]
+*/
+function grightPadEdge( N, k, x, strideX, offsetX, y, strideY, offsetY ) {
+ var xbuf;
+ var ybuf;
+ var get;
+ var set;
+ var ix;
+ var iy;
+ var v;
+ var i;
+
+ // Cache references to array data:
+ xbuf = x.data;
+ ybuf = y.data;
+
+ // Cache references to element accessors:
+ get = x.accessors[ 0 ];
+ set = y.accessors[ 1 ];
+
+ ix = offsetX;
+ iy = offsetY;
+ for ( i = 0; i < N; i++ ) {
+ set( ybuf, iy, get( xbuf, ix ) );
+ iy += strideY;
+ ix += strideX;
+ }
+ v = get( xbuf, ix-strideX );
+ for ( i = 0; i < k; i++ ) {
+ set( ybuf, iy, v );
+ iy += strideY;
+ }
+ return y;
+}
+
+
+// EXPORTS //
+
+module.exports = grightPadEdge;
diff --git a/lib/node_modules/@stdlib/blas/ext/base/gright-pad-edge/lib/index.js b/lib/node_modules/@stdlib/blas/ext/base/gright-pad-edge/lib/index.js
new file mode 100644
index 000000000000..ae0051ca8908
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/gright-pad-edge/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';
+
+/**
+* Append elements to a strided array by repeating the trailing edge element.
+*
+* @module @stdlib/blas/ext/base/gright-pad-edge
+*
+* @example
+* var grightPadEdge = require( '@stdlib/blas/ext/base/gright-pad-edge' );
+*
+* var x = [ 1.0, 2.0, 3.0, 4.0 ];
+* var y = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+*
+* grightPadEdge( x.length, 6, x, 1, y, 1 );
+* // y => [ 1.0, 2.0, 3.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0 ]
+*
+* @example
+* var grightPadEdge = require( '@stdlib/blas/ext/base/gright-pad-edge' );
+*
+* var x = [ 1.0, 2.0, 3.0, 4.0 ];
+* var y = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+*
+* grightPadEdge.ndarray( x.length, 6, x, 1, 0, y, 1, 0 );
+* // y => [ 1.0, 2.0, 3.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.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/gright-pad-edge/lib/main.js b/lib/node_modules/@stdlib/blas/ext/base/gright-pad-edge/lib/main.js
new file mode 100644
index 000000000000..1bf9593fe954
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/gright-pad-edge/lib/main.js
@@ -0,0 +1,62 @@
+/**
+* @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 //
+
+/**
+* Appends elements to a strided array by repeating the trailing edge element.
+*
+* @param {PositiveInteger} N - number of indexed elements in `x`
+* @param {integer} k - number of elements to pad
+* @param {Collection} x - input array
+* @param {integer} strideX - stride length for `x`
+* @param {Collection} y - output array
+* @param {integer} strideY - stride length for `y`
+* @returns {Collection} output array
+*
+* @example
+* var x = [ 1.0, 2.0, 3.0, 4.0 ];
+* var y = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+*
+* grightPadEdge( x.length, 6, x, 1, y, 1 );
+* // y => [ 1.0, 2.0, 3.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0 ]
+*/
+function grightPadEdge( N, k, x, strideX, y, strideY ) {
+ var ox;
+ var oy;
+
+ if ( k < 0 ) {
+ k = 0;
+ }
+ ox = stride2offset( N, strideX );
+ oy = stride2offset( N + k, strideY );
+ return ndarray( N, k, x, strideX, ox, y, strideY, oy );
+}
+
+
+// EXPORTS //
+
+module.exports = grightPadEdge;
diff --git a/lib/node_modules/@stdlib/blas/ext/base/gright-pad-edge/lib/ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gright-pad-edge/lib/ndarray.js
new file mode 100644
index 000000000000..ece3d7cdddf8
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/gright-pad-edge/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 arraylike2object = require( '@stdlib/array/base/arraylike2object' );
+var accessors = require( './accessors.js' );
+
+
+// MAIN //
+
+/**
+* Appends elements to a strided array by repeating the trailing edge element.
+*
+* @param {PositiveInteger} N - number of indexed elements in `x`
+* @param {integer} k - number of elements to pad
+* @param {Collection} x - input array
+* @param {integer} strideX - stride length for `x`
+* @param {NonNegativeInteger} offsetX - starting index for `x`
+* @param {Collection} y - output array
+* @param {integer} strideY - stride length for `y`
+* @param {NonNegativeInteger} offsetY - starting index for `y`
+* @returns {Collection} output array
+*
+* @example
+* var x = [ 1.0, 2.0, 3.0, 4.0 ];
+* var y = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+*
+* grightPadEdge( 4, 6, x, 1, 0, y, 1, 0 );
+* // y => [ 1.0, 2.0, 3.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0 ]
+*/
+function grightPadEdge( N, k, x, strideX, offsetX, y, strideY, offsetY ) {
+ var ix;
+ var iy;
+ var ox;
+ var oy;
+ var v;
+ var i;
+
+ if ( N <= 0 ) {
+ return y;
+ }
+ if ( k < 0 ) {
+ k = 0;
+ }
+ ox = arraylike2object( x );
+ oy = arraylike2object( y );
+ if ( ox.accessorProtocol || oy.accessorProtocol ) {
+ accessors( N, k, ox, strideX, offsetX, oy, strideY, offsetY );
+ return y;
+ }
+ ix = offsetX;
+ iy = offsetY;
+ for ( i = 0; i < N; i++ ) {
+ y[ iy ] = x[ ix ];
+ iy += strideY;
+ ix += strideX;
+ }
+ v = x[ ix-strideX ];
+ for ( i = 0; i < k; i++ ) {
+ y[ iy ] = v;
+ iy += strideY;
+ }
+ return y;
+}
+
+
+// EXPORTS //
+
+module.exports = grightPadEdge;
diff --git a/lib/node_modules/@stdlib/blas/ext/base/gright-pad-edge/package.json b/lib/node_modules/@stdlib/blas/ext/base/gright-pad-edge/package.json
new file mode 100644
index 000000000000..bfa954295461
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/gright-pad-edge/package.json
@@ -0,0 +1,69 @@
+{
+ "name": "@stdlib/blas/ext/base/gright-pad-edge",
+ "version": "0.0.0",
+ "description": "Append elements to a strided array by repeating the trailing edge element.",
+ "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",
+ "pad",
+ "rightpad",
+ "right",
+ "edge",
+ "repeat",
+ "strided",
+ "strided array",
+ "typed",
+ "array"
+ ],
+ "__stdlib__": {}
+}
diff --git a/lib/node_modules/@stdlib/blas/ext/base/gright-pad-edge/test/test.js b/lib/node_modules/@stdlib/blas/ext/base/gright-pad-edge/test/test.js
new file mode 100644
index 000000000000..420a8fc845c1
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/gright-pad-edge/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 grightPadEdge = require( './../lib' );
+
+
+// TESTS //
+
+tape( 'main export is a function', function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof grightPadEdge, '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 grightPadEdge.ndarray, 'function', 'method is a function' );
+ t.end();
+});
diff --git a/lib/node_modules/@stdlib/blas/ext/base/gright-pad-edge/test/test.main.js b/lib/node_modules/@stdlib/blas/ext/base/gright-pad-edge/test/test.main.js
new file mode 100644
index 000000000000..c81ecf1dd9f0
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/gright-pad-edge/test/test.main.js
@@ -0,0 +1,400 @@
+/**
+* @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 grightPadEdge = require( './../lib' );
+
+
+// TESTS //
+
+tape( 'main export is a function', function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof grightPadEdge, 'function', 'main export is a function' );
+ t.end();
+});
+
+tape( 'the function has an arity of 6', function test( t ) {
+ t.strictEqual( grightPadEdge.length, 6, 'has expected arity' );
+ t.end();
+});
+
+tape( 'the function appends elements to a strided array by repeating the trailing edge element', function test( t ) {
+ var expected;
+ var x;
+ var y;
+
+ x = [ 1.0, 2.0, 3.0, 4.0 ];
+ y = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+
+ grightPadEdge( x.length, 6, x, 1, y, 1 );
+ expected = [ 1.0, 2.0, 3.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0 ];
+ t.deepEqual( y, expected, 'returns expected value' );
+
+ x = [ 1.0, 2.0, 3.0 ];
+ y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
+
+ grightPadEdge( x.length, 2, x, 1, y, 1 );
+ expected = [ 1.0, 2.0, 3.0, 3.0, 3.0 ];
+ t.deepEqual( y, expected, 'returns expected value' );
+
+ x = [ 1.0, 2.0 ];
+ y = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+
+ grightPadEdge( x.length, 4, x, 1, y, 1 );
+ expected = [ 1.0, 2.0, 2.0, 2.0, 2.0, 2.0 ];
+ t.deepEqual( y, expected, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function appends elements to a strided array by repeating the trailing edge element (accessors)', function test( t ) {
+ var expected;
+ var x;
+ var y;
+
+ x = [ 1.0, 2.0, 3.0, 4.0 ];
+ y = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+
+ grightPadEdge( x.length, 6, toAccessorArray( x ), 1, toAccessorArray( y ), 1 );
+ expected = [ 1.0, 2.0, 3.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0 ];
+ t.deepEqual( y, expected, 'returns expected value' );
+
+ x = [ 1.0, 2.0, 3.0 ];
+ y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
+
+ grightPadEdge( x.length, 2, toAccessorArray( x ), 1, toAccessorArray( y ), 1 );
+ expected = [ 1.0, 2.0, 3.0, 3.0, 3.0 ];
+ t.deepEqual( y, expected, 'returns expected value' );
+
+ x = [ 1.0, 2.0 ];
+ y = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+
+ grightPadEdge( x.length, 4, toAccessorArray( x ), 1, toAccessorArray( y ), 1 );
+ expected = [ 1.0, 2.0, 2.0, 2.0, 2.0, 2.0 ];
+ t.deepEqual( y, expected, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function returns a reference to the output array', function test( t ) {
+ var x;
+ var y;
+ var v;
+
+ x = [ 1.0, 2.0, 3.0 ];
+ y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
+
+ v = grightPadEdge( x.length, 2, x, 1, y, 1 );
+
+ t.strictEqual( v, y, 'same reference' );
+ t.end();
+});
+
+tape( 'the function returns a reference to the output array (accessors)', function test( t ) {
+ var x;
+ var y;
+ var v;
+
+ x = toAccessorArray( [ 1.0, 2.0, 3.0 ] );
+ y = toAccessorArray( [ 0.0, 0.0, 0.0, 0.0, 0.0 ] );
+
+ v = grightPadEdge( x.length, 2, x, 1, y, 1 );
+
+ t.strictEqual( v, y, 'same reference' );
+ t.end();
+});
+
+tape( 'if provided an `N` parameter less than or equal to `0`, the function returns `y` unchanged', function test( t ) {
+ var expected;
+ var x;
+ var y;
+
+ x = [ 1.0, 2.0, 3.0 ];
+ y = [ 6.0, 7.0, 8.0, 9.0, 10.0 ];
+
+ expected = [ 6.0, 7.0, 8.0, 9.0, 10.0 ];
+
+ grightPadEdge( -1, 2, x, 1, y, 1 );
+ t.deepEqual( y, expected, 'returns expected value' );
+
+ grightPadEdge( 0, 2, x, 1, y, 1 );
+ t.deepEqual( y, expected, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'if provided a `k` parameter less than `0`, the function copies indexed elements in `x` to `y` without padding', function test( t ) {
+ var expected;
+ var x;
+ var y;
+
+ x = [ 1.0, 2.0, 3.0 ];
+ y = [ 6.0, 7.0, 8.0 ];
+
+ expected = [ 1.0, 2.0, 3.0 ];
+
+ grightPadEdge( x.length, -1, x, 1, y, 1 );
+ t.deepEqual( y, expected, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function supports an `x` stride', function test( t ) {
+ var expected;
+ var x;
+ var y;
+
+ x = [
+ 1.0, // 0
+ 2.0,
+ 3.0, // 1
+ 4.0,
+ 5.0 // 2
+ ];
+ y = [
+ 0.0, // 0
+ 0.0, // 1
+ 0.0, // 2
+ 0.0, // edge
+ 0.0 // edge
+ ];
+
+ grightPadEdge( 3, 2, x, 2, y, 1 );
+
+ expected = [ 1.0, 3.0, 5.0, 5.0, 5.0 ];
+
+ t.deepEqual( y, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports an `x` stride (accessors)', function test( t ) {
+ var expected;
+ var x;
+ var y;
+
+ x = [
+ 1.0, // 0
+ 2.0,
+ 3.0, // 1
+ 4.0,
+ 5.0 // 2
+ ];
+ y = [
+ 0.0, // 0
+ 0.0, // 1
+ 0.0, // 2
+ 0.0, // edge
+ 0.0 // edge
+ ];
+
+ grightPadEdge( 3, 2, toAccessorArray( x ), 2, toAccessorArray( y ), 1 );
+
+ expected = [ 1.0, 3.0, 5.0, 5.0, 5.0 ];
+
+ t.deepEqual( y, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports a `y` stride', function test( t ) {
+ var expected;
+ var x;
+ var y;
+
+ x = [
+ 1.0, // 0
+ 2.0, // 1
+ 3.0 // 2
+ ];
+ y = [
+ 0.0, // 0
+ 0.0,
+ 0.0, // 1
+ 0.0,
+ 0.0, // 2
+ 0.0,
+ 0.0, // edge
+ 0.0,
+ 0.0, // edge
+ 0.0
+ ];
+
+ grightPadEdge( 3, 2, x, 1, y, 2 );
+
+ expected = [ 1.0, 0.0, 2.0, 0.0, 3.0, 0.0, 3.0, 0.0, 3.0, 0.0 ];
+
+ t.deepEqual( y, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports a `y` stride (accessors)', function test( t ) {
+ var expected;
+ var x;
+ var y;
+
+ x = [
+ 1.0, // 0
+ 2.0, // 1
+ 3.0 // 2
+ ];
+ y = [
+ 0.0, // 0
+ 0.0,
+ 0.0, // 1
+ 0.0,
+ 0.0, // 2
+ 0.0,
+ 0.0, // edge
+ 0.0,
+ 0.0, // edge
+ 0.0
+ ];
+
+ grightPadEdge( 3, 2, toAccessorArray( x ), 1, toAccessorArray( y ), 2 );
+
+ expected = [ 1.0, 0.0, 2.0, 0.0, 3.0, 0.0, 3.0, 0.0, 3.0, 0.0 ];
+
+ t.deepEqual( y, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports negative strides', function test( t ) {
+ var expected;
+ var x;
+ var y;
+
+ x = [
+ 1.0, // 2
+ 2.0,
+ 3.0, // 1
+ 4.0,
+ 5.0 // 0
+ ];
+ y = [
+ 0.0, // edge
+ 0.0, // edge
+ 0.0, // 2
+ 0.0, // 1
+ 0.0 // 0
+ ];
+
+ grightPadEdge( 3, 2, x, -2, y, -1 );
+
+ expected = [ 1.0, 1.0, 1.0, 3.0, 5.0 ];
+
+ t.deepEqual( y, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports negative strides (accessors)', function test( t ) {
+ var expected;
+ var x;
+ var y;
+
+ x = [
+ 1.0, // 2
+ 2.0,
+ 3.0, // 1
+ 4.0,
+ 5.0 // 0
+ ];
+ y = [
+ 0.0, // edge
+ 0.0, // edge
+ 0.0, // 2
+ 0.0, // 1
+ 0.0 // 0
+ ];
+
+ grightPadEdge( 3, 2, toAccessorArray( x ), -2, toAccessorArray( y ), -1 );
+
+ expected = [ 1.0, 1.0, 1.0, 3.0, 5.0 ];
+
+ t.deepEqual( y, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports complex access patterns', function test( t ) {
+ var expected;
+ var x;
+ var y;
+
+ x = [
+ 1.0, // 0
+ 2.0,
+ 3.0, // 1
+ 4.0,
+ 5.0 // 2
+ ];
+ y = [
+ 0.0, // edge
+ 0.0, // edge
+ 0.0, // 2
+ 0.0, // 1
+ 0.0 // 0
+ ];
+
+ grightPadEdge( 3, 2, x, 2, y, -1 );
+
+ expected = [ 5.0, 5.0, 5.0, 3.0, 1.0 ];
+
+ t.deepEqual( y, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports view offsets', function test( t ) {
+ var expected;
+ var x0;
+ var x1;
+ var y0;
+ var y1;
+
+ // Initial arrays...
+ x0 = new Float64Array([
+ 1.0,
+ 2.0, // 0
+ 3.0,
+ 4.0, // 1
+ 5.0,
+ 6.0 // 2
+ ]);
+ y0 = new Float64Array([
+ 0.0,
+ 0.0,
+ 0.0, // 0
+ 0.0, // 1
+ 0.0, // 2
+ 0.0, // edge
+ 0.0 // edge
+ ]);
+
+ // Create offset views...
+ x1 = new Float64Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // begin at 2nd element
+ y1 = new Float64Array( y0.buffer, y0.BYTES_PER_ELEMENT*2 ); // begin at 3rd element
+
+ grightPadEdge( 3, 2, x1, 2, y1, 1 );
+ expected = new Float64Array( [ 0.0, 0.0, 2.0, 4.0, 6.0, 6.0, 6.0 ] );
+
+ t.deepEqual( y0, expected, 'returns expected value' );
+ t.end();
+});
diff --git a/lib/node_modules/@stdlib/blas/ext/base/gright-pad-edge/test/test.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gright-pad-edge/test/test.ndarray.js
new file mode 100644
index 000000000000..849ad1355458
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/gright-pad-edge/test/test.ndarray.js
@@ -0,0 +1,508 @@
+/**
+* @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 grightPadEdge = require( './../lib/ndarray.js' );
+
+
+// TESTS //
+
+tape( 'main export is a function', function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof grightPadEdge, 'function', 'main export is a function' );
+ t.end();
+});
+
+tape( 'the function has an arity of 8', function test( t ) {
+ t.strictEqual( grightPadEdge.length, 8, 'has expected arity' );
+ t.end();
+});
+
+tape( 'the function appends elements to a strided array by repeating the trailing edge element', function test( t ) {
+ var expected;
+ var x;
+ var y;
+
+ x = [ 1.0, 2.0, 3.0, 4.0 ];
+ y = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+
+ grightPadEdge( x.length, 6, x, 1, 0, y, 1, 0 );
+ expected = [ 1.0, 2.0, 3.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0 ];
+ t.deepEqual( y, expected, 'returns expected value' );
+
+ x = [ 1.0, 2.0, 3.0 ];
+ y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
+
+ grightPadEdge( x.length, 2, x, 1, 0, y, 1, 0 );
+ expected = [ 1.0, 2.0, 3.0, 3.0, 3.0 ];
+ t.deepEqual( y, expected, 'returns expected value' );
+
+ x = [ 1.0, 2.0 ];
+ y = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+
+ grightPadEdge( x.length, 4, x, 1, 0, y, 1, 0 );
+ expected = [ 1.0, 2.0, 2.0, 2.0, 2.0, 2.0 ];
+ t.deepEqual( y, expected, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function appends elements to a strided array by repeating the trailing edge element (accessors)', function test( t ) {
+ var expected;
+ var x;
+ var y;
+
+ x = [ 1.0, 2.0, 3.0, 4.0 ];
+ y = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+
+ grightPadEdge( x.length, 6, toAccessorArray( x ), 1, 0, toAccessorArray( y ), 1, 0 );
+ expected = [ 1.0, 2.0, 3.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0 ];
+ t.deepEqual( y, expected, 'returns expected value' );
+
+ x = [ 1.0, 2.0, 3.0 ];
+ y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
+
+ grightPadEdge( x.length, 2, toAccessorArray( x ), 1, 0, toAccessorArray( y ), 1, 0 );
+ expected = [ 1.0, 2.0, 3.0, 3.0, 3.0 ];
+ t.deepEqual( y, expected, 'returns expected value' );
+
+ x = [ 1.0, 2.0 ];
+ y = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ];
+
+ grightPadEdge( x.length, 4, toAccessorArray( x ), 1, 0, toAccessorArray( y ), 1, 0 );
+ expected = [ 1.0, 2.0, 2.0, 2.0, 2.0, 2.0 ];
+ t.deepEqual( y, expected, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function returns a reference to the output array', function test( t ) {
+ var x;
+ var y;
+ var v;
+
+ x = [ 1.0, 2.0, 3.0 ];
+ y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
+
+ v = grightPadEdge( x.length, 2, x, 1, 0, y, 1, 0 );
+
+ t.strictEqual( v, y, 'same reference' );
+ t.end();
+});
+
+tape( 'the function returns a reference to the output array (accessors)', function test( t ) {
+ var x;
+ var y;
+ var v;
+
+ x = toAccessorArray( [ 1.0, 2.0, 3.0 ] );
+ y = toAccessorArray( [ 0.0, 0.0, 0.0, 0.0, 0.0 ] );
+
+ v = grightPadEdge( x.length, 2, x, 1, 0, y, 1, 0 );
+
+ t.strictEqual( v, y, 'same reference' );
+ t.end();
+});
+
+tape( 'if provided an `N` parameter less than or equal to `0`, the function returns `y` unchanged', function test( t ) {
+ var expected;
+ var x;
+ var y;
+
+ x = [ 1.0, 2.0, 3.0 ];
+ y = [ 6.0, 7.0, 8.0, 9.0, 10.0 ];
+
+ expected = [ 6.0, 7.0, 8.0, 9.0, 10.0 ];
+
+ grightPadEdge( -1, 2, x, 1, 0, y, 1, 0 );
+ t.deepEqual( y, expected, 'returns expected value' );
+
+ grightPadEdge( 0, 2, x, 1, 0, y, 1, 0 );
+ t.deepEqual( y, expected, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'if provided a `k` parameter less than `0`, the function copies indexed elements in `x` to `y` without padding', function test( t ) {
+ var expected;
+ var x;
+ var y;
+
+ x = [ 1.0, 2.0, 3.0 ];
+ y = [ 6.0, 7.0, 8.0 ];
+
+ expected = [ 1.0, 2.0, 3.0 ];
+
+ grightPadEdge( x.length, -1, x, 1, 0, y, 1, 0 );
+ t.deepEqual( y, expected, 'returns expected value' );
+
+ t.end();
+});
+
+tape( 'the function supports an `x` stride', function test( t ) {
+ var expected;
+ var x;
+ var y;
+
+ x = [
+ 1.0, // 0
+ 2.0,
+ 3.0, // 1
+ 4.0,
+ 5.0 // 2
+ ];
+ y = [
+ 0.0, // 0
+ 0.0, // 1
+ 0.0, // 2
+ 0.0, // edge
+ 0.0 // edge
+ ];
+
+ grightPadEdge( 3, 2, x, 2, 0, y, 1, 0 );
+
+ expected = [ 1.0, 3.0, 5.0, 5.0, 5.0 ];
+
+ t.deepEqual( y, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports an `x` stride (accessors)', function test( t ) {
+ var expected;
+ var x;
+ var y;
+
+ x = [
+ 1.0, // 0
+ 2.0,
+ 3.0, // 1
+ 4.0,
+ 5.0 // 2
+ ];
+ y = [
+ 0.0, // 0
+ 0.0, // 1
+ 0.0, // 2
+ 0.0, // edge
+ 0.0 // edge
+ ];
+
+ grightPadEdge( 3, 2, toAccessorArray( x ), 2, 0, toAccessorArray( y ), 1, 0 );
+
+ expected = [ 1.0, 3.0, 5.0, 5.0, 5.0 ];
+
+ t.deepEqual( y, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports a `y` stride', function test( t ) {
+ var expected;
+ var x;
+ var y;
+
+ x = [
+ 1.0, // 0
+ 2.0, // 1
+ 3.0 // 2
+ ];
+ y = [
+ 0.0, // 0
+ 0.0,
+ 0.0, // 1
+ 0.0,
+ 0.0, // 2
+ 0.0,
+ 0.0, // edge
+ 0.0,
+ 0.0, // edge
+ 0.0
+ ];
+
+ grightPadEdge( 3, 2, x, 1, 0, y, 2, 0 );
+
+ expected = [ 1.0, 0.0, 2.0, 0.0, 3.0, 0.0, 3.0, 0.0, 3.0, 0.0 ];
+
+ t.deepEqual( y, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports a `y` stride (accessors)', function test( t ) {
+ var expected;
+ var x;
+ var y;
+
+ x = [
+ 1.0, // 0
+ 2.0, // 1
+ 3.0 // 2
+ ];
+ y = [
+ 0.0, // 0
+ 0.0,
+ 0.0, // 1
+ 0.0,
+ 0.0, // 2
+ 0.0,
+ 0.0, // edge
+ 0.0,
+ 0.0, // edge
+ 0.0
+ ];
+
+ grightPadEdge( 3, 2, toAccessorArray( x ), 1, 0, toAccessorArray( y ), 2, 0 );
+
+ expected = [ 1.0, 0.0, 2.0, 0.0, 3.0, 0.0, 3.0, 0.0, 3.0, 0.0 ];
+
+ t.deepEqual( y, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports negative strides', function test( t ) {
+ var expected;
+ var x;
+ var y;
+
+ x = [
+ 1.0, // 2
+ 2.0,
+ 3.0, // 1
+ 4.0,
+ 5.0 // 0
+ ];
+ y = [
+ 0.0, // edge
+ 0.0, // edge
+ 0.0, // 2
+ 0.0, // 1
+ 0.0 // 0
+ ];
+
+ grightPadEdge( 3, 2, x, -2, 4, y, -1, 4 );
+
+ expected = [ 1.0, 1.0, 1.0, 3.0, 5.0 ];
+
+ t.deepEqual( y, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports negative strides (accessors)', function test( t ) {
+ var expected;
+ var x;
+ var y;
+
+ x = [
+ 1.0, // 2
+ 2.0,
+ 3.0, // 1
+ 4.0,
+ 5.0 // 0
+ ];
+ y = [
+ 0.0, // edge
+ 0.0, // edge
+ 0.0, // 2
+ 0.0, // 1
+ 0.0 // 0
+ ];
+
+ grightPadEdge( 3, 2, toAccessorArray( x ), -2, 4, toAccessorArray( y ), -1, 4 );
+
+ expected = [ 1.0, 1.0, 1.0, 3.0, 5.0 ];
+
+ t.deepEqual( y, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports an `x` offset', function test( t ) {
+ var expected;
+ var x;
+ var y;
+
+ x = [
+ 2.0,
+ 1.0, // 0
+ 2.0,
+ -2.0, // 1
+ -2.0,
+ 2.0, // 2
+ 3.0,
+ 4.0 // 3
+ ];
+ y = [
+ 0.0, // 0
+ 0.0, // 1
+ 0.0, // 2
+ 0.0, // 3
+ 0.0, // edge
+ 0.0 // edge
+ ];
+
+ grightPadEdge( 4, 2, x, 2, 1, y, 1, 0 );
+
+ expected = [ 1.0, -2.0, 2.0, 4.0, 4.0, 4.0 ];
+
+ t.deepEqual( y, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports an `x` offset (accessors)', function test( t ) {
+ var expected;
+ var x;
+ var y;
+
+ x = [
+ 2.0,
+ 1.0, // 0
+ 2.0,
+ -2.0, // 1
+ -2.0,
+ 2.0, // 2
+ 3.0,
+ 4.0 // 3
+ ];
+ y = [
+ 0.0, // 0
+ 0.0, // 1
+ 0.0, // 2
+ 0.0, // 3
+ 0.0, // edge
+ 0.0 // edge
+ ];
+
+ grightPadEdge( 4, 2, toAccessorArray( x ), 2, 1, toAccessorArray( y ), 1, 0 );
+
+ expected = [ 1.0, -2.0, 2.0, 4.0, 4.0, 4.0 ];
+
+ t.deepEqual( y, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports a `y` offset', function test( t ) {
+ var expected;
+ var x;
+ var y;
+
+ x = [
+ 1.0, // 0
+ 2.0, // 1
+ 3.0 // 2
+ ];
+ y = [
+ 0.0,
+ 0.0,
+ 0.0, // 0
+ 0.0, // 1
+ 0.0, // 2
+ 0.0, // edge
+ 0.0 // edge
+ ];
+
+ grightPadEdge( 3, 2, x, 1, 0, y, 1, 2 );
+
+ expected = [ 0.0, 0.0, 1.0, 2.0, 3.0, 3.0, 3.0 ];
+
+ t.deepEqual( y, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports a `y` offset (accessors)', function test( t ) {
+ var expected;
+ var x;
+ var y;
+
+ x = [
+ 1.0, // 0
+ 2.0, // 1
+ 3.0 // 2
+ ];
+ y = [
+ 0.0,
+ 0.0,
+ 0.0, // 0
+ 0.0, // 1
+ 0.0, // 2
+ 0.0, // edge
+ 0.0 // edge
+ ];
+
+ grightPadEdge( 3, 2, toAccessorArray( x ), 1, 0, toAccessorArray( y ), 1, 2 );
+
+ expected = [ 0.0, 0.0, 1.0, 2.0, 3.0, 3.0, 3.0 ];
+
+ t.deepEqual( y, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports a zero `x` stride', function test( t ) {
+ var expected;
+ var x;
+ var y;
+
+ x = [
+ 1.0,
+ 2.0, // 0, 1, 2
+ 3.0
+ ];
+ y = [
+ 0.0, // 0
+ 0.0, // 1
+ 0.0, // 2
+ 0.0, // edge
+ 0.0 // edge
+ ];
+
+ grightPadEdge( 3, 2, x, 0, 1, y, 1, 0 );
+
+ expected = [ 2.0, 2.0, 2.0, 2.0, 2.0 ];
+
+ t.deepEqual( y, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports complex access patterns', function test( t ) {
+ var expected;
+ var x;
+ var y;
+
+ x = [
+ 1.0, // 0
+ 2.0,
+ 3.0, // 1
+ 4.0,
+ 5.0 // 2
+ ];
+ y = [
+ 0.0, // edge
+ 0.0, // edge
+ 0.0, // 2
+ 0.0, // 1
+ 0.0 // 0
+ ];
+
+ grightPadEdge( 3, 2, x, 2, 0, y, -1, 4 );
+
+ expected = [ 5.0, 5.0, 5.0, 3.0, 1.0 ];
+
+ t.deepEqual( y, expected, 'returns expected value' );
+ t.end();
+});