diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/README.md b/lib/node_modules/@stdlib/lapack/base/dlaset/README.md
new file mode 100644
index 000000000000..1f226d5e329a
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/README.md
@@ -0,0 +1,248 @@
+
+
+# dlaset
+
+> LAPACK routine to initialize an M by N matrix `A` to `beta` on the diagonals and `alpha` on the off diagonals.
+
+
+
+## Usage
+
+```javascript
+var dlaset = require( '@stdlib/lapack/base/dlaset' );
+```
+
+#### dlaset( order, uplo, M, N, A, LDA, alpha, beta )
+
+Initialises an M by N matrix `A` to `beta` on the diagonals and `alpha` on the off diagonals.
+
+```javascript
+var Float64Array = require( '@stdlib/array/float64' );
+
+var A = new Float64Array( 4 );
+
+dlaset( 'row-major', 'all', 2, 2, A, 2, 0.0, 1.0 );
+// A => [ 1.0, 0.0, 0.0, 1.0 ]
+```
+
+The function has the following parameters:
+
+- **order**: storage layout.
+- **uplo**: specifies whether to set the upper or lower triangular/trapezoidal part of a matrix `A`.
+- **M**: number of rows in `A`.
+- **N**: number of columns in `A`.
+- **A**: input [`Float64Array`][mdn-float64array].
+- **LDA**: stride of the first dimension of `A` (a.k.a., leading dimension of the matrix `A`).
+- **alpha**: number to set on the off-diagonal elements.
+- **beta**: number to set on the diagonal elements.
+
+Note that indexing is relative to the first index. To introduce an offset, use [`typed array`][mdn-typed-array] views.
+
+
+
+```javascript
+var Float64Array = require( '@stdlib/array/float64' );
+
+// Initial arrays...
+var A0 = new Float64Array( 5 );
+
+// Create offset views...
+var A1 = new Float64Array( A0.buffer, A0.BYTES_PER_ELEMENT*1 ); // start at 2nd element
+
+dlaset( 'row-major', 'all', 2, 2, A1, 2, 0.0, 1.0 );
+// A0 => [ 0.0, 1.0, 0.0, 0.0, 1.0 ]
+```
+
+#### dlaset.ndarray( uplo, M, N, A, sa1, sa2, oa, alpha, beta )
+
+Initialises an M by N matrix `A` to `beta` on the diagonals and `alpha` on the off diagonals using alternative indexing semantics.
+
+```javascript
+var Float64Array = require( '@stdlib/array/float64' );
+
+var A = new Float64Array( 4 );
+
+dlaset.ndarray( 'all', 2, 2, A, 2, 1, 0, 0.0, 1.0 );
+// A => [ 1.0, 0.0, 0.0, 1.0 ]
+```
+
+The function has the following parameters:
+
+- **uplo**: specifies whether to copy the upper or lower triangular/trapezoidal part of a matrix `A`.
+- **M**: number of rows in `A`.
+- **N**: number of columns in `A`.
+- **A**: input [`Float64Array`][mdn-float64array].
+- **sa1**: stride of the first dimension of `A`.
+- **sa2**: stride of the second dimension of `A`.
+- **oa**: starting index for `A`.
+- **alpha**: number to set on the off-diagonal elements.
+- **beta**: number to set on the diagonal elements.
+
+While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying buffer, the offset parameters support indexing semantics based on starting indices. For example,
+
+```javascript
+var Float64Array = require( '@stdlib/array/float64' );
+
+var A = new Float64Array( 5 );
+
+dlaset.ndarray( 'all', 2, 2, A, 2, 1, 1, 0.0, 1.0 );
+// A => [ 0.0, 1.0, 0.0, 0.0, 1.0 ]
+```
+
+
+
+
+
+
+
+## Notes
+
+- `dlaset()` corresponds to the [LAPACK][lapack] routine [`dlaset`][lapack-dlaset].
+
+
+
+
+
+
+
+## Examples
+
+
+
+```javascript
+var ndarray2array = require( '@stdlib/ndarray/base/to-array' );
+var uniform = require( '@stdlib/random/array/discrete-uniform' );
+var numel = require( '@stdlib/ndarray/base/numel' );
+var shape2strides = require( '@stdlib/ndarray/base/shape2strides' );
+var dlaset = require( '@stdlib/lapack/base/dlaset' );
+
+var shape = [ 5, 8 ];
+var order = 'row-major';
+var strides = shape2strides( shape, order );
+
+var N = numel( shape );
+
+var A = uniform( N, -10, 10, {
+ 'dtype': 'float64'
+});
+console.log( ndarray2array( A, shape, strides, 0, order ) );
+
+dlaset( order, 'all', shape[ 0 ], shape[ 1 ], A, strides[ 0 ], 2.0, 3.0 );
+console.log( ndarray2array( A, shape, strides, 0, order ) );
+```
+
+
+
+
+
+
+
+* * *
+
+
+
+## C APIs
+
+
+
+
+
+
+
+
+
+
+
+### Usage
+
+```c
+TODO
+```
+
+#### TODO
+
+TODO.
+
+```c
+TODO
+```
+
+TODO
+
+```c
+TODO
+```
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+### Examples
+
+```c
+TODO
+```
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+[lapack]: https://www.netlib.org/lapack/explore-html/
+
+[lapack-dlaset]: https://www.netlib.org/lapack/explore-html-3.6.1/d7/d43/group__aux_o_t_h_e_rauxiliary_ga89e332374c7cd87e5db54bfe21550bc3.html
+
+[mdn-float64array]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array
+
+[mdn-typed-array]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray
+
+
+
+
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/benchmark/benchmark.js b/lib/node_modules/@stdlib/lapack/base/dlaset/benchmark/benchmark.js
new file mode 100644
index 000000000000..5ba2c2acb558
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/benchmark/benchmark.js
@@ -0,0 +1,114 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 The Stdlib Authors.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+'use strict';
+
+// MODULES //
+
+var bench = require( '@stdlib/bench' );
+var uniform = require( '@stdlib/random/array/uniform' );
+var isnan = require( '@stdlib/math/base/assert/is-nan' );
+var pow = require( '@stdlib/math/base/special/pow' );
+var floor = require( '@stdlib/math/base/special/floor' );
+var pkg = require( './../package.json' ).name;
+var dlaset = require( './../lib/dlaset.js' );
+
+
+// VARIABLES //
+
+var LAYOUTS = [
+ 'row-major',
+ 'column-major'
+];
+
+
+// FUNCTIONS //
+
+/**
+* Creates a benchmark function.
+*
+* @private
+* @param {string} order - storage layout
+* @param {PositiveInteger} N - number of elements along each dimension
+* @returns {Function} benchmark function
+*/
+function createBenchmark( order, N ) {
+ var A;
+
+ A = uniform( N*N, -10.0, 10.0, {
+ 'dtype': 'float64'
+ });
+ return benchmark;
+
+ /**
+ * Benchmark function.
+ *
+ * @private
+ * @param {Benchmark} b - benchmark instance
+ */
+ function benchmark( b ) {
+ var z;
+ var i;
+
+ b.tic();
+ for ( i = 0; i < b.iterations; i++ ) {
+ z = dlaset( order, 'all', N, N, A, N, 1.0, 0.0 );
+ if ( isnan( z[ i%z.length ] ) ) {
+ b.fail( 'should not return NaN' );
+ }
+ }
+ b.toc();
+ if ( isnan( z[ i%z.length ] ) ) {
+ b.fail( 'should not return NaN' );
+ }
+ b.pass( 'benchmark finished' );
+ b.end();
+ }
+}
+
+
+// MAIN //
+
+/**
+* Main execution sequence.
+*
+* @private
+*/
+function main() {
+ var min;
+ var max;
+ var ord;
+ var N;
+ var f;
+ var i;
+ var k;
+
+ min = 1; // 10^min
+ max = 6; // 10^max
+
+ for ( k = 0; k < LAYOUTS.length; k++ ) {
+ ord = LAYOUTS[ k ];
+ for ( i = min; i <= max; i++ ) {
+ N = floor( pow( pow( 10, i ), 1.0/2.0 ) );
+ f = createBenchmark( ord, N );
+ bench( pkg+'::square_matrix:order='+ord+',size='+(N*N), f );
+ }
+ }
+}
+
+main();
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/lapack/base/dlaset/benchmark/benchmark.ndarray.js
new file mode 100644
index 000000000000..da6d9366ac79
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/benchmark/benchmark.ndarray.js
@@ -0,0 +1,124 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 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 isColumnMajor = require( '@stdlib/ndarray/base/assert/is-column-major-string' );
+var isnan = require( '@stdlib/math/base/assert/is-nan' );
+var pow = require( '@stdlib/math/base/special/pow' );
+var floor = require( '@stdlib/math/base/special/floor' );
+var pkg = require( './../package.json' ).name;
+var dlaswp = require( './../lib/ndarray.js' );
+
+
+// VARIABLES //
+
+var LAYOUTS = [
+ 'row-major',
+ 'column-major'
+];
+
+
+// FUNCTIONS //
+
+/**
+* Creates a benchmark function.
+*
+* @private
+* @param {string} order - storage layout
+* @param {PositiveInteger} N - number of elements along each dimension
+* @returns {Function} benchmark function
+*/
+function createBenchmark( order, N ) {
+ var sa1;
+ var sa2;
+ var A;
+
+ if ( isColumnMajor( order ) ) {
+ sa1 = 1;
+ sa2 = N;
+ } else { // order === 'row-major'
+ sa1 = N;
+ sa2 = 1;
+ }
+ A = uniform( N*N, -10.0, 10.0, {
+ 'dtype': 'float64'
+ });
+ return benchmark;
+
+ /**
+ * Benchmark function.
+ *
+ * @private
+ * @param {Benchmark} b - benchmark instance
+ */
+ function benchmark( b ) {
+ var z;
+ var i;
+
+ b.tic();
+ for ( i = 0; i < b.iterations; i++ ) {
+ z = dlaswp( 'all', N, N, A, sa1, sa2, 0, 1.0, 0.0 );
+ if ( isnan( z[ i%z.length ] ) ) {
+ b.fail( 'should not return NaN' );
+ }
+ }
+ b.toc();
+ if ( isnan( z[ i%z.length ] ) ) {
+ b.fail( 'should not return NaN' );
+ }
+ b.pass( 'benchmark finished' );
+ b.end();
+ }
+}
+
+
+// MAIN //
+
+/**
+* Main execution sequence.
+*
+* @private
+*/
+function main() {
+ var min;
+ var max;
+ var ord;
+ var N;
+ var f;
+ var i;
+ var k;
+
+ min = 1; // 10^min
+ max = 6; // 10^max
+
+ for ( k = 0; k < LAYOUTS.length; k++ ) {
+ ord = LAYOUTS[ k ];
+ for ( i = min; i <= max; i++ ) {
+ N = floor( pow( pow( 10, i ), 1.0/2.0 ) );
+ f = createBenchmark( ord, N );
+ bench( pkg+'::square_matrix:order='+ord+',size='+(N*N), f );
+ }
+ }
+}
+
+main();
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/docs/repl.txt b/lib/node_modules/@stdlib/lapack/base/dlaset/docs/repl.txt
new file mode 100644
index 000000000000..96add34336f0
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/docs/repl.txt
@@ -0,0 +1,100 @@
+
+{{alias}}( order, uplo, M, N, A, LDA, alpha, beta )
+ Initialises an M by N matrix `A` to `beta` on the diagonals and `alpha`
+ on the off diagonals.
+
+ Indexing is relative to the first index. To introduce an offset, use typed
+ array views.
+
+ Parameters
+ ----------
+ order: string
+ Row-major (C-style) or column-major (Fortran-style) order. Must be
+ either 'row-major' or 'column-major'.
+
+ uplo: string
+ Specifies whether to set the upper or lower triangular/trapezoidal part
+ of a matrix `A`.
+
+ M: integer
+ Number of rows in `A`.
+
+ N: integer
+ Number of columns in `A`.
+
+ A: Float64Array
+ Input matrix `A`.
+
+ LDA: integer
+ Stride of the first dimension of `A` (a.k.a., leading dimension of the
+ matrix `A`).
+
+ alpha: number
+ Number to set on the off-diagonal elements.
+
+ beta: number
+ Number to set on the diagonal elements.
+
+ Returns
+ -------
+ A: Float64Array
+ Output matrix.
+
+ Examples
+ --------
+ > var A = new {{alias:@stdlib/array/float64}}( 4 );
+ > {{alias}}( 'row-major', 'all', 2, 2, A, 2, 0.0, 1.0 )
+ [ 1.0, 0.0, 0.0, 1.0 ]
+
+
+{{alias}}.ndarray( uplo, M, N, A, sa1, sa2, oa, alpha, beta )
+ Initialises an M by N matrix `A` to `beta` on the diagonals and `alpha`
+ on the off diagonals using alternative indexing semantics.
+
+ While typed array views mandate a view offset based on the underlying
+ buffer, the offset parameters support indexing semantics based on starting
+ indices.
+
+ Parameters
+ ----------
+ uplo: string
+ Specifies whether to set the upper or lower triangular/trapezoidal part
+ of a matrix `A`.
+
+ M: integer
+ Number of rows in `A`.
+
+ N: integer
+ Number of columns in `A`.
+
+ A: Float64Array
+ Input matrix `A`.
+
+ sa1: integer
+ Stride of the first dimension of `A`.
+
+ sa2: integer
+ Stride of the second dimension of `A`.
+
+ oa: integer
+ Starting index for `A`.
+
+ alpha: number
+ Number to set on the off-diagonal elements.
+
+ beta: number
+ Number to set on the diagonal elements.
+
+ Returns
+ -------
+ A: Float64Array
+ Output matrix.
+
+ Examples
+ --------
+ > var A = new {{alias:@stdlib/array/float64}}( 4 );
+ > {{alias}}.ndarray( 'all', 2, 2, A, 2, 1, 0, 0.0, 1.0 )
+ [ 1.0, 0.0, 0.0, 1.0 ]
+
+ See Also
+ --------
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/docs/types/index.d.ts b/lib/node_modules/@stdlib/lapack/base/dlaset/docs/types/index.d.ts
new file mode 100644
index 000000000000..cb0f09766218
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/docs/types/index.d.ts
@@ -0,0 +1,111 @@
+/*
+* @license Apache-2.0
+*
+* Copyright (c) 2025 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 `dlaset`.
+*/
+interface Routine {
+ /**
+ * Initialises an M by N matrix `A` to `beta` on the diagonals and `alpha` on the off diagonals.
+ *
+ * @param order - storage layout of `A` and `B`
+ * @param uplo - specifies whether to set the upper or lower triangular/trapezoidal part of matrix `A`
+ * @param M - number of rows in matrix `A`
+ * @param N - number of columns in matrix `A`
+ * @param A - input matrix
+ * @param LDA - stride of the first dimension of `A` (a.k.a., leading dimension of the matrix `A`)
+ * @param alpha - number to set on off diagonal elements
+ * @param beta - number to set on diagonal elements
+ * @returns `A`
+ *
+ * @example
+ * var Float64Array = require( '@stdlib/array/float64' );
+ *
+ * var A = new Float64Array( 4 );
+ *
+ * dlaset( 'row-major', 'all', 2, 2, A, 2, 0.0, 1.0 );
+ * // A => [ 1.0, 0.0, 0.0, 1.0 ]
+ */
+ ( order: Layout, uplo: string, M: number, N: number, A: Float64Array, LDA: number, alpha: number, beta: number ): Float64Array;
+
+ /**
+ * Initialises an M by N matrix `A` to `beta` on the diagonals and `alpha` on the off diagonals using alternative indexing semantics.
+ *
+ * @param uplo - specifies whether to set the upper or lower triangular/trapezoidal part of matrix `A`
+ * @param M - number of rows in matrix `A`
+ * @param N - number of columns in matrix `A`
+ * @param A - input matrix
+ * @param strideA1 - stride of the first dimension of `A`
+ * @param strideA2 - stride of the second dimension of `A`
+ * @param offsetA - starting index for `A`
+ * @param alpha - number to set on off diagonal elements
+ * @param beta - number to set on diagonal elements
+ * @returns `A`
+ *
+ * @example
+ * var Float64Array = require( '@stdlib/array/float64' );
+ *
+ * var A = new Float64Array( 4 );
+ *
+ * dlaset.ndarray( 'all', 2, 2, A, 2, 1, 0, 0.0, 1.0 );
+ * // A => [ 1.0, 0.0, 0.0, 1.0 ]
+ */
+ ndarray( uplo: string, M: number, N: number, A: Float64Array, strideA1: number, strideA2: number, offsetA: number, alpha: number, beta: number ): Float64Array;
+}
+
+/**
+* Initialises an M by N matrix `A` to `beta` on the diagonals and `alpha` on the off diagonals.
+*
+* @param order - storage layout of `A` and `B`
+* @param uplo - specifies whether to set the upper or lower triangular/trapezoidal part of matrix `A`
+* @param M - number of rows in matrix `A`
+* @param N - number of columns in matrix `A`
+* @param A - input matrix
+* @param LDA - stride of the first dimension of `A` (a.k.a., leading dimension of the matrix `A`)
+* @param alpha - number to set on off diagonal elements
+* @param beta - number to set on diagonal elements
+* @returns `A`
+*
+* @example
+* var Float64Array = require( '@stdlib/array/float64' );
+*
+* var A = new Float64Array( 4 );
+*
+* dlaset( 'row-major', 'all', 2, 2, A, 2, 0.0, 1.0 );
+* // A => [ 1.0, 0.0, 0.0, 1.0 ]
+*
+* @example
+* var Float64Array = require( '@stdlib/array/float64' );
+*
+* var A = new Float64Array( 4 );
+*
+* dlaset.ndarray( 'all', 2, 2, A, 2, 1, 0, 0.0, 1.0 );
+* // A => [ 1.0, 0.0, 0.0, 1.0 ]
+*/
+declare var dlaset: Routine;
+
+
+// EXPORTS //
+
+export = dlaset;
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/docs/types/test.ts b/lib/node_modules/@stdlib/lapack/base/dlaset/docs/types/test.ts
new file mode 100644
index 000000000000..7a4749ada350
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/docs/types/test.ts
@@ -0,0 +1,302 @@
+/*
+* @license Apache-2.0
+*
+* Copyright (c) 2025 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 dlaset = require( './index' );
+
+
+// TESTS //
+
+// The function returns a Float64Array...
+{
+ const A = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] );
+
+ dlaset( 'row-major', 'all', 2, 2, A, 2, 1.0, 2.0 ); // $ExpectType Float64Array
+}
+
+// The compiler throws an error if the function is provided a first argument which is not a string...
+{
+ const A = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] );
+
+ dlaset( 5, 'all', 2, 2, A, 2, 2.0, 2.0 ); // $ExpectError
+ dlaset( true, 'all', 2, 2, A, 2, 2.0, 2.0 ); // $ExpectError
+ dlaset( false, 'all', 2, 2, A, 2, 2.0, 2.0 ); // $ExpectError
+ dlaset( null, 'all', 2, 2, A, 2, 2.0, 2.0 ); // $ExpectError
+ dlaset( void 0, 'all', 2, 2, A, 2, 2.0, 2.0 ); // $ExpectError
+ dlaset( [], 'all', 2, 2, A, 2, 2.0, 2.0 ); // $ExpectError
+ dlaset( {}, 'all', 2, 2, A, 2, 2.0, 2.0 ); // $ExpectError
+ dlaset( ( x: number ): number => x, 'all', 2, 2, A, 2, 2.0, 2.0 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a second argument which is not a string...
+{
+ const A = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] );
+
+ dlaset( 'row-major', 5, 2, 2, A, 2, 2.0, 2.0 ); // $ExpectError
+ dlaset( 'row-major', true, 2, 2, A, 2, 2.0, 2.0 ); // $ExpectError
+ dlaset( 'row-major', false, 2, 2, A, 2, 2.0, 2.0 ); // $ExpectError
+ dlaset( 'row-major', null, 2, 2, A, 2, 2.0, 2.0 ); // $ExpectError
+ dlaset( 'row-major', void 0, 2, 2, A, 2, 2.0, 2.0 ); // $ExpectError
+ dlaset( 'row-major', [], 2, 2, A, 2, 2.0, 2.0 ); // $ExpectError
+ dlaset( 'row-major', {}, 2, 2, A, 2, 2.0, 2.0 ); // $ExpectError
+ dlaset( 'row-major', ( x: number ): number => x, 2, 2, A, 2, 2.0, 2.0 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a third argument which is not a number...
+{
+ const A = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] );
+
+ dlaset( 'row-major', 'all', '5', 2, A, 2, 2.0, 2.0 ); // $ExpectError
+ dlaset( 'row-major', 'all', true, 2, A, 2, 2.0, 2.0 ); // $ExpectError
+ dlaset( 'row-major', 'all', false, 2, A, 2, 2.0, 2.0 ); // $ExpectError
+ dlaset( 'row-major', 'all', null, 2, A, 2, 2.0, 2.0 ); // $ExpectError
+ dlaset( 'row-major', 'all', void 0, 2, A, 2, 2.0, 2.0 ); // $ExpectError
+ dlaset( 'row-major', 'all', [], 2, A, 2, 2.0, 2.0 ); // $ExpectError
+ dlaset( 'row-major', 'all', {}, 2, A, 2, 2.0, 2.0 ); // $ExpectError
+ dlaset( 'row-major', 'all', ( x: number ): number => x, 2, A, 2, 2.0, 2.0 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a fourth argument which is not a number...
+{
+ const A = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] );
+
+ dlaset( 'row-major', 'all', 2, '5', A, 2, 2.0, 2.0 ); // $ExpectError
+ dlaset( 'row-major', 'all', 2, true, A, 2, 2.0, 2.0 ); // $ExpectError
+ dlaset( 'row-major', 'all', 2, false, A, 2, 2.0, 2.0 ); // $ExpectError
+ dlaset( 'row-major', 'all', 2, null, A, 2, 2.0, 2.0 ); // $ExpectError
+ dlaset( 'row-major', 'all', 2, void 0, A, 2, 2.0, 2.0 ); // $ExpectError
+ dlaset( 'row-major', 'all', 2, [], A, 2, 2.0, 2.0 ); // $ExpectError
+ dlaset( 'row-major', 'all', 2, {}, A, 2, 2.0, 2.0 ); // $ExpectError
+ dlaset( 'row-major', 'all', 2, ( x: number ): number => x, A, 2, 2.0, 2.0 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a fifth argument which is not a Float64Array...
+{
+ dlaset( 'row-major', 'all', 2, 2, '5', 2, 2.0, 2.0 ); // $ExpectError
+ dlaset( 'row-major', 'all', 2, 2, 5, 2, 2.0, 2.0 ); // $ExpectError
+ dlaset( 'row-major', 'all', 2, 2, true, 2, 2.0, 2.0 ); // $ExpectError
+ dlaset( 'row-major', 'all', 2, 2, false, 2, 2.0, 2.0 ); // $ExpectError
+ dlaset( 'row-major', 'all', 2, 2, null, 2, 2.0, 2.0 ); // $ExpectError
+ dlaset( 'row-major', 'all', 2, 2, void 0, 2, 2.0, 2.0 ); // $ExpectError
+ dlaset( 'row-major', 'all', 2, 2, [], 2, 2.0, 2.0 ); // $ExpectError
+ dlaset( 'row-major', 'all', 2, 2, {}, 2, 2.0, 2.0 ); // $ExpectError
+ dlaset( 'row-major', 'all', 2, 2, ( x: number ): number => x, 2, 2.0, 2.0 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a sixth argument which is not a number...
+{
+ const A = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] );
+
+ dlaset( 'row-major', 'all', 2, 2, A, '5', 2.0, 2.0 ); // $ExpectError
+ dlaset( 'row-major', 'all', 2, 2, A, true, 2.0, 2.0 ); // $ExpectError
+ dlaset( 'row-major', 'all', 2, 2, A, false, 2.0, 2.0 ); // $ExpectError
+ dlaset( 'row-major', 'all', 2, 2, A, null, 2.0, 2.0 ); // $ExpectError
+ dlaset( 'row-major', 'all', 2, 2, A, void 0, 2.0, 2.0 ); // $ExpectError
+ dlaset( 'row-major', 'all', 2, 2, A, [], 2.0, 2.0 ); // $ExpectError
+ dlaset( 'row-major', 'all', 2, 2, A, {}, 2.0, 2.0 ); // $ExpectError
+ dlaset( 'row-major', 'all', 2, 2, A, ( x: number ): number => x, 2.0, 2.0 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a seventh argument which is not a number...
+{
+ const A = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] );
+
+ dlaset( 'row-major', 'all', 2, 2, A, 2, '5', 2 ); // $ExpectError
+ dlaset( 'row-major', 'all', 2, 2, A, 2, true, 2 ); // $ExpectError
+ dlaset( 'row-major', 'all', 2, 2, A, 2, false, 2 ); // $ExpectError
+ dlaset( 'row-major', 'all', 2, 2, A, 2, null, 2 ); // $ExpectError
+ dlaset( 'row-major', 'all', 2, 2, A, 2, void 0, 2 ); // $ExpectError
+ dlaset( 'row-major', 'all', 2, 2, A, 2, [], 2 ); // $ExpectError
+ dlaset( 'row-major', 'all', 2, 2, A, 2, {}, 2 ); // $ExpectError
+ dlaset( 'row-major', 'all', 2, 2, A, 2, ( x: number ): number => x, 2 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided an eighth argument which is not a number...
+{
+ const A = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] );
+
+ dlaset( 'row-major', 'all', 2, 2, A, 2, 2.0, '5' ); // $ExpectError
+ dlaset( 'row-major', 'all', 2, 2, A, 2, 2.0, true ); // $ExpectError
+ dlaset( 'row-major', 'all', 2, 2, A, 2, 2.0, false ); // $ExpectError
+ dlaset( 'row-major', 'all', 2, 2, A, 2, 2.0, null ); // $ExpectError
+ dlaset( 'row-major', 'all', 2, 2, A, 2, 2.0, void 0 ); // $ExpectError
+ dlaset( 'row-major', 'all', 2, 2, A, 2, 2.0, [] ); // $ExpectError
+ dlaset( 'row-major', 'all', 2, 2, A, 2, 2.0, {} ); // $ExpectError
+ dlaset( 'row-major', 'all', 2, 2, A, 2, 2.0, ( x: number ): number => x ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided an unsupported number of arguments...
+{
+ const A = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] );
+
+ dlaset(); // $ExpectError
+ dlaset( 'row-major' ); // $ExpectError
+ dlaset( 'row-major', 'all' ); // $ExpectError
+ dlaset( 'row-major', 'all', 2 ); // $ExpectError
+ dlaset( 'row-major', 'all', 2, 2 ); // $ExpectError
+ dlaset( 'row-major', 'all', 2, 2, A ); // $ExpectError
+ dlaset( 'row-major', 'all', 2, 2, A, 2 ); // $ExpectError
+ dlaset( 'row-major', 'all', 2, 2, A, 2, 2.0 ); // $ExpectError
+ dlaset( 'row-major', 'all', 2, 2, A, 2, 2.0, 2.0, 10.0 ); // $ExpectError
+}
+
+// Attached to main export is an `ndarray` method which returns a Float64Array...
+{
+ const A = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] );
+
+ dlaset.ndarray( 'all', 2, 2, A, 2, 1, 0, 2.0, 2.0 ); // $ExpectType Float64Array
+}
+
+// The compiler throws an error if the function is provided a first argument which is not a string...
+{
+ const A = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] );
+
+ dlaset.ndarray( 5, 2, 2, A, 2, 1, 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( true, 2, 2, A, 2, 1, 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( false, 2, 2, A, 2, 1, 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( null, 2, 2, A, 2, 1, 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( void 0, 2, 2, A, 2, 1, 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( [], 2, 2, A, 2, 1, 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( {}, 2, 2, A, 2, 1, 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( ( x: number ): number => x, 2, 2, A, 2, 1, 0, 2.0, 2.0 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a second argument which is not a number...
+{
+ const A = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] );
+
+ dlaset.ndarray( 'all', '5', 2, A, 2, 1, 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', true, 2, A, 2, 1, 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', false, 2, A, 2, 1, 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', null, 2, A, 2, 1, 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', void 0, 2, A, 2, 1, 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', [], 2, A, 2, 1, 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', {}, 2, A, 2, 1, 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', ( x: number ): number => x, 2, A, 2, 1, 0, 2.0, 2.0 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a third argument which is not a number...
+{
+ const A = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] );
+
+ dlaset.ndarray( 'all', 2, '5', A, 2, 1, 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, true, A, 2, 1, 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, false, A, 2, 1, 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, null, A, 2, 1, 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, void 0, A, 2, 1, 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, [], A, 2, 1, 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, {}, A, 2, 1, 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, ( x: number ): number => x, A, 2, 1, 0, 2.0, 2.0 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a fourth argument which is not a Float64Array...
+{
+ dlaset.ndarray( 'all', 2, 2, '5', 2, 1, 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, 5, 2, 1, 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, true, 2, 1, 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, false, 2, 1, 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, null, 2, 1, 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, void 0, 2, 1, 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, [], 2, 1, 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, {}, 2, 1, 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, ( x: number ): number => x, 2, 1, 0, 2.0, 2.0 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a fifth argument which is not a number...
+{
+ const A = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] );
+
+ dlaset.ndarray( 'all', 2, 2, A, '5', 1, 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, A, true, 1, 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, A, false, 1, 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, A, null, 1, 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, A, void 0, 1, 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, A, [], 1, 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, A, {}, 1, 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, A, ( x: number ): number => x, 1, 0, 2.0, 2.0 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a sixth argument which is not a number...
+{
+ const A = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] );
+
+ dlaset.ndarray( 'all', 2, 2, A, 2, '5', 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, A, 2, true, 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, A, 2, false, 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, A, 2, null, 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, A, 2, void 0, 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, A, 2, [], 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, A, 2, {}, 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, A, 2, ( x: number ): number => x, 0, 2.0, 2.0 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a seventh argument which is not a number...
+{
+ const A = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] );
+
+ dlaset.ndarray( 'all', 2, 2, A, 2, 1, '5', 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, A, 2, 1, true, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, A, 2, 1, false, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, A, 2, 1, null, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, A, 2, 1, void 0, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, A, 2, 1, [], 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, A, 2, 1, {}, 2.0, 2.0 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, A, 2, 1, ( x: number ): number => x, 2.0, 2.0 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided an eighth argument which is not a number...
+{
+ const A = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] );
+
+ dlaset.ndarray( 'all', 2, 2, A, 2, 1, 0, '5', 2 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, A, 2, 1, 0, false, 2 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, A, 2, 1, 0, null, 2 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, A, 2, 1, 0, void 0, 2 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, A, 2, 1, 0, [], 2 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, A, 2, 1, 0, {}, 2 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, A, 2, 1, 0, ( x: number ): number => x, 2 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a ninth argument which is not a number...
+{
+ const A = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] );
+
+ dlaset.ndarray( 'all', 2, 2, A, 2, 1, 0, 2.0, '5' ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, A, 2, 1, 0, 2.0, true ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, A, 2, 1, 0, 2.0, false ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, A, 2, 1, 0, 2.0, null ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, A, 2, 1, 0, 2.0, void 0 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, A, 2, 1, 0, 2.0, [] ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, A, 2, 1, 0, 2.0, {} ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, A, 2, 1, 0, 2.0, ( x: number ): number => x ); // $ExpectError
+}
+
+// The compiler throws an error if the `ndarray` method is provided an unsupported number of arguments...
+{
+ const A = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] );
+
+ dlaset.ndarray(); // $ExpectError
+ dlaset.ndarray( 'all' ); // $ExpectError
+ dlaset.ndarray( 'all', 2 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, A ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, A, 2 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, A, 2, 1 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, A, 2, 1, 0, 1 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, A, 2, 1, 0, 2.0, 2.0, 1 ); // $ExpectError
+ dlaset.ndarray( 'all', 2, 2, A, 2, 1, 0, 2.0, 2.0, 1, 0, 10 ); // $ExpectError
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/examples/index.js b/lib/node_modules/@stdlib/lapack/base/dlaset/examples/index.js
new file mode 100644
index 000000000000..d1fe70db9809
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/examples/index.js
@@ -0,0 +1,39 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 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 ndarray2array = require( '@stdlib/ndarray/base/to-array' );
+var uniform = require( '@stdlib/random/array/discrete-uniform' );
+var numel = require( '@stdlib/ndarray/base/numel' );
+var shape2strides = require( '@stdlib/ndarray/base/shape2strides' );
+var dlaset = require( './../lib' );
+
+var shape = [ 5, 8 ];
+var order = 'row-major';
+var strides = shape2strides( shape, order );
+
+var N = numel( shape );
+
+var A = uniform( N, -10, 10, {
+ 'dtype': 'float64'
+});
+console.log( ndarray2array( A, shape, strides, 0, order ) );
+
+dlaset( order, 'all', shape[ 0 ], shape[ 1 ], A, strides[ 0 ], 2.0, 3.0 );
+console.log( ndarray2array( A, shape, strides, 0, order ) );
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/lib/base.js b/lib/node_modules/@stdlib/lapack/base/dlaset/lib/base.js
new file mode 100644
index 000000000000..3bea37e86573
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/lib/base.js
@@ -0,0 +1,237 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 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 isRowMajor = require( '@stdlib/ndarray/base/assert/is-row-major' );
+var loopOrder = require( '@stdlib/ndarray/base/nullary-loop-interchange-order' );
+var min = require( '@stdlib/math/base/special/fast/min' );
+
+
+// FUNCTIONS //
+
+/**
+* Initialises an M by N matrix `A` to `beta` on the diagonals and `alpha` on the off diagonals, setting all of matrix `A`.
+*
+* @private
+* @param {NonNegativeInteger} M - number of rows in matrix `A`
+* @param {NonNegativeInteger} N - number of columns in matrix `A`
+* @param {Float64Array} A - input matrix
+* @param {integer} strideA1 - stride of the first dimension of `A`
+* @param {integer} strideA2 - stride of the second dimension of `A`
+* @param {NonNegativeInteger} offsetA - starting index for `A`
+* @param {number} alpha - number to set on off diagonal elements
+* @param {number} beta - number to set on diagonal elements
+* @returns {Float64Array} `A`
+*
+* @example
+* var Float64Array = require( '@stdlib/array/float64' );
+*
+* var A = new Float64Array( 4 );
+*
+* setAll( 2, 2, A, 2, 1, 0, 0.0, 1.0 );
+* // A => [ 1.0, 0.0, 0.0, 1.0 ]
+*/
+function setAll( M, N, A, strideA1, strideA2, offsetA, alpha, beta ) {
+ var da0;
+ var da1;
+ var sh;
+ var S0;
+ var S1;
+ var sa;
+ var ia;
+ var i0;
+ var i1;
+ var o;
+
+ // Resolve the loop interchange order:
+ o = loopOrder( [ M, N ], [ strideA1, strideA2 ] );
+ sh = o.sh;
+ sa = o.sx;
+
+ // Extract loop variables for purposes of loop interchange: dimensions and loop offset (pointer) increments...
+ S0 = sh[ 0 ];
+ S1 = sh[ 1 ];
+ da0 = sa[ 0 ];
+ da1 = sa[ 1 ] - ( S0*sa[0] );
+
+ // Set the pointers to the first indexed elements in the respective matrices...
+ ia = offsetA;
+
+ // Iterate over the matrix dimensions...
+ for ( i1 = 0; i1 < S1; i1++ ) {
+ for ( i0 = 0; i0 < S0; i0++ ) {
+ A[ ia ] = alpha;
+ ia += da0;
+ }
+ ia += da1;
+ }
+
+ ia = offsetA;
+ for ( i1 = 0; i1 < min( M, N ); i1++ ) {
+ A[ ia ] = beta;
+ ia += strideA1 + strideA2;
+ }
+ return A;
+}
+
+/**
+* Initialises an M by N matrix `A` to `beta` on the diagonals and `alpha` on the off diagonals, setting upper triangular elements of `A`.
+*
+* @private
+* @param {NonNegativeInteger} M - number of rows in matrix `A`
+* @param {NonNegativeInteger} N - number of columns in matrix `A`
+* @param {Float64Array} A - input matrix
+* @param {integer} strideA1 - stride of the first dimension of `A`
+* @param {integer} strideA2 - stride of the second dimension of `A`
+* @param {NonNegativeInteger} offsetA - starting index for `A`
+* @param {number} alpha - number to set on off diagonal elements
+* @param {number} beta - number to set on diagonal elements
+* @returns {Float64Array} `A`
+*
+* @example
+* var Float64Array = require( '@stdlib/array/float64' );
+*
+* var A = new Float64Array( 4 );
+*
+* setUpper( 2, 2, A, 2, 1, 0, 1.0, 2.0 );
+* // A => [ 2.0, 1.0, 0.0, 2.0 ]
+*/
+function setUpper( M, N, A, strideA1, strideA2, offsetA, alpha, beta ) {
+ var ia;
+ var i0;
+ var i1;
+
+ ia = offsetA;
+ if ( isRowMajor( [ strideA1, strideA2 ] ) ) {
+ for ( i1 = 0; i1 < M; i1++ ) {
+ for ( i0 = i1; i0 < N; i0++ ) {
+ A[ ia+(i0*strideA2) ] = alpha;
+ }
+ ia += strideA1;
+ }
+ } else {
+ for ( i1 = 0; i1 < N; i1++ ) {
+ for ( i0 = 0; i0 <= min( i1, M-1 ); i0++ ) {
+ A[ ia+(i0*strideA1) ] = alpha;
+ }
+ ia += strideA2;
+ }
+ }
+
+ ia = offsetA;
+ for ( i1 = 0; i1 < min( M, N ); i1++ ) {
+ A[ ia ] = beta;
+ ia += strideA1 + strideA2;
+ }
+ return A;
+}
+
+/**
+* Initialises an M by N matrix `A` to `beta` on the diagonals and `alpha` on the off diagonals, setting upper triangular elements of `A`.
+*
+* @private
+* @param {NonNegativeInteger} M - number of rows in matrix `A`
+* @param {NonNegativeInteger} N - number of columns in matrix `A`
+* @param {Float64Array} A - input matrix
+* @param {integer} strideA1 - stride of the first dimension of `A`
+* @param {integer} strideA2 - stride of the second dimension of `A`
+* @param {NonNegativeInteger} offsetA - starting index for `A`
+* @param {number} alpha - number to set on off diagonal elements
+* @param {number} beta - number to set on diagonal elements
+* @returns {Float64Array} `A`
+*
+* @example
+* var Float64Array = require( '@stdlib/array/float64' );
+*
+* var A = new Float64Array( 4 );
+*
+* setLower( 2, 2, A, 2, 1, 0, 1.0, 2.0 );
+* // A => [ 2.0, 0.0, 1.0, 2.0 ]
+*/
+function setLower( M, N, A, strideA1, strideA2, offsetA, alpha, beta ) {
+ var ia;
+ var i0;
+ var i1;
+
+ ia = offsetA;
+ if ( isRowMajor( [ strideA1, strideA2 ] ) ) {
+ for ( i1 = 0; i1 < M; i1++ ) {
+ for ( i0 = 0; i0 <= min( i1, N-1 ); i0++ ) {
+ A[ ia+(i0*strideA2) ] = alpha;
+ }
+ ia += strideA1;
+ }
+ } else {
+ for ( i1 = 0; i1 < N; i1++ ) {
+ for ( i0 = i1; i0 < M; i0++ ) {
+ A[ ia+(i0*strideA1) ] = alpha;
+ }
+ ia += strideA2;
+ }
+ }
+ ia = offsetA;
+ for ( i1 = 0; i1 < min( M, N ); i1++ ) {
+ A[ ia ] = beta;
+ ia += strideA1 + strideA2;
+ }
+ return A;
+}
+
+
+// MAIN //
+
+/**
+* Initialises an M by N matrix `A` to `beta` on the diagonals and `alpha` on the off diagonals.
+*
+* @private
+* @param {string} uplo - specifies whether to set the upper or lower triangular/trapezoidal part of matrix `A`
+* @param {NonNegativeInteger} M - number of rows in matrix `A`
+* @param {NonNegativeInteger} N - number of columns in matrix `A`
+* @param {Float64Array} A - input matrix
+* @param {integer} strideA1 - stride of the first dimension of `A`
+* @param {integer} strideA2 - stride of the second dimension of `A`
+* @param {NonNegativeInteger} offsetA - starting index for `A`
+* @param {number} alpha - number to set on off diagonal elements
+* @param {number} beta - number to set on diagonal elements
+* @returns {Float64Array} `A`
+*
+* @example
+* var Float64Array = require( '@stdlib/array/float64' );
+*
+* var A = new Float64Array( 4 );
+*
+* dlaset( 'all', 2, 2, A, 2, 1, 0, 0.0, 1.0 );
+* // A => [ 1.0, 0.0, 0.0, 1.0 ]
+*/
+function dlaset( uplo, M, N, A, strideA1, strideA2, offsetA, alpha, beta ) {
+ if ( uplo === 'upper' ) {
+ return setUpper( M, N, A, strideA1, strideA2, offsetA, alpha, beta );
+ }
+ if ( uplo === 'lower' ) {
+ return setLower( M, N, A, strideA1, strideA2, offsetA, alpha, beta );
+ }
+ return setAll( M, N, A, strideA1, strideA2, offsetA, alpha, beta );
+}
+
+
+// EXPORTS //
+
+module.exports = dlaset;
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/lib/dlaset.js b/lib/node_modules/@stdlib/lapack/base/dlaset/lib/dlaset.js
new file mode 100644
index 000000000000..ca01634da766
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/lib/dlaset.js
@@ -0,0 +1,76 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 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 isLayout = require( '@stdlib/blas/base/assert/is-layout' );
+var isColumnMajor = require( '@stdlib/ndarray/base/assert/is-column-major-string' );
+var format = require( '@stdlib/string/format' );
+var base = require( './base.js' );
+
+
+// MAIN //
+
+/**
+* Initialises an M by N matrix `A` to `beta` on the diagonals and `alpha` on the off diagonals.
+*
+* @param {string} order - storage layout of `A` and `B`
+* @param {string} uplo - specifies whether to set the upper or lower triangular/trapezoidal part of matrix `A`
+* @param {NonNegativeInteger} M - number of rows in matrix `A`
+* @param {NonNegativeInteger} N - number of columns in matrix `A`
+* @param {Float64Array} A - input matrix
+* @param {PositiveInteger} LDA - stride of the first dimension of `A` (a.k.a., leading dimension of the matrix `A`)
+* @param {number} alpha - number to set on off diagonal elements
+* @param {number} beta - number to set on diagonal elements
+* @throws {TypeError} first argument must be a valid order
+* @throws {RangeError} sixth argument must be greater than or equal to `N`
+* @returns {Float64Array} `A`
+*
+* @example
+* var Float64Array = require( '@stdlib/array/float64' );
+*
+* var A = new Float64Array( 4 );
+*
+* dlaset( 'row-major', 'all', 2, 2, A, 2, 0.0, 1.0 );
+* // A => [ 1.0, 0.0, 0.0, 1.0 ]
+*/
+function dlaset( order, uplo, M, N, A, LDA, alpha, beta ) {
+ var sa1;
+ var sa2;
+ if ( !isLayout( order ) ) {
+ throw new TypeError( format( 'invalid argument. First argument must be a valid order. Value: `%s`.', order ) );
+ }
+ if ( isColumnMajor( order ) ) {
+ sa1 = 1;
+ sa2 = LDA;
+ } else { // order === 'row-major'
+ if ( LDA < N ) {
+ throw new RangeError( format( 'invalid argument. Sixth argument must be greater than or equal to %d. Value: `%d`.', N, LDA ) );
+ }
+ sa1 = LDA;
+ sa2 = 1;
+ }
+ return base( uplo, M, N, A, sa1, sa2, 0, alpha, beta );
+}
+
+
+// EXPORTS //
+
+module.exports = dlaset;
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/lib/index.js b/lib/node_modules/@stdlib/lapack/base/dlaset/lib/index.js
new file mode 100644
index 000000000000..6527e32b45a6
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/lib/index.js
@@ -0,0 +1,59 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 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';
+
+/**
+* LAPACK routine to initialize an M by N matrix `A` to `beta` on the diagonals and `alpha` on the off diagonals.
+*
+* @module @stdlib/lapack/base/dlaset
+*
+* @example
+* var Float64Array = require( '@stdlib/array/float64' );
+* var dlaset = require( '@stdlib/lapack/base/dlaset' );
+*
+* var A = new Float64Array( 4 );
+*
+* dlaset( 'row-major', 'all', 2, 2, A, 2, 0.0, 1.0 );
+* // A => [ 1.0, 0.0, 0.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 dlaset;
+var tmp = tryRequire( join( __dirname, './native.js' ) );
+if ( isError( tmp ) ) {
+ dlaset = main;
+} else {
+ dlaset = tmp;
+}
+
+
+// EXPORTS //
+
+module.exports = dlaset;
+
+// exports: { "ndarray": "dlaset.ndarray" }
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/lib/main.js b/lib/node_modules/@stdlib/lapack/base/dlaset/lib/main.js
new file mode 100644
index 000000000000..78b09ba862e7
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/lib/main.js
@@ -0,0 +1,35 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 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 dlaset = require( './dlaset.js' );
+var ndarray = require( './ndarray.js' );
+
+
+// MAIN //
+
+setReadOnly( dlaset, 'ndarray', ndarray );
+
+
+// EXPORTS //
+
+module.exports = dlaset;
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/lib/ndarray.js b/lib/node_modules/@stdlib/lapack/base/dlaset/lib/ndarray.js
new file mode 100644
index 000000000000..946554759061
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/lib/ndarray.js
@@ -0,0 +1,58 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 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 base = require( './base.js' );
+
+
+// MAIN //
+
+/**
+* Initialises an M by N matrix `A` to `beta` on the diagonals and `alpha` on the off diagonals using alternative indexing semantics.
+*
+* @private
+* @param {string} uplo - specifies whether to set the upper or lower triangular/trapezoidal part of matrix `A`
+* @param {NonNegativeInteger} M - number of rows in matrix `A`
+* @param {NonNegativeInteger} N - number of columns in matrix `A`
+* @param {Float64Array} A - input matrix
+* @param {integer} strideA1 - stride of the first dimension of `A`
+* @param {integer} strideA2 - stride of the second dimension of `A`
+* @param {NonNegativeInteger} offsetA - starting index for `A`
+* @param {number} alpha - number to set on off diagonal elements
+* @param {number} beta - number to set on diagonal elements
+* @returns {Float64Array} `A`
+*
+* @example
+* var Float64Array = require( '@stdlib/array/float64' );
+*
+* var A = new Float64Array( 4 );
+*
+* dlaset( 'all', 2, 2, A, 2, 1, 0, 0.0, 1.0 );
+* // A => [ 1.0, 0.0, 0.0, 1.0 ]
+*/
+function dlaset( uplo, M, N, A, strideA1, strideA2, offsetA, alpha, beta ) {
+ return base( uplo, M, N, A, strideA1, strideA2, offsetA, alpha, beta );
+}
+
+
+// EXPORTS //
+
+module.exports = dlaset;
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/package.json b/lib/node_modules/@stdlib/lapack/base/dlaset/package.json
new file mode 100644
index 000000000000..dd03d0781dc0
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/package.json
@@ -0,0 +1,72 @@
+{
+ "name": "@stdlib/lapack/base/dlaset",
+ "version": "0.0.0",
+ "description": "Initialises an M by N matrix `A` to `beta` on the diagonals and `alpha` on the off diagonals.",
+ "license": "Apache-2.0",
+ "author": {
+ "name": "The Stdlib Authors",
+ "url": "https://github.com/stdlib-js/stdlib/graphs/contributors"
+ },
+ "contributors": [
+ {
+ "name": "The Stdlib Authors",
+ "url": "https://github.com/stdlib-js/stdlib/graphs/contributors"
+ }
+ ],
+ "main": "./lib",
+ "directories": {
+ "benchmark": "./benchmark",
+ "doc": "./docs",
+ "example": "./examples",
+ "lib": "./lib",
+ "test": "./test"
+ },
+ "types": "./docs/types",
+ "scripts": {},
+ "homepage": "https://github.com/stdlib-js/stdlib",
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/stdlib-js/stdlib.git"
+ },
+ "bugs": {
+ "url": "https://github.com/stdlib-js/stdlib/issues"
+ },
+ "dependencies": {},
+ "devDependencies": {},
+ "engines": {
+ "node": ">=0.10.0",
+ "npm": ">2.7.0"
+ },
+ "os": [
+ "aix",
+ "darwin",
+ "freebsd",
+ "linux",
+ "macos",
+ "openbsd",
+ "sunos",
+ "win32",
+ "windows"
+ ],
+ "keywords": [
+ "stdlib",
+ "stdmath",
+ "mathematics",
+ "math",
+ "lapack",
+ "dlaset",
+ "initialize",
+ "set",
+ "exchange",
+ "permute",
+ "permutedims",
+ "linear",
+ "algebra",
+ "subroutines",
+ "array",
+ "ndarray",
+ "float64",
+ "double",
+ "float64array"
+ ]
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/all_col_major.json b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/all_col_major.json
new file mode 100644
index 000000000000..da9bd15e7357
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/all_col_major.json
@@ -0,0 +1,29 @@
+{
+ "order": "column-major",
+ "uplo": "all",
+
+ "M": 3,
+ "N": 3,
+
+ "A": [ 1.0, 4.0, 7.0, 2.0, 5.0, 8.0, 3.0, 6.0, 9.0 ],
+ "A_mat": [
+ [ 1.0, 2.0, 3.0 ],
+ [ 4.0, 5.0, 6.0 ],
+ [ 7.0, 8.0, 9.0 ]
+ ],
+
+ "strideA1": 1,
+ "strideA2": 3,
+ "offsetA": 0,
+ "LDA": 3,
+
+ "alpha": 2.0,
+ "beta": 3.0,
+
+ "A_out": [ 3.0, 2.0, 2.0, 2.0, 3.0, 2.0, 2.0, 2.0, 3.0 ],
+ "A_out_mat": [
+ [ 3.0, 2.0, 2.0 ],
+ [ 2.0, 3.0, 2.0 ],
+ [ 2.0, 2.0, 3.0 ]
+ ]
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/all_row_major.json b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/all_row_major.json
new file mode 100644
index 000000000000..88ebeb1aca7a
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/all_row_major.json
@@ -0,0 +1,29 @@
+{
+ "order": "row-major",
+ "uplo": "all",
+
+ "M": 3,
+ "N": 3,
+
+ "A": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ],
+ "A_mat": [
+ [ 1.0, 2.0, 3.0 ],
+ [ 4.0, 5.0, 6.0 ],
+ [ 7.0, 8.0, 9.0 ]
+ ],
+
+ "strideA1": 3,
+ "strideA2": 1,
+ "offsetA": 0,
+ "LDA": 3,
+
+ "alpha": 2.0,
+ "beta": 3.0,
+
+ "A_out": [ 3.0, 2.0, 2.0, 2.0, 3.0, 2.0, 2.0, 2.0, 3.0 ],
+ "A_out_mat": [
+ [ 3.0, 2.0, 2.0 ],
+ [ 2.0, 3.0, 2.0 ],
+ [ 2.0, 2.0, 3.0 ]
+ ]
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/large_strides/all_col_major.json b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/large_strides/all_col_major.json
new file mode 100644
index 000000000000..7f86f5259875
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/large_strides/all_col_major.json
@@ -0,0 +1,62 @@
+{
+ "order": "column-major",
+ "uplo": "all",
+ "M": 3,
+ "N": 3,
+ "A": [
+ 1,
+ 9999,
+ 4,
+ 9999,
+ 7,
+ 9999,
+ 2,
+ 9999,
+ 5,
+ 9999,
+ 8,
+ 9999,
+ 3,
+ 9999,
+ 6,
+ 9999,
+ 9,
+ 9999
+ ],
+ "A_mat": [
+ [ 1.0, 2.0, 3.0 ],
+ [ 4.0, 5.0, 6.0 ],
+ [ 7.0, 8.0, 9.0 ]
+ ],
+ "strideA1": 2,
+ "strideA2": 6,
+ "offsetA": 0,
+ "LDA": 3,
+ "alpha": 2,
+ "beta": 3,
+ "A_out": [
+ 3,
+ 9999,
+ 2,
+ 9999,
+ 2,
+ 9999,
+ 2,
+ 9999,
+ 3,
+ 9999,
+ 2,
+ 9999,
+ 2,
+ 9999,
+ 2,
+ 9999,
+ 3,
+ 9999
+ ],
+ "A_out_mat": [
+ [ 3.0, 2.0, 2.0 ],
+ [ 2.0, 3.0, 2.0 ],
+ [ 2.0, 2.0, 3.0 ]
+ ]
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/large_strides/all_row_major.json b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/large_strides/all_row_major.json
new file mode 100644
index 000000000000..32ff0c758275
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/large_strides/all_row_major.json
@@ -0,0 +1,62 @@
+{
+ "order": "row-major",
+ "uplo": "all",
+ "M": 3,
+ "N": 3,
+ "A": [
+ 1,
+ 9999,
+ 2,
+ 9999,
+ 3,
+ 9999,
+ 4,
+ 9999,
+ 5,
+ 9999,
+ 6,
+ 9999,
+ 7,
+ 9999,
+ 8,
+ 9999,
+ 9,
+ 9999
+ ],
+ "A_mat": [
+ [ 1.0, 2.0, 3.0 ],
+ [ 4.0, 5.0, 6.0 ],
+ [ 7.0, 8.0, 9.0 ]
+ ],
+ "strideA1": 6,
+ "strideA2": 2,
+ "offsetA": 0,
+ "LDA": 3,
+ "alpha": 2,
+ "beta": 3,
+ "A_out": [
+ 3,
+ 9999,
+ 2,
+ 9999,
+ 2,
+ 9999,
+ 2,
+ 9999,
+ 3,
+ 9999,
+ 2,
+ 9999,
+ 2,
+ 9999,
+ 2,
+ 9999,
+ 3,
+ 9999
+ ],
+ "A_out_mat": [
+ [ 3.0, 2.0, 2.0 ],
+ [ 2.0, 3.0, 2.0 ],
+ [ 2.0, 2.0, 3.0 ]
+ ]
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/large_strides/lower_col_major.json b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/large_strides/lower_col_major.json
new file mode 100644
index 000000000000..1ca81d015e8b
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/large_strides/lower_col_major.json
@@ -0,0 +1,62 @@
+{
+ "order": "column-major",
+ "uplo": "lower",
+ "M": 3,
+ "N": 3,
+ "A": [
+ 1,
+ 9999,
+ 4,
+ 9999,
+ 7,
+ 9999,
+ 2,
+ 9999,
+ 5,
+ 9999,
+ 8,
+ 9999,
+ 3,
+ 9999,
+ 6,
+ 9999,
+ 9,
+ 9999
+ ],
+ "A_mat": [
+ [ 1.0, 2.0, 3.0 ],
+ [ 4.0, 5.0, 6.0 ],
+ [ 7.0, 8.0, 9.0 ]
+ ],
+ "strideA1": 2,
+ "strideA2": 6,
+ "offsetA": 0,
+ "LDA": 3,
+ "alpha": 2,
+ "beta": 3,
+ "A_out": [
+ 3,
+ 9999,
+ 2,
+ 9999,
+ 2,
+ 9999,
+ 2,
+ 9999,
+ 3,
+ 9999,
+ 2,
+ 9999,
+ 3,
+ 9999,
+ 6,
+ 9999,
+ 3,
+ 9999
+ ],
+ "A_out_mat": [
+ [ 3.0, 2.0, 3.0 ],
+ [ 2.0, 3.0, 6.0 ],
+ [ 2.0, 2.0, 3.0 ]
+ ]
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/large_strides/lower_row_major.json b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/large_strides/lower_row_major.json
new file mode 100644
index 000000000000..e28ee3709072
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/large_strides/lower_row_major.json
@@ -0,0 +1,62 @@
+{
+ "order": "row-major",
+ "uplo": "lower",
+ "M": 3,
+ "N": 3,
+ "A": [
+ 1,
+ 9999,
+ 2,
+ 9999,
+ 3,
+ 9999,
+ 4,
+ 9999,
+ 5,
+ 9999,
+ 6,
+ 9999,
+ 7,
+ 9999,
+ 8,
+ 9999,
+ 9,
+ 9999
+ ],
+ "A_mat": [
+ [ 1.0, 2.0, 3.0 ],
+ [ 4.0, 5.0, 6.0 ],
+ [ 7.0, 8.0, 9.0 ]
+ ],
+ "strideA1": 6,
+ "strideA2": 2,
+ "offsetA": 0,
+ "LDA": 3,
+ "alpha": 2,
+ "beta": 3,
+ "A_out": [
+ 3,
+ 9999,
+ 2,
+ 9999,
+ 3,
+ 9999,
+ 2,
+ 9999,
+ 3,
+ 9999,
+ 6,
+ 9999,
+ 2,
+ 9999,
+ 2,
+ 9999,
+ 3,
+ 9999
+ ],
+ "A_out_mat": [
+ [ 3.0, 2.0, 3.0 ],
+ [ 2.0, 3.0, 6.0 ],
+ [ 2.0, 2.0, 3.0 ]
+ ]
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/large_strides/upper_col_major.json b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/large_strides/upper_col_major.json
new file mode 100644
index 000000000000..a49b6265fd00
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/large_strides/upper_col_major.json
@@ -0,0 +1,62 @@
+{
+ "order": "column-major",
+ "uplo": "upper",
+ "M": 3,
+ "N": 3,
+ "A": [
+ 1,
+ 9999,
+ 4,
+ 9999,
+ 7,
+ 9999,
+ 2,
+ 9999,
+ 5,
+ 9999,
+ 8,
+ 9999,
+ 3,
+ 9999,
+ 6,
+ 9999,
+ 9,
+ 9999
+ ],
+ "A_mat": [
+ [ 1.0, 2.0, 3.0 ],
+ [ 4.0, 5.0, 6.0 ],
+ [ 7.0, 8.0, 9.0 ]
+ ],
+ "strideA1": 2,
+ "strideA2": 6,
+ "offsetA": 0,
+ "LDA": 3,
+ "alpha": 2,
+ "beta": 3,
+ "A_out": [
+ 3,
+ 9999,
+ 4,
+ 9999,
+ 7,
+ 9999,
+ 2,
+ 9999,
+ 3,
+ 9999,
+ 8,
+ 9999,
+ 2,
+ 9999,
+ 2,
+ 9999,
+ 3,
+ 9999
+ ],
+ "A_out_mat": [
+ [ 3.0, 2.0, 2.0 ],
+ [ 4.0, 3.0, 2.0 ],
+ [ 7.0, 8.0, 3.0 ]
+ ]
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/large_strides/upper_row_major.json b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/large_strides/upper_row_major.json
new file mode 100644
index 000000000000..ee3f596ecbd2
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/large_strides/upper_row_major.json
@@ -0,0 +1,62 @@
+{
+ "order": "row-major",
+ "uplo": "upper",
+ "M": 3,
+ "N": 3,
+ "A": [
+ 1,
+ 9999,
+ 2,
+ 9999,
+ 3,
+ 9999,
+ 4,
+ 9999,
+ 5,
+ 9999,
+ 6,
+ 9999,
+ 7,
+ 9999,
+ 8,
+ 9999,
+ 9,
+ 9999
+ ],
+ "A_mat": [
+ [ 1.0, 2.0, 3.0 ],
+ [ 4.0, 5.0, 6.0 ],
+ [ 7.0, 8.0, 9.0 ]
+ ],
+ "strideA1": 6,
+ "strideA2": 2,
+ "offsetA": 0,
+ "LDA": 3,
+ "alpha": 2,
+ "beta": 3,
+ "A_out": [
+ 3,
+ 9999,
+ 2,
+ 9999,
+ 2,
+ 9999,
+ 4,
+ 9999,
+ 3,
+ 9999,
+ 2,
+ 9999,
+ 7,
+ 9999,
+ 8,
+ 9999,
+ 3,
+ 9999
+ ],
+ "A_out_mat": [
+ [ 3.0, 2.0, 2.0 ],
+ [ 4.0, 3.0, 2.0 ],
+ [ 7.0, 8.0, 3.0 ]
+ ]
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/lower_col_major.json b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/lower_col_major.json
new file mode 100644
index 000000000000..7b5320815a72
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/lower_col_major.json
@@ -0,0 +1,29 @@
+{
+ "order": "column-major",
+ "uplo": "lower",
+
+ "M": 3,
+ "N": 3,
+
+ "A": [ 1.0, 4.0, 7.0, 2.0, 5.0, 8.0, 3.0, 6.0, 9.0 ],
+ "A_mat": [
+ [ 1.0, 2.0, 3.0 ],
+ [ 4.0, 5.0, 6.0 ],
+ [ 7.0, 8.0, 9.0 ]
+ ],
+
+ "strideA1": 1,
+ "strideA2": 3,
+ "offsetA": 0,
+ "LDA": 3,
+
+ "alpha": 2.0,
+ "beta": 3.0,
+
+ "A_out": [ 3.0, 2.0, 2.0, 2.0, 3.0, 2.0, 3.0, 6.0, 3.0 ],
+ "A_out_mat": [
+ [ 3.0, 2.0, 3.0 ],
+ [ 2.0, 3.0, 6.0 ],
+ [ 2.0, 2.0, 3.0 ]
+ ]
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/lower_row_major.json b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/lower_row_major.json
new file mode 100644
index 000000000000..a3ff01bbf3f0
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/lower_row_major.json
@@ -0,0 +1,29 @@
+{
+ "order": "row-major",
+ "uplo": "lower",
+
+ "M": 3,
+ "N": 3,
+
+ "A": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ],
+ "A_mat": [
+ [ 1.0, 2.0, 3.0 ],
+ [ 4.0, 5.0, 6.0 ],
+ [ 7.0, 8.0, 9.0 ]
+ ],
+
+ "strideA1": 3,
+ "strideA2": 1,
+ "offsetA": 0,
+ "LDA": 3,
+
+ "alpha": 2.0,
+ "beta": 3.0,
+
+ "A_out": [ 3.0, 2.0, 3.0, 2.0, 3.0, 6.0, 2.0, 2.0, 3.0 ],
+ "A_out_mat": [
+ [ 3.0, 2.0, 3.0 ],
+ [ 2.0, 3.0, 6.0 ],
+ [ 2.0, 2.0, 3.0 ]
+ ]
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/mixed_strides/all_col_major.json b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/mixed_strides/all_col_major.json
new file mode 100644
index 000000000000..207b151cc180
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/mixed_strides/all_col_major.json
@@ -0,0 +1,44 @@
+{
+ "order": "column-major",
+ "uplo": "all",
+ "M": 3,
+ "N": 3,
+ "A": [
+ 3,
+ 6,
+ 9,
+ 2,
+ 5,
+ 8,
+ 1,
+ 4,
+ 7
+ ],
+ "A_mat": [
+ [ 1.0, 2.0, 3.0 ],
+ [ 4.0, 5.0, 6.0 ],
+ [ 7.0, 8.0, 9.0 ]
+ ],
+ "strideA1": 1,
+ "strideA2": -3,
+ "offsetA": 6,
+ "LDA": 3,
+ "alpha": 2,
+ "beta": 3,
+ "A_out": [
+ 2,
+ 2,
+ 3,
+ 2,
+ 3,
+ 2,
+ 3,
+ 2,
+ 2
+ ],
+ "A_out_mat": [
+ [ 3.0, 2.0, 2.0 ],
+ [ 2.0, 3.0, 2.0 ],
+ [ 2.0, 2.0, 3.0 ]
+ ]
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/mixed_strides/all_row_major.json b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/mixed_strides/all_row_major.json
new file mode 100644
index 000000000000..60bb9db83081
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/mixed_strides/all_row_major.json
@@ -0,0 +1,44 @@
+{
+ "order": "row-major",
+ "uplo": "all",
+ "M": 3,
+ "N": 3,
+ "A": [
+ 7,
+ 8,
+ 9,
+ 4,
+ 5,
+ 6,
+ 1,
+ 2,
+ 3
+ ],
+ "A_mat": [
+ [ 1.0, 2.0, 3.0 ],
+ [ 4.0, 5.0, 6.0 ],
+ [ 7.0, 8.0, 9.0 ]
+ ],
+ "strideA1": -3,
+ "strideA2": 1,
+ "offsetA": 6,
+ "LDA": 3,
+ "alpha": 2,
+ "beta": 3,
+ "A_out": [
+ 2,
+ 2,
+ 3,
+ 2,
+ 3,
+ 2,
+ 3,
+ 2,
+ 2
+ ],
+ "A_out_mat": [
+ [ 3.0, 2.0, 2.0 ],
+ [ 2.0, 3.0, 2.0 ],
+ [ 2.0, 2.0, 3.0 ]
+ ]
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/mixed_strides/lower_col_major.json b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/mixed_strides/lower_col_major.json
new file mode 100644
index 000000000000..381ac37e99ce
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/mixed_strides/lower_col_major.json
@@ -0,0 +1,44 @@
+{
+ "order": "column-major",
+ "uplo": "lower",
+ "M": 3,
+ "N": 3,
+ "A": [
+ 3,
+ 6,
+ 9,
+ 2,
+ 5,
+ 8,
+ 1,
+ 4,
+ 7
+ ],
+ "A_mat": [
+ [ 1.0, 2.0, 3.0 ],
+ [ 4.0, 5.0, 6.0 ],
+ [ 7.0, 8.0, 9.0 ]
+ ],
+ "strideA1": 1,
+ "strideA2": -3,
+ "offsetA": 6,
+ "LDA": 3,
+ "alpha": 2,
+ "beta": 3,
+ "A_out": [
+ 3,
+ 6,
+ 3,
+ 2,
+ 3,
+ 2,
+ 3,
+ 2,
+ 2
+ ],
+ "A_out_mat": [
+ [ 3.0, 2.0, 3.0 ],
+ [ 2.0, 3.0, 6.0 ],
+ [ 2.0, 2.0, 3.0 ]
+ ]
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/mixed_strides/lower_row_major.json b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/mixed_strides/lower_row_major.json
new file mode 100644
index 000000000000..ba93497dc10e
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/mixed_strides/lower_row_major.json
@@ -0,0 +1,44 @@
+{
+ "order": "row-major",
+ "uplo": "lower",
+ "M": 3,
+ "N": 3,
+ "A": [
+ 7,
+ 8,
+ 9,
+ 4,
+ 5,
+ 6,
+ 1,
+ 2,
+ 3
+ ],
+ "A_mat": [
+ [ 1.0, 2.0, 3.0 ],
+ [ 4.0, 5.0, 6.0 ],
+ [ 7.0, 8.0, 9.0 ]
+ ],
+ "strideA1": -3,
+ "strideA2": 1,
+ "offsetA": 6,
+ "LDA": 3,
+ "alpha": 2,
+ "beta": 3,
+ "A_out": [
+ 2,
+ 2,
+ 3,
+ 2,
+ 3,
+ 6,
+ 3,
+ 2,
+ 3
+ ],
+ "A_out_mat": [
+ [ 3.0, 2.0, 3.0 ],
+ [ 2.0, 3.0, 6.0 ],
+ [ 2.0, 2.0, 3.0 ]
+ ]
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/mixed_strides/upper_col_major.json b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/mixed_strides/upper_col_major.json
new file mode 100644
index 000000000000..57d490b24f68
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/mixed_strides/upper_col_major.json
@@ -0,0 +1,44 @@
+{
+ "order": "column-major",
+ "uplo": "upper",
+ "M": 3,
+ "N": 3,
+ "A": [
+ 3,
+ 6,
+ 9,
+ 2,
+ 5,
+ 8,
+ 1,
+ 4,
+ 7
+ ],
+ "A_mat": [
+ [ 1.0, 2.0, 3.0 ],
+ [ 4.0, 5.0, 6.0 ],
+ [ 7.0, 8.0, 9.0 ]
+ ],
+ "strideA1": 1,
+ "strideA2": -3,
+ "offsetA": 6,
+ "LDA": 3,
+ "alpha": 2,
+ "beta": 3,
+ "A_out": [
+ 2,
+ 2,
+ 3,
+ 2,
+ 3,
+ 8,
+ 3,
+ 4,
+ 7
+ ],
+ "A_out_mat": [
+ [ 3.0, 2.0, 2.0 ],
+ [ 4.0, 3.0, 2.0 ],
+ [ 7.0, 8.0, 3.0 ]
+ ]
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/mixed_strides/upper_row_major.json b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/mixed_strides/upper_row_major.json
new file mode 100644
index 000000000000..12d941dab552
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/mixed_strides/upper_row_major.json
@@ -0,0 +1,44 @@
+{
+ "order": "row-major",
+ "uplo": "upper",
+ "M": 3,
+ "N": 3,
+ "A": [
+ 7,
+ 8,
+ 9,
+ 4,
+ 5,
+ 6,
+ 1,
+ 2,
+ 3
+ ],
+ "A_mat": [
+ [ 1.0, 2.0, 3.0 ],
+ [ 4.0, 5.0, 6.0 ],
+ [ 7.0, 8.0, 9.0 ]
+ ],
+ "strideA1": -3,
+ "strideA2": 1,
+ "offsetA": 6,
+ "LDA": 3,
+ "alpha": 2,
+ "beta": 3,
+ "A_out": [
+ 7,
+ 8,
+ 3,
+ 4,
+ 3,
+ 2,
+ 3,
+ 2,
+ 2
+ ],
+ "A_out_mat": [
+ [ 3.0, 2.0, 2.0 ],
+ [ 4.0, 3.0, 2.0 ],
+ [ 7.0, 8.0, 3.0 ]
+ ]
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/negative_strides/all_col_major.json b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/negative_strides/all_col_major.json
new file mode 100644
index 000000000000..49c1e40c7ff7
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/negative_strides/all_col_major.json
@@ -0,0 +1,44 @@
+{
+ "order": "column-major",
+ "uplo": "all",
+ "M": 3,
+ "N": 3,
+ "A": [
+ 9,
+ 6,
+ 3,
+ 8,
+ 5,
+ 2,
+ 7,
+ 4,
+ 1
+ ],
+ "A_mat": [
+ [ 1.0, 2.0, 3.0 ],
+ [ 4.0, 5.0, 6.0 ],
+ [ 7.0, 8.0, 9.0 ]
+ ],
+ "strideA1": -1,
+ "strideA2": -3,
+ "offsetA": 8,
+ "LDA": 3,
+ "alpha": 2,
+ "beta": 3,
+ "A_out": [
+ 3,
+ 2,
+ 2,
+ 2,
+ 3,
+ 2,
+ 2,
+ 2,
+ 3
+ ],
+ "A_out_mat": [
+ [ 3.0, 2.0, 2.0 ],
+ [ 2.0, 3.0, 2.0 ],
+ [ 2.0, 2.0, 3.0 ]
+ ]
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/negative_strides/all_row_major.json b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/negative_strides/all_row_major.json
new file mode 100644
index 000000000000..450f0ed563c8
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/negative_strides/all_row_major.json
@@ -0,0 +1,44 @@
+{
+ "order": "row-major",
+ "uplo": "all",
+ "M": 3,
+ "N": 3,
+ "A": [
+ 9,
+ 8,
+ 7,
+ 6,
+ 5,
+ 4,
+ 3,
+ 2,
+ 1
+ ],
+ "A_mat": [
+ [ 1.0, 2.0, 3.0 ],
+ [ 4.0, 5.0, 6.0 ],
+ [ 7.0, 8.0, 9.0 ]
+ ],
+ "strideA1": -3,
+ "strideA2": -1,
+ "offsetA": 8,
+ "LDA": 3,
+ "alpha": 2,
+ "beta": 3,
+ "A_out": [
+ 3,
+ 2,
+ 2,
+ 2,
+ 3,
+ 2,
+ 2,
+ 2,
+ 3
+ ],
+ "A_out_mat": [
+ [ 3.0, 2.0, 2.0 ],
+ [ 2.0, 3.0, 2.0 ],
+ [ 2.0, 2.0, 3.0 ]
+ ]
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/negative_strides/lower_col_major.json b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/negative_strides/lower_col_major.json
new file mode 100644
index 000000000000..717e939433ad
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/negative_strides/lower_col_major.json
@@ -0,0 +1,44 @@
+{
+ "order": "column-major",
+ "uplo": "lower",
+ "M": 3,
+ "N": 3,
+ "A": [
+ 9,
+ 6,
+ 3,
+ 8,
+ 5,
+ 2,
+ 7,
+ 4,
+ 1
+ ],
+ "A_mat": [
+ [ 1.0, 2.0, 3.0 ],
+ [ 4.0, 5.0, 6.0 ],
+ [ 7.0, 8.0, 9.0 ]
+ ],
+ "strideA1": -1,
+ "strideA2": -3,
+ "offsetA": 8,
+ "LDA": 3,
+ "alpha": 2,
+ "beta": 3,
+ "A_out": [
+ 3,
+ 6,
+ 3,
+ 2,
+ 3,
+ 2,
+ 2,
+ 2,
+ 3
+ ],
+ "A_out_mat": [
+ [ 3.0, 2.0, 3.0 ],
+ [ 2.0, 3.0, 6.0 ],
+ [ 2.0, 2.0, 3.0 ]
+ ]
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/negative_strides/lower_row_major.json b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/negative_strides/lower_row_major.json
new file mode 100644
index 000000000000..ee89f39439d0
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/negative_strides/lower_row_major.json
@@ -0,0 +1,44 @@
+{
+ "order": "row-major",
+ "uplo": "lower",
+ "M": 3,
+ "N": 3,
+ "A": [
+ 9,
+ 8,
+ 7,
+ 6,
+ 5,
+ 4,
+ 3,
+ 2,
+ 1
+ ],
+ "A_mat": [
+ [ 1.0, 2.0, 3.0 ],
+ [ 4.0, 5.0, 6.0 ],
+ [ 7.0, 8.0, 9.0 ]
+ ],
+ "strideA1": -3,
+ "strideA2": -1,
+ "offsetA": 8,
+ "LDA": 3,
+ "alpha": 2,
+ "beta": 3,
+ "A_out": [
+ 3,
+ 2,
+ 2,
+ 6,
+ 3,
+ 2,
+ 3,
+ 2,
+ 3
+ ],
+ "A_out_mat": [
+ [ 3.0, 2.0, 3.0 ],
+ [ 2.0, 3.0, 6.0 ],
+ [ 2.0, 2.0, 3.0 ]
+ ]
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/negative_strides/upper_col_major.json b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/negative_strides/upper_col_major.json
new file mode 100644
index 000000000000..542967cebdac
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/negative_strides/upper_col_major.json
@@ -0,0 +1,44 @@
+{
+ "order": "column-major",
+ "uplo": "upper",
+ "M": 3,
+ "N": 3,
+ "A": [
+ 9,
+ 6,
+ 3,
+ 8,
+ 5,
+ 2,
+ 7,
+ 4,
+ 1
+ ],
+ "A_mat": [
+ [ 1.0, 2.0, 3.0 ],
+ [ 4.0, 5.0, 6.0 ],
+ [ 7.0, 8.0, 9.0 ]
+ ],
+ "strideA1": -1,
+ "strideA2": -3,
+ "offsetA": 8,
+ "LDA": 3,
+ "alpha": 2,
+ "beta": 3,
+ "A_out": [
+ 3,
+ 2,
+ 2,
+ 8,
+ 3,
+ 2,
+ 7,
+ 4,
+ 3
+ ],
+ "A_out_mat": [
+ [ 3.0, 2.0, 2.0 ],
+ [ 4.0, 3.0, 2.0 ],
+ [ 7.0, 8.0, 3.0 ]
+ ]
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/negative_strides/upper_row_major.json b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/negative_strides/upper_row_major.json
new file mode 100644
index 000000000000..68c1cb329343
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/negative_strides/upper_row_major.json
@@ -0,0 +1,44 @@
+{
+ "order": "row-major",
+ "uplo": "upper",
+ "M": 3,
+ "N": 3,
+ "A": [
+ 9,
+ 8,
+ 7,
+ 6,
+ 5,
+ 4,
+ 3,
+ 2,
+ 1
+ ],
+ "A_mat": [
+ [ 1.0, 2.0, 3.0 ],
+ [ 4.0, 5.0, 6.0 ],
+ [ 7.0, 8.0, 9.0 ]
+ ],
+ "strideA1": -3,
+ "strideA2": -1,
+ "offsetA": 8,
+ "LDA": 3,
+ "alpha": 2,
+ "beta": 3,
+ "A_out": [
+ 3,
+ 8,
+ 7,
+ 2,
+ 3,
+ 4,
+ 2,
+ 2,
+ 3
+ ],
+ "A_out_mat": [
+ [ 3.0, 2.0, 2.0 ],
+ [ 4.0, 3.0, 2.0 ],
+ [ 7.0, 8.0, 3.0 ]
+ ]
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/offsets/all_col_major.json b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/offsets/all_col_major.json
new file mode 100644
index 000000000000..f4f959e78f3f
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/offsets/all_col_major.json
@@ -0,0 +1,46 @@
+{
+ "order": "column-major",
+ "uplo": "all",
+ "M": 3,
+ "N": 3,
+ "A": [
+ 9999,
+ 1,
+ 4,
+ 7,
+ 2,
+ 5,
+ 8,
+ 3,
+ 6,
+ 9
+ ],
+ "A_mat": [
+ [ 1.0, 2.0, 3.0 ],
+ [ 4.0, 5.0, 6.0 ],
+ [ 7.0, 8.0, 9.0 ]
+ ],
+ "strideA1": 1,
+ "strideA2": 3,
+ "offsetA": 1,
+ "LDA": 3,
+ "alpha": 2,
+ "beta": 3,
+ "A_out": [
+ 9999,
+ 3,
+ 2,
+ 2,
+ 2,
+ 3,
+ 2,
+ 2,
+ 2,
+ 3
+ ],
+ "A_out_mat": [
+ [ 3.0, 2.0, 2.0 ],
+ [ 2.0, 3.0, 2.0 ],
+ [ 2.0, 2.0, 3.0 ]
+ ]
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/offsets/all_row_major.json b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/offsets/all_row_major.json
new file mode 100644
index 000000000000..17857942ff1d
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/offsets/all_row_major.json
@@ -0,0 +1,46 @@
+{
+ "order": "row-major",
+ "uplo": "all",
+ "M": 3,
+ "N": 3,
+ "A": [
+ 9999,
+ 1,
+ 2,
+ 3,
+ 4,
+ 5,
+ 6,
+ 7,
+ 8,
+ 9
+ ],
+ "A_mat": [
+ [ 1.0, 2.0, 3.0 ],
+ [ 4.0, 5.0, 6.0 ],
+ [ 7.0, 8.0, 9.0 ]
+ ],
+ "strideA1": 3,
+ "strideA2": 1,
+ "offsetA": 1,
+ "LDA": 3,
+ "alpha": 2,
+ "beta": 3,
+ "A_out": [
+ 9999,
+ 3,
+ 2,
+ 2,
+ 2,
+ 3,
+ 2,
+ 2,
+ 2,
+ 3
+ ],
+ "A_out_mat": [
+ [ 3.0, 2.0, 2.0 ],
+ [ 2.0, 3.0, 2.0 ],
+ [ 2.0, 2.0, 3.0 ]
+ ]
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/offsets/lower_col_major.json b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/offsets/lower_col_major.json
new file mode 100644
index 000000000000..384910013f12
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/offsets/lower_col_major.json
@@ -0,0 +1,46 @@
+{
+ "order": "column-major",
+ "uplo": "lower",
+ "M": 3,
+ "N": 3,
+ "A": [
+ 9999,
+ 1,
+ 4,
+ 7,
+ 2,
+ 5,
+ 8,
+ 3,
+ 6,
+ 9
+ ],
+ "A_mat": [
+ [ 1.0, 2.0, 3.0 ],
+ [ 4.0, 5.0, 6.0 ],
+ [ 7.0, 8.0, 9.0 ]
+ ],
+ "strideA1": 1,
+ "strideA2": 3,
+ "offsetA": 1,
+ "LDA": 3,
+ "alpha": 2,
+ "beta": 3,
+ "A_out": [
+ 9999,
+ 3,
+ 2,
+ 2,
+ 2,
+ 3,
+ 2,
+ 3,
+ 6,
+ 3
+ ],
+ "A_out_mat": [
+ [ 3.0, 2.0, 3.0 ],
+ [ 2.0, 3.0, 6.0 ],
+ [ 2.0, 2.0, 3.0 ]
+ ]
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/offsets/lower_row_major.json b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/offsets/lower_row_major.json
new file mode 100644
index 000000000000..418a629c08f0
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/offsets/lower_row_major.json
@@ -0,0 +1,46 @@
+{
+ "order": "row-major",
+ "uplo": "lower",
+ "M": 3,
+ "N": 3,
+ "A": [
+ 9999,
+ 1,
+ 2,
+ 3,
+ 4,
+ 5,
+ 6,
+ 7,
+ 8,
+ 9
+ ],
+ "A_mat": [
+ [ 1.0, 2.0, 3.0 ],
+ [ 4.0, 5.0, 6.0 ],
+ [ 7.0, 8.0, 9.0 ]
+ ],
+ "strideA1": 3,
+ "strideA2": 1,
+ "offsetA": 1,
+ "LDA": 3,
+ "alpha": 2,
+ "beta": 3,
+ "A_out": [
+ 9999,
+ 3,
+ 2,
+ 3,
+ 2,
+ 3,
+ 6,
+ 2,
+ 2,
+ 3
+ ],
+ "A_out_mat": [
+ [ 3.0, 2.0, 3.0 ],
+ [ 2.0, 3.0, 6.0 ],
+ [ 2.0, 2.0, 3.0 ]
+ ]
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/offsets/upper_col_major.json b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/offsets/upper_col_major.json
new file mode 100644
index 000000000000..b40f4485b2bd
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/offsets/upper_col_major.json
@@ -0,0 +1,46 @@
+{
+ "order": "column-major",
+ "uplo": "upper",
+ "M": 3,
+ "N": 3,
+ "A": [
+ 9999,
+ 1,
+ 4,
+ 7,
+ 2,
+ 5,
+ 8,
+ 3,
+ 6,
+ 9
+ ],
+ "A_mat": [
+ [ 1.0, 2.0, 3.0 ],
+ [ 4.0, 5.0, 6.0 ],
+ [ 7.0, 8.0, 9.0 ]
+ ],
+ "strideA1": 1,
+ "strideA2": 3,
+ "offsetA": 1,
+ "LDA": 3,
+ "alpha": 2,
+ "beta": 3,
+ "A_out": [
+ 9999,
+ 3,
+ 4,
+ 7,
+ 2,
+ 3,
+ 8,
+ 2,
+ 2,
+ 3
+ ],
+ "A_out_mat": [
+ [ 3.0, 2.0, 2.0 ],
+ [ 4.0, 3.0, 2.0 ],
+ [ 7.0, 8.0, 3.0 ]
+ ]
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/offsets/upper_row_major.json b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/offsets/upper_row_major.json
new file mode 100644
index 000000000000..92bb2b325ec9
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/offsets/upper_row_major.json
@@ -0,0 +1,46 @@
+{
+ "order": "row-major",
+ "uplo": "upper",
+ "M": 3,
+ "N": 3,
+ "A": [
+ 9999,
+ 1,
+ 2,
+ 3,
+ 4,
+ 5,
+ 6,
+ 7,
+ 8,
+ 9
+ ],
+ "A_mat": [
+ [ 1.0, 2.0, 3.0 ],
+ [ 4.0, 5.0, 6.0 ],
+ [ 7.0, 8.0, 9.0 ]
+ ],
+ "strideA1": 3,
+ "strideA2": 1,
+ "offsetA": 1,
+ "LDA": 3,
+ "alpha": 2,
+ "beta": 3,
+ "A_out": [
+ 9999,
+ 3,
+ 2,
+ 2,
+ 4,
+ 3,
+ 2,
+ 7,
+ 8,
+ 3
+ ],
+ "A_out_mat": [
+ [ 3.0, 2.0, 2.0 ],
+ [ 4.0, 3.0, 2.0 ],
+ [ 7.0, 8.0, 3.0 ]
+ ]
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/upper_col_major.json b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/upper_col_major.json
new file mode 100644
index 000000000000..c524bfdb6307
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/upper_col_major.json
@@ -0,0 +1,29 @@
+{
+ "order": "column-major",
+ "uplo": "upper",
+
+ "M": 3,
+ "N": 3,
+
+ "A": [ 1.0, 4.0, 7.0, 2.0, 5.0, 8.0, 3.0, 6.0, 9.0 ],
+ "A_mat": [
+ [ 1.0, 2.0, 3.0 ],
+ [ 4.0, 5.0, 6.0 ],
+ [ 7.0, 8.0, 9.0 ]
+ ],
+
+ "strideA1": 1,
+ "strideA2": 3,
+ "offsetA": 0,
+ "LDA": 3,
+
+ "alpha": 2.0,
+ "beta": 3.0,
+
+ "A_out": [ 3.0, 4.0, 7.0, 2.0, 3.0, 8.0, 2.0, 2.0, 3.0 ],
+ "A_out_mat": [
+ [ 3.0, 2.0, 2.0 ],
+ [ 4.0, 3.0, 2.0 ],
+ [ 7.0, 8.0, 3.0 ]
+ ]
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/upper_row_major.json b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/upper_row_major.json
new file mode 100644
index 000000000000..478c9e24ca99
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/test/fixtures/upper_row_major.json
@@ -0,0 +1,29 @@
+{
+ "order": "row-major",
+ "uplo": "upper",
+
+ "M": 3,
+ "N": 3,
+
+ "A": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ],
+ "A_mat": [
+ [ 1.0, 2.0, 3.0 ],
+ [ 4.0, 5.0, 6.0 ],
+ [ 7.0, 8.0, 9.0 ]
+ ],
+
+ "strideA1": 3,
+ "strideA2": 1,
+ "offsetA": 0,
+ "LDA": 3,
+
+ "alpha": 2.0,
+ "beta": 3.0,
+
+ "A_out": [ 3.0, 2.0, 2.0, 4.0, 3.0, 2.0, 7.0, 8.0, 3.0 ],
+ "A_out_mat": [
+ [ 3.0, 2.0, 2.0 ],
+ [ 4.0, 3.0, 2.0 ],
+ [ 7.0, 8.0, 3.0 ]
+ ]
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/test/test.dlaset.js b/lib/node_modules/@stdlib/lapack/base/dlaset/test/test.dlaset.js
new file mode 100644
index 000000000000..7f0c7e0bef89
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/test/test.dlaset.js
@@ -0,0 +1,197 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 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 tape = require( 'tape' );
+var Float64Array = require( '@stdlib/array/float64' );
+var dlaset = require( './../lib/dlaset.js' );
+
+
+// FIXTURES //
+
+var ALL_ROW_MAJOR = require( './fixtures/all_row_major.json' );
+var ALL_COL_MAJOR = require( './fixtures/all_col_major.json' );
+var LOWER_ROW_MAJOR = require( './fixtures/lower_row_major.json' );
+var LOWER_COL_MAJOR = require( './fixtures/lower_col_major.json' );
+var UPPER_ROW_MAJOR = require( './fixtures/upper_row_major.json' );
+var UPPER_COL_MAJOR = require( './fixtures/upper_col_major.json' );
+
+
+// TESTS //
+
+tape( 'main export is a function', function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof dlaset, 'function', 'main export is a function' );
+ t.end();
+});
+
+tape( 'the function has an arity of 8', function test( t ) {
+ t.strictEqual( dlaset.length, 8, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function throws an error if provided an invalid first argument', function test( t ) {
+ var values;
+ var A;
+ var i;
+
+ values = [
+ 'foo',
+ 'bar',
+ 'beep',
+ 'boop'
+ ];
+
+ A = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] );
+
+ 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() {
+ dlaset( value, 'all', 2, 2, A, 2, 2.0, 3.0 );
+ };
+ }
+});
+
+tape( 'the function throws an error if provided an invalid sixth argument (row-major)', function test( t ) {
+ var values;
+ var A;
+ var i;
+
+ values = [
+ 0,
+ 1
+ ];
+
+ A = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] );
+
+ 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() {
+ dlaset( 'row-major', 'all', 2, 2, A, value, 2.0, 3.0 );
+ };
+ }
+});
+
+tape( 'the function returns expected value when setting all values (row-major)', function test( t ) {
+ var expectedOut;
+ var actualOut;
+ var data;
+ var A;
+
+ data = ALL_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ actualOut = dlaset( data.order, data.uplo, data.M, data.N, A, data.LDA, data.alpha, data.beta );
+ expectedOut = new Float64Array( data.A_out );
+
+ t.deepEqual( actualOut, expectedOut, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns expected value when setting all values (column-major)', function test( t ) {
+ var expectedOut;
+ var actualOut;
+ var data;
+ var A;
+
+ data = ALL_COL_MAJOR;
+
+ A = new Float64Array( data.A );
+ actualOut = dlaset( data.order, data.uplo, data.M, data.N, A, data.LDA, data.alpha, data.beta );
+ expectedOut = new Float64Array( data.A_out );
+
+ t.deepEqual( actualOut, expectedOut, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns expected value when setting lower triangular values (row-major)', function test( t ) {
+ var expectedOut;
+ var actualOut;
+ var data;
+ var A;
+
+ data = LOWER_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ actualOut = dlaset( data.order, data.uplo, data.M, data.N, A, data.LDA, data.alpha, data.beta );
+ expectedOut = new Float64Array( data.A_out );
+
+ t.deepEqual( actualOut, expectedOut, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns expected value when setting lower triangular values (column-major)', function test( t ) {
+ var expectedOut;
+ var actualOut;
+ var data;
+ var A;
+
+ data = LOWER_COL_MAJOR;
+
+ A = new Float64Array( data.A );
+ actualOut = dlaset( data.order, data.uplo, data.M, data.N, A, data.LDA, data.alpha, data.beta );
+ expectedOut = new Float64Array( data.A_out );
+
+ t.deepEqual( actualOut, expectedOut, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns expected value when setting upper triangular values (row-major)', function test( t ) {
+ var expectedOut;
+ var actualOut;
+ var data;
+ var A;
+
+ data = UPPER_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ actualOut = dlaset( data.order, data.uplo, data.M, data.N, A, data.LDA, data.alpha, data.beta );
+ expectedOut = new Float64Array( data.A_out );
+
+ t.deepEqual( actualOut, expectedOut, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns expected value when setting upper triangular values (column-major)', function test( t ) {
+ var expectedOut;
+ var actualOut;
+ var data;
+ var A;
+
+ data = UPPER_COL_MAJOR;
+
+ A = new Float64Array( data.A );
+ actualOut = dlaset( data.order, data.uplo, data.M, data.N, A, data.LDA, data.alpha, data.beta );
+ expectedOut = new Float64Array( data.A_out );
+
+ t.deepEqual( actualOut, expectedOut, 'returns expected value' );
+ t.end();
+});
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/test/test.js b/lib/node_modules/@stdlib/lapack/base/dlaset/test/test.js
new file mode 100644
index 000000000000..1c663fa0bb28
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/test/test.js
@@ -0,0 +1,82 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 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 dlaset = 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 dlaset, '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 dlaset.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 dlaset = proxyquire( './../lib', {
+ '@stdlib/utils/try-require': tryRequire
+ });
+
+ t.strictEqual( dlaset, mock, 'returns expected value' );
+ t.end();
+
+ function tryRequire() {
+ return mock;
+ }
+
+ function mock() {
+ // Mock...
+ }
+});
+
+tape( 'if a native implementation is not available, the main export is a JavaScript implementation', opts, function test( t ) {
+ var dlaset;
+ var main;
+
+ main = require( './../lib/dlaset.js' );
+
+ dlaset = proxyquire( './../lib', {
+ '@stdlib/utils/try-require': tryRequire
+ });
+
+ t.strictEqual( dlaset, main, 'returns expected value' );
+ t.end();
+
+ function tryRequire() {
+ return new Error( 'Cannot find module' );
+ }
+});
diff --git a/lib/node_modules/@stdlib/lapack/base/dlaset/test/test.ndarray.js b/lib/node_modules/@stdlib/lapack/base/dlaset/test/test.ndarray.js
new file mode 100644
index 000000000000..ab2cb2133178
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlaset/test/test.ndarray.js
@@ -0,0 +1,559 @@
+/**
+* @license Apache-2.0
+*
+* Copyright (c) 2025 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, id-length */
+
+'use strict';
+
+// MODULES //
+
+var tape = require( 'tape' );
+var Float64Array = require( '@stdlib/array/float64' );
+var dlaset = require( './../lib/ndarray.js' );
+
+
+// FIXTURES //
+
+var ALL_ROW_MAJOR = require( './fixtures/all_row_major.json' );
+var ALL_COL_MAJOR = require( './fixtures/all_col_major.json' );
+var LOWER_ROW_MAJOR = require( './fixtures/lower_row_major.json' );
+var LOWER_COL_MAJOR = require( './fixtures/lower_col_major.json' );
+var UPPER_ROW_MAJOR = require( './fixtures/upper_row_major.json' );
+var UPPER_COL_MAJOR = require( './fixtures/upper_col_major.json' );
+
+var OFFSET_ALL_ROW_MAJOR = require( './fixtures/offsets/all_row_major.json' );
+var OFFSET_ALL_COL_MAJOR = require( './fixtures/offsets/all_col_major.json' );
+var OFFSET_LOWER_ROW_MAJOR = require( './fixtures/offsets/lower_row_major.json' );
+var OFFSET_LOWER_COL_MAJOR = require( './fixtures/offsets/lower_col_major.json' );
+var OFFSET_UPPER_ROW_MAJOR = require( './fixtures/offsets/upper_row_major.json' );
+var OFFSET_UPPER_COL_MAJOR = require( './fixtures/offsets/upper_col_major.json' );
+
+var MIXED_STRIDES_ALL_ROW_MAJOR = require( './fixtures/mixed_strides/all_row_major.json' );
+var MIXED_STRIDES_ALL_COL_MAJOR = require( './fixtures/mixed_strides/all_col_major.json' );
+var MIXED_STRIDES_LOWER_ROW_MAJOR = require( './fixtures/mixed_strides/lower_row_major.json' );
+var MIXED_STRIDES_LOWER_COL_MAJOR = require( './fixtures/mixed_strides/lower_col_major.json' );
+var MIXED_STRIDES_UPPER_ROW_MAJOR = require( './fixtures/mixed_strides/upper_row_major.json' );
+var MIXED_STRIDES_UPPER_COL_MAJOR = require( './fixtures/mixed_strides/upper_col_major.json' );
+
+var NEGATIVE_STRIDES_ALL_ROW_MAJOR = require( './fixtures/negative_strides/all_row_major.json' );
+var NEGATIVE_STRIDES_ALL_COL_MAJOR = require( './fixtures/negative_strides/all_col_major.json' );
+var NEGATIVE_STRIDES_LOWER_ROW_MAJOR = require( './fixtures/negative_strides/lower_row_major.json' );
+var NEGATIVE_STRIDES_LOWER_COL_MAJOR = require( './fixtures/negative_strides/lower_col_major.json' );
+var NEGATIVE_STRIDES_UPPER_ROW_MAJOR = require( './fixtures/negative_strides/upper_row_major.json' );
+var NEGATIVE_STRIDES_UPPER_COL_MAJOR = require( './fixtures/negative_strides/upper_col_major.json' );
+
+var LARGE_STRIDES_ALL_ROW_MAJOR = require( './fixtures/large_strides/all_row_major.json' );
+var LARGE_STRIDES_ALL_COL_MAJOR = require( './fixtures/large_strides/all_col_major.json' );
+var LARGE_STRIDES_LOWER_ROW_MAJOR = require( './fixtures/large_strides/lower_row_major.json' );
+var LARGE_STRIDES_LOWER_COL_MAJOR = require( './fixtures/large_strides/lower_col_major.json' );
+var LARGE_STRIDES_UPPER_ROW_MAJOR = require( './fixtures/large_strides/upper_row_major.json' );
+var LARGE_STRIDES_UPPER_COL_MAJOR = require( './fixtures/large_strides/upper_col_major.json' );
+
+
+// TESTS //
+
+tape( 'main export is a function', function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof dlaset, 'function', 'main export is a function' );
+ t.end();
+});
+
+tape( 'the function has an arity of 9', function test( t ) {
+ t.strictEqual( dlaset.length, 9, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns expected value when setting all values (row-major)', function test( t ) {
+ var expectedOut;
+ var actualOut;
+ var data;
+ var A;
+
+ data = ALL_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ actualOut = dlaset( data.uplo, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, data.alpha, data.beta );
+ expectedOut = new Float64Array( data.A_out );
+
+ t.deepEqual( actualOut, expectedOut, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns expected value when setting all values (column-major)', function test( t ) {
+ var expectedOut;
+ var actualOut;
+ var data;
+ var A;
+
+ data = ALL_COL_MAJOR;
+
+ A = new Float64Array( data.A );
+ actualOut = dlaset( data.uplo, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, data.alpha, data.beta );
+ expectedOut = new Float64Array( data.A_out );
+
+ t.deepEqual( actualOut, expectedOut, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns expected value when setting lower triangular values (row-major)', function test( t ) {
+ var expectedOut;
+ var actualOut;
+ var data;
+ var A;
+
+ data = LOWER_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ actualOut = dlaset( data.uplo, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, data.alpha, data.beta );
+ expectedOut = new Float64Array( data.A_out );
+
+ t.deepEqual( actualOut, expectedOut, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns expected value when setting lower triangular values (column-major)', function test( t ) {
+ var expectedOut;
+ var actualOut;
+ var data;
+ var A;
+
+ data = LOWER_COL_MAJOR;
+
+ A = new Float64Array( data.A );
+ actualOut = dlaset( data.uplo, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, data.alpha, data.beta );
+ expectedOut = new Float64Array( data.A_out );
+
+ t.deepEqual( actualOut, expectedOut, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns expected value when setting upper triangular values (row-major)', function test( t ) {
+ var expectedOut;
+ var actualOut;
+ var data;
+ var A;
+
+ data = UPPER_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ actualOut = dlaset( data.uplo, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, data.alpha, data.beta );
+ expectedOut = new Float64Array( data.A_out );
+
+ t.deepEqual( actualOut, expectedOut, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns expected value when setting upper triangular values (column-major)', function test( t ) {
+ var expectedOut;
+ var actualOut;
+ var data;
+ var A;
+
+ data = UPPER_COL_MAJOR;
+
+ A = new Float64Array( data.A );
+ actualOut = dlaset( data.uplo, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, data.alpha, data.beta );
+ expectedOut = new Float64Array( data.A_out );
+
+ t.deepEqual( actualOut, expectedOut, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns expected value when setting all values (row-major) (offsets)', function test( t ) {
+ var expectedOut;
+ var actualOut;
+ var data;
+ var A;
+
+ data = OFFSET_ALL_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ actualOut = dlaset( data.uplo, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, data.alpha, data.beta );
+ expectedOut = new Float64Array( data.A_out );
+
+ t.deepEqual( actualOut, expectedOut, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns expected value when setting all values (column-major) (offsets)', function test( t ) {
+ var expectedOut;
+ var actualOut;
+ var data;
+ var A;
+
+ data = OFFSET_ALL_COL_MAJOR;
+
+ A = new Float64Array( data.A );
+ actualOut = dlaset( data.uplo, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, data.alpha, data.beta );
+ expectedOut = new Float64Array( data.A_out );
+
+ t.deepEqual( actualOut, expectedOut, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns expected value when setting lower triangular values (row-major) (offsets)', function test( t ) {
+ var expectedOut;
+ var actualOut;
+ var data;
+ var A;
+
+ data = OFFSET_LOWER_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ actualOut = dlaset( data.uplo, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, data.alpha, data.beta );
+ expectedOut = new Float64Array( data.A_out );
+
+ t.deepEqual( actualOut, expectedOut, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns expected value when setting lower triangular values (column-major) (offsets)', function test( t ) {
+ var expectedOut;
+ var actualOut;
+ var data;
+ var A;
+
+ data = OFFSET_LOWER_COL_MAJOR;
+
+ A = new Float64Array( data.A );
+ actualOut = dlaset( data.uplo, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, data.alpha, data.beta );
+ expectedOut = new Float64Array( data.A_out );
+
+ t.deepEqual( actualOut, expectedOut, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns expected value when setting upper triangular values (row-major) (offsets)', function test( t ) {
+ var expectedOut;
+ var actualOut;
+ var data;
+ var A;
+
+ data = OFFSET_UPPER_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ actualOut = dlaset( data.uplo, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, data.alpha, data.beta );
+ expectedOut = new Float64Array( data.A_out );
+
+ t.deepEqual( actualOut, expectedOut, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns expected value when setting upper triangular values (column-major) (offsets)', function test( t ) {
+ var expectedOut;
+ var actualOut;
+ var data;
+ var A;
+
+ data = OFFSET_UPPER_COL_MAJOR;
+
+ A = new Float64Array( data.A );
+ actualOut = dlaset( data.uplo, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, data.alpha, data.beta );
+ expectedOut = new Float64Array( data.A_out );
+
+ t.deepEqual( actualOut, expectedOut, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns expected value when setting all values (row-major) (mixed strides)', function test( t ) {
+ var expectedOut;
+ var actualOut;
+ var data;
+ var A;
+
+ data = MIXED_STRIDES_ALL_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ actualOut = dlaset( data.uplo, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, data.alpha, data.beta );
+ expectedOut = new Float64Array( data.A_out );
+
+ t.deepEqual( actualOut, expectedOut, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns expected value when setting all values (column-major) (mixed strides)', function test( t ) {
+ var expectedOut;
+ var actualOut;
+ var data;
+ var A;
+
+ data = MIXED_STRIDES_ALL_COL_MAJOR;
+
+ A = new Float64Array( data.A );
+ actualOut = dlaset( data.uplo, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, data.alpha, data.beta );
+ expectedOut = new Float64Array( data.A_out );
+
+ t.deepEqual( actualOut, expectedOut, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns expected value when setting lower triangular values (row-major) (mixed strides)', function test( t ) {
+ var expectedOut;
+ var actualOut;
+ var data;
+ var A;
+
+ data = MIXED_STRIDES_LOWER_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ actualOut = dlaset( data.uplo, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, data.alpha, data.beta );
+ expectedOut = new Float64Array( data.A_out );
+
+ t.deepEqual( actualOut, expectedOut, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns expected value when setting lower triangular values (column-major) (mixed strides)', function test( t ) {
+ var expectedOut;
+ var actualOut;
+ var data;
+ var A;
+
+ data = MIXED_STRIDES_LOWER_COL_MAJOR;
+
+ A = new Float64Array( data.A );
+ actualOut = dlaset( data.uplo, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, data.alpha, data.beta );
+ expectedOut = new Float64Array( data.A_out );
+
+ t.deepEqual( actualOut, expectedOut, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns expected value when setting upper triangular values (row-major) (mixed strides)', function test( t ) {
+ var expectedOut;
+ var actualOut;
+ var data;
+ var A;
+
+ data = MIXED_STRIDES_UPPER_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ actualOut = dlaset( data.uplo, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, data.alpha, data.beta );
+ expectedOut = new Float64Array( data.A_out );
+
+ t.deepEqual( actualOut, expectedOut, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns expected value when setting upper triangular values (column-major) (mixed strides)', function test( t ) {
+ var expectedOut;
+ var actualOut;
+ var data;
+ var A;
+
+ data = MIXED_STRIDES_UPPER_COL_MAJOR;
+
+ A = new Float64Array( data.A );
+ actualOut = dlaset( data.uplo, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, data.alpha, data.beta );
+ expectedOut = new Float64Array( data.A_out );
+
+ t.deepEqual( actualOut, expectedOut, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns expected value when setting all values (row-major) (negative strides)', function test( t ) {
+ var expectedOut;
+ var actualOut;
+ var data;
+ var A;
+
+ data = NEGATIVE_STRIDES_ALL_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ actualOut = dlaset( data.uplo, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, data.alpha, data.beta );
+ expectedOut = new Float64Array( data.A_out );
+
+ t.deepEqual( actualOut, expectedOut, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns expected value when setting all values (column-major) (negative strides)', function test( t ) {
+ var expectedOut;
+ var actualOut;
+ var data;
+ var A;
+
+ data = NEGATIVE_STRIDES_ALL_COL_MAJOR;
+
+ A = new Float64Array( data.A );
+ actualOut = dlaset( data.uplo, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, data.alpha, data.beta );
+ expectedOut = new Float64Array( data.A_out );
+
+ t.deepEqual( actualOut, expectedOut, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns expected value when setting lower triangular values (row-major) (negative strides)', function test( t ) {
+ var expectedOut;
+ var actualOut;
+ var data;
+ var A;
+
+ data = NEGATIVE_STRIDES_LOWER_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ actualOut = dlaset( data.uplo, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, data.alpha, data.beta );
+ expectedOut = new Float64Array( data.A_out );
+
+ t.deepEqual( actualOut, expectedOut, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns expected value when setting lower triangular values (column-major) (negative strides)', function test( t ) {
+ var expectedOut;
+ var actualOut;
+ var data;
+ var A;
+
+ data = NEGATIVE_STRIDES_LOWER_COL_MAJOR;
+
+ A = new Float64Array( data.A );
+ actualOut = dlaset( data.uplo, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, data.alpha, data.beta );
+ expectedOut = new Float64Array( data.A_out );
+
+ t.deepEqual( actualOut, expectedOut, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns expected value when setting upper triangular values (row-major) (negative strides)', function test( t ) {
+ var expectedOut;
+ var actualOut;
+ var data;
+ var A;
+
+ data = NEGATIVE_STRIDES_UPPER_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ actualOut = dlaset( data.uplo, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, data.alpha, data.beta );
+ expectedOut = new Float64Array( data.A_out );
+
+ t.deepEqual( actualOut, expectedOut, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns expected value when setting upper triangular values (column-major) (negative strides)', function test( t ) {
+ var expectedOut;
+ var actualOut;
+ var data;
+ var A;
+
+ data = NEGATIVE_STRIDES_UPPER_COL_MAJOR;
+
+ A = new Float64Array( data.A );
+ actualOut = dlaset( data.uplo, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, data.alpha, data.beta );
+ expectedOut = new Float64Array( data.A_out );
+
+ t.deepEqual( actualOut, expectedOut, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns expected value when setting all values (row-major) (large strides)', function test( t ) {
+ var expectedOut;
+ var actualOut;
+ var data;
+ var A;
+
+ data = LARGE_STRIDES_ALL_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ actualOut = dlaset( data.uplo, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, data.alpha, data.beta );
+ expectedOut = new Float64Array( data.A_out );
+
+ t.deepEqual( actualOut, expectedOut, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns expected value when setting all values (column-major) (large strides)', function test( t ) {
+ var expectedOut;
+ var actualOut;
+ var data;
+ var A;
+
+ data = LARGE_STRIDES_ALL_COL_MAJOR;
+
+ A = new Float64Array( data.A );
+ actualOut = dlaset( data.uplo, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, data.alpha, data.beta );
+ expectedOut = new Float64Array( data.A_out );
+
+ t.deepEqual( actualOut, expectedOut, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns expected value when setting lower triangular values (row-major) (large strides)', function test( t ) {
+ var expectedOut;
+ var actualOut;
+ var data;
+ var A;
+
+ data = LARGE_STRIDES_LOWER_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ actualOut = dlaset( data.uplo, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, data.alpha, data.beta );
+ expectedOut = new Float64Array( data.A_out );
+
+ t.deepEqual( actualOut, expectedOut, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns expected value when setting lower triangular values (column-major) (large strides)', function test( t ) {
+ var expectedOut;
+ var actualOut;
+ var data;
+ var A;
+
+ data = LARGE_STRIDES_LOWER_COL_MAJOR;
+
+ A = new Float64Array( data.A );
+ actualOut = dlaset( data.uplo, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, data.alpha, data.beta );
+ expectedOut = new Float64Array( data.A_out );
+
+ t.deepEqual( actualOut, expectedOut, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns expected value when setting upper triangular values (row-major) (large strides)', function test( t ) {
+ var expectedOut;
+ var actualOut;
+ var data;
+ var A;
+
+ data = LARGE_STRIDES_UPPER_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ actualOut = dlaset( data.uplo, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, data.alpha, data.beta );
+ expectedOut = new Float64Array( data.A_out );
+
+ t.deepEqual( actualOut, expectedOut, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function returns expected value when setting upper triangular values (column-major) (large strides)', function test( t ) {
+ var expectedOut;
+ var actualOut;
+ var data;
+ var A;
+
+ data = LARGE_STRIDES_UPPER_COL_MAJOR;
+
+ A = new Float64Array( data.A );
+ actualOut = dlaset( data.uplo, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, data.alpha, data.beta );
+ expectedOut = new Float64Array( data.A_out );
+
+ t.deepEqual( actualOut, expectedOut, 'returns expected value' );
+ t.end();
+});