diff --git a/lib/node_modules/@stdlib/blas/ext/base/svander/README.md b/lib/node_modules/@stdlib/blas/ext/base/svander/README.md
new file mode 100644
index 000000000000..445fbaf34c8a
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/svander/README.md
@@ -0,0 +1,351 @@
+
+
+# svander
+
+> Generate a single-precision floating-point Vandermonde matrix.
+
+
+
+
+
+
+
+## Usage
+
+```javascript
+var svander = require( '@stdlib/blas/ext/base/svander' );
+```
+
+#### svander( order, mode, M, N, x, strideX, out, ldo )
+
+Generates a single-precision floating-point Vandermonde matrix.
+
+```javascript
+var Float32Array = require( '@stdlib/array/float32' );
+
+var x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
+var out = new Float32Array( 9 );
+
+svander( 'row-major', -1, 3, 3, x, 1, out, 3 );
+// out => [ 1.0, 1.0, 1.0, 4.0, 2.0, 1.0, 9.0, 3.0, 1.0 ]
+```
+
+The function has the following parameters:
+
+- **order**: row-major (C-style) or column-major (Fortran-style) order.
+- **mode**: mode. If `mode < 0`, the function generates decreasing powers. If `mode > 0`, the function generates increasing powers.
+- **M**: number of rows in `out`.
+- **N**: number of columns in `out`.
+- **x**: input [`Float32Array`][@stdlib/array/float32].
+- **strideX**: stride length for `x`.
+- **out**: output matrix stored in linear memory as a [`Float32Array`][@stdlib/array/float32].
+- **ldo**: stride between successive contiguous vectors of the matrix `out` (a.k.a., leading dimension of the matrix `out`).
+
+Note that indexing is relative to the first index. To introduce an offset, use [`typed array`][mdn-typed-array] views.
+
+
+
+```javascript
+var Float32Array = require( '@stdlib/array/float32' );
+
+// Initial arrays:
+var x0 = new Float32Array( [ 999.0, 1.0, 2.0, 3.0 ] );
+var out0 = new Float32Array( 10 );
+
+// Create offset views:
+var x1 = new Float32Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // start at 2nd element
+var out1 = new Float32Array( out0.buffer, out0.BYTES_PER_ELEMENT*1 ); // start at 2nd element
+
+svander( 'row-major', 1, 3, 3, x1, 1, out1, 3 );
+// out0 => [ 0.0, 1.0, 1.0, 1.0, 1.0, 2.0, 4.0, 1.0, 3.0, 9.0 ]
+```
+
+When the mode is positive, the matrix is generated such that
+
+```text
+[
+ 1 x_0^1 x_0^2 ... x_0^(N-1)
+ 1 x_1^1 x_1^2 ... x_1^(N-1)
+ ...
+]
+```
+
+with increasing powers along the rows.
+
+When the mode is negative, the matrix is generated such that
+
+```text
+[
+ x_0^(N-1) ... x_0^2 x_0^1 1
+ x_1^(N-1) ... x_1^2 x_1^1 1
+ ...
+]
+```
+
+with decreasing powers along the rows.
+
+
+
+#### svander.ndarray( mode, M, N, x, strideX, offsetX, out, strideOut1, strideOut2, offsetOut )
+
+
+
+Generates a single-precision floating-point Vandermonde matrix using alternative indexing semantics.
+
+```javascript
+var Float32Array = require( '@stdlib/array/float32' );
+
+var x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
+var out = new Float32Array( 9 );
+
+svander.ndarray( -1, 3, 3, x, 1, 0, out, 3, 1, 0 );
+// out => [ 1.0, 1.0, 1.0, 4.0, 2.0, 1.0, 9.0, 3.0, 1.0 ]
+```
+
+The function has the following additional parameters:
+
+- **offsetX**: starting index for `x`.
+- **strideOut1**: stride length for the first dimension of `out`.
+- **strideOut2**: stride length for the second dimension of `out`.
+- **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 use every other element from the input array starting from the second element:
+
+```javascript
+var Float32Array = require( '@stdlib/array/float32' );
+
+var x = new Float32Array( [ 0.0, 1.0, 0.0, 2.0, 0.0, 3.0 ] );
+var out = new Float32Array( 9 );
+
+svander.ndarray( 1, 3, 3, x, 2, 1, out, 3, 1, 0 );
+// out => [ 1.0, 1.0, 1.0, 1.0, 2.0, 4.0, 1.0, 3.0, 9.0 ]
+```
+
+
+
+
+
+
+
+## Notes
+
+- If `M <= 0` or `N <= 0`, both functions return the output matrix unchanged.
+
+
+
+
+
+
+
+## Examples
+
+
+
+```javascript
+var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
+var Float32Array = require( '@stdlib/array/float32' );
+var svander = require( '@stdlib/blas/ext/base/svander' );
+
+var M = 3;
+var N = 4;
+
+var x = discreteUniform( M, 0, 10, {
+ 'dtype': 'float32'
+});
+var out = new Float32Array( M*N );
+
+svander( 'row-major', -1, M, N, x, 1, out, N );
+console.log( out );
+```
+
+
+
+
+
+
+
+* * *
+
+
+
+## C APIs
+
+
+
+
+
+
+
+
+
+
+
+### Usage
+
+```c
+#include "stdlib/blas/ext/base/svander.h"
+```
+
+#### stdlib_strided_svander( order, mode, M, N, \*X, strideX, \*Out, LDO )
+
+Generates a single-precision floating-point Vandermonde matrix.
+
+```c
+#include "stdlib/blas/base/shared.h"
+
+const float x[ 3 ] = { 1.0f, 2.0f, 3.0f };
+float Out[ 3*3 ] = { 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f };
+
+stdlib_strided_svander( CblasRowMajor, -1.0f, 3, 3, x, 1, Out, 3 );
+```
+
+The function accepts the following arguments:
+
+- **order**: `[in] CBLAS_LAYOUT` storage layout.
+- **mode**: `[in] float` mode. If `mode < 0`, the function generates decreasing powers. If `mode > 0`, the function generates increasing powers.
+- **M**: `[in] CBLAS_INT` number of rows in `Out`.
+- **N**: `[in] CBLAS_INT` number of columns in `Out`.
+- **X**: `[in] float*` input array.
+- **strideX**: `[in] CBLAS_INT` stride length for `X`.
+- **Out**: `[out] float*` output matrix.
+- **LDO**: `[in] CBLAS_INT` stride between successive contiguous vectors of the matrix `Out` (a.k.a., leading dimension of the matrix `Out`).
+
+```c
+void API_SUFFIX(stdlib_strided_svander)( const CBLAS_LAYOUT order, const float mode, const CBLAS_INT M, const CBLAS_INT N, const float *X, const CBLAS_INT strideX, float *Out, const CBLAS_INT LDO );
+```
+
+
+
+#### stdlib_strided_svander_ndarray( mode, M, N, \*X, strideX, offsetX, \*Out, strideOut1, strideOut2, offsetOut )
+
+
+
+Generates a single-precision floating-point Vandermonde matrix using alternative indexing semantics.
+
+```c
+#include "stdlib/blas/base/shared.h"
+
+const float x[ 3 ] = { 1.0f, 2.0f, 3.0f };
+float Out[ 3*3 ] = { 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f };
+
+stdlib_strided_svander_ndarray( -1.0f, 3, 3, x, 1, 0, Out, 3, 1, 0 );
+```
+
+The function accepts the following arguments:
+
+- **mode**: `[in] float` mode. If `mode < 0`, the function generates decreasing powers. If `mode > 0`, the function generates increasing powers.
+- **M**: `[in] CBLAS_INT` number of rows in `Out`.
+- **N**: `[in] CBLAS_INT` number of columns in `Out`.
+- **X**: `[in] float*` input array.
+- **strideX**: `[in] CBLAS_INT` stride length for `X`.
+- **offsetX**: `[in] CBLAS_INT` starting index for `X`.
+- **Out**: `[out] float*` output matrix.
+- **strideOut1**: `[in] CBLAS_INT` stride length for the first dimension of `Out`.
+- **strideOut2**: `[in] CBLAS_INT` stride length for the second dimension of `Out`.
+- **offsetOut**: `[in] CBLAS_INT` starting index for `Out`.
+
+```c
+void API_SUFFIX(stdlib_strided_svander_ndarray)( const float mode, const CBLAS_INT M, const CBLAS_INT N, const float *X, const CBLAS_INT strideX, const CBLAS_INT offsetX, float *Out, const CBLAS_INT strideOut1, const CBLAS_INT strideOut2, const CBLAS_INT offsetOut );
+```
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+### Examples
+
+```c
+#include "stdlib/blas/ext/base/svander.h"
+#include "stdlib/blas/base/shared.h"
+#include
+
+int main( void ) {
+ // Define the input array:
+ const float x[ 3 ] = { 1.0f, 2.0f, 3.0f };
+
+ // Define a 3x3 output array stored in row-major order:
+ float Out[ 3*3 ] = { 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f };
+
+ // Specify the number of rows and columns:
+ const int M = 3;
+ const int N = 3;
+
+ // Perform operation:
+ stdlib_strided_svander( CblasRowMajor, -1.0f, M, N, x, 1, Out, N );
+
+ // Print the result:
+ for ( int i = 0; i < M; i++ ) {
+ for ( int j = 0; j < N; j++ ) {
+ printf( "Out[%i,%i] = %f\n", i, j, Out[ (i*N)+j ] );
+ }
+ }
+}
+```
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+[@stdlib/array/float32]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/array/float32
+
+[mdn-typed-array]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray
+
+
+
+
diff --git a/lib/node_modules/@stdlib/blas/ext/base/svander/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/svander/benchmark/benchmark.js
new file mode 100644
index 000000000000..60081e021b73
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/svander/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 zeros = require( '@stdlib/array/zeros' );
+var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
+var pow = require( '@stdlib/math/base/special/pow' );
+var format = require( '@stdlib/string/format' );
+var pkg = require( './../package.json' ).name;
+var svander = require( './../lib/svander.js' );
+
+
+// VARIABLES //
+
+var options = {
+ 'dtype': 'float32'
+};
+
+
+// FUNCTIONS //
+
+/**
+* Creates a benchmark function.
+*
+* @private
+* @param {PositiveInteger} len - array length
+* @returns {Function} benchmark function
+*/
+function createBenchmark( len ) {
+ var out = zeros( len * len, options.dtype );
+ var x = uniform( len, -10, 10, 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 ] += 0.1;
+ v = svander( 'row-major', 1, len, len, x, 1, out, len );
+ if ( isnanf( v[ i%v.length ] ) ) {
+ b.fail( 'should not return NaN' );
+ }
+ }
+ b.toc();
+ if ( isnanf( v[ i%v.length ] ) ) {
+ 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 = 3; // 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/svander/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/ext/base/svander/benchmark/benchmark.native.js
new file mode 100644
index 000000000000..65118b890f6f
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/svander/benchmark/benchmark.native.js
@@ -0,0 +1,111 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var resolve = require( 'path' ).resolve;
+var bench = require( '@stdlib/bench' );
+var uniform = require( '@stdlib/random/array/uniform' );
+var zeros = require( '@stdlib/array/zeros' );
+var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
+var pow = require( '@stdlib/math/base/special/pow' );
+var tryRequire = require( '@stdlib/utils/try-require' );
+var format = require( '@stdlib/string/format' );
+var pkg = require( './../package.json' ).name;
+
+
+// VARIABLES //
+
+var svander = tryRequire( resolve( __dirname, './../lib/svander.native.js' ) );
+var opts = {
+ 'skip': ( svander instanceof Error )
+};
+var options = {
+ 'dtype': 'float32'
+};
+
+
+// FUNCTIONS //
+
+/**
+* Creates a benchmark function.
+*
+* @private
+* @param {PositiveInteger} len - array length
+* @returns {Function} benchmark function
+*/
+function createBenchmark( len ) {
+ var out = zeros( len * len, options.dtype );
+ var x = uniform( len, -10, 10, 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 ] += 0.1;
+ v = svander( 'row-major', 1, len, len, x, 1, out, len );
+ if ( isnanf( v[ i%v.length ] ) ) {
+ b.fail( 'should not return NaN' );
+ }
+ }
+ b.toc();
+ if ( isnanf( v[ i%v.length ] ) ) {
+ 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 = 3; // 10^max
+
+ for ( i = min; i <= max; i++ ) {
+ len = pow( 10, i );
+ f = createBenchmark( len );
+ bench( format( '%s::native:len=%d', pkg, len ), opts, f );
+ }
+}
+
+main();
diff --git a/lib/node_modules/@stdlib/blas/ext/base/svander/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/svander/benchmark/benchmark.ndarray.js
new file mode 100644
index 000000000000..f69484a08a7a
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/svander/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 zeros = require( '@stdlib/array/zeros' );
+var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
+var pow = require( '@stdlib/math/base/special/pow' );
+var format = require( '@stdlib/string/format' );
+var pkg = require( './../package.json' ).name;
+var svander = require( './../lib/ndarray.js' );
+
+
+// VARIABLES //
+
+var options = {
+ 'dtype': 'float32'
+};
+
+
+// FUNCTIONS //
+
+/**
+* Creates a benchmark function.
+*
+* @private
+* @param {PositiveInteger} len - array length
+* @returns {Function} benchmark function
+*/
+function createBenchmark( len ) {
+ var out = zeros( len * len, options.dtype );
+ var x = uniform( len, -10, 10, 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 ] += 0.1;
+ v = svander( 1, len, len, x, 1, 0, out, len, 1, 0 );
+ if ( isnanf( v[ i%v.length ] ) ) {
+ b.fail( 'should not return NaN' );
+ }
+ }
+ b.toc();
+ if ( isnanf( v[ i%v.length ] ) ) {
+ 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 = 3; // 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/svander/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/svander/benchmark/benchmark.ndarray.native.js
new file mode 100644
index 000000000000..e8f4a56418f7
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/svander/benchmark/benchmark.ndarray.native.js
@@ -0,0 +1,111 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var resolve = require( 'path' ).resolve;
+var bench = require( '@stdlib/bench' );
+var uniform = require( '@stdlib/random/array/uniform' );
+var zeros = require( '@stdlib/array/zeros' );
+var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
+var pow = require( '@stdlib/math/base/special/pow' );
+var tryRequire = require( '@stdlib/utils/try-require' );
+var format = require( '@stdlib/string/format' );
+var pkg = require( './../package.json' ).name;
+
+
+// VARIABLES //
+
+var svander = tryRequire( resolve( __dirname, './../lib/ndarray.native.js' ) );
+var opts = {
+ 'skip': ( svander instanceof Error )
+};
+var options = {
+ 'dtype': 'float32'
+};
+
+
+// FUNCTIONS //
+
+/**
+* Creates a benchmark function.
+*
+* @private
+* @param {PositiveInteger} len - array length
+* @returns {Function} benchmark function
+*/
+function createBenchmark( len ) {
+ var out = zeros( len * len, options.dtype );
+ var x = uniform( len, -10, 10, 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 ] += 0.1;
+ v = svander( 1, len, len, x, 1, 0, out, len, 1, 0 );
+ if ( isnanf( v[ i%v.length ] ) ) {
+ b.fail( 'should not return NaN' );
+ }
+ }
+ b.toc();
+ if ( isnanf( v[ i%v.length ] ) ) {
+ 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 = 3; // 10^max
+
+ for ( i = min; i <= max; i++ ) {
+ len = pow( 10, i );
+ f = createBenchmark( len );
+ bench( format( '%s::native:ndarray:len=%d', pkg, len ), opts, f );
+ }
+}
+
+main();
diff --git a/lib/node_modules/@stdlib/blas/ext/base/svander/benchmark/c/Makefile b/lib/node_modules/@stdlib/blas/ext/base/svander/benchmark/c/Makefile
new file mode 100644
index 000000000000..0756dc7da20a
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/svander/benchmark/c/Makefile
@@ -0,0 +1,146 @@
+#/
+# @license Apache-2.0
+#
+# Copyright (c) 2026 The Stdlib Authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#/
+
+# VARIABLES #
+
+ifndef VERBOSE
+ QUIET := @
+else
+ QUIET :=
+endif
+
+# Determine the OS ([1][1], [2][2]).
+#
+# [1]: https://en.wikipedia.org/wiki/Uname#Examples
+# [2]: http://stackoverflow.com/a/27776822/2225624
+OS ?= $(shell uname)
+ifneq (, $(findstring MINGW,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring MSYS,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring CYGWIN,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring Windows_NT,$(OS)))
+ OS := WINNT
+endif
+endif
+endif
+endif
+
+# Define the program used for compiling C source files:
+ifdef C_COMPILER
+ CC := $(C_COMPILER)
+else
+ CC := gcc
+endif
+
+# Define the command-line options when compiling C files:
+CFLAGS ?= \
+ -std=c99 \
+ -O3 \
+ -Wall \
+ -pedantic
+
+# Determine whether to generate position independent code ([1][1], [2][2]).
+#
+# [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options
+# [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option
+ifeq ($(OS), WINNT)
+ fPIC ?=
+else
+ fPIC ?= -fPIC
+endif
+
+# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`):
+INCLUDE ?=
+
+# List of source files:
+SOURCE_FILES ?=
+
+# List of libraries (e.g., `-lopenblas -lpthread`):
+LIBRARIES ?=
+
+# List of library paths (e.g., `-L /foo/bar -L /beep/boop`):
+LIBPATH ?=
+
+# List of C targets:
+c_targets := benchmark.length.out
+
+
+# RULES #
+
+#/
+# Compiles source files.
+#
+# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`)
+# @param {string} [CFLAGS] - C compiler options
+# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`)
+# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`)
+# @param {string} [SOURCE_FILES] - list of source files
+# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`)
+# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`)
+#
+# @example
+# make
+#
+# @example
+# make all
+#/
+all: $(c_targets)
+
+.PHONY: all
+
+#/
+# Compiles C source files.
+#
+# @private
+# @param {string} CC - C compiler (e.g., `gcc`)
+# @param {string} CFLAGS - C compiler options
+# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`)
+# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`)
+# @param {string} SOURCE_FILES - list of source files
+# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`)
+# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`)
+#/
+$(c_targets): %.out: %.c
+ $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES)
+
+#/
+# Runs compiled benchmarks.
+#
+# @example
+# make run
+#/
+run: $(c_targets)
+ $(QUIET) ./$<
+
+.PHONY: run
+
+#/
+# Removes generated files.
+#
+# @example
+# make clean
+#/
+clean:
+ $(QUIET) -rm -f *.o *.out
+
+.PHONY: clean
diff --git a/lib/node_modules/@stdlib/blas/ext/base/svander/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/blas/ext/base/svander/benchmark/c/benchmark.length.c
new file mode 100644
index 000000000000..535ef0186675
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/svander/benchmark/c/benchmark.length.c
@@ -0,0 +1,204 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+#include "stdlib/blas/ext/base/svander.h"
+#include "stdlib/blas/base/shared.h"
+#include
+#include
+#include
+#include
+#include
+
+#define NAME "svander"
+#define ITERATIONS 1000000
+#define REPEATS 3
+#define MIN 1
+#define MAX 3
+
+/**
+* Prints the TAP version.
+*/
+static void print_version( void ) {
+ printf( "TAP version 13\n" );
+}
+
+/**
+* Prints the TAP summary.
+*
+* @param total total number of tests
+* @param passing total number of passing tests
+*/
+static void print_summary( int total, int passing ) {
+ printf( "#\n" );
+ printf( "1..%d\n", total ); // TAP plan
+ printf( "# total %d\n", total );
+ printf( "# pass %d\n", passing );
+ printf( "#\n" );
+ printf( "# ok\n" );
+}
+
+/**
+* Prints benchmarks results.
+*
+* @param iterations number of iterations
+* @param elapsed elapsed time in seconds
+*/
+static void print_results( int iterations, double elapsed ) {
+ double rate = (double)iterations / elapsed;
+ printf( " ---\n" );
+ printf( " iterations: %d\n", iterations );
+ printf( " elapsed: %0.9f\n", elapsed );
+ printf( " rate: %0.9f\n", rate );
+ printf( " ...\n" );
+}
+
+/**
+* Returns a clock time.
+*
+* @return clock time
+*/
+static double tic( void ) {
+ struct timeval now;
+ gettimeofday( &now, NULL );
+ return (double)now.tv_sec + (double)now.tv_usec/1.0e6;
+}
+
+/**
+* Generates a random number on the interval [0,1).
+*
+* @return random number
+*/
+static float rand_float( void ) {
+ int r = rand();
+ return (float)r / ( (float)RAND_MAX + 1.0f );
+}
+
+/**
+* Runs a benchmark.
+*
+* @param iterations number of iterations
+* @param len array length
+* @return elapsed time in seconds
+*/
+static double benchmark1( int iterations, int len ) {
+ double elapsed;
+ float *out;
+ float *x;
+ double t;
+ int i;
+
+ x = (float *)malloc( len * sizeof( float ) );
+ out = (float *)malloc( len * len * sizeof( float ) );
+ for ( i = 0; i < len; i++ ) {
+ x[ i ] = ( rand_float() * 20.0f ) - 10.0f;
+ }
+ t = tic();
+ for ( i = 0; i < iterations; i++ ) {
+ // cppcheck-suppress uninitvar
+ stdlib_strided_svander( CblasRowMajor, 1.0f, len, len, x, 1, out, len );
+ if ( out[ 0 ] != out[ 0 ] ) {
+ printf( "should not return NaN\n" );
+ break;
+ }
+ }
+ elapsed = tic() - t;
+ if ( out[ 0 ] != out[ 0 ] ) {
+ printf( "should not return NaN\n" );
+ }
+ free( x );
+ free( out );
+ return elapsed;
+}
+
+/**
+* Runs a benchmark.
+*
+* @param iterations number of iterations
+* @param len array length
+* @return elapsed time in seconds
+*/
+static double benchmark2( int iterations, int len ) {
+ double elapsed;
+ float *out;
+ float *x;
+ double t;
+ int i;
+
+ x = (float *)malloc( len * sizeof( float ) );
+ out = (float *)malloc( len * len * sizeof( float ) );
+ for ( i = 0; i < len; i++ ) {
+ x[ i ] = ( rand_float() * 20.0f ) - 10.0f;
+ }
+ t = tic();
+ for ( i = 0; i < iterations; i++ ) {
+ // cppcheck-suppress uninitvar
+ stdlib_strided_svander_ndarray( 1.0f, len, len, x, 1, 0, out, len, 1, 0 );
+ if ( out[ 0 ] != out[ 0 ] ) {
+ printf( "should not return NaN\n" );
+ break;
+ }
+ }
+ elapsed = tic() - t;
+ if ( out[ 0 ] != out[ 0 ] ) {
+ printf( "should not return NaN\n" );
+ }
+ free( x );
+ free( out );
+ return elapsed;
+}
+
+/**
+* Main execution sequence.
+*/
+int main( void ) {
+ double elapsed;
+ int count;
+ int iter;
+ int len;
+ int i;
+ int j;
+
+ // Use the current time to seed the random number generator:
+ srand( time( NULL ) );
+
+ print_version();
+ count = 0;
+ for ( i = MIN; i <= MAX; i++ ) {
+ len = (int)pow( 10, i );
+ iter = ITERATIONS / pow( 10, i-1 );
+ for ( j = 0; j < REPEATS; j++ ) {
+ count += 1;
+ printf( "# c::native::%s:len=%d\n", NAME, len );
+ elapsed = benchmark1( iter, len );
+ print_results( iter, elapsed );
+ printf( "ok %d benchmark finished\n", count );
+ }
+ }
+ for ( i = MIN; i <= MAX; i++ ) {
+ len = (int)pow( 10, i );
+ iter = ITERATIONS / pow( 10, i-1 );
+ for ( j = 0; j < REPEATS; j++ ) {
+ count += 1;
+ printf( "# c::native::%s:ndarray:len=%d\n", NAME, len );
+ elapsed = benchmark2( iter, len );
+ print_results( iter, elapsed );
+ printf( "ok %d benchmark finished\n", count );
+ }
+ }
+ print_summary( count, count );
+}
diff --git a/lib/node_modules/@stdlib/blas/ext/base/svander/binding.gyp b/lib/node_modules/@stdlib/blas/ext/base/svander/binding.gyp
new file mode 100644
index 000000000000..0d6508a12e99
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/svander/binding.gyp
@@ -0,0 +1,170 @@
+# @license Apache-2.0
+#
+# Copyright (c) 2026 The Stdlib Authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# A `.gyp` file for building a Node.js native add-on.
+#
+# [1]: https://gyp.gsrc.io/docs/InputFormatReference.md
+# [2]: https://gyp.gsrc.io/docs/UserDocumentation.md
+{
+ # List of files to include in this file:
+ 'includes': [
+ './include.gypi',
+ ],
+
+ # Define variables to be used throughout the configuration for all targets:
+ 'variables': {
+ # Target name should match the add-on export name:
+ 'addon_target_name%': 'addon',
+
+ # Set variables based on the host OS:
+ 'conditions': [
+ [
+ 'OS=="win"',
+ {
+ # Define the object file suffix:
+ 'obj': 'obj',
+ },
+ {
+ # Define the object file suffix:
+ 'obj': 'o',
+ }
+ ], # end condition (OS=="win")
+ ], # end conditions
+ }, # end variables
+
+ # Define compile targets:
+ 'targets': [
+
+ # Target to generate an add-on:
+ {
+ # The target name should match the add-on export name:
+ 'target_name': '<(addon_target_name)',
+
+ # Define dependencies:
+ 'dependencies': [],
+
+ # Define directories which contain relevant include headers:
+ 'include_dirs': [
+ # Local include directory:
+ '<@(include_dirs)',
+ ],
+
+ # List of source files:
+ 'sources': [
+ '<@(src_files)',
+ ],
+
+ # Settings which should be applied when a target's object files are used as linker input:
+ 'link_settings': {
+ # Define libraries:
+ 'libraries': [
+ '<@(libraries)',
+ ],
+
+ # Define library directories:
+ 'library_dirs': [
+ '<@(library_dirs)',
+ ],
+ },
+
+ # C/C++ compiler flags:
+ 'cflags': [
+ # Enable commonly used warning options:
+ '-Wall',
+
+ # Aggressive optimization:
+ '-O3',
+ ],
+
+ # C specific compiler flags:
+ 'cflags_c': [
+ # Specify the C standard to which a program is expected to conform:
+ '-std=c99',
+ ],
+
+ # C++ specific compiler flags:
+ 'cflags_cpp': [
+ # Specify the C++ standard to which a program is expected to conform:
+ '-std=c++11',
+ ],
+
+ # Linker flags:
+ 'ldflags': [],
+
+ # Apply conditions based on the host OS:
+ 'conditions': [
+ [
+ 'OS=="mac"',
+ {
+ # Linker flags:
+ 'ldflags': [
+ '-undefined dynamic_lookup',
+ '-Wl,-no-pie',
+ '-Wl,-search_paths_first',
+ ],
+ },
+ ], # end condition (OS=="mac")
+ [
+ 'OS!="win"',
+ {
+ # C/C++ flags:
+ 'cflags': [
+ # Generate platform-independent code:
+ '-fPIC',
+ ],
+ },
+ ], # end condition (OS!="win")
+ ], # end conditions
+ }, # end target <(addon_target_name)
+
+ # Target to copy a generated add-on to a standard location:
+ {
+ 'target_name': 'copy_addon',
+
+ # Declare that the output of this target is not linked:
+ 'type': 'none',
+
+ # Define dependencies:
+ 'dependencies': [
+ # Require that the add-on be generated before building this target:
+ '<(addon_target_name)',
+ ],
+
+ # Define a list of actions:
+ 'actions': [
+ {
+ 'action_name': 'copy_addon',
+ 'message': 'Copying addon...',
+
+ # Explicitly list the inputs in the command-line invocation below:
+ 'inputs': [],
+
+ # Declare the expected outputs:
+ 'outputs': [
+ '<(addon_output_dir)/<(addon_target_name).node',
+ ],
+
+ # Define the command-line invocation:
+ 'action': [
+ 'cp',
+ '<(PRODUCT_DIR)/<(addon_target_name).node',
+ '<(addon_output_dir)/<(addon_target_name).node',
+ ],
+ },
+ ], # end actions
+ }, # end target copy_addon
+ ], # end targets
+}
diff --git a/lib/node_modules/@stdlib/blas/ext/base/svander/docs/repl.txt b/lib/node_modules/@stdlib/blas/ext/base/svander/docs/repl.txt
new file mode 100644
index 000000000000..7834fd360637
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/svander/docs/repl.txt
@@ -0,0 +1,133 @@
+
+{{alias}}( order, mode, M, N, x, strideX, out, ldo )
+ Generates a single-precision floating-point Vandermonde matrix.
+
+ When the mode is positive, the matrix is generated such that
+
+ [
+ 1 x_0^1 x_0^2 ... x_0^(N-1)
+ 1 x_1^1 x_1^2 ... x_1^(N-1)
+ ...
+ ]
+
+ with increasing powers along the rows.
+
+ When the mode is negative, the matrix is generated such that
+
+ [
+ x_0^(N-1) ... x_0^2 x_0^1 1
+ x_1^(N-1) ... x_1^2 x_1^1 1
+ ...
+ ]
+
+ with decreasing powers along the rows.
+
+ If `M <= 0` or `N <= 0`, the function returns the output matrix unchanged.
+
+ Parameters
+ ----------
+ order: string
+ Row-major (C-style) or column-major (Fortran-style) order.
+
+ mode: integer
+ Mode. If `mode < 0`, the function generates decreasing powers. If
+ `mode > 0`, the function generates increasing powers.
+
+ M: integer
+ Number of rows in `out`.
+
+ N: integer
+ Number of columns in `out`.
+
+ x: Float32Array
+ Input array.
+
+ strideX: integer
+ Stride length for `x`.
+
+ out: Float32Array
+ Output matrix.
+
+ ldo: integer
+ Stride between successive contiguous vectors of the matrix `out`
+ (a.k.a., leading dimension of the matrix `out`).
+
+ Returns
+ -------
+ out: Float32Array
+ Output matrix.
+
+ Examples
+ --------
+ // Standard Usage:
+ > var x = new {{alias:@stdlib/array/float32}}( [ 1.0, 2.0, 3.0 ] );
+ > var out = new {{alias:@stdlib/array/float32}}( 9 );
+ > {{alias}}( 'row-major', 1, 3, 3, x, 1, out, 3 )
+ [ 1.0, 1.0, 1.0, 1.0, 2.0, 4.0, 1.0, 3.0, 9.0 ]
+
+ // Decreasing mode:
+ > x = new {{alias:@stdlib/array/float32}}( [ 1.0, 2.0, 3.0 ] );
+ > out = new {{alias:@stdlib/array/float32}}( 9 );
+ > {{alias}}( 'row-major', -1, 3, 3, x, 1, out, 3 )
+ [ 1.0, 1.0, 1.0, 4.0, 2.0, 1.0, 9.0, 3.0, 1.0 ]
+
+
+{{alias}}.ndarray( mode, M, N, x, strideX, offsetX, out, so1, so2, oo )
+ Generates a single-precision floating-point Vandermonde matrix using
+ alternative indexing semantics.
+
+ Parameters
+ ----------
+ mode: integer
+ Mode. If `mode < 0`, the function generates decreasing powers. If
+ `mode > 0`, the function generates increasing powers.
+
+ M: integer
+ Number of rows in `out`.
+
+ N: integer
+ Number of columns in `out`.
+
+ x: Float32Array
+ Input array.
+
+ strideX: integer
+ Stride length for `x`.
+
+ offsetX: integer
+ Starting index for `x`.
+
+ out: Float32Array
+ Output matrix.
+
+ so1: integer
+ Stride length for the first dimension of `out`.
+
+ so2: integer
+ Stride length for the second dimension of `out`.
+
+ oo: integer
+ Starting index for `out`.
+
+ Returns
+ -------
+ out: Float32Array
+ Output matrix.
+
+ Examples
+ --------
+ // Standard Usage:
+ > var x = new {{alias:@stdlib/array/float32}}( [ 1.0, 2.0, 3.0 ] );
+ > var out = new {{alias:@stdlib/array/float32}}( 9 );
+ > {{alias}}.ndarray( 1, 3, 3, x, 1, 0, out, 3, 1, 0 )
+ [ 1.0, 1.0, 1.0, 1.0, 2.0, 4.0, 1.0, 3.0, 9.0 ]
+
+ // Advanced indexing:
+ > x = new {{alias:@stdlib/array/float32}}( [ 0.0, 1.0, 0.0, 2.0, 0.0, 3.0 ] );
+ > out = new {{alias:@stdlib/array/float32}}( 9 );
+ > {{alias}}.ndarray( 1, 3, 3, x, 2, 1, out, 3, 1, 0 )
+ [ 1.0, 1.0, 1.0, 1.0, 2.0, 4.0, 1.0, 3.0, 9.0 ]
+
+ See Also
+ --------
+
diff --git a/lib/node_modules/@stdlib/blas/ext/base/svander/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/ext/base/svander/docs/types/index.d.ts
new file mode 100644
index 000000000000..2dd3ebae121a
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/svander/docs/types/index.d.ts
@@ -0,0 +1,116 @@
+/*
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+// TypeScript Version: 4.1
+
+///
+
+import { Layout } from '@stdlib/types/blas';
+
+/**
+* Interface describing `svander`.
+*/
+interface Routine {
+ /**
+ * Generates a single-precision floating-point Vandermonde matrix.
+ *
+ * @param order - storage layout
+ * @param mode - mode indicating whether to generate increasing or decreasing powers
+ * @param M - number of rows in `out`
+ * @param N - number of columns in `out`
+ * @param x - input array
+ * @param strideX - stride length for `x`
+ * @param out - output matrix
+ * @param ldo - stride between successive contiguous vectors of the matrix `out` (a.k.a., leading dimension of the matrix `out`)
+ * @returns output matrix
+ *
+ * @example
+ * var Float32Array = require( '@stdlib/array/float32' );
+ *
+ * var x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
+ * var out = new Float32Array( 9 );
+ *
+ * svander( 'row-major', -1, 3, 3, x, 1, out, 3 );
+ * // out => [ 1.0, 1.0, 1.0, 4.0, 2.0, 1.0, 9.0, 3.0, 1.0 ]
+ */
+ ( order: Layout, mode: number, M: number, N: number, x: Float32Array, strideX: number, out: Float32Array, ldo: number ): Float32Array;
+
+ /**
+ * Generates a single-precision floating-point Vandermonde matrix using alternative indexing semantics.
+ *
+ * @param mode - mode indicating whether to generate increasing or decreasing powers
+ * @param M - number of rows in `out`
+ * @param N - number of columns in `out`
+ * @param x - input array
+ * @param strideX - stride length for `x`
+ * @param offsetX - starting index for `x`
+ * @param out - output matrix
+ * @param strideOut1 - stride length for the first dimension of `out`
+ * @param strideOut2 - stride length for the second dimension of `out`
+ * @param offsetOut - starting index for `out`
+ * @returns output matrix
+ *
+ * @example
+ * var Float32Array = require( '@stdlib/array/float32' );
+ *
+ * var x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
+ * var out = new Float32Array( 9 );
+ *
+ * svander.ndarray( -1, 3, 3, x, 1, 0, out, 3, 1, 0 );
+ * // out => [ 1.0, 1.0, 1.0, 4.0, 2.0, 1.0, 9.0, 3.0, 1.0 ]
+ */
+ ndarray( mode: number, M: number, N: number, x: Float32Array, strideX: number, offsetX: number, out: Float32Array, strideOut1: number, strideOut2: number, offsetOut: number ): Float32Array;
+}
+
+/**
+* Generates a single-precision floating-point Vandermonde matrix.
+*
+* @param order - storage layout
+* @param mode - mode indicating whether to generate increasing or decreasing powers
+* @param M - number of rows in `out`
+* @param N - number of columns in `out`
+* @param x - input array
+* @param strideX - stride length for `x`
+* @param out - output matrix
+* @param ldo - stride between successive contiguous vectors of the matrix `out` (a.k.a., leading dimension of the matrix `out`)
+* @returns output matrix
+*
+* @example
+* var Float32Array = require( '@stdlib/array/float32' );
+*
+* var x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
+* var out = new Float32Array( 9 );
+*
+* svander( 'row-major', -1, 3, 3, x, 1, out, 3 );
+* // out => [ 1.0, 1.0, 1.0, 4.0, 2.0, 1.0, 9.0, 3.0, 1.0 ]
+*
+* @example
+* var Float32Array = require( '@stdlib/array/float32' );
+*
+* var x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
+* var out = new Float32Array( 9 );
+*
+* svander.ndarray( -1, 3, 3, x, 1, 0, out, 3, 1, 0 );
+* // out => [ 1.0, 1.0, 1.0, 4.0, 2.0, 1.0, 9.0, 3.0, 1.0 ]
+*/
+declare var svander: Routine;
+
+
+// EXPORTS //
+
+export = svander;
diff --git a/lib/node_modules/@stdlib/blas/ext/base/svander/docs/types/test.ts b/lib/node_modules/@stdlib/blas/ext/base/svander/docs/types/test.ts
new file mode 100644
index 000000000000..7bc5e6d21acf
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/svander/docs/types/test.ts
@@ -0,0 +1,343 @@
+/*
+* @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 svander = require( './index' );
+
+
+// TESTS //
+
+// The function returns a Float32Array...
+{
+ const x = new Float32Array( 10 );
+ const out = new Float32Array( 100 );
+
+ svander( 'row-major', -1, 10, 10, x, 1, out, 10 ); // $ExpectType Float32Array
+}
+
+// The compiler throws an error if the function is provided a first argument which is not a valid order...
+{
+ const x = new Float32Array( 10 );
+ const out = new Float32Array( 100 );
+
+ svander( '10', -1, 10, 10, x, 1, out, 10 ); // $ExpectError
+ svander( 10, -1, 10, 10, x, 1, out, 10 ); // $ExpectError
+ svander( true, -1, 10, 10, x, 1, out, 10 ); // $ExpectError
+ svander( false, -1, 10, 10, x, 1, out, 10 ); // $ExpectError
+ svander( null, -1, 10, 10, x, 1, out, 10 ); // $ExpectError
+ svander( undefined, -1, 10, 10, x, 1, out, 10 ); // $ExpectError
+ svander( [], -1, 10, 10, x, 1, out, 10 ); // $ExpectError
+ svander( {}, -1, 10, 10, x, 1, out, 10 ); // $ExpectError
+ svander( ( x: number ): number => x, -1, 10, 10, x, 1, out, 10 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a second argument which is not a number...
+{
+ const x = new Float32Array( 10 );
+ const out = new Float32Array( 100 );
+
+ svander( 'row-major', '10', 10, 10, x, 1, out, 10 ); // $ExpectError
+ svander( 'row-major', true, 10, 10, x, 1, out, 10 ); // $ExpectError
+ svander( 'row-major', false, 10, 10, x, 1, out, 10 ); // $ExpectError
+ svander( 'row-major', null, 10, 10, x, 1, out, 10 ); // $ExpectError
+ svander( 'row-major', undefined, 10, 10, x, 1, out, 10 ); // $ExpectError
+ svander( 'row-major', [], 10, 10, x, 1, out, 10 ); // $ExpectError
+ svander( 'row-major', {}, 10, 10, x, 1, out, 10 ); // $ExpectError
+ svander( 'row-major', ( x: number ): number => x, 10, 10, x, 1, out, 10 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a third argument which is not a number...
+{
+ const x = new Float32Array( 10 );
+ const out = new Float32Array( 100 );
+
+ svander( 'row-major', -1, '10', 10, x, 1, out, 10 ); // $ExpectError
+ svander( 'row-major', -1, true, 10, x, 1, out, 10 ); // $ExpectError
+ svander( 'row-major', -1, false, 10, x, 1, out, 10 ); // $ExpectError
+ svander( 'row-major', -1, null, 10, x, 1, out, 10 ); // $ExpectError
+ svander( 'row-major', -1, undefined, 10, x, 1, out, 10 ); // $ExpectError
+ svander( 'row-major', -1, [], 10, x, 1, out, 10 ); // $ExpectError
+ svander( 'row-major', -1, {}, 10, x, 1, out, 10 ); // $ExpectError
+ svander( 'row-major', -1, ( x: number ): number => x, 10, x, 1, out, 10 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a fourth argument which is not a number...
+{
+ const x = new Float32Array( 10 );
+ const out = new Float32Array( 100 );
+
+ svander( 'row-major', -1, 10, '10', x, 1, out, 10 ); // $ExpectError
+ svander( 'row-major', -1, 10, true, x, 1, out, 10 ); // $ExpectError
+ svander( 'row-major', -1, 10, false, x, 1, out, 10 ); // $ExpectError
+ svander( 'row-major', -1, 10, null, x, 1, out, 10 ); // $ExpectError
+ svander( 'row-major', -1, 10, undefined, x, 1, out, 10 ); // $ExpectError
+ svander( 'row-major', -1, 10, [], x, 1, out, 10 ); // $ExpectError
+ svander( 'row-major', -1, 10, {}, x, 1, out, 10 ); // $ExpectError
+ svander( 'row-major', -1, 10, ( x: number ): number => x, x, 1, out, 10 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a fifth argument which is not a Float32Array...
+{
+ const out = new Float32Array( 100 );
+
+ svander( 'row-major', -1, 10, 10, 10, 1, out, 10 ); // $ExpectError
+ svander( 'row-major', -1, 10, 10, '10', 1, out, 10 ); // $ExpectError
+ svander( 'row-major', -1, 10, 10, true, 1, out, 10 ); // $ExpectError
+ svander( 'row-major', -1, 10, 10, false, 1, out, 10 ); // $ExpectError
+ svander( 'row-major', -1, 10, 10, null, 1, out, 10 ); // $ExpectError
+ svander( 'row-major', -1, 10, 10, undefined, 1, out, 10 ); // $ExpectError
+ svander( 'row-major', -1, 10, 10, [ '1' ], 1, out, 10 ); // $ExpectError
+ svander( 'row-major', -1, 10, 10, {}, 1, out, 10 ); // $ExpectError
+ svander( 'row-major', -1, 10, 10, ( x: number ): number => x, 1, out, 10 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a sixth argument which is not a number...
+{
+ const x = new Float32Array( 10 );
+ const out = new Float32Array( 100 );
+
+ svander( 'row-major', -1, 10, 10, x, '10', out, 10 ); // $ExpectError
+ svander( 'row-major', -1, 10, 10, x, true, out, 10 ); // $ExpectError
+ svander( 'row-major', -1, 10, 10, x, false, out, 10 ); // $ExpectError
+ svander( 'row-major', -1, 10, 10, x, null, out, 10 ); // $ExpectError
+ svander( 'row-major', -1, 10, 10, x, undefined, out, 10 ); // $ExpectError
+ svander( 'row-major', -1, 10, 10, x, [], out, 10 ); // $ExpectError
+ svander( 'row-major', -1, 10, 10, x, {}, out, 10 ); // $ExpectError
+ svander( 'row-major', -1, 10, 10, x, ( x: number ): number => x, out, 10 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a seventh argument which is not a Float32Array...
+{
+ const x = new Float32Array( 10 );
+
+ svander( 'row-major', -1, 10, 10, x, 1, 10, 10 ); // $ExpectError
+ svander( 'row-major', -1, 10, 10, x, 1, '10', 10 ); // $ExpectError
+ svander( 'row-major', -1, 10, 10, x, 1, true, 10 ); // $ExpectError
+ svander( 'row-major', -1, 10, 10, x, 1, false, 10 ); // $ExpectError
+ svander( 'row-major', -1, 10, 10, x, 1, null, 10 ); // $ExpectError
+ svander( 'row-major', -1, 10, 10, x, 1, undefined, 10 ); // $ExpectError
+ svander( 'row-major', -1, 10, 10, x, 1, [ '1' ], 10 ); // $ExpectError
+ svander( 'row-major', -1, 10, 10, x, 1, {}, 10 ); // $ExpectError
+ svander( 'row-major', -1, 10, 10, x, 1, ( x: number ): number => x, 10 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided an eighth argument which is not a number...
+{
+ const x = new Float32Array( 10 );
+ const out = new Float32Array( 100 );
+
+ svander( 'row-major', -1, 10, 10, x, 1, out, '10' ); // $ExpectError
+ svander( 'row-major', -1, 10, 10, x, 1, out, true ); // $ExpectError
+ svander( 'row-major', -1, 10, 10, x, 1, out, false ); // $ExpectError
+ svander( 'row-major', -1, 10, 10, x, 1, out, null ); // $ExpectError
+ svander( 'row-major', -1, 10, 10, x, 1, out, undefined ); // $ExpectError
+ svander( 'row-major', -1, 10, 10, x, 1, out, [] ); // $ExpectError
+ svander( 'row-major', -1, 10, 10, x, 1, out, {} ); // $ExpectError
+ svander( 'row-major', -1, 10, 10, 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 Float32Array( 10 );
+ const out = new Float32Array( 100 );
+
+ svander(); // $ExpectError
+ svander( 'row-major' ); // $ExpectError
+ svander( 'row-major', -1 ); // $ExpectError
+ svander( 'row-major', -1, 10 ); // $ExpectError
+ svander( 'row-major', -1, 10, 10 ); // $ExpectError
+ svander( 'row-major', -1, 10, 10, x ); // $ExpectError
+ svander( 'row-major', -1, 10, 10, x, 1 ); // $ExpectError
+ svander( 'row-major', -1, 10, 10, x, 1, out ); // $ExpectError
+ svander( 'row-major', -1, 10, 10, x, 1, out, 10, 10 ); // $ExpectError
+}
+
+// Attached to main export is an `ndarray` method which returns a Float32Array...
+{
+ const x = new Float32Array( 10 );
+ const out = new Float32Array( 100 );
+
+ svander.ndarray( -1, 10, 10, x, 1, 0, out, 10, 1, 0 ); // $ExpectType Float32Array
+}
+
+// The compiler throws an error if the `ndarray` method is provided a first argument which is not a number...
+{
+ const x = new Float32Array( 10 );
+ const out = new Float32Array( 100 );
+
+ svander.ndarray( '10', 10, 10, x, 1, 0, out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( true, 10, 10, x, 1, 0, out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( false, 10, 10, x, 1, 0, out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( null, 10, 10, x, 1, 0, out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( undefined, 10, 10, x, 1, 0, out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( [], 10, 10, x, 1, 0, out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( {}, 10, 10, x, 1, 0, out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( ( x: number ): number => x, 10, 10, x, 1, 0, out, 10, 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 Float32Array( 10 );
+ const out = new Float32Array( 100 );
+
+ svander.ndarray( -1, '10', 10, x, 1, 0, out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, true, 10, x, 1, 0, out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, false, 10, x, 1, 0, out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, null, 10, x, 1, 0, out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, undefined, 10, x, 1, 0, out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, [], 10, x, 1, 0, out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, {}, 10, x, 1, 0, out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, ( x: number ): number => x, 10, x, 1, 0, out, 10, 1, 0 ); // $ExpectError
+}
+
+// The compiler throws an error if the `ndarray` method is provided a third argument which is not a number...
+{
+ const x = new Float32Array( 10 );
+ const out = new Float32Array( 100 );
+
+ svander.ndarray( -1, 10, '10', x, 1, 0, out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, true, x, 1, 0, out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, false, x, 1, 0, out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, null, x, 1, 0, out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, undefined, x, 1, 0, out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, [], x, 1, 0, out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, {}, x, 1, 0, out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, ( x: number ): number => x, x, 1, 0, out, 10, 1, 0 ); // $ExpectError
+}
+
+// The compiler throws an error if the `ndarray` method is provided a fourth argument which is not a Float32Array...
+{
+ const out = new Float32Array( 100 );
+
+ svander.ndarray( -1, 10, 10, 10, 1, 0, out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, '10', 1, 0, out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, true, 1, 0, out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, false, 1, 0, out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, null, 1, 0, out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, undefined, 1, 0, out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, [ '1' ], 1, 0, out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, {}, 1, 0, out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, ( x: number ): number => x, 1, 0, out, 10, 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 Float32Array( 10 );
+ const out = new Float32Array( 100 );
+
+ svander.ndarray( -1, 10, 10, x, '10', 0, out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, true, 0, out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, false, 0, out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, null, 0, out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, undefined, 0, out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, [], 0, out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, {}, 0, out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, ( x: number ): number => x, 0, out, 10, 1, 0 ); // $ExpectError
+}
+
+// The compiler throws an error if the `ndarray` method is provided a sixth argument which is not a number...
+{
+ const x = new Float32Array( 10 );
+ const out = new Float32Array( 100 );
+
+ svander.ndarray( -1, 10, 10, x, 1, '10', out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1, true, out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1, false, out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1, null, out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1, undefined, out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1, [], out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1, {}, out, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1, ( x: number ): number => x, out, 10, 1, 0 ); // $ExpectError
+}
+
+// The compiler throws an error if the `ndarray` method is provided a seventh argument which is not a Float32Array...
+{
+ const x = new Float32Array( 10 );
+
+ svander.ndarray( -1, 10, 10, x, 1, 0, 10, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1, 0, '10', 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1, 0, true, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1, 0, false, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1, 0, null, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1, 0, undefined, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1, 0, [ '1' ], 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1, 0, {}, 10, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1, 0, ( x: number ): number => x, 10, 1, 0 ); // $ExpectError
+}
+
+// The compiler throws an error if the `ndarray` method is provided an eighth argument which is not a number...
+{
+ const x = new Float32Array( 10 );
+ const out = new Float32Array( 100 );
+
+ svander.ndarray( -1, 10, 10, x, 1, 0, out, '10', 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1, 0, out, true, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1, 0, out, false, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1, 0, out, null, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1, 0, out, undefined, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1, 0, out, [], 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1, 0, out, {}, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1, 0, out, ( x: number ): number => x, 1, 0 ); // $ExpectError
+}
+
+// The compiler throws an error if the `ndarray` method is provided a ninth argument which is not a number...
+{
+ const x = new Float32Array( 10 );
+ const out = new Float32Array( 100 );
+
+ svander.ndarray( -1, 10, 10, x, 1, 0, out, 10, '10', 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1, 0, out, 10, true, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1, 0, out, 10, false, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1, 0, out, 10, null, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1, 0, out, 10, undefined, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1, 0, out, 10, [], 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1, 0, out, 10, {}, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1, 0, out, 10, ( x: number ): number => x, 0 ); // $ExpectError
+}
+
+// The compiler throws an error if the `ndarray` method is provided a tenth argument which is not a number...
+{
+ const x = new Float32Array( 10 );
+ const out = new Float32Array( 100 );
+
+ svander.ndarray( -1, 10, 10, x, 1, 0, out, 10, 1, '10' ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1, 0, out, 10, 1, true ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1, 0, out, 10, 1, false ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1, 0, out, 10, 1, null ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1, 0, out, 10, 1, undefined ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1, 0, out, 10, 1, [] ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1, 0, out, 10, 1, {} ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1, 0, out, 10, 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 Float32Array( 10 );
+ const out = new Float32Array( 100 );
+
+ svander.ndarray(); // $ExpectError
+ svander.ndarray( -1 ); // $ExpectError
+ svander.ndarray( -1, 10 ); // $ExpectError
+ svander.ndarray( -1, 10, 10 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1, 0 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1, 0, out ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1, 0, out, 10 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1, 0, out, 10, 1 ); // $ExpectError
+ svander.ndarray( -1, 10, 10, x, 1, 0, out, 10, 1, 0, 10 ); // $ExpectError
+}
diff --git a/lib/node_modules/@stdlib/blas/ext/base/svander/examples/c/Makefile b/lib/node_modules/@stdlib/blas/ext/base/svander/examples/c/Makefile
new file mode 100644
index 000000000000..c8f8e9a1517b
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/svander/examples/c/Makefile
@@ -0,0 +1,146 @@
+#/
+# @license Apache-2.0
+#
+# Copyright (c) 2026 The Stdlib Authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#/
+
+# VARIABLES #
+
+ifndef VERBOSE
+ QUIET := @
+else
+ QUIET :=
+endif
+
+# Determine the OS ([1][1], [2][2]).
+#
+# [1]: https://en.wikipedia.org/wiki/Uname#Examples
+# [2]: http://stackoverflow.com/a/27776822/2225624
+OS ?= $(shell uname)
+ifneq (, $(findstring MINGW,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring MSYS,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring CYGWIN,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring Windows_NT,$(OS)))
+ OS := WINNT
+endif
+endif
+endif
+endif
+
+# Define the program used for compiling C source files:
+ifdef C_COMPILER
+ CC := $(C_COMPILER)
+else
+ CC := gcc
+endif
+
+# Define the command-line options when compiling C files:
+CFLAGS ?= \
+ -std=c99 \
+ -O3 \
+ -Wall \
+ -pedantic
+
+# Determine whether to generate position independent code ([1][1], [2][2]).
+#
+# [1]: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options
+# [2]: http://stackoverflow.com/questions/5311515/gcc-fpic-option
+ifeq ($(OS), WINNT)
+ fPIC ?=
+else
+ fPIC ?= -fPIC
+endif
+
+# List of includes (e.g., `-I /foo/bar -I /beep/boop/include`):
+INCLUDE ?=
+
+# List of source files:
+SOURCE_FILES ?=
+
+# List of libraries (e.g., `-lopenblas -lpthread`):
+LIBRARIES ?=
+
+# List of library paths (e.g., `-L /foo/bar -L /beep/boop`):
+LIBPATH ?=
+
+# List of C targets:
+c_targets := example.out
+
+
+# RULES #
+
+#/
+# Compiles source files.
+#
+# @param {string} [C_COMPILER] - C compiler (e.g., `gcc`)
+# @param {string} [CFLAGS] - C compiler options
+# @param {(string|void)} [fPIC] - compiler flag determining whether to generate position independent code (e.g., `-fPIC`)
+# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop/include`)
+# @param {string} [SOURCE_FILES] - list of source files
+# @param {string} [LIBPATH] - list of library paths (e.g., `-L /foo/bar -L /beep/boop`)
+# @param {string} [LIBRARIES] - list of libraries (e.g., `-lopenblas -lpthread`)
+#
+# @example
+# make
+#
+# @example
+# make all
+#/
+all: $(c_targets)
+
+.PHONY: all
+
+#/
+# Compiles C source files.
+#
+# @private
+# @param {string} CC - C compiler (e.g., `gcc`)
+# @param {string} CFLAGS - C compiler options
+# @param {(string|void)} fPIC - compiler flag determining whether to generate position independent code (e.g., `-fPIC`)
+# @param {string} INCLUDE - list of includes (e.g., `-I /foo/bar`)
+# @param {string} SOURCE_FILES - list of source files
+# @param {string} LIBPATH - list of library paths (e.g., `-L /foo/bar`)
+# @param {string} LIBRARIES - list of libraries (e.g., `-lopenblas`)
+#/
+$(c_targets): %.out: %.c
+ $(QUIET) $(CC) $(CFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $< $(LIBPATH) -lm $(LIBRARIES)
+
+#/
+# Runs compiled examples.
+#
+# @example
+# make run
+#/
+run: $(c_targets)
+ $(QUIET) ./$<
+
+.PHONY: run
+
+#/
+# Removes generated files.
+#
+# @example
+# make clean
+#/
+clean:
+ $(QUIET) -rm -f *.o *.out
+
+.PHONY: clean
diff --git a/lib/node_modules/@stdlib/blas/ext/base/svander/examples/c/example.c b/lib/node_modules/@stdlib/blas/ext/base/svander/examples/c/example.c
new file mode 100644
index 000000000000..fa1c61af0e57
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/svander/examples/c/example.c
@@ -0,0 +1,43 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+#include "stdlib/blas/ext/base/svander.h"
+#include "stdlib/blas/base/shared.h"
+#include
+
+int main( void ) {
+ // Define a 3x3 output array stored in row-major order:
+ float Out[ 3*3 ] = { 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f };
+
+ // Define the input array:
+ const float x[ 3 ] = { 1.0f, 2.0f, 3.0f };
+
+ // Specify the number of rows and columns:
+ const int M = 3;
+ const int N = 3;
+
+ // Generate the Vandermonde matrix:
+ stdlib_strided_svander( CblasRowMajor, -1.0f, M, N, x, 1, Out, N );
+
+ // Print the result:
+ for ( int i = 0; i < M; i++ ) {
+ for ( int j = 0; j < N; j++ ) {
+ printf( "Out[%i,%i] = %f\n", i, j, Out[ (i*N)+j ] );
+ }
+ }
+}
diff --git a/lib/node_modules/@stdlib/blas/ext/base/svander/examples/index.js b/lib/node_modules/@stdlib/blas/ext/base/svander/examples/index.js
new file mode 100644
index 000000000000..ff68ec9e8b3c
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/svander/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 Float32Array = require( '@stdlib/array/float32' );
+var svander = require( './../lib' );
+
+var M = 3;
+var N = 4;
+
+var x = discreteUniform( M, 0, 10, {
+ 'dtype': 'float32'
+});
+var out = new Float32Array( M*N );
+
+svander( 'row-major', -1, M, N, x, 1, out, N );
+console.log( out );
diff --git a/lib/node_modules/@stdlib/blas/ext/base/svander/include.gypi b/lib/node_modules/@stdlib/blas/ext/base/svander/include.gypi
new file mode 100644
index 000000000000..bee8d41a2caf
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/svander/include.gypi
@@ -0,0 +1,53 @@
+# @license Apache-2.0
+#
+# Copyright (c) 2026 The Stdlib Authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# A GYP include file for building a Node.js native add-on.
+#
+# Main documentation:
+#
+# [1]: https://gyp.gsrc.io/docs/InputFormatReference.md
+# [2]: https://gyp.gsrc.io/docs/UserDocumentation.md
+{
+ # Define variables to be used throughout the configuration for all targets:
+ 'variables': {
+ # Source directory:
+ 'src_dir': './src',
+
+ # Include directories:
+ 'include_dirs': [
+ ' [ 1.0, 1.0, 1.0, 4.0, 2.0, 1.0, 9.0, 3.0, 1.0 ]
+*/
+function svander( mode, M, N, x, strideX, offsetX, out, strideOut1, strideOut2, offsetOut ) {
+ var do0;
+ var do1;
+ var S0;
+ var S1;
+ var io;
+ var ix;
+ var i0;
+ var i1;
+
+ // Note on variable naming convention: S#, do#, io, i# where # corresponds to the loop number, with `0` being the innermost loop...
+ if ( isRowMajor( [ strideOut1, strideOut2 ] ) ) {
+ S0 = N;
+ S1 = M;
+ do0 = strideOut2;
+ do1 = strideOut1 - ( S0*strideOut2 );
+
+ // Increasing: x^0, x^1, ..., x^(N-1)
+ if ( mode > 0 ) {
+ io = offsetOut;
+ ix = offsetX;
+ for ( i1 = 0; i1 < S1; i1++ ) {
+ out[ io ] = 1.0;
+ io += do0;
+ for ( i0 = 1; i0 < S0; i0++ ) {
+ out[ io ] = out[ io-do0 ] * x[ ix ];
+ io += do0;
+ }
+ ix += strideX;
+ io += do1;
+ }
+ return out;
+ }
+ // Decreasing: x^(N-1), x^(N-2), ..., x^0
+ io = offsetOut + ( ( S1-1 ) * strideOut1 ) + ( ( S0-1 ) * strideOut2 );
+ ix = offsetX + ( ( S1-1 ) * strideX );
+ for ( i1 = S1-1; i1 >= 0; i1-- ) {
+ out[ io ] = 1.0;
+ io -= do0;
+ for ( i0 = 1; i0 < S0; i0++ ) {
+ out[ io ] = out[ io+do0 ] * x[ ix ];
+ io -= do0;
+ }
+ ix -= strideX;
+ io -= do1;
+ }
+ return out;
+ }
+ // Column-major...
+ S0 = M;
+ S1 = N;
+ do0 = strideOut1;
+ do1 = strideOut2 - ( S0*strideOut1 );
+
+ // Increasing: column j contains x^j
+ if ( mode > 0 ) {
+ sfill( S0, 1.0, out, strideOut1, offsetOut );
+ io = offsetOut + strideOut2;
+ for ( i1 = 1; i1 < S1; i1++ ) {
+ ix = offsetX;
+ for ( i0 = 0; i0 < S0; i0++ ) {
+ out[ io ] = out[ io-strideOut2 ] * x[ ix ];
+ ix += strideX;
+ io += do0;
+ }
+ io += do1;
+ }
+ return out;
+ }
+ // Decreasing: column 0 contains x^(N-1), last column all ones
+ sfill( S0, 1.0, out, strideOut1, offsetOut + ( ( S1-1 ) * strideOut2 ) );
+ io = offsetOut + ( ( S1-2 ) * strideOut2 ) + ( ( S0-1 ) * strideOut1 );
+ for ( i1 = S1-2; i1 >= 0; i1-- ) {
+ ix = offsetX + ( ( S0-1 ) * strideX );
+ for ( i0 = S0-1; i0 >= 0; i0-- ) {
+ out[ io ] = out[ io+strideOut2 ] * x[ ix ];
+ ix -= strideX;
+ io -= do0;
+ }
+ io -= do1;
+ }
+ return out;
+}
+
+
+// EXPORTS //
+
+module.exports = svander;
diff --git a/lib/node_modules/@stdlib/blas/ext/base/svander/lib/index.js b/lib/node_modules/@stdlib/blas/ext/base/svander/lib/index.js
new file mode 100644
index 000000000000..66e679fbc9a2
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/svander/lib/index.js
@@ -0,0 +1,70 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+/**
+* Generate a single-precision floating-point Vandermonde matrix.
+*
+* @module @stdlib/blas/ext/base/svander
+*
+* @example
+* var Float32Array = require( '@stdlib/array/float32' );
+* var svander = require( '@stdlib/blas/ext/base/svander' );
+*
+* var x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
+* var out = new Float32Array( 9 );
+*
+* svander( 'row-major', -1, 3, 3, x, 1, out, 3 );
+* // out => [ 1.0, 1.0, 1.0, 4.0, 2.0, 1.0, 9.0, 3.0, 1.0 ]
+*
+* @example
+* var Float32Array = require( '@stdlib/array/float32' );
+* var svander = require( '@stdlib/blas/ext/base/svander' );
+*
+* var x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
+* var out = new Float32Array( 9 );
+*
+* svander.ndarray( -1, 3, 3, x, 1, 0, out, 3, 1, 0 );
+* // out => [ 1.0, 1.0, 1.0, 4.0, 2.0, 1.0, 9.0, 3.0, 1.0 ]
+*/
+
+// MODULES //
+
+var join = require( 'path' ).join;
+var tryRequire = require( '@stdlib/utils/try-require' );
+var isError = require( '@stdlib/assert/is-error' );
+var main = require( './main.js' );
+
+
+// MAIN //
+
+var svander;
+var tmp = tryRequire( join( __dirname, './native.js' ) );
+if ( isError( tmp ) ) {
+ svander = main;
+} else {
+ svander = tmp;
+}
+
+
+// EXPORTS //
+
+module.exports = svander;
+
+// exports: { "ndarray": "svander.ndarray" }
diff --git a/lib/node_modules/@stdlib/blas/ext/base/svander/lib/main.js b/lib/node_modules/@stdlib/blas/ext/base/svander/lib/main.js
new file mode 100644
index 000000000000..6370194729a3
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/svander/lib/main.js
@@ -0,0 +1,35 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var setReadOnly = require( '@stdlib/utils/define-nonenumerable-read-only-property' );
+var svander = require( './svander.js' );
+var ndarray = require( './ndarray.js' );
+
+
+// MAIN //
+
+setReadOnly( svander, 'ndarray', ndarray );
+
+
+// EXPORTS //
+
+module.exports = svander;
diff --git a/lib/node_modules/@stdlib/blas/ext/base/svander/lib/native.js b/lib/node_modules/@stdlib/blas/ext/base/svander/lib/native.js
new file mode 100644
index 000000000000..3c2be654e96d
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/svander/lib/native.js
@@ -0,0 +1,35 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var setReadOnly = require( '@stdlib/utils/define-nonenumerable-read-only-property' );
+var svander = require( './svander.native.js' );
+var ndarray = require( './ndarray.native.js' );
+
+
+// MAIN //
+
+setReadOnly( svander, 'ndarray', ndarray );
+
+
+// EXPORTS //
+
+module.exports = svander;
diff --git a/lib/node_modules/@stdlib/blas/ext/base/svander/lib/ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/svander/lib/ndarray.js
new file mode 100644
index 000000000000..c61fff817c2d
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/svander/lib/ndarray.js
@@ -0,0 +1,73 @@
+/**
+* @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.
+*/
+
+/* eslint-disable max-len */
+
+'use strict';
+
+// MODULES //
+
+var format = require( '@stdlib/string/format' );
+var base = require( './base.js' );
+
+
+// MAIN //
+
+/**
+* Generates a single-precision floating-point Vandermonde matrix.
+*
+* @param {integer} mode - mode indicating whether to generate increasing or decreasing powers
+* @param {NonNegativeInteger} M - number of rows in `out`
+* @param {NonNegativeInteger} N - number of columns in `out`
+* @param {Float32Array} x - input array
+* @param {integer} strideX - stride length for `x`
+* @param {NonNegativeInteger} offsetX - starting index for `x`
+* @param {Float32Array} out - output matrix
+* @param {integer} strideOut1 - stride length for the first dimension of `out`
+* @param {integer} strideOut2 - stride length for the second dimension of `out`
+* @param {NonNegativeInteger} offsetOut - starting index for `out`
+* @throws {RangeError} second argument must be a nonnegative integer
+* @throws {RangeError} third argument must be a nonnegative integer
+* @returns {Float32Array} output matrix
+*
+* @example
+* var Float32Array = require( '@stdlib/array/float32' );
+*
+* var x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
+* var out = new Float32Array( 9 );
+*
+* svander( -1, 3, 3, x, 1, 0, out, 3, 1, 0 );
+* // out => [ 1.0, 1.0, 1.0, 4.0, 2.0, 1.0, 9.0, 3.0, 1.0 ]
+*/
+function svander( mode, M, N, x, strideX, offsetX, out, strideOut1, strideOut2, offsetOut ) {
+ if ( M < 0 ) {
+ throw new RangeError( format( 'invalid argument. Second argument must be a nonnegative integer. Value: `%d`.', M ) );
+ }
+ if ( N < 0 ) {
+ throw new RangeError( format( 'invalid argument. Third argument must be a nonnegative integer. Value: `%d`.', N ) );
+ }
+ if ( M === 0 || N === 0 ) {
+ return out;
+ }
+ return base( mode, M, N, x, strideX, offsetX, out, strideOut1, strideOut2, offsetOut );
+}
+
+
+// EXPORTS //
+
+module.exports = svander;
diff --git a/lib/node_modules/@stdlib/blas/ext/base/svander/lib/ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/svander/lib/ndarray.native.js
new file mode 100644
index 000000000000..7294b4ede577
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/svander/lib/ndarray.native.js
@@ -0,0 +1,74 @@
+/**
+* @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.
+*/
+
+/* eslint-disable max-len */
+
+'use strict';
+
+// MODULES //
+
+var format = require( '@stdlib/string/format' );
+var addon = require( './../src/addon.node' );
+
+
+// MAIN //
+
+/**
+* Generates a single-precision floating-point Vandermonde matrix.
+*
+* @param {integer} mode - mode indicating whether to generate increasing or decreasing powers
+* @param {NonNegativeInteger} M - number of rows in `out`
+* @param {NonNegativeInteger} N - number of columns in `out`
+* @param {Float32Array} x - input array
+* @param {integer} strideX - stride length for `x`
+* @param {NonNegativeInteger} offsetX - starting index for `x`
+* @param {Float32Array} out - output matrix
+* @param {integer} strideOut1 - stride length for the first dimension of `out`
+* @param {integer} strideOut2 - stride length for the second dimension of `out`
+* @param {NonNegativeInteger} offsetOut - starting index for `out`
+* @throws {RangeError} second argument must be a nonnegative integer
+* @throws {RangeError} third argument must be a nonnegative integer
+* @returns {Float32Array} output matrix
+*
+* @example
+* var Float32Array = require( '@stdlib/array/float32' );
+*
+* var x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
+* var out = new Float32Array( 9 );
+*
+* svander( -1, 3, 3, x, 1, 0, out, 3, 1, 0 );
+* // out => [ 1.0, 1.0, 1.0, 4.0, 2.0, 1.0, 9.0, 3.0, 1.0 ]
+*/
+function svander( mode, M, N, x, strideX, offsetX, out, strideOut1, strideOut2, offsetOut ) {
+ if ( M < 0 ) {
+ throw new RangeError( format( 'invalid argument. Second argument must be a nonnegative integer. Value: `%d`.', M ) );
+ }
+ if ( N < 0 ) {
+ throw new RangeError( format( 'invalid argument. Third argument must be a nonnegative integer. Value: `%d`.', N ) );
+ }
+ if ( M === 0 || N === 0 ) {
+ return out;
+ }
+ addon.ndarray( mode, M, N, x, strideX, offsetX, out, strideOut1, strideOut2, offsetOut );
+ return out;
+}
+
+
+// EXPORTS //
+
+module.exports = svander;
diff --git a/lib/node_modules/@stdlib/blas/ext/base/svander/lib/svander.js b/lib/node_modules/@stdlib/blas/ext/base/svander/lib/svander.js
new file mode 100644
index 000000000000..8467b825456e
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/svander/lib/svander.js
@@ -0,0 +1,101 @@
+/**
+* @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 isColumnMajor = require( '@stdlib/ndarray/base/assert/is-column-major-string' );
+var isLayout = require( '@stdlib/blas/base/assert/is-layout' );
+var stride2offset = require( '@stdlib/strided/base/stride2offset' );
+var max = require( '@stdlib/math/base/special/fast/max' );
+var format = require( '@stdlib/string/format' );
+var base = require( './base.js' );
+
+
+// MAIN //
+
+/**
+* Generates a single-precision floating-point Vandermonde matrix.
+*
+* @param {string} order - storage layout
+* @param {integer} mode - mode indicating whether to generate increasing or decreasing powers
+* @param {NonNegativeInteger} M - number of rows in `out`
+* @param {NonNegativeInteger} N - number of columns in `out`
+* @param {Float32Array} x - input array
+* @param {integer} strideX - stride length for `x`
+* @param {Float32Array} out - output matrix
+* @param {PositiveInteger} ldo - stride between successive contiguous vectors of the matrix `out` (a.k.a., leading dimension of the matrix `out`)
+* @throws {TypeError} first argument must be a valid order
+* @throws {RangeError} third argument must be a nonnegative integer
+* @throws {RangeError} fourth argument must be a nonnegative integer
+* @throws {RangeError} eighth argument must be a valid stride
+* @returns {Float32Array} output matrix
+*
+* @example
+* var Float32Array = require( '@stdlib/array/float32' );
+*
+* var x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
+* var out = new Float32Array( 9 );
+*
+* svander( 'row-major', -1, 3, 3, x, 1, out, 3 );
+* // out => [ 1.0, 1.0, 1.0, 4.0, 2.0, 1.0, 9.0, 3.0, 1.0 ]
+*/
+function svander( order, mode, M, N, x, strideX, out, ldo ) {
+ var iscm;
+ var sa1;
+ var sa2;
+ var ox;
+ var k;
+
+ if ( !isLayout( order ) ) {
+ throw new TypeError( format( 'invalid argument. First argument must be a valid order. Value: `%s`.', order ) );
+ }
+ if ( M < 0 ) {
+ throw new RangeError( format( 'invalid argument. Third argument must be a nonnegative integer. Value: `%d`.', M ) );
+ }
+ if ( N < 0 ) {
+ throw new RangeError( format( 'invalid argument. Fourth argument must be a nonnegative integer. Value: `%d`.', N ) );
+ }
+ iscm = isColumnMajor( order );
+ if ( iscm ) {
+ k = M;
+ } else {
+ k = N;
+ }
+ if ( ldo < max( 1, k ) ) {
+ throw new RangeError( format( 'invalid argument. Eighth argument must be greater than or equal to max(1,%d). Value: `%d`.', k, ldo ) );
+ }
+ if ( M === 0 || N === 0 ) {
+ return out;
+ }
+ ox = stride2offset( M, strideX );
+ if ( iscm ) {
+ sa1 = 1;
+ sa2 = ldo;
+ } else { // order === 'row-major'
+ sa1 = ldo;
+ sa2 = 1;
+ }
+ return base( mode, M, N, x, strideX, ox, out, sa1, sa2, 0 );
+}
+
+
+// EXPORTS //
+
+module.exports = svander;
diff --git a/lib/node_modules/@stdlib/blas/ext/base/svander/lib/svander.native.js b/lib/node_modules/@stdlib/blas/ext/base/svander/lib/svander.native.js
new file mode 100644
index 000000000000..d61293abe431
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/svander/lib/svander.native.js
@@ -0,0 +1,89 @@
+/**
+* @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 isColumnMajor = require( '@stdlib/ndarray/base/assert/is-column-major-string' );
+var isLayout = require( '@stdlib/blas/base/assert/is-layout' );
+var resolve = require( '@stdlib/blas/base/layout-resolve-enum' );
+var max = require( '@stdlib/math/base/special/fast/max' );
+var format = require( '@stdlib/string/format' );
+var addon = require( './../src/addon.node' );
+
+
+// MAIN //
+
+/**
+* Generates a single-precision floating-point Vandermonde matrix.
+*
+* @param {string} order - storage layout
+* @param {integer} mode - mode indicating whether to generate increasing or decreasing powers
+* @param {NonNegativeInteger} M - number of rows in `out`
+* @param {NonNegativeInteger} N - number of columns in `out`
+* @param {Float32Array} x - input array
+* @param {integer} strideX - stride length for `x`
+* @param {Float32Array} out - output matrix
+* @param {PositiveInteger} ldo - stride between successive contiguous vectors of the matrix `out` (a.k.a., leading dimension of the matrix `out`)
+* @throws {TypeError} first argument must be a valid order
+* @throws {RangeError} third argument must be a nonnegative integer
+* @throws {RangeError} fourth argument must be a nonnegative integer
+* @throws {RangeError} eighth argument must be a valid stride
+* @returns {Float32Array} output matrix
+*
+* @example
+* var Float32Array = require( '@stdlib/array/float32' );
+*
+* var x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
+* var out = new Float32Array( 9 );
+*
+* svander( 'row-major', -1, 3, 3, x, 1, out, 3 );
+* // out => [ 1.0, 1.0, 1.0, 4.0, 2.0, 1.0, 9.0, 3.0, 1.0 ]
+*/
+function svander( order, mode, M, N, x, strideX, out, ldo ) {
+ var k;
+
+ if ( !isLayout( order ) ) {
+ throw new TypeError( format( 'invalid argument. First argument must be a valid order. Value: `%s`.', order ) );
+ }
+ if ( M < 0 ) {
+ throw new RangeError( format( 'invalid argument. Third argument must be a nonnegative integer. Value: `%d`.', M ) );
+ }
+ if ( N < 0 ) {
+ throw new RangeError( format( 'invalid argument. Fourth argument must be a nonnegative integer. Value: `%d`.', N ) );
+ }
+ if ( isColumnMajor( order ) ) {
+ k = M;
+ } else {
+ k = N;
+ }
+ if ( ldo < max( 1, k ) ) {
+ throw new RangeError( format( 'invalid argument. Eighth argument must be greater than or equal to max(1,%d). Value: `%d`.', k, ldo ) );
+ }
+ if ( M === 0 || N === 0 ) {
+ return out;
+ }
+ addon( resolve( order ), mode, M, N, x, strideX, out, ldo );
+ return out;
+}
+
+
+// EXPORTS //
+
+module.exports = svander;
diff --git a/lib/node_modules/@stdlib/blas/ext/base/svander/manifest.json b/lib/node_modules/@stdlib/blas/ext/base/svander/manifest.json
new file mode 100644
index 000000000000..3eb0f1e1a1cb
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/svander/manifest.json
@@ -0,0 +1,89 @@
+{
+ "options": {
+ "task": "build"
+ },
+ "fields": [
+ {
+ "field": "src",
+ "resolve": true,
+ "relative": true
+ },
+ {
+ "field": "include",
+ "resolve": true,
+ "relative": true
+ },
+ {
+ "field": "libraries",
+ "resolve": false,
+ "relative": false
+ },
+ {
+ "field": "libpath",
+ "resolve": true,
+ "relative": false
+ }
+ ],
+ "confs": [
+ {
+ "task": "build",
+ "src": [
+ "./src/main.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/blas/base/xerbla",
+ "@stdlib/blas/ext/base/sfill",
+ "@stdlib/ndarray/base/assert/is-row-major",
+ "@stdlib/strided/base/stride2offset",
+ "@stdlib/napi/export",
+ "@stdlib/napi/argv",
+ "@stdlib/napi/argv-float",
+ "@stdlib/napi/argv-int64",
+ "@stdlib/napi/argv-strided-float32array",
+ "@stdlib/napi/argv-strided-float32array2d"
+ ]
+ },
+ {
+ "task": "benchmark",
+ "src": [
+ "./src/main.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/blas/base/xerbla",
+ "@stdlib/blas/ext/base/sfill",
+ "@stdlib/ndarray/base/assert/is-row-major",
+ "@stdlib/strided/base/stride2offset"
+ ]
+ },
+ {
+ "task": "examples",
+ "src": [
+ "./src/main.c"
+ ],
+ "include": [
+ "./include"
+ ],
+ "libraries": [],
+ "libpath": [],
+ "dependencies": [
+ "@stdlib/blas/base/shared",
+ "@stdlib/blas/base/xerbla",
+ "@stdlib/blas/ext/base/sfill",
+ "@stdlib/ndarray/base/assert/is-row-major",
+ "@stdlib/strided/base/stride2offset"
+ ]
+ }
+ ]
+}
diff --git a/lib/node_modules/@stdlib/blas/ext/base/svander/package.json b/lib/node_modules/@stdlib/blas/ext/base/svander/package.json
new file mode 100644
index 000000000000..c70109c63f20
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/svander/package.json
@@ -0,0 +1,75 @@
+{
+ "name": "@stdlib/blas/ext/base/svander",
+ "version": "0.0.0",
+ "description": "Generate a single-precision floating-point Vandermonde matrix.",
+ "license": "Apache-2.0",
+ "author": {
+ "name": "The Stdlib Authors",
+ "url": "https://github.com/stdlib-js/stdlib/graphs/contributors"
+ },
+ "contributors": [
+ {
+ "name": "The Stdlib Authors",
+ "url": "https://github.com/stdlib-js/stdlib/graphs/contributors"
+ }
+ ],
+ "main": "./lib",
+ "browser": "./lib/main.js",
+ "gypfile": true,
+ "directories": {
+ "benchmark": "./benchmark",
+ "doc": "./docs",
+ "example": "./examples",
+ "include": "./include",
+ "lib": "./lib",
+ "src": "./src",
+ "test": "./test"
+ },
+ "types": "./docs/types",
+ "scripts": {},
+ "homepage": "https://github.com/stdlib-js/stdlib",
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/stdlib-js/stdlib.git"
+ },
+ "bugs": {
+ "url": "https://github.com/stdlib-js/stdlib/issues"
+ },
+ "dependencies": {},
+ "devDependencies": {},
+ "engines": {
+ "node": ">=0.10.0",
+ "npm": ">2.7.0"
+ },
+ "os": [
+ "aix",
+ "darwin",
+ "freebsd",
+ "linux",
+ "macos",
+ "openbsd",
+ "sunos",
+ "win32",
+ "windows"
+ ],
+ "keywords": [
+ "stdlib",
+ "stdmath",
+ "mathematics",
+ "math",
+ "blas",
+ "extended",
+ "svander",
+ "vandermonde",
+ "matrix",
+ "linear",
+ "algebra",
+ "array",
+ "ndarray",
+ "float32",
+ "float",
+ "single",
+ "float32array"
+ ],
+ "__stdlib__": {}
+}
diff --git a/lib/node_modules/@stdlib/blas/ext/base/svander/src/Makefile b/lib/node_modules/@stdlib/blas/ext/base/svander/src/Makefile
new file mode 100644
index 000000000000..2caf905cedbe
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/svander/src/Makefile
@@ -0,0 +1,70 @@
+#/
+# @license Apache-2.0
+#
+# Copyright (c) 2026 The Stdlib Authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#/
+
+# VARIABLES #
+
+ifndef VERBOSE
+ QUIET := @
+else
+ QUIET :=
+endif
+
+# Determine the OS ([1][1], [2][2]).
+#
+# [1]: https://en.wikipedia.org/wiki/Uname#Examples
+# [2]: http://stackoverflow.com/a/27776822/2225624
+OS ?= $(shell uname)
+ifneq (, $(findstring MINGW,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring MSYS,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring CYGWIN,$(OS)))
+ OS := WINNT
+else
+ifneq (, $(findstring Windows_NT,$(OS)))
+ OS := WINNT
+endif
+endif
+endif
+endif
+
+
+# RULES #
+
+#/
+# Removes generated files for building an add-on.
+#
+# @example
+# make clean-addon
+#/
+clean-addon:
+ $(QUIET) -rm -f *.o *.node
+
+.PHONY: clean-addon
+
+#/
+# Removes generated files.
+#
+# @example
+# make clean
+#/
+clean: clean-addon
+
+.PHONY: clean
diff --git a/lib/node_modules/@stdlib/blas/ext/base/svander/src/addon.c b/lib/node_modules/@stdlib/blas/ext/base/svander/src/addon.c
new file mode 100644
index 000000000000..d0192619432c
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/svander/src/addon.c
@@ -0,0 +1,86 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+#include "stdlib/blas/ext/base/svander.h"
+#include "stdlib/blas/base/shared.h"
+#include "stdlib/napi/export.h"
+#include "stdlib/napi/argv.h"
+#include "stdlib/napi/argv_float.h"
+#include "stdlib/napi/argv_int64.h"
+#include "stdlib/napi/argv_strided_float32array.h"
+#include "stdlib/napi/argv_strided_float32array2d.h"
+#include
+
+/**
+* Receives JavaScript callback invocation data.
+*
+* @param env environment under which the function is invoked
+* @param info callback data
+* @return Node-API value
+*/
+static napi_value addon( napi_env env, napi_callback_info info ) {
+ CBLAS_INT sa1;
+ CBLAS_INT sa2;
+
+ STDLIB_NAPI_ARGV( env, info, argv, argc, 8 );
+ STDLIB_NAPI_ARGV_INT64( env, order, argv, 0 );
+ STDLIB_NAPI_ARGV_FLOAT( env, mode, argv, 1 );
+ STDLIB_NAPI_ARGV_INT64( env, M, argv, 2 );
+ STDLIB_NAPI_ARGV_INT64( env, N, argv, 3 );
+ STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 5 );
+ STDLIB_NAPI_ARGV_INT64( env, LDO, argv, 7 );
+
+ if ( order == CblasColMajor ) {
+ sa1 = 1;
+ sa2 = LDO;
+ } else { // order == CblasRowMajor
+ sa1 = LDO;
+ sa2 = 1;
+ }
+ STDLIB_NAPI_ARGV_STRIDED_FLOAT32ARRAY( env, X, M, strideX, argv, 4 );
+ STDLIB_NAPI_ARGV_STRIDED_FLOAT32ARRAY2D( env, Out, M, N, sa1, sa2, argv, 6 );
+
+ API_SUFFIX(stdlib_strided_svander)( order, mode, M, N, X, strideX, Out, LDO );
+
+ return NULL;
+}
+
+/**
+* Receives JavaScript callback invocation data.
+*
+* @param env environment under which the function is invoked
+* @param info callback data
+* @return Node-API value
+*/
+static napi_value addon_method( napi_env env, napi_callback_info info ) {
+ STDLIB_NAPI_ARGV( env, info, argv, argc, 10 );
+ STDLIB_NAPI_ARGV_FLOAT( env, mode, argv, 0 );
+ STDLIB_NAPI_ARGV_INT64( env, M, argv, 1 );
+ STDLIB_NAPI_ARGV_INT64( env, N, argv, 2 );
+ STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 4 );
+ STDLIB_NAPI_ARGV_INT64( env, offsetX, argv, 5 );
+ STDLIB_NAPI_ARGV_STRIDED_FLOAT32ARRAY( env, X, M, strideX, argv, 3 );
+ STDLIB_NAPI_ARGV_INT64( env, strideOut1, argv, 7 );
+ STDLIB_NAPI_ARGV_INT64( env, strideOut2, argv, 8 );
+ STDLIB_NAPI_ARGV_INT64( env, offsetOut, argv, 9 );
+ STDLIB_NAPI_ARGV_STRIDED_FLOAT32ARRAY2D( env, Out, M, N, strideOut1, strideOut2, argv, 6 );
+ API_SUFFIX(stdlib_strided_svander_ndarray)( mode, M, N, X, strideX, offsetX, Out, strideOut1, strideOut2, offsetOut );
+ return NULL;
+}
+
+STDLIB_NAPI_MODULE_EXPORT_FCN_WITH_METHOD( addon, "ndarray", addon_method )
diff --git a/lib/node_modules/@stdlib/blas/ext/base/svander/src/main.c b/lib/node_modules/@stdlib/blas/ext/base/svander/src/main.c
new file mode 100644
index 000000000000..37122b633276
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/svander/src/main.c
@@ -0,0 +1,196 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+#include "stdlib/blas/ext/base/svander.h"
+#include "stdlib/blas/ext/base/sfill.h"
+#include "stdlib/blas/base/xerbla.h"
+#include "stdlib/ndarray/base/assert/is_row_major.h"
+#include "stdlib/blas/base/shared.h"
+#include "stdlib/strided/base/stride2offset.h"
+#include
+
+/**
+* Generates a single-precision floating-point Vandermonde matrix.
+*
+* @param order storage layout
+* @param mode specifies whether powers are increasing (1) or decreasing (-1)
+* @param M number of rows in `Out`
+* @param N number of columns in `Out`
+* @param X input array
+* @param strideX stride length for `X`
+* @param Out output matrix
+* @param LDO stride between successive contiguous vectors of the matrix `Out` (a.k.a., leading dimension of the matrix `Out`)
+*/
+void API_SUFFIX(stdlib_strided_svander)( const CBLAS_LAYOUT order, const float mode, const CBLAS_INT M, const CBLAS_INT N, const float *X, const CBLAS_INT strideX, float *Out, const CBLAS_INT LDO ) {
+ CBLAS_INT sa1;
+ CBLAS_INT sa2;
+ CBLAS_INT ox;
+ CBLAS_INT k;
+ CBLAS_INT v;
+
+ if ( order != CblasRowMajor && order != CblasColMajor ) {
+ c_xerbla( 1, "stdlib_strided_svander", "Error: invalid argument. First argument must be a valid storage layout. Value: `%d`.", order );
+ return;
+ }
+ if ( M < 0 ) {
+ c_xerbla( 3, "stdlib_strided_svander", "Error: invalid argument. Third argument must be a nonnegative integer. Value: `%d`.", M );
+ return;
+ }
+ if ( N < 0 ) {
+ c_xerbla( 4, "stdlib_strided_svander", "Error: invalid argument. Fourth argument must be a nonnegative integer. Value: `%d`.", N );
+ return;
+ }
+ if ( order == CblasColMajor ) {
+ v = M;
+ } else {
+ v = N;
+ }
+ if ( v < 1 ) {
+ k = 1;
+ } else {
+ k = v;
+ }
+ if ( LDO < k ) {
+ c_xerbla( 8, "stdlib_strided_svander", "Error: invalid argument. Eighth argument must be greater than or equal to max(1,%d). Value: `%d`.", v, LDO );
+ return;
+ }
+ if ( M == 0 || N == 0 ) {
+ return;
+ }
+ ox = stdlib_strided_stride2offset( M, strideX );
+ if ( order == CblasColMajor ) {
+ sa1 = 1;
+ sa2 = LDO;
+ } else { // order == CblasRowMajor
+ sa1 = LDO;
+ sa2 = 1;
+ }
+ API_SUFFIX(stdlib_strided_svander_ndarray)( mode, M, N, X, strideX, ox, Out, sa1, sa2, 0 );
+}
+
+/**
+* Generates a single-precision floating-point Vandermonde matrix using alternative indexing semantics.
+*
+* @param mode specifies whether powers are increasing (1) or decreasing (-1)
+* @param M number of rows in `Out`
+* @param N number of columns in `Out`
+* @param X input array
+* @param strideX stride length for `X`
+* @param offsetX starting index for `X`
+* @param Out output matrix
+* @param strideOut1 stride length for the first dimension of `Out`
+* @param strideOut2 stride length for the second dimension of `Out`
+* @param offsetOut starting index for `Out`
+*/
+void API_SUFFIX(stdlib_strided_svander_ndarray)( const float mode, const CBLAS_INT M, const CBLAS_INT N, const float *X, const CBLAS_INT strideX, const CBLAS_INT offsetX, float *Out, const CBLAS_INT strideOut1, const CBLAS_INT strideOut2, const CBLAS_INT offsetOut ) {
+ int64_t sa[ 2 ];
+ CBLAS_INT do0;
+ CBLAS_INT do1;
+ CBLAS_INT S0;
+ CBLAS_INT S1;
+ CBLAS_INT io;
+ CBLAS_INT ix;
+ CBLAS_INT i0;
+ CBLAS_INT i1;
+
+ if ( M < 0 ) {
+ c_xerbla( 2, "stdlib_strided_svander_ndarray", "Error: invalid argument. Second argument must be a nonnegative integer. Value: `%d`.", M );
+ return;
+ }
+ if ( N < 0 ) {
+ c_xerbla( 3, "stdlib_strided_svander_ndarray", "Error: invalid argument. Third argument must be a nonnegative integer. Value: `%d`.", N );
+ return;
+ }
+ if ( M == 0 || N == 0 ) {
+ return;
+ }
+
+ // Determine whether the matrix is row-major...
+ sa[ 0 ] = strideOut1;
+ sa[ 1 ] = strideOut2;
+ if ( stdlib_ndarray_is_row_major( 2, sa ) ) {
+ S0 = N;
+ S1 = M;
+ do0 = strideOut2;
+ do1 = strideOut1 - ( S0*strideOut2 );
+
+ // Increasing: x^0, x^1, ..., x^(N-1)
+ if ( mode > 0 ) {
+ io = offsetOut;
+ ix = offsetX;
+ for ( i1 = 0; i1 < S1; i1++ ) {
+ Out[ io ] = 1.0f;
+ io += do0;
+ for ( i0 = 1; i0 < S0; i0++ ) {
+ Out[ io ] = Out[ io-do0 ] * X[ ix ];
+ io += do0;
+ }
+ ix += strideX;
+ io += do1;
+ }
+ return;
+ }
+ // Decreasing: x^(N-1), x^(N-2), ..., x^0
+ io = offsetOut + ( ( S1-1 ) * strideOut1 ) + ( ( S0-1 ) * strideOut2 );
+ ix = offsetX + ( ( S1-1 ) * strideX );
+ for ( i1 = S1-1; i1 >= 0; i1-- ) {
+ Out[ io ] = 1.0f;
+ io -= do0;
+ for ( i0 = 1; i0 < S0; i0++ ) {
+ Out[ io ] = Out[ io+do0 ] * X[ ix ];
+ io -= do0;
+ }
+ ix -= strideX;
+ io -= do1;
+ }
+ return;
+ }
+ // Column-major...
+ S0 = M;
+ S1 = N;
+ do0 = strideOut1;
+ do1 = strideOut2 - ( S0*strideOut1 );
+
+ // Increasing: column j contains x^j
+ if ( mode > 0 ) {
+ API_SUFFIX(stdlib_strided_sfill_ndarray)( S0, 1.0f, Out, strideOut1, offsetOut );
+ io = offsetOut + strideOut2;
+ for ( i1 = 1; i1 < S1; i1++ ) {
+ ix = offsetX;
+ for ( i0 = 0; i0 < S0; i0++ ) {
+ Out[ io ] = Out[ io-strideOut2 ] * X[ ix ];
+ ix += strideX;
+ io += do0;
+ }
+ io += do1;
+ }
+ return;
+ }
+ // Decreasing: column 0 contains x^(N-1), last column all ones
+ API_SUFFIX(stdlib_strided_sfill_ndarray)( S0, 1.0f, Out, strideOut1, offsetOut + ( ( S1-1 ) * strideOut2 ) );
+ io = offsetOut + ( ( S1-2 ) * strideOut2 ) + ( ( S0-1 ) * strideOut1 );
+ for ( i1 = S1-2; i1 >= 0; i1-- ) {
+ ix = offsetX + ( ( S0-1 ) * strideX );
+ for ( i0 = S0-1; i0 >= 0; i0-- ) {
+ Out[ io ] = Out[ io+strideOut2 ] * X[ ix ];
+ ix -= strideX;
+ io -= do0;
+ }
+ io -= do1;
+ }
+}
diff --git a/lib/node_modules/@stdlib/blas/ext/base/svander/test/test.js b/lib/node_modules/@stdlib/blas/ext/base/svander/test/test.js
new file mode 100644
index 000000000000..874851e547b9
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/svander/test/test.js
@@ -0,0 +1,82 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var tape = require( 'tape' );
+var proxyquire = require( 'proxyquire' );
+var IS_BROWSER = require( '@stdlib/assert/is-browser' );
+var svander = require( './../lib' );
+
+
+// VARIABLES //
+
+var opts = {
+ 'skip': IS_BROWSER
+};
+
+
+// TESTS //
+
+tape( 'main export is a function', function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof svander, '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 svander.ndarray, 'function', 'method is a function' );
+ t.end();
+});
+
+tape( 'if a native implementation is available, the main export is the native implementation', opts, function test( t ) {
+ var svander = proxyquire( './../lib', {
+ '@stdlib/utils/try-require': tryRequire
+ });
+
+ t.strictEqual( svander, mock, 'returns native implementation' );
+ t.end();
+
+ function tryRequire() {
+ return mock;
+ }
+
+ function mock() {
+ // Mock...
+ }
+});
+
+tape( 'if a native implementation is not available, the main export is a JavaScript implementation', opts, function test( t ) {
+ var svander;
+ var main;
+
+ main = require( './../lib/main.js' );
+
+ svander = proxyquire( './../lib', {
+ '@stdlib/utils/try-require': tryRequire
+ });
+
+ t.strictEqual( svander, main, 'returns JavaScript implementation' );
+ t.end();
+
+ function tryRequire() {
+ return new Error( 'Cannot find module' );
+ }
+});
diff --git a/lib/node_modules/@stdlib/blas/ext/base/svander/test/test.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/svander/test/test.ndarray.js
new file mode 100644
index 000000000000..f0391bf0b435
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/svander/test/test.ndarray.js
@@ -0,0 +1,544 @@
+/**
+* @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 Float32Array = require( '@stdlib/array/float32' );
+var svander = require( './../lib/ndarray.js' );
+
+
+// TESTS //
+
+tape( 'main export is a function', function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof svander, 'function', 'main export is a function' );
+ t.end();
+});
+
+tape( 'the function has an arity of 10', function test( t ) {
+ t.strictEqual( svander.length, 10, 'has expected arity' );
+ t.end();
+});
+
+tape( 'the function throws an error if provided an invalid second argument', function test( t ) {
+ var values;
+ var i;
+
+ values = [
+ -1,
+ -2,
+ -3
+ ];
+
+ for ( i = 0; i < values.length; i++ ) {
+ t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] );
+ }
+ t.end();
+
+ function badValue( value ) {
+ return function badValue() {
+ svander( -1, value, 3, new Float32Array( [ 1.0, 2.0, 3.0 ] ), 1, 0, new Float32Array( 9 ), 3, 1, 0 ); // eslint-disable-line max-len
+ };
+ }
+});
+
+tape( 'the function throws an error if provided an invalid third argument', function test( t ) {
+ var values;
+ var i;
+
+ values = [
+ -1,
+ -2,
+ -3
+ ];
+
+ for ( i = 0; i < values.length; i++ ) {
+ t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] );
+ }
+ t.end();
+
+ function badValue( value ) {
+ return function badValue() {
+ svander( -1, 3, value, new Float32Array( [ 1.0, 2.0, 3.0 ] ), 1, 0, new Float32Array( 9 ), 3, 1, 0 ); // eslint-disable-line max-len
+ };
+ }
+});
+
+tape( 'the function generates a Vandermonde matrix (row-major, decreasing)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
+ out = new Float32Array( 9 );
+
+ svander( -1, 3, 3, x, 1, 0, out, 3, 1, 0 );
+
+ expected = new Float32Array([
+ 1.0,
+ 1.0,
+ 1.0,
+ 4.0,
+ 2.0,
+ 1.0,
+ 9.0,
+ 3.0,
+ 1.0
+ ]);
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function generates a Vandermonde matrix (row-major, increasing)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
+ out = new Float32Array( 9 );
+
+ svander( 1, 3, 3, x, 1, 0, out, 3, 1, 0 );
+
+ expected = new Float32Array([
+ 1.0,
+ 1.0,
+ 1.0,
+ 1.0,
+ 2.0,
+ 4.0,
+ 1.0,
+ 3.0,
+ 9.0
+ ]);
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function generates a Vandermonde matrix (column-major, decreasing)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
+ out = new Float32Array( 9 );
+
+ // Column-major: strideOut1=1, strideOut2=3
+ svander( -1, 3, 3, x, 1, 0, out, 1, 3, 0 );
+
+ expected = new Float32Array([
+ 1.0,
+ 4.0,
+ 9.0,
+ 1.0,
+ 2.0,
+ 3.0,
+ 1.0,
+ 1.0,
+ 1.0
+ ]);
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function generates a Vandermonde matrix (column-major, increasing)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
+ out = new Float32Array( 9 );
+
+ // Column-major: strideOut1=1, strideOut2=3
+ svander( 1, 3, 3, x, 1, 0, out, 1, 3, 0 );
+
+ expected = new Float32Array([
+ 1.0,
+ 1.0,
+ 1.0,
+ 1.0,
+ 2.0,
+ 3.0,
+ 1.0,
+ 4.0,
+ 9.0
+ ]);
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns the output matrix', function test( t ) {
+ var out;
+ var x;
+ var v;
+
+ x = new Float32Array( [ 1.0, 2.0 ] );
+ out = new Float32Array( 4 );
+
+ v = svander( -1, 2, 2, x, 1, 0, out, 2, 1, 0 );
+
+ t.strictEqual( v, out, 'returns expected value' );
+ t.end();
+});
+
+tape( 'if provided an `M` equal to `0`, the function returns the output matrix unchanged', function test( t ) {
+ var out;
+ var x;
+
+ x = new Float32Array( [] );
+ out = new Float32Array( [] );
+
+ svander( -1, 0, 3, x, 1, 0, out, 3, 1, 0 );
+
+ t.deepEqual( out, new Float32Array( [] ), 'returns expected value' );
+ t.end();
+});
+
+tape( 'if provided an `N` equal to `0`, the function returns the output matrix unchanged', function test( t ) {
+ var out;
+ var x;
+
+ x = new Float32Array( [ 1.0, 2.0 ] );
+ out = new Float32Array( [] );
+
+ svander( -1, 2, 0, x, 1, 0, out, 0, 1, 0 );
+
+ t.deepEqual( out, new Float32Array( [] ), 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports specifying a stride for `x` (row-major)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ // Pick every other element: x[0]=1.0, x[2]=3.0
+ x = new Float32Array( [ 1.0, 999.0, 3.0, 999.0 ] );
+ out = new Float32Array( 6 );
+
+ svander( -1, 2, 3, x, 2, 0, out, 3, 1, 0 );
+
+ expected = new Float32Array( [ 1.0, 1.0, 1.0, 9.0, 3.0, 1.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports specifying a negative stride for `x` (row-major)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 3.0, 999.0, 1.0 ] );
+ out = new Float32Array( 6 );
+
+ svander( -1, 2, 3, x, -2, 2, out, 3, 1, 0 );
+
+ // x[2]=1.0 (first), x[0]=3.0 (second)
+ expected = new Float32Array( [ 1.0, 1.0, 1.0, 9.0, 3.0, 1.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports specifying a stride for `x` (column-major)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ // Pick every other element: x[0]=1.0, x[2]=3.0
+ x = new Float32Array( [ 1.0, 999.0, 3.0, 999.0 ] );
+ out = new Float32Array( 6 );
+
+ svander( -1, 2, 3, x, 2, 0, out, 1, 2, 0 );
+
+ expected = new Float32Array( [ 1.0, 9.0, 1.0, 3.0, 1.0, 1.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports specifying a negative stride for `x` (column-major)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 3.0, 999.0, 1.0 ] );
+ out = new Float32Array( 6 );
+
+ svander( -1, 2, 3, x, -2, 2, out, 1, 2, 0 );
+
+ // x[2]=1.0 (first), x[0]=3.0 (second)
+ expected = new Float32Array( [ 1.0, 9.0, 1.0, 3.0, 1.0, 1.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 = new Float32Array( [ 999.0, 2.0, 3.0 ] );
+ out = new Float32Array( 6 );
+
+ svander( -1, 2, 3, x, 1, 1, out, 3, 1, 0 );
+
+ expected = new Float32Array( [ 4.0, 2.0, 1.0, 9.0, 3.0, 1.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 = new Float32Array( [ 2.0, 3.0 ] );
+ out = new Float32Array( 8 );
+
+ svander( -1, 2, 3, x, 1, 0, out, 3, 1, 2 );
+
+ // Starting at offset 2:
+ expected = new Float32Array( [ 0.0, 0.0, 4.0, 2.0, 1.0, 9.0, 3.0, 1.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports output stride with padding (row-major)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 1.0, 2.0 ] );
+ out = new Float32Array( 10 );
+
+ // 2x3 row-major with strideOut1=5 (padding of 2 per row)
+ svander( -1, 2, 3, x, 1, 0, out, 5, 1, 0 );
+
+ expected = new Float32Array([
+ 1.0,
+ 1.0,
+ 1.0,
+ 0.0,
+ 0.0,
+ 4.0,
+ 2.0,
+ 1.0,
+ 0.0,
+ 0.0
+ ]);
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports output stride with padding (column-major)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 1.0, 2.0 ] );
+ out = new Float32Array( 12 );
+
+ // 2x3 column-major with strideOut2=4 (padding of 2 per column)
+ svander( -1, 2, 3, x, 1, 0, out, 1, 4, 0 );
+
+ expected = new Float32Array([
+ 1.0,
+ 4.0,
+ 0.0,
+ 0.0,
+ 1.0,
+ 2.0,
+ 0.0,
+ 0.0,
+ 1.0,
+ 1.0,
+ 0.0,
+ 0.0
+ ]);
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports non-square matrices (M > N, row-major, decreasing)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
+ out = new Float32Array( 6 );
+
+ svander( -1, 3, 2, x, 1, 0, out, 2, 1, 0 );
+
+ // 3x2 matrix, decreasing:
+ expected = new Float32Array( [ 1.0, 1.0, 2.0, 1.0, 3.0, 1.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports non-square matrices (M < N, row-major, increasing)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 2.0, 3.0 ] );
+ out = new Float32Array( 8 );
+
+ svander( 1, 2, 4, x, 1, 0, out, 4, 1, 0 );
+
+ // 2x4 matrix, increasing:
+ expected = new Float32Array( [ 1.0, 2.0, 4.0, 8.0, 1.0, 3.0, 9.0, 27.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports non-square matrices (M > N, column-major, decreasing)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
+ out = new Float32Array( 6 );
+
+ // 3x2 column-major: strideOut1=1, strideOut2=3
+ svander( -1, 3, 2, x, 1, 0, out, 1, 3, 0 );
+
+ expected = new Float32Array( [ 1.0, 2.0, 3.0, 1.0, 1.0, 1.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports non-square matrices (M < N, column-major, increasing)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 2.0, 3.0 ] );
+ out = new Float32Array( 8 );
+
+ // 2x4 column-major: strideOut1=1, strideOut2=2
+ svander( 1, 2, 4, x, 1, 0, out, 1, 2, 0 );
+
+ expected = new Float32Array( [ 1.0, 1.0, 2.0, 3.0, 4.0, 9.0, 8.0, 27.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 = new Float32Array([
+ 0.0,
+ 2.0, // 0
+ 0.0,
+ 3.0 // 1
+ ]);
+ out = new Float32Array( 6 );
+
+ svander( 1, 2, 3, x, 2, 1, out, 3, -1, 2 );
+
+ expected = new Float32Array( [ 4.0, 2.0, 1.0, 9.0, 3.0, 1.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function handles zero values in the input array (row-major, increasing)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 0.0, 2.0 ] );
+ out = new Float32Array( 6 );
+
+ svander( 1, 2, 3, x, 1, 0, out, 3, 1, 0 );
+
+ expected = new Float32Array( [ 1.0, 0.0, 0.0, 1.0, 2.0, 4.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function handles a single column (N=1)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 5.0, 10.0, 15.0 ] );
+ out = new Float32Array( 3 );
+
+ svander( 1, 3, 1, x, 1, 0, out, 1, 1, 0 );
+
+ // Single column: all x^0 = 1
+ expected = new Float32Array( [ 1.0, 1.0, 1.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function handles a single row (M=1)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 3.0 ] );
+ out = new Float32Array( 4 );
+
+ svander( 1, 1, 4, x, 1, 0, out, 4, 1, 0 );
+
+ // Single row: [ 3^0, 3^1, 3^2, 3^3 ] = [ 1, 3, 9, 27 ]
+ expected = new Float32Array( [ 1.0, 3.0, 9.0, 27.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports column-major with output offset and stride', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 1.0, 2.0 ] );
+ out = new Float32Array( 8 );
+
+ // Column-major 2x2 starting at offset 2, with strideOut2=3 (padding of 1)
+ svander( 1, 2, 2, x, 1, 0, out, 1, 3, 2 );
+
+ expected = new Float32Array( [ 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 2.0, 0.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
diff --git a/lib/node_modules/@stdlib/blas/ext/base/svander/test/test.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/svander/test/test.ndarray.native.js
new file mode 100644
index 000000000000..3a3c50edf8ff
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/svander/test/test.ndarray.native.js
@@ -0,0 +1,551 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var resolve = require( 'path' ).resolve;
+var tape = require( 'tape' );
+var Float32Array = require( '@stdlib/array/float32' );
+var tryRequire = require( '@stdlib/utils/try-require' );
+
+
+// VARIABLES //
+
+var svander = tryRequire( resolve( __dirname, './../lib/ndarray.native.js' ) );
+var opts = {
+ 'skip': ( svander instanceof Error )
+};
+
+
+// TESTS //
+
+tape( 'main export is a function', opts, function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof svander, 'function', 'main export is a function' );
+ t.end();
+});
+
+tape( 'the function has an arity of 10', opts, function test( t ) {
+ t.strictEqual( svander.length, 10, 'has expected arity' );
+ t.end();
+});
+
+tape( 'the function throws an error if provided an invalid second argument', opts, function test( t ) {
+ var values;
+ var i;
+
+ values = [
+ -1,
+ -2,
+ -3
+ ];
+
+ for ( i = 0; i < values.length; i++ ) {
+ t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] );
+ }
+ t.end();
+
+ function badValue( value ) {
+ return function badValue() {
+ svander( -1, value, 3, new Float32Array( [ 1.0, 2.0, 3.0 ] ), 1, 0, new Float32Array( 9 ), 3, 1, 0 ); // eslint-disable-line max-len
+ };
+ }
+});
+
+tape( 'the function throws an error if provided an invalid third argument', opts, function test( t ) {
+ var values;
+ var i;
+
+ values = [
+ -1,
+ -2,
+ -3
+ ];
+
+ for ( i = 0; i < values.length; i++ ) {
+ t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] );
+ }
+ t.end();
+
+ function badValue( value ) {
+ return function badValue() {
+ svander( -1, 3, value, new Float32Array( [ 1.0, 2.0, 3.0 ] ), 1, 0, new Float32Array( 9 ), 3, 1, 0 ); // eslint-disable-line max-len
+ };
+ }
+});
+
+tape( 'the function generates a Vandermonde matrix (row-major, decreasing)', opts, function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
+ out = new Float32Array( 9 );
+
+ svander( -1, 3, 3, x, 1, 0, out, 3, 1, 0 );
+
+ expected = new Float32Array([
+ 1.0,
+ 1.0,
+ 1.0,
+ 4.0,
+ 2.0,
+ 1.0,
+ 9.0,
+ 3.0,
+ 1.0
+ ]);
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function generates a Vandermonde matrix (row-major, increasing)', opts, function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
+ out = new Float32Array( 9 );
+
+ svander( 1, 3, 3, x, 1, 0, out, 3, 1, 0 );
+
+ expected = new Float32Array([
+ 1.0,
+ 1.0,
+ 1.0,
+ 1.0,
+ 2.0,
+ 4.0,
+ 1.0,
+ 3.0,
+ 9.0
+ ]);
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function generates a Vandermonde matrix (column-major, decreasing)', opts, function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
+ out = new Float32Array( 9 );
+
+ svander( -1, 3, 3, x, 1, 0, out, 1, 3, 0 );
+
+ expected = new Float32Array([
+ 1.0,
+ 4.0,
+ 9.0,
+ 1.0,
+ 2.0,
+ 3.0,
+ 1.0,
+ 1.0,
+ 1.0
+ ]);
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function generates a Vandermonde matrix (column-major, increasing)', opts, function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
+ out = new Float32Array( 9 );
+
+ svander( 1, 3, 3, x, 1, 0, out, 1, 3, 0 );
+
+ expected = new Float32Array([
+ 1.0,
+ 1.0,
+ 1.0,
+ 1.0,
+ 2.0,
+ 3.0,
+ 1.0,
+ 4.0,
+ 9.0
+ ]);
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns the output matrix', opts, function test( t ) {
+ var out;
+ var x;
+ var v;
+
+ x = new Float32Array( [ 1.0, 2.0 ] );
+ out = new Float32Array( 4 );
+
+ v = svander( -1, 2, 2, x, 1, 0, out, 2, 1, 0 );
+
+ t.strictEqual( v, out, 'returns expected value' );
+ t.end();
+});
+
+tape( 'if provided an `M` equal to `0`, the function returns the output matrix unchanged', opts, function test( t ) {
+ var out;
+ var x;
+
+ x = new Float32Array( [] );
+ out = new Float32Array( [] );
+
+ svander( -1, 0, 3, x, 1, 0, out, 3, 1, 0 );
+
+ t.deepEqual( out, new Float32Array( [] ), 'returns expected value' );
+ t.end();
+});
+
+tape( 'if provided an `N` equal to `0`, the function returns the output matrix unchanged', opts, function test( t ) {
+ var out;
+ var x;
+
+ x = new Float32Array( [ 1.0, 2.0 ] );
+ out = new Float32Array( [] );
+
+ svander( -1, 2, 0, x, 1, 0, out, 0, 1, 0 );
+
+ t.deepEqual( out, new Float32Array( [] ), 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports specifying a stride for `x` (row-major)', opts, function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ // Pick every other element: x[0]=1.0, x[2]=3.0
+ x = new Float32Array( [ 1.0, 999.0, 3.0, 999.0 ] );
+ out = new Float32Array( 6 );
+
+ svander( -1, 2, 3, x, 2, 0, out, 3, 1, 0 );
+
+ expected = new Float32Array( [ 1.0, 1.0, 1.0, 9.0, 3.0, 1.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports specifying a negative stride for `x` (row-major)', opts, function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 3.0, 999.0, 1.0 ] );
+ out = new Float32Array( 6 );
+
+ svander( -1, 2, 3, x, -2, 2, out, 3, 1, 0 );
+
+ // x[2]=1.0 (first), x[0]=3.0 (second)
+ expected = new Float32Array( [ 1.0, 1.0, 1.0, 9.0, 3.0, 1.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports specifying a stride for `x` (column-major)', opts, function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ // Pick every other element: x[0]=1.0, x[2]=3.0
+ x = new Float32Array( [ 1.0, 999.0, 3.0, 999.0 ] );
+ out = new Float32Array( 6 );
+
+ svander( -1, 2, 3, x, 2, 0, out, 1, 2, 0 );
+
+ expected = new Float32Array( [ 1.0, 9.0, 1.0, 3.0, 1.0, 1.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports specifying a negative stride for `x` (column-major)', opts, function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 3.0, 999.0, 1.0 ] );
+ out = new Float32Array( 6 );
+
+ svander( -1, 2, 3, x, -2, 2, out, 1, 2, 0 );
+
+ // x[2]=1.0 (first), x[0]=3.0 (second)
+ expected = new Float32Array( [ 1.0, 9.0, 1.0, 3.0, 1.0, 1.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports an `x` offset', opts, function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 999.0, 2.0, 3.0 ] );
+ out = new Float32Array( 6 );
+
+ svander( -1, 2, 3, x, 1, 1, out, 3, 1, 0 );
+
+ expected = new Float32Array( [ 4.0, 2.0, 1.0, 9.0, 3.0, 1.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports an output offset', opts, function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 2.0, 3.0 ] );
+ out = new Float32Array( 8 );
+
+ svander( -1, 2, 3, x, 1, 0, out, 3, 1, 2 );
+
+ // Starting at offset 2:
+ expected = new Float32Array( [ 0.0, 0.0, 4.0, 2.0, 1.0, 9.0, 3.0, 1.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports output stride with padding (row-major)', opts, function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 1.0, 2.0 ] );
+ out = new Float32Array( 10 );
+
+ // 2x3 row-major with strideOut1=5 (padding of 2 per row)
+ svander( -1, 2, 3, x, 1, 0, out, 5, 1, 0 );
+
+ expected = new Float32Array([
+ 1.0,
+ 1.0,
+ 1.0,
+ 0.0,
+ 0.0,
+ 4.0,
+ 2.0,
+ 1.0,
+ 0.0,
+ 0.0
+ ]);
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports output stride with padding (column-major)', opts, function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 1.0, 2.0 ] );
+ out = new Float32Array( 12 );
+
+ // 2x3 column-major with strideOut2=4 (padding of 2 per column)
+ svander( -1, 2, 3, x, 1, 0, out, 1, 4, 0 );
+
+ expected = new Float32Array([
+ 1.0,
+ 4.0,
+ 0.0,
+ 0.0,
+ 1.0,
+ 2.0,
+ 0.0,
+ 0.0,
+ 1.0,
+ 1.0,
+ 0.0,
+ 0.0
+ ]);
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports non-square matrices (M > N, row-major, decreasing)', opts, function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
+ out = new Float32Array( 6 );
+
+ svander( -1, 3, 2, x, 1, 0, out, 2, 1, 0 );
+
+ // 3x2 matrix, decreasing:
+ expected = new Float32Array( [ 1.0, 1.0, 2.0, 1.0, 3.0, 1.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports non-square matrices (M < N, row-major, increasing)', opts, function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 2.0, 3.0 ] );
+ out = new Float32Array( 8 );
+
+ svander( 1, 2, 4, x, 1, 0, out, 4, 1, 0 );
+
+ // 2x4 matrix, increasing:
+ expected = new Float32Array( [ 1.0, 2.0, 4.0, 8.0, 1.0, 3.0, 9.0, 27.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports non-square matrices (M > N, column-major, decreasing)', opts, function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
+ out = new Float32Array( 6 );
+
+ // 3x2 column-major: strideOut1=1, strideOut2=3
+ svander( -1, 3, 2, x, 1, 0, out, 1, 3, 0 );
+
+ expected = new Float32Array( [ 1.0, 2.0, 3.0, 1.0, 1.0, 1.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports non-square matrices (M < N, column-major, increasing)', opts, function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 2.0, 3.0 ] );
+ out = new Float32Array( 8 );
+
+ // 2x4 column-major: strideOut1=1, strideOut2=2
+ svander( 1, 2, 4, x, 1, 0, out, 1, 2, 0 );
+
+ expected = new Float32Array( [ 1.0, 1.0, 2.0, 3.0, 4.0, 9.0, 8.0, 27.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports complex access patterns', opts, function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array([
+ 0.0,
+ 2.0, // 0
+ 0.0,
+ 3.0 // 1
+ ]);
+ out = new Float32Array( 6 );
+
+ svander( 1, 2, 3, x, 2, 1, out, 3, -1, 2 );
+
+ expected = new Float32Array( [ 4.0, 2.0, 1.0, 9.0, 3.0, 1.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function handles zero values in the input array (row-major, increasing)', opts, function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 0.0, 2.0 ] );
+ out = new Float32Array( 6 );
+
+ svander( 1, 2, 3, x, 1, 0, out, 3, 1, 0 );
+
+ expected = new Float32Array( [ 1.0, 0.0, 0.0, 1.0, 2.0, 4.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function handles a single column (N=1)', opts, function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 5.0, 10.0, 15.0 ] );
+ out = new Float32Array( 3 );
+
+ svander( 1, 3, 1, x, 1, 0, out, 1, 1, 0 );
+
+ // Single column: all x^0 = 1
+ expected = new Float32Array( [ 1.0, 1.0, 1.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function handles a single row (M=1)', opts, function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 3.0 ] );
+ out = new Float32Array( 4 );
+
+ svander( 1, 1, 4, x, 1, 0, out, 4, 1, 0 );
+
+ // Single row: [ 3^0, 3^1, 3^2, 3^3 ] = [ 1, 3, 9, 27 ]
+ expected = new Float32Array( [ 1.0, 3.0, 9.0, 27.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports column-major with output offset and stride', opts, function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 1.0, 2.0 ] );
+ out = new Float32Array( 8 );
+
+ // Column-major 2x2 starting at offset 2, with strideOut2=3 (padding of 1)
+ svander( 1, 2, 2, x, 1, 0, out, 1, 3, 2 );
+
+ expected = new Float32Array( [ 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 2.0, 0.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
diff --git a/lib/node_modules/@stdlib/blas/ext/base/svander/test/test.svander.js b/lib/node_modules/@stdlib/blas/ext/base/svander/test/test.svander.js
new file mode 100644
index 000000000000..08c11f221480
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/svander/test/test.svander.js
@@ -0,0 +1,518 @@
+/**
+* @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 Float32Array = require( '@stdlib/array/float32' );
+var svander = require( './../lib/svander.js' );
+
+
+// TESTS //
+
+tape( 'main export is a function', function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof svander, 'function', 'main export is a function' );
+ t.end();
+});
+
+tape( 'the function has an arity of 8', function test( t ) {
+ t.strictEqual( svander.length, 8, 'has expected arity' );
+ t.end();
+});
+
+tape( 'the function throws an error if provided an invalid first argument', function test( t ) {
+ var values;
+ var i;
+
+ values = [
+ 'foo',
+ 'bar',
+ 'beep',
+ 'boop'
+ ];
+
+ for ( i = 0; i < values.length; i++ ) {
+ t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided ' + values[ i ] );
+ }
+ t.end();
+
+ function badValue( value ) {
+ return function badValue() {
+ svander( value, -1, 3, 3, new Float32Array( [ 1.0, 2.0, 3.0 ] ), 1, new Float32Array( 9 ), 3 ); // eslint-disable-line max-len
+ };
+ }
+});
+
+tape( 'the function throws an error if provided an invalid third argument', function test( t ) {
+ var values;
+ var i;
+
+ values = [
+ -1,
+ -2,
+ -3
+ ];
+
+ for ( i = 0; i < values.length; i++ ) {
+ t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] );
+ }
+ t.end();
+
+ function badValue( value ) {
+ return function badValue() {
+ svander( 'row-major', -1, value, 3, new Float32Array( [ 1.0, 2.0, 3.0 ] ), 1, new Float32Array( 9 ), 3 );
+ };
+ }
+});
+
+tape( 'the function throws an error if provided an invalid fourth argument', function test( t ) {
+ var values;
+ var i;
+
+ values = [
+ -1,
+ -2,
+ -3
+ ];
+
+ for ( i = 0; i < values.length; i++ ) {
+ t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] );
+ }
+ t.end();
+
+ function badValue( value ) {
+ return function badValue() {
+ svander( 'row-major', -1, 3, value, new Float32Array( [ 1.0, 2.0, 3.0 ] ), 1, new Float32Array( 9 ), 3 );
+ };
+ }
+});
+
+tape( 'the function throws an error if provided an invalid eighth argument', function test( t ) {
+ var values;
+ var i;
+
+ values = [
+ -3,
+ -2,
+ -1,
+ 0,
+ 1
+ ];
+
+ for ( i = 0; i < values.length; i++ ) {
+ t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] );
+ }
+ t.end();
+
+ function badValue( value ) {
+ return function badValue() {
+ svander( 'row-major', -1, 3, 3, new Float32Array( [ 1.0, 2.0, 3.0 ] ), 1, new Float32Array( 9 ), value );
+ };
+ }
+});
+
+tape( 'the function generates a Vandermonde matrix (row-major, decreasing)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
+ out = new Float32Array( 9 );
+
+ svander( 'row-major', -1, 3, 3, x, 1, out, 3 );
+
+ expected = new Float32Array([
+ 1.0,
+ 1.0,
+ 1.0,
+ 4.0,
+ 2.0,
+ 1.0,
+ 9.0,
+ 3.0,
+ 1.0
+ ]);
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function generates a Vandermonde matrix (row-major, increasing)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
+ out = new Float32Array( 9 );
+
+ svander( 'row-major', 1, 3, 3, x, 1, out, 3 );
+
+ expected = new Float32Array([
+ 1.0,
+ 1.0,
+ 1.0,
+ 1.0,
+ 2.0,
+ 4.0,
+ 1.0,
+ 3.0,
+ 9.0
+ ]);
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function generates a Vandermonde matrix (column-major, decreasing)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
+ out = new Float32Array( 9 );
+
+ svander( 'column-major', -1, 3, 3, x, 1, out, 3 );
+
+ expected = new Float32Array([
+ 1.0,
+ 4.0,
+ 9.0,
+ 1.0,
+ 2.0,
+ 3.0,
+ 1.0,
+ 1.0,
+ 1.0
+ ]);
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function generates a Vandermonde matrix (column-major, increasing)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
+ out = new Float32Array( 9 );
+
+ svander( 'column-major', 1, 3, 3, x, 1, out, 3 );
+
+ expected = new Float32Array([
+ 1.0,
+ 1.0,
+ 1.0,
+ 1.0,
+ 2.0,
+ 3.0,
+ 1.0,
+ 4.0,
+ 9.0
+ ]);
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns the output matrix', function test( t ) {
+ var out;
+ var x;
+ var v;
+
+ x = new Float32Array( [ 1.0, 2.0 ] );
+ out = new Float32Array( 4 );
+
+ v = svander( 'row-major', -1, 2, 2, x, 1, out, 2 );
+
+ t.strictEqual( v, out, 'returns expected value' );
+ t.end();
+});
+
+tape( 'if provided an `M` equal to `0`, the function returns the output matrix unchanged', function test( t ) {
+ var out;
+ var x;
+
+ x = new Float32Array( [] );
+ out = new Float32Array( [] );
+
+ svander( 'row-major', -1, 0, 3, x, 1, out, 3 );
+
+ t.deepEqual( out, new Float32Array( [] ), 'returns expected value' );
+ t.end();
+});
+
+tape( 'if provided an `N` equal to `0`, the function returns the output matrix unchanged', function test( t ) {
+ var out;
+ var x;
+
+ x = new Float32Array( [ 1.0, 2.0 ] );
+ out = new Float32Array( [] );
+
+ svander( 'row-major', -1, 2, 0, x, 1, out, 1 );
+
+ t.deepEqual( out, new Float32Array( [] ), 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports specifying a stride for `x` (row-major)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ // Pick every other element: x[0]=1.0, x[2]=3.0
+ x = new Float32Array( [ 1.0, 0.0, 3.0, 0.0 ] );
+ out = new Float32Array( 6 );
+
+ svander( 'row-major', -1, 2, 3, x, 2, out, 3 );
+
+ expected = new Float32Array( [ 1.0, 1.0, 1.0, 9.0, 3.0, 1.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports specifying a negative stride for `x` (row-major)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ // Negative stride: starts from last and goes backward
+ x = new Float32Array( [ 3.0, 0.0, 1.0 ] );
+ out = new Float32Array( 6 );
+
+ svander( 'row-major', -1, 2, 3, x, -2, out, 3 );
+
+ // x[2]=1.0 (first), x[0]=3.0 (second)
+ expected = new Float32Array( [ 1.0, 1.0, 1.0, 9.0, 3.0, 1.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports specifying a stride for `x` (column-major)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ // Pick every other element: x[0]=1.0, x[2]=3.0
+ x = new Float32Array( [ 1.0, 0.0, 3.0, 0.0 ] );
+ out = new Float32Array( 6 );
+
+ svander( 'column-major', -1, 2, 3, x, 2, out, 2 );
+
+ expected = new Float32Array( [ 1.0, 9.0, 1.0, 3.0, 1.0, 1.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports specifying a negative stride for `x` (column-major)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ // Negative stride: starts from last and goes backward
+ x = new Float32Array( [ 3.0, 0.0, 1.0 ] );
+ out = new Float32Array( 6 );
+
+ svander( 'column-major', -1, 2, 3, x, -2, out, 2 );
+
+ // x[2]=1.0 (first), x[0]=3.0 (second)
+ expected = new Float32Array( [ 1.0, 9.0, 1.0, 3.0, 1.0, 1.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports an `ldo` larger than the matrix dimension (row-major)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 1.0, 2.0 ] );
+ out = new Float32Array( 10 );
+
+ // 2x3 row-major with ldo=5 (padding of 2 per row)
+ svander( 'row-major', -1, 2, 3, x, 1, out, 5 );
+
+ expected = new Float32Array([
+ 1.0,
+ 1.0,
+ 1.0,
+ 0.0,
+ 0.0,
+ 4.0,
+ 2.0,
+ 1.0,
+ 0.0,
+ 0.0
+ ]);
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports an `ldo` larger than the matrix dimension (column-major)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 1.0, 2.0 ] );
+ out = new Float32Array( 12 );
+
+ // 2x3 column-major with ldo=4 (padding of 2 per column)
+ svander( 'column-major', -1, 2, 3, x, 1, out, 4 );
+
+ expected = new Float32Array([
+ 1.0,
+ 4.0,
+ 0.0,
+ 0.0,
+ 1.0,
+ 2.0,
+ 0.0,
+ 0.0,
+ 1.0,
+ 1.0,
+ 0.0,
+ 0.0
+ ]);
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports non-square matrices (M > N, row-major, decreasing)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
+ out = new Float32Array( 6 );
+
+ svander( 'row-major', -1, 3, 2, x, 1, out, 2 );
+
+ // 3x2 matrix, decreasing:
+ expected = new Float32Array( [ 1.0, 1.0, 2.0, 1.0, 3.0, 1.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports non-square matrices (M < N, row-major, increasing)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 2.0, 3.0 ] );
+ out = new Float32Array( 8 );
+
+ svander( 'row-major', 1, 2, 4, x, 1, out, 4 );
+
+ // 2x4 matrix, increasing:
+ expected = new Float32Array( [ 1.0, 2.0, 4.0, 8.0, 1.0, 3.0, 9.0, 27.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports view offsets', function test( t ) {
+ var expected;
+ var out;
+ var x0;
+ var x1;
+
+ // Initial array:
+ x0 = new Float32Array( [ 0.0, 1.0, 2.0, 3.0 ] );
+
+ // Create an offset view:
+ x1 = new Float32Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // start at 2nd element
+
+ out = new Float32Array( 9 );
+
+ svander( 'row-major', 1, 3, 3, x1, 1, out, 3 );
+
+ expected = new Float32Array([
+ 1.0,
+ 1.0,
+ 1.0,
+ 1.0,
+ 2.0,
+ 4.0,
+ 1.0,
+ 3.0,
+ 9.0
+ ]);
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function handles zero values in the input array (row-major, increasing)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 0.0, 2.0 ] );
+ out = new Float32Array( 6 );
+
+ svander( 'row-major', 1, 2, 3, x, 1, out, 3 );
+
+ expected = new Float32Array( [ 1.0, 0.0, 0.0, 1.0, 2.0, 4.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function handles a single column (N=1)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 5.0, 10.0, 15.0 ] );
+ out = new Float32Array( 3 );
+
+ svander( 'row-major', 1, 3, 1, x, 1, out, 1 );
+
+ // Single column: all x^0 = 1
+ expected = new Float32Array( [ 1.0, 1.0, 1.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function handles a single row (M=1)', function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 3.0 ] );
+ out = new Float32Array( 4 );
+
+ svander( 'row-major', 1, 1, 4, x, 1, out, 4 );
+
+ // Single row: [ 3^0, 3^1, 3^2, 3^3 ] = [ 1, 3, 9, 27 ]
+ expected = new Float32Array( [ 1.0, 3.0, 9.0, 27.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
diff --git a/lib/node_modules/@stdlib/blas/ext/base/svander/test/test.svander.native.js b/lib/node_modules/@stdlib/blas/ext/base/svander/test/test.svander.native.js
new file mode 100644
index 000000000000..546e14b3f943
--- /dev/null
+++ b/lib/node_modules/@stdlib/blas/ext/base/svander/test/test.svander.native.js
@@ -0,0 +1,527 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2026 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var resolve = require( 'path' ).resolve;
+var tape = require( 'tape' );
+var Float32Array = require( '@stdlib/array/float32' );
+var tryRequire = require( '@stdlib/utils/try-require' );
+
+
+// VARIABLES //
+
+var svander = tryRequire( resolve( __dirname, './../lib/svander.native.js' ) );
+var opts = {
+ 'skip': ( svander instanceof Error )
+};
+
+
+// TESTS //
+
+tape( 'main export is a function', opts, function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof svander, 'function', 'main export is a function' );
+ t.end();
+});
+
+tape( 'the function has an arity of 8', opts, function test( t ) {
+ t.strictEqual( svander.length, 8, 'has expected arity' );
+ t.end();
+});
+
+tape( 'the function throws an error if provided an invalid first argument', opts, function test( t ) {
+ var values;
+ var i;
+
+ values = [
+ 'foo',
+ 'bar',
+ 'beep',
+ 'boop'
+ ];
+
+ for ( i = 0; i < values.length; i++ ) {
+ t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided ' + values[ i ] );
+ }
+ t.end();
+
+ function badValue( value ) {
+ return function badValue() {
+ svander( value, -1, 3, 3, new Float32Array( [ 1.0, 2.0, 3.0 ] ), 1, new Float32Array( 9 ), 3 ); // eslint-disable-line max-len
+ };
+ }
+});
+
+tape( 'the function throws an error if provided an invalid third argument', opts, function test( t ) {
+ var values;
+ var i;
+
+ values = [
+ -1,
+ -2,
+ -3
+ ];
+
+ for ( i = 0; i < values.length; i++ ) {
+ t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] );
+ }
+ t.end();
+
+ function badValue( value ) {
+ return function badValue() {
+ svander( 'row-major', -1, value, 3, new Float32Array( [ 1.0, 2.0, 3.0 ] ), 1, new Float32Array( 9 ), 3 );
+ };
+ }
+});
+
+tape( 'the function throws an error if provided an invalid fourth argument', opts, function test( t ) {
+ var values;
+ var i;
+
+ values = [
+ -1,
+ -2,
+ -3
+ ];
+
+ for ( i = 0; i < values.length; i++ ) {
+ t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] );
+ }
+ t.end();
+
+ function badValue( value ) {
+ return function badValue() {
+ svander( 'row-major', -1, 3, value, new Float32Array( [ 1.0, 2.0, 3.0 ] ), 1, new Float32Array( 9 ), 3 );
+ };
+ }
+});
+
+tape( 'the function throws an error if provided an invalid eighth argument', opts, function test( t ) {
+ var values;
+ var i;
+
+ values = [
+ -3,
+ -2,
+ -1,
+ 0,
+ 1
+ ];
+
+ for ( i = 0; i < values.length; i++ ) {
+ t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] );
+ }
+ t.end();
+
+ function badValue( value ) {
+ return function badValue() {
+ svander( 'row-major', -1, 3, 3, new Float32Array( [ 1.0, 2.0, 3.0 ] ), 1, new Float32Array( 9 ), value );
+ };
+ }
+});
+
+tape( 'the function generates a Vandermonde matrix (row-major, decreasing)', opts, function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
+ out = new Float32Array( 9 );
+
+ svander( 'row-major', -1, 3, 3, x, 1, out, 3 );
+
+ expected = new Float32Array([
+ 1.0,
+ 1.0,
+ 1.0,
+ 4.0,
+ 2.0,
+ 1.0,
+ 9.0,
+ 3.0,
+ 1.0
+ ]);
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function generates a Vandermonde matrix (row-major, increasing)', opts, function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
+ out = new Float32Array( 9 );
+
+ svander( 'row-major', 1, 3, 3, x, 1, out, 3 );
+
+ expected = new Float32Array([
+ 1.0,
+ 1.0,
+ 1.0,
+ 1.0,
+ 2.0,
+ 4.0,
+ 1.0,
+ 3.0,
+ 9.0
+ ]);
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function generates a Vandermonde matrix (column-major, decreasing)', opts, function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
+ out = new Float32Array( 9 );
+
+ svander( 'column-major', -1, 3, 3, x, 1, out, 3 );
+
+ expected = new Float32Array([
+ 1.0,
+ 4.0,
+ 9.0,
+ 1.0,
+ 2.0,
+ 3.0,
+ 1.0,
+ 1.0,
+ 1.0
+ ]);
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function generates a Vandermonde matrix (column-major, increasing)', opts, function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
+ out = new Float32Array( 9 );
+
+ svander( 'column-major', 1, 3, 3, x, 1, out, 3 );
+
+ expected = new Float32Array([
+ 1.0,
+ 1.0,
+ 1.0,
+ 1.0,
+ 2.0,
+ 3.0,
+ 1.0,
+ 4.0,
+ 9.0
+ ]);
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns the output matrix', opts, function test( t ) {
+ var out;
+ var x;
+ var v;
+
+ x = new Float32Array( [ 1.0, 2.0 ] );
+ out = new Float32Array( 4 );
+
+ v = svander( 'row-major', -1, 2, 2, x, 1, out, 2 );
+
+ t.strictEqual( v, out, 'returns expected value' );
+ t.end();
+});
+
+tape( 'if provided an `M` equal to `0`, the function returns the output matrix unchanged', opts, function test( t ) {
+ var out;
+ var x;
+
+ x = new Float32Array( [] );
+ out = new Float32Array( [] );
+
+ svander( 'row-major', -1, 0, 3, x, 1, out, 3 );
+
+ t.deepEqual( out, new Float32Array( [] ), 'returns expected value' );
+ t.end();
+});
+
+tape( 'if provided an `N` equal to `0`, the function returns the output matrix unchanged', opts, function test( t ) {
+ var out;
+ var x;
+
+ x = new Float32Array( [ 1.0, 2.0 ] );
+ out = new Float32Array( [] );
+
+ svander( 'row-major', -1, 2, 0, x, 1, out, 1 );
+
+ t.deepEqual( out, new Float32Array( [] ), 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports specifying a stride for `x` (row-major)', opts, function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ // Pick every other element: x[0]=1.0, x[2]=3.0
+ x = new Float32Array( [ 1.0, 0.0, 3.0, 0.0 ] );
+ out = new Float32Array( 6 );
+
+ svander( 'row-major', -1, 2, 3, x, 2, out, 3 );
+
+ expected = new Float32Array( [ 1.0, 1.0, 1.0, 9.0, 3.0, 1.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports specifying a negative stride for `x` (row-major)', opts, function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ // Negative stride: starts from last and goes backward
+ x = new Float32Array( [ 3.0, 0.0, 1.0 ] );
+ out = new Float32Array( 6 );
+
+ svander( 'row-major', -1, 2, 3, x, -2, out, 3 );
+
+ // x[2]=1.0 (first), x[0]=3.0 (second)
+ expected = new Float32Array( [ 1.0, 1.0, 1.0, 9.0, 3.0, 1.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports specifying a stride for `x` (column-major)', opts, function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ // Pick every other element: x[0]=1.0, x[2]=3.0
+ x = new Float32Array( [ 1.0, 0.0, 3.0, 0.0 ] );
+ out = new Float32Array( 6 );
+
+ svander( 'column-major', -1, 2, 3, x, 2, out, 2 );
+
+ expected = new Float32Array( [ 1.0, 9.0, 1.0, 3.0, 1.0, 1.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports specifying a negative stride for `x` (column-major)', opts, function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ // Negative stride: starts from last and goes backward
+ x = new Float32Array( [ 3.0, 0.0, 1.0 ] );
+ out = new Float32Array( 6 );
+
+ svander( 'column-major', -1, 2, 3, x, -2, out, 2 );
+
+ // x[2]=1.0 (first), x[0]=3.0 (second)
+ expected = new Float32Array( [ 1.0, 9.0, 1.0, 3.0, 1.0, 1.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports an `ldo` larger than the matrix dimension (row-major)', opts, function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 1.0, 2.0 ] );
+ out = new Float32Array( 10 );
+
+ // 2x3 row-major with ldo=5 (padding of 2 per row)
+ svander( 'row-major', -1, 2, 3, x, 1, out, 5 );
+
+ expected = new Float32Array([
+ 1.0,
+ 1.0,
+ 1.0,
+ 0.0,
+ 0.0,
+ 4.0,
+ 2.0,
+ 1.0,
+ 0.0,
+ 0.0
+ ]);
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports an `ldo` larger than the matrix dimension (column-major)', opts, function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 1.0, 2.0 ] );
+ out = new Float32Array( 12 );
+
+ // 2x3 column-major with ldo=4 (padding of 2 per column)
+ svander( 'column-major', -1, 2, 3, x, 1, out, 4 );
+
+ expected = new Float32Array([
+ 1.0,
+ 4.0,
+ 0.0,
+ 0.0,
+ 1.0,
+ 2.0,
+ 0.0,
+ 0.0,
+ 1.0,
+ 1.0,
+ 0.0,
+ 0.0
+ ]);
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports non-square matrices (M > N, row-major, decreasing)', opts, function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
+ out = new Float32Array( 6 );
+
+ svander( 'row-major', -1, 3, 2, x, 1, out, 2 );
+
+ // 3x2 matrix, decreasing:
+ expected = new Float32Array( [ 1.0, 1.0, 2.0, 1.0, 3.0, 1.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports non-square matrices (M < N, row-major, increasing)', opts, function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 2.0, 3.0 ] );
+ out = new Float32Array( 8 );
+
+ svander( 'row-major', 1, 2, 4, x, 1, out, 4 );
+
+ // 2x4 matrix, increasing:
+ expected = new Float32Array( [ 1.0, 2.0, 4.0, 8.0, 1.0, 3.0, 9.0, 27.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function supports view offsets', opts, function test( t ) {
+ var expected;
+ var out;
+ var x0;
+ var x1;
+
+ // Initial array:
+ x0 = new Float32Array( [ 0.0, 1.0, 2.0, 3.0 ] );
+
+ // Create an offset view:
+ x1 = new Float32Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // start at 2nd element
+
+ out = new Float32Array( 9 );
+
+ svander( 'row-major', 1, 3, 3, x1, 1, out, 3 );
+
+ expected = new Float32Array([
+ 1.0,
+ 1.0,
+ 1.0,
+ 1.0,
+ 2.0,
+ 4.0,
+ 1.0,
+ 3.0,
+ 9.0
+ ]);
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function handles zero values in the input array (row-major, increasing)', opts, function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 0.0, 2.0 ] );
+ out = new Float32Array( 6 );
+
+ svander( 'row-major', 1, 2, 3, x, 1, out, 3 );
+
+ expected = new Float32Array( [ 1.0, 0.0, 0.0, 1.0, 2.0, 4.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function handles a single column (N=1)', opts, function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 5.0, 10.0, 15.0 ] );
+ out = new Float32Array( 3 );
+
+ svander( 'row-major', 1, 3, 1, x, 1, out, 1 );
+
+ // Single column: all x^0 = 1
+ expected = new Float32Array( [ 1.0, 1.0, 1.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function handles a single row (M=1)', opts, function test( t ) {
+ var expected;
+ var out;
+ var x;
+
+ x = new Float32Array( [ 3.0 ] );
+ out = new Float32Array( 4 );
+
+ svander( 'row-major', 1, 1, 4, x, 1, out, 4 );
+
+ // Single row: [ 3^0, 3^1, 3^2, 3^3 ] = [ 1, 3, 9, 27 ]
+ expected = new Float32Array( [ 1.0, 3.0, 9.0, 27.0 ] );
+
+ t.deepEqual( out, expected, 'returns expected value' );
+ t.end();
+});