diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/README.md b/lib/node_modules/@stdlib/lapack/base/dlange/README.md
new file mode 100644
index 000000000000..9214f4821f95
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/README.md
@@ -0,0 +1,351 @@
+
+
+# dlange
+
+> LAPACK routine to compute the value of the one norm, or the frobenius norm, or the infinity norm, or the element with the largest absolute value of a real matrix `A`.
+
+
+
+The `dlange` routine computes the value of a specified norm of a real M-by-N matrix `A`. The norm to be computed is selected using the parameter `norm`, which may specify the **Max norm**, **One norm**, **Infinity norm**, or **Frobenius norm**.
+
+The supported norms are:
+
+- **Max Absolute Value** (`norm` = `'max'`): returns the largest absolute element in `A`.
+
+
+
+```math
+\|A\|_{\max} = \max_{i,j} |a_{i,j}|
+```
+
+
+
+- **One Norm** (`norm` = `'one'`): returns the maximum absolute column sum in `A`.
+
+
+
+```math
+\|A\|_1 = \max_j \sum_{i=1}^M |a_{i,j}|
+```
+
+
+
+- **Infinity Norm** (`norm` = `'infinity'`): returns the maximum absolute row sum in `A`.
+
+
+
+```math
+\|A\|_{\infty} = \max_i \sum_{j=1}^N |a_{i,j}|
+```
+
+
+
+- **Frobenius Norm** (`norm` = `'frobenius'`): returns the square root of the sum of the squares of all elements in `A`.
+
+
+
+```math
+\|A\|_F = \left(\sum_{i=1}^M \sum_{j=1}^N |a_{i,j}|^2 \right)^{1/2}
+```
+
+
+
+
+
+
+
+
+
+## Usage
+
+```javascript
+var dlange = require( '@stdlib/lapack/base/dlange' );
+```
+
+#### dlange( norm, M, N, A, LDA, work )
+
+Computes the value of the one norm, or the frobenius norm, or the infinity norm, or the element with the largest absolute value of a real matrix `A`.
+
+
+
+```javascript
+var Float64Array = require( '@stdlib/array/float64' );
+
+var A = new Float64Array( [ 1.0, 4.0, 7.0, 10.0, 2.0, 5.0, 8.0, 11.0, 3.0, 6.0, 9.0, 12.0 ] );
+
+/*
+ A = [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ]
+*/
+
+var work = new Float64Array( 3 );
+var out = dlange( 'row-major', 'frobenius', 3, 4, A, 4, work );
+// returns ~25.5
+```
+
+The function has the following parameters:
+
+- **order**: storage layout.
+- **norm**: specifies the type of norm to be calculated, should be one of the following: `max`, `one`, `frobenius` or `infinity`.
+- **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`).
+- **work**: [`Float64Array`][mdn-float64array] used as a temporary workspace.
+
+`work` should have `N` indexed elements if calculating the one norm in a row-major layout and `M` indexed elements if calculating the infinity norm in column-major layout, in all other cases it is fine to pass a dummy [`Float64Array`][mdn-float64array].
+
+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' );
+
+var A0 = new Float64Array( [ 0.0, 1.0, 4.0, 7.0, 10.0, 2.0, 5.0, 8.0, 11.0, 3.0, 6.0, 9.0, 12.0 ] );
+var work0 = new Float64Array( 4 );
+
+/*
+ A = [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ]
+*/
+
+// Create offset views...
+var A = new Float64Array( A0.buffer, A0.BYTES_PER_ELEMENT*1 ); // start at 2nd element
+var work = new Float64Array( work0.buffer, work0.BYTES_PER_ELEMENT*1 ); // start at 2nd element
+
+var out = dlange( 'row-major', 'frobenius', 3, 4, A, 4, work );
+// returns ~25.5
+```
+
+
+
+#### dlange.ndarray( norm, A, strideA1, strideA2, offsetA, work, strideWork, offsetWork )
+
+Computes the value of the one norm, or the frobenius norm, or the infinity norm, or the element with the largest absolute value of a real matrix `A` using alternative indexing semantics.
+
+
+
+```javascript
+var Float64Array = require( '@stdlib/array/float64' );
+
+var A = new Float64Array( [ 1.0, 4.0, 7.0, 10.0, 2.0, 5.0, 8.0, 11.0, 3.0, 6.0, 9.0, 12.0 ] );
+
+/*
+ A = [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ]
+*/
+
+var work = new Float64Array( 3 );
+var out = dlange.ndarray( 'frobenius', 3, 4, A, 4, 1, 0, work, 1, 0 );
+// returns ~25.5
+```
+
+The function has the following additional parameters:
+
+- **norm**: specifies the type of norm to be calculated, should be one of the following: `max`, `one`, `frobenius` or `infinity`.
+- **M**: number of rows in `A`.
+- **N**: number of columns in `A`.
+- **A**: input [`Float64Array`][mdn-float64array].
+- **strideA1**: stride of the first dimension of `A`.
+- **strideA2**: stride of the second dimension of `A`.
+- **offsetA**: starting index for `A`.
+- **work**: [`Float64Array`][mdn-float64array] used as a temporary workspace
+- **strideWork**: stride length of `work`.
+- **offsetWork**: starting index of `work`.
+
+`work` should have `N` indexed elements if calculating the one norm in a row-major layout and `M` indexed elements if calculating the infinity norm in column-major layout, in all other cases it is fine to pass a dummy [`Float64Array`][mdn-float64array].
+
+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( [ 0.0, 1.0, 4.0, 7.0, 10.0, 2.0, 5.0, 8.0, 11.0, 3.0, 6.0, 9.0, 12.0 ] );
+
+/*
+ A = [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ]
+*/
+
+var work = new Float64Array( 4 );
+var out = dlange.ndarray( 'frobenius', 3, 4, A, 4, 1, 1, work, 1, 1 );
+// returns ~25.5
+```
+
+
+
+
+
+
+
+## Notes
+
+- `dlange()` corresponds to the [LAPACK][LAPACK] routine [`dlange`][lapack-dlange].
+
+
+
+
+
+
+
+## Examples
+
+
+
+```javascript
+var Float64Array = require( '@stdlib/array/float64' );
+var ndarray2array = require( '@stdlib/ndarray/base/to-array' );
+var uniform = require( '@stdlib/random/array/uniform' );
+var numel = require( '@stdlib/ndarray/base/numel' );
+var dlange = require( '@stdlib/lapack/base/dlange' );
+
+// Specify matrix meta data:
+var shape = [ 3, 4 ];
+var strides = [ 4, 1 ];
+var offset = 0;
+var N = numel( shape );
+var order = 'row-major';
+
+// Create a matrix stored in linear memory:
+var A = uniform( N, -10, 10, {
+ 'dtype': 'float64'
+});
+console.log( ndarray2array( A, shape, strides, offset, order ) );
+
+var work = new Float64Array( shape[ 0 ] );
+
+// Calculate the infinity norm:
+var out = dlange( order, 'infinity', shape[ 0 ], shape[ 1 ], A, strides[ 0 ], work );
+console.log( 'Infinity norm: ', out );
+```
+
+
+
+
+
+
+
+* * *
+
+
+
+## C APIs
+
+
+
+
+
+
+
+
+
+
+
+### Usage
+
+```c
+TODO
+```
+
+#### TODO
+
+TODO.
+
+```c
+TODO
+```
+
+TODO
+
+```c
+TODO
+```
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+### Examples
+
+```c
+TODO
+```
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+[lapack]: https://www.netlib.org/lapack/explore-html/
+
+[lapack-dlange]: https://www.netlib.org/lapack/explore-html/d8/d2e/group__lange_ga8581d687290b36c6e24fe76b3be7caa3.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/dlange/benchmark/benchmark.js b/lib/node_modules/@stdlib/lapack/base/dlange/benchmark/benchmark.js
new file mode 100644
index 000000000000..4ec683f95bbf
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/benchmark/benchmark.js
@@ -0,0 +1,129 @@
+/**
+* @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 Float64Array = require( '@stdlib/array/float64' );
+var pkg = require( './../package.json' ).name;
+var dlange = require( './../lib/dlange.js' );
+
+
+// VARIABLES //
+
+var LAYOUTS = [
+ 'row-major',
+ 'column-major'
+];
+var NORMS = [
+ 'max',
+ 'one',
+ 'infinity',
+ 'frobenius'
+];
+
+
+// FUNCTIONS //
+
+/**
+* Creates a benchmark function.
+*
+* @private
+* @param {string} order - storage layout
+* @param {PositiveInteger} N - number of elements along each dimension
+* @param {string} norm - specifies the type of norm to be calculated
+* @returns {Function} benchmark function
+*/
+function createBenchmark( order, N, norm ) {
+ var work;
+ var A;
+
+ A = uniform( N*N, -10.0, 10.0, {
+ 'dtype': 'float64'
+ });
+ work = new Float64Array( N );
+ 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 = dlange( order, norm, N, N, A, N, work );
+ if ( isnan( z ) ) {
+ b.fail( 'should not return NaN' );
+ }
+ }
+ b.toc();
+ if ( isnan( z ) ) {
+ b.fail( 'should not return NaN' );
+ }
+ b.pass( 'benchmark finished' );
+ b.end();
+ }
+}
+
+
+// MAIN //
+
+/**
+* Main execution sequence.
+*
+* @private
+*/
+function main() {
+ var norm;
+ var min;
+ var max;
+ var ord;
+ var N;
+ var f;
+ var i;
+ var j;
+ 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++ ) {
+ for ( j = 0; j < NORMS.length; j++ ) {
+ N = floor( pow( pow( 10, i ), 1.0/2.0 ) );
+ norm = NORMS[ j ];
+ f = createBenchmark( ord, N, norm );
+ bench( pkg+'::square_matrix:order='+ord+',norm='+norm+',size='+(N*N), f );
+ }
+ }
+ }
+}
+
+main();
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/lapack/base/dlange/benchmark/benchmark.ndarray.js
new file mode 100644
index 000000000000..2641ed72ce58
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/benchmark/benchmark.ndarray.js
@@ -0,0 +1,141 @@
+/**
+* @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 isColumnMajor = require( '@stdlib/ndarray/base/assert/is-column-major-string' );
+var pow = require( '@stdlib/math/base/special/pow' );
+var floor = require( '@stdlib/math/base/special/floor' );
+var Float64Array = require( '@stdlib/array/float64' );
+var pkg = require( './../package.json' ).name;
+var dlange = require( './../lib/ndarray.js' );
+
+
+// VARIABLES //
+
+var LAYOUTS = [
+ 'row-major',
+ 'column-major'
+];
+var NORMS = [
+ 'max',
+ 'one',
+ 'infinity',
+ 'frobenius'
+];
+
+
+// FUNCTIONS //
+
+/**
+* Creates a benchmark function.
+*
+* @private
+* @param {string} order - storage layout
+* @param {PositiveInteger} N - number of elements along each dimension
+* @param {string} norm - specifies the type of norm to be calculated
+* @returns {Function} benchmark function
+*/
+function createBenchmark( order, N, norm ) {
+ var work;
+ var sa1;
+ var sa2;
+ var A;
+
+ A = uniform( N*N, -10.0, 10.0, {
+ 'dtype': 'float64'
+ });
+ work = new Float64Array( N );
+
+ if ( isColumnMajor( order ) ) {
+ sa1 = 1;
+ sa2 = N;
+ } else {
+ sa1 = N;
+ sa2 = 1;
+ }
+
+ 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 = dlange( norm, N, N, A, sa1, sa2, 0, work, 1, 0 );
+ if ( isnan( z ) ) {
+ b.fail( 'should not return NaN' );
+ }
+ }
+ b.toc();
+ if ( isnan( z ) ) {
+ b.fail( 'should not return NaN' );
+ }
+ b.pass( 'benchmark finished' );
+ b.end();
+ }
+}
+
+
+// MAIN //
+
+/**
+* Main execution sequence.
+*
+* @private
+*/
+function main() {
+ var norm;
+ var min;
+ var max;
+ var ord;
+ var N;
+ var f;
+ var i;
+ var j;
+ 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++ ) {
+ for ( j = 0; j < NORMS.length; j++ ) {
+ N = floor( pow( pow( 10, i ), 1.0/2.0 ) );
+ norm = NORMS[ j ];
+ f = createBenchmark( ord, N, norm );
+ bench( pkg+'::square_matrix:order='+ord+',norm='+norm+',size='+(N*N), f );
+ }
+ }
+ }
+}
+
+main();
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/docs/repl.txt b/lib/node_modules/@stdlib/lapack/base/dlange/docs/repl.txt
new file mode 100644
index 000000000000..9693558d1e79
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/docs/repl.txt
@@ -0,0 +1,110 @@
+
+{{alias}}( order, norm, M, N, A, LDA, work )
+ Computes the value of the one norm, or the frobenius norm, or the infinity
+ norm, or the element with the largest absolute value of a real matrix `A`.
+
+ 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'.
+
+ norm: string
+ Specifies the type of norm to be calculated, should be one of the
+ following: `max`, `one`, `frobenius` or `infinity`.
+
+ 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`).
+
+ work: Float64Array
+ Temporary workspace array. `work` should have `N` indexed elements if
+ computing the one norm in row-major layout and `M` indexed elements
+ if computing infinity norm in column-major layout.
+
+ Returns
+ -------
+ Required norm: number
+ Value of the required norm.
+
+ Examples
+ --------
+ > var A = new {{alias:@stdlib/array/float64}}( [ 1.0, 2.0, 3.0, 4.0 ] );
+ > var work = new {{alias:@stdlib/array/float64}}( 1 );
+ > var order = 'row-major';
+ > var norm = 'max';
+ > {{alias}}( order, norm, 2, 2, A, 2, work )
+ 4.0
+
+
+{{alias}}.ndarray( norm, M, N, A, sa1, sa2, oa, work, sw, ow )
+ Computes the value of the one norm, or the frobenius norm, or the infinity
+ norm, or the element with the largest absolute value of a real matrix `A`
+ 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
+ ----------
+ norm: string
+ Specifies the type of norm to be calculated, should be one of the
+ following: `max`, `one`, `frobenius` or `infinity`.
+
+ 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`.
+
+ work: Float64Array
+ Temporary workspace array. `work` should have `N` indexed elements if
+ computing the one norm in row-major layout and `M` indexed elements
+ if computing infinity norm in column-major layout.
+
+ sw: integer
+ Stride length for `work`.
+
+ ow: integer
+ Starting index for `work`.
+
+ Returns
+ -------
+ Required norm: number
+ Value of the required norm.
+
+ Examples
+ --------
+ > var A = new {{alias:@stdlib/array/float64}}( [ 1.0, 2.0, 3.0, 4.0 ] );
+ > var work = new {{alias:@stdlib/array/float64}}( 1 );
+ > var norm = 'max';
+ > {{alias}}.ndarray( norm, 2, 2, A, 2, 1, 0, work, 1, 0 )
+ 4.0
+
+ See Also
+ --------
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/docs/types/index.d.ts b/lib/node_modules/@stdlib/lapack/base/dlange/docs/types/index.d.ts
new file mode 100644
index 000000000000..57dd3df1a34b
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/docs/types/index.d.ts
@@ -0,0 +1,149 @@
+/*
+* @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';
+
+/**
+* Norm parameter.
+*
+* ## Notes
+*
+* The norm parameter can be one of the following:
+*
+* - 'max': finds the maximum absolute value
+* - 'infinity': finds the infinity norm
+* - 'one': finds the one norm
+* - 'frobenius': finds the frobenius norm
+*/
+type Norm = 'max' | 'one' | 'infinity' | 'frobenius';
+
+/**
+* Interface describing `dlange`.
+*/
+interface Routine {
+ /**
+ * Returns the value of the one norm, or the frobenius norm, or the infinity norm, or the element with the largest absolute value of a real matrix `A`.
+ *
+ * ## Notes
+ *
+ * - use `norm` = `max` to calculate the element with the largest absolute value
+ * - use `norm` = `one` to calculate the one norm, work should have `N` indexed elements if row-major layout is used
+ * - use `norm` = `infinity` to calculate the infinity norm, work should have `M` indexed elements if column-major layout is used
+ * - use `norm` = `frobenius` to calculate the frobenius norm
+ *
+ * @param order - storage layout
+ * @param norm - specifies the type of norm to be calculated
+ * @param M - number of rows in `A`
+ * @param N - number of columns in `A`
+ * @param A - input array
+ * @param LDA - stride of the first dimension of `A` (a.k.a., leading dimension of the matrix `A`)
+ * @param work - temporary workspace array
+ * @returns required norm value
+ *
+ * @example
+ * var Float64Array = require( '@stdlib/array/float64' );
+ *
+ * var A = new Float64Array( [ 1.0, 4.0, 7.0, 10.0, 2.0, 5.0, 8.0, 11.0, 3.0, 6.0, 9.0, 12.0 ] );
+ * var work = new Float64Array( 3 );
+ *
+ * var out = dlange( 'row-major', 'frobenius', 3, 4, A, 4, work );
+ * // returns ~25.5
+ */
+ ( order: Layout, norm: Norm, M: number, N: number, A: Float64Array, LDA: number, work: Float64Array ): number;
+
+ /**
+ * Returns the value of the one norm, or the frobenius norm, or the infinity norm, or the element with the largest absolute value of a real matrix `A`.
+ *
+ * ## Notes
+ *
+ * - use `norm` = `max` to calculate the element with the largest absolute value
+ * - use `norm` = `one` to calculate the one norm, work should have `N` indexed elements if row-major layout is used
+ * - use `norm` = `infinity` to calculate the infinity norm, work should have `M` indexed elements if column-major layout is used
+ * - use `norm` = `frobenius` to calculate the frobenius norm
+ *
+ * @param norm - specifies the type of norm to be calculated
+ * @param M - number of rows in `A`
+ * @param N - number of columns in `A`
+ * @param A - input array
+ * @param strideA1 - stride of the first dimension of `A`
+ * @param strideA2 - stride of the second dimension of `A`
+ * @param offsetA - starting index of `A`
+ * @param work - temporary workspace array
+ * @param strideWork - stride length of `work`
+ * @param offsetWork - starting index of `work`
+ * @returns required norm value
+ *
+ * @example
+ * var Float64Array = require( '@stdlib/array/float64' );
+ *
+ * var A = new Float64Array( [ 1.0, 4.0, 7.0, 10.0, 2.0, 5.0, 8.0, 11.0, 3.0, 6.0, 9.0, 12.0 ] );
+ * var work = new Float64Array( 3 );
+ *
+ * var out = dlange.ndarray( 'frobenius', 3, 4, A, 4, 1, 0, work, 1, 0 );
+ * // returns ~25.5
+ */
+ ndarray( norm: Norm, M: number, N: number, A: Float64Array, strideA1: number, strideA2: number, offsetA: number, work: Float64Array, strideWork: number, offsetWork: number ): number;
+}
+
+/**
+* Returns the value of the one norm, or the frobenius norm, or the infinity norm, or the element with the largest absolute value of a real matrix `A`.
+*
+* ## Notes
+*
+* - use `norm` = `max` to calculate the element with the largest absolute value
+* - use `norm` = `one` to calculate the one norm, work should have `N` indexed elements if row-major layout is used
+* - use `norm` = `infinity` to calculate the infinity norm, work should have `M` indexed elements if column-major layout is used
+* - use `norm` = `frobenius` to calculate the frobenius norm
+*
+* @param order - storage layout
+* @param norm - specifies the type of norm to be calculated
+* @param M - number of rows in `A`
+* @param N - number of columns in `A`
+* @param A - input array
+* @param LDA - stride of the first dimension of `A` (a.k.a., leading dimension of the matrix `A`)
+* @param work - temporary workspace array
+* @returns required norm value
+*
+* @example
+* var Float64Array = require( '@stdlib/array/float64' );
+*
+* var A = new Float64Array( [ 1.0, 4.0, 7.0, 10.0, 2.0, 5.0, 8.0, 11.0, 3.0, 6.0, 9.0, 12.0 ] );
+* var work = new Float64Array( 3 );
+*
+* var out = dlange( 'row-major', 'frobenius', 3, 4, A, 4, work );
+* // returns ~25.5
+*
+* @example
+* var Float64Array = require( '@stdlib/array/float64' );
+*
+* var A = new Float64Array( [ 1.0, 4.0, 7.0, 10.0, 2.0, 5.0, 8.0, 11.0, 3.0, 6.0, 9.0, 12.0 ] );
+* var work = new Float64Array( 3 );
+*
+* var out = dlange.ndarray( 'frobenius', 3, 4, A, 4, 1, 0, work, 1, 0 );
+* // returns ~25.5
+*/
+declare var dlange: Routine;
+
+
+// EXPORTS //
+
+export = dlange;
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/docs/types/test.ts b/lib/node_modules/@stdlib/lapack/base/dlange/docs/types/test.ts
new file mode 100644
index 000000000000..0e7c3545f65b
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/docs/types/test.ts
@@ -0,0 +1,326 @@
+/*
+* @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 dlange = require( './index' );
+
+
+// TESTS //
+
+// The function returns a number...
+{
+ const A = new Float64Array( 4 );
+ const work = new Float64Array( 1 );
+
+ dlange( 'row-major', 'max', 2, 2, A, 2, work ); // $ExpectType number
+}
+
+// The compiler throws an error if the function is provided a first argument which is not a string...
+{
+ const A = new Float64Array( 4 );
+ const work = new Float64Array( 1 );
+
+ dlange( 5, 'max', 2, 2, A, 2, work ); // $ExpectError
+ dlange( true, 'max', 2, 2, A, 2, work ); // $ExpectError
+ dlange( false, 'max', 2, 2, A, 2, work ); // $ExpectError
+ dlange( null, 'max', 2, 2, A, 2, work ); // $ExpectError
+ dlange( void 0, 'max', 2, 2, A, 2, work ); // $ExpectError
+ dlange( [], 'max', 2, 2, A, 2, work ); // $ExpectError
+ dlange( {}, 'max', 2, 2, A, 2, work ); // $ExpectError
+ dlange( ( x: number ): number => x, 'max', 2, 2, A, 2, work ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a second argument which is not a string...
+{
+ const A = new Float64Array( 4 );
+ const work = new Float64Array( 1 );
+
+ dlange( 'row-major', 5, 2, 2, A, 2, work ); // $ExpectError
+ dlange( 'row-major', true, 2, 2, A, 2, work ); // $ExpectError
+ dlange( 'row-major', false, 2, 2, A, 2, work ); // $ExpectError
+ dlange( 'row-major', null, 2, 2, A, 2, work ); // $ExpectError
+ dlange( 'row-major', void 0, 2, 2, A, 2, work ); // $ExpectError
+ dlange( 'row-major', [], 2, 2, A, 2, work ); // $ExpectError
+ dlange( 'row-major', {}, 2, 2, A, 2, work ); // $ExpectError
+ dlange( 'row-major', ( x: number ): number => x, 2, 2, A, 2, work ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a third argument which is not a number...
+{
+ const A = new Float64Array( 4 );
+ const work = new Float64Array( 1 );
+
+ dlange( 'row-major', 'max', '5', 2, A, 2, work ); // $ExpectError
+ dlange( 'row-major', 'max', true, 2, A, 2, work ); // $ExpectError
+ dlange( 'row-major', 'max', false, 2, A, 2, work ); // $ExpectError
+ dlange( 'row-major', 'max', null, 2, A, 2, work ); // $ExpectError
+ dlange( 'row-major', 'max', void 0, 2, A, 2, work ); // $ExpectError
+ dlange( 'row-major', 'max', [], 2, A, 2, work ); // $ExpectError
+ dlange( 'row-major', 'max', {}, 2, A, 2, work ); // $ExpectError
+ dlange( 'row-major', 'max', ( x: number ): number => x, 2, A, 2, work ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a fourth argument which is not a number...
+{
+ const A = new Float64Array( 4 );
+ const work = new Float64Array( 1 );
+
+ dlange( 'row-major', 'max', 2, '2', A, 2, work ); // $ExpectError
+ dlange( 'row-major', 'max', 2, true, A, 2, work ); // $ExpectError
+ dlange( 'row-major', 'max', 2, false, A, 2, work ); // $ExpectError
+ dlange( 'row-major', 'max', 2, null, A, 2, work ); // $ExpectError
+ dlange( 'row-major', 'max', 2, void 0, A, 2, work ); // $ExpectError
+ dlange( 'row-major', 'max', 2, [], A, 2, work ); // $ExpectError
+ dlange( 'row-major', 'max', 2, {}, A, 2, work ); // $ExpectError
+ dlange( 'row-major', 'max', 2, ( x: number ): number => x, A, 2, work ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a fifth argument which is not a Float64Array...
+{
+ const work = new Float64Array( 1 );
+
+ dlange( 'row-major', 'max', 2, 2, '5', 2, work ); // $ExpectError
+ dlange( 'row-major', 'max', 2, 2, 5, 2, work ); // $ExpectError
+ dlange( 'row-major', 'max', 2, 2, true, 2, work ); // $ExpectError
+ dlange( 'row-major', 'max', 2, 2, false, 2, work ); // $ExpectError
+ dlange( 'row-major', 'max', 2, 2, null, 2, work ); // $ExpectError
+ dlange( 'row-major', 'max', 2, 2, void 0, 2, work ); // $ExpectError
+ dlange( 'row-major', 'max', 2, 2, [], 2, work ); // $ExpectError
+ dlange( 'row-major', 'max', 2, 2, {}, 2, work ); // $ExpectError
+ dlange( 'row-major', 'max', 2, 2, ( x: number ): number => x, 2, work ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a sixth argument which is not a number...
+{
+ const A = new Float64Array( 4 );
+ const work = new Float64Array( 1 );
+
+ dlange( 'row-major', 'max', 2, 2, A, '2', work ); // $ExpectError
+ dlange( 'row-major', 'max', 2, 2, A, true, work ); // $ExpectError
+ dlange( 'row-major', 'max', 2, 2, A, false, work ); // $ExpectError
+ dlange( 'row-major', 'max', 2, 2, A, null, work ); // $ExpectError
+ dlange( 'row-major', 'max', 2, 2, A, void 0, work ); // $ExpectError
+ dlange( 'row-major', 'max', 2, 2, A, [], work ); // $ExpectError
+ dlange( 'row-major', 'max', 2, 2, A, {}, work ); // $ExpectError
+ dlange( 'row-major', 'max', 2, 2, A, ( x: number ): number => x, work ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a seventh argument which is not a Float64Array...
+{
+ const A = new Float64Array( 4 );
+
+ dlange( 'row-major', 'max', 2, 2, A, 2, '5' ); // $ExpectError
+ dlange( 'row-major', 'max', 2, 2, A, 2, 5 ); // $ExpectError
+ dlange( 'row-major', 'max', 2, 2, A, 2, true ); // $ExpectError
+ dlange( 'row-major', 'max', 2, 2, A, 2, false ); // $ExpectError
+ dlange( 'row-major', 'max', 2, 2, A, 2, null ); // $ExpectError
+ dlange( 'row-major', 'max', 2, 2, A, 2, void 0 ); // $ExpectError
+ dlange( 'row-major', 'max', 2, 2, A, 2, [] ); // $ExpectError
+ dlange( 'row-major', 'max', 2, 2, A, 2, {} ); // $ExpectError
+ dlange( 'row-major', 'max', 2, 2, A, 2, ( x: number ): number => x ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided an unsupported number of arguments...
+{
+ const A = new Float64Array( 4 );
+ const work = new Float64Array( 1 );
+
+ dlange(); // $ExpectError
+ dlange( 'row-major' ); // $ExpectError
+ dlange( 'row-major', 'max' ); // $ExpectError
+ dlange( 'row-major', 'max', 2 ); // $ExpectError
+ dlange( 'row-major', 'max', 2, 2 ); // $ExpectError
+ dlange( 'row-major', 'max', 2, 2, A ); // $ExpectError
+ dlange( 'row-major', 'max', 2, 2, A, 2 ); // $ExpectError
+ dlange( 'row-major', 'max', 2, 2, A, 2, work, 1 ); // $ExpectError
+}
+
+// Attached to main export is an `ndarray` method which returns a number...
+{
+ const A = new Float64Array( 4 );
+ const work = new Float64Array( 1 );
+
+ dlange.ndarray( 'max', 2, 2, A, 2, 1, 0, work, 1, 0 ); // $ExpectType number
+}
+
+// The compiler throws an error if the function is provided a first argument which is not a string...
+{
+ const A = new Float64Array( 4 );
+ const work = new Float64Array( 1 );
+
+ dlange.ndarray( 5, 2, 2, A, 2, 1, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( true, 2, 2, A, 2, 1, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( false, 2, 2, A, 2, 1, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( null, 2, 2, A, 2, 1, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( void 0, 2, 2, A, 2, 1, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( [], 2, 2, A, 2, 1, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( {}, 2, 2, A, 2, 1, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( ( x: number ): number => x, 2, 2, A, 2, 1, work, 1, 0 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a second argument which is not a number...
+{
+ const A = new Float64Array( 4 );
+ const work = new Float64Array( 1 );
+
+ dlange.ndarray( 'max', '2', 2, A, 2, 1, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', true, 2, A, 2, 1, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', false, 2, A, 2, 1, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', null, 2, A, 2, 1, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', void 0, 2, A, 2, 1, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', [], 2, A, 2, 1, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', {}, 2, A, 2, 1, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', ( x: number ): number => x, 2, A, 2, 1, work, 1, 0 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a third argument which is not a number...
+{
+ const A = new Float64Array( 4 );
+ const work = new Float64Array( 1 );
+
+ dlange.ndarray( 'max', 2, '2', A, 2, 1, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, true, A, 2, 1, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, false, A, 2, 1, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, null, A, 2, 1, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, void 0, A, 2, 1, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, [], A, 2, 1, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, {}, A, 2, 1, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, ( x: number ): number => x, A, 2, 1, work, 1, 0 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a fourth argument which is not a Float64Array...
+{
+ const work = new Float64Array( 1 );
+
+ dlange.ndarray( 'max', 2, 2, '5', 2, 1, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, 5, 2, 1, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, true, 2, 1, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, false, 2, 1, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, null, 2, 1, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, void 0, 2, 1, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, [], 2, 1, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, {}, 2, 1, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, ( x: number ): number => x, 2, 1, work, 1, 0 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a fifth argument which is not a number...
+{
+ const A = new Float64Array( 4 );
+ const work = new Float64Array( 1 );
+
+ dlange.ndarray( 'max', 2, 2, A, '2', 1, 0, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, true, 1, 0, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, false, 1, 0, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, null, 1, 0, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, void 0, 1, 0, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, [], 1, 0, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, {}, 1, 0, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, ( x: number ): number => x, 1, 0, work, 1, 0 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a sixth argument which is not a number...
+{
+ const A = new Float64Array( 4 );
+ const work = new Float64Array( 1 );
+
+ dlange.ndarray( 'max', 2, 2, A, 2, '1', 0, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, 2, true, 0, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, 2, false, 0, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, 2, null, 0, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, 2, void 0, 0, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, 2, [], 0, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, 2, {}, 0, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, 2, ( x: number ): number => x, 0, work, 1, 0 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a seventh argument which is not a number...
+{
+ const A = new Float64Array( 4 );
+ const work = new Float64Array( 1 );
+
+ dlange.ndarray( 'max', 2, 2, A, 2, 1, '0', work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, 2, 1, true, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, 2, 1, false, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, 2, 1, null, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, 2, 1, void 0, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, 2, 1, [], work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, 2, 1, {}, work, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, 2, 1, ( x: number ): number => x, work, 1, 0 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided an eighth argument which is not a Float64Array...
+{
+ const A = new Float64Array( 4 );
+
+ dlange.ndarray( 'max', 2, 2, A, 2, 1, 0, '5', 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, 2, 1, 0, 5, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, 2, 1, 0, true, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, 2, 1, 0, false, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, 2, 1, 0, null, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, 2, 1, 0, void 0, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, 2, 1, 0, [], 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, 2, 1, 0, {}, 1, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, 2, 1, 0, ( x: number ): number => x, 1, 0 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a ninth argument which is not a number...
+{
+ const A = new Float64Array( 4 );
+ const work = new Float64Array( 1 );
+
+ dlange.ndarray( 'max', 2, 2, A, 2, 1, 0, work, '1', 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, 2, 1, 0, work, true, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, 2, 1, 0, work, false, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, 2, 1, 0, work, null, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, 2, 1, 0, work, void 0, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, 2, 1, 0, work, [], 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, 2, 1, 0, work, {}, 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, 2, 1, 0, work, ( x: number ): number => x, 0 ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided a tenth argument which is not a number...
+{
+ const A = new Float64Array( 4 );
+ const work = new Float64Array( 1 );
+
+ dlange.ndarray( 'max', 2, 2, A, 2, 1, 0, work, 1, '0' ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, 2, 1, 0, work, 1, true ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, 2, 1, 0, work, 1, false ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, 2, 1, 0, work, 1, null ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, 2, 1, 0, work, 1, void 0 ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, 2, 1, 0, work, 1, [] ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, 2, 1, 0, work, 1, {} ); // $ExpectError
+ dlange.ndarray( 'max', 2, 2, A, 2, 1, 0, work, 1, ( x: number ): number => x ); // $ExpectError
+}
+
+// The compiler throws an error if the function is provided an unsupported number of arguments...
+{
+ const A = new Float64Array( 4 );
+ const work = new Float64Array( 1 );
+
+ dlange.ndarray(); // $ExpectError
+ dlange.ndarray( 'row-major' ); // $ExpectError
+ dlange.ndarray( 'row-major', 'max' ); // $ExpectError
+ dlange.ndarray( 'row-major', 'max', 2 ); // $ExpectError
+ dlange.ndarray( 'row-major', 'max', 2, 2 ); // $ExpectError
+ dlange.ndarray( 'row-major', 'max', 2, 2, A ); // $ExpectError
+ dlange.ndarray( 'row-major', 'max', 2, 2, A, 2 ); // $ExpectError
+ dlange.ndarray( 'row-major', 'max', 2, 2, A, 2, 1 ); // $ExpectError
+ dlange.ndarray( 'row-major', 'max', 2, 2, A, 2, 1, work ); // $ExpectError
+ dlange.ndarray( 'row-major', 'max', 2, 2, A, 2, 1, work, 1 ); // $ExpectError
+ dlange.ndarray( 'row-major', 'max', 2, 2, A, 2, 1, work, 1, 0, 1 ); // $ExpectError
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/examples/index.js b/lib/node_modules/@stdlib/lapack/base/dlange/examples/index.js
new file mode 100644
index 000000000000..86f36cc33967
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/examples/index.js
@@ -0,0 +1,44 @@
+/**
+* @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 Float64Array = require( '@stdlib/array/float64' );
+var ndarray2array = require( '@stdlib/ndarray/base/to-array' );
+var uniform = require( '@stdlib/random/array/uniform' );
+var numel = require( '@stdlib/ndarray/base/numel' );
+var dlange = require( './../lib' );
+
+// Specify matrix meta data:
+var shape = [ 3, 4 ];
+var strides = [ 4, 1 ];
+var offset = 0;
+var N = numel( shape );
+var order = 'row-major';
+
+// Create a matrix stored in linear memory:
+var A = uniform( N, -10, 10, {
+ 'dtype': 'float64'
+});
+console.log( ndarray2array( A, shape, strides, offset, order ) );
+
+var work = new Float64Array( shape[ 0 ] );
+
+// Calculate the infinity norm:
+var out = dlange( order, 'infinity', shape[ 0 ], shape[ 1 ], A, strides[ 0 ], work );
+console.log( 'Infinity norm: ', out );
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/lib/base.js b/lib/node_modules/@stdlib/lapack/base/dlange/lib/base.js
new file mode 100644
index 000000000000..45fe1aca8f5a
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/lib/base.js
@@ -0,0 +1,362 @@
+/**
+* @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 isnan = require( '@stdlib/math/base/assert/is-nan' );
+var dlassq = require( '@stdlib/lapack/base/dlassq' ).ndarray;
+var isRowMajor = require( '@stdlib/ndarray/base/assert/is-row-major' );
+var loopOrder = require( '@stdlib/ndarray/base/nullary-loop-interchange-order' );
+var dasum = require( '@stdlib/blas/base/dasum' ).ndarray;
+var Float64Array = require( '@stdlib/array/float64' );
+var min = require( '@stdlib/math/base/special/min' );
+var sqrt = require( '@stdlib/math/base/special/sqrt' );
+var abs = require( '@stdlib/math/base/special/abs' );
+
+
+// FUNCTIONS //
+
+/**
+* Returns the value of the one norm of a real matrix `A`.
+*
+* @private
+* @param {NonNegativeInteger} M - number of rows in `A`
+* @param {NonNegativeInteger} N - number of columns in `A`
+* @param {Float64Array} A - input array
+* @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 of `A`
+* @param {Float64Array} work - work array, should have `N` indexed elements if row-major layout is used
+* @param {integer} strideWork - stride length of `work`
+* @param {NonNegativeInteger} offsetWork - starting index of `work`
+* @returns {number} required norm value
+*
+* @example
+* var Float64Array = require( '@stdlib/array/float64' );
+*
+* var A = new Float64Array( [ 1.0, 4.0, 7.0, 10.0, 2.0, 5.0, 8.0, 11.0, 3.0, 6.0, 9.0, 12.0 ] );
+* var work = new Float64Array( 4 );
+*
+* var out = oneNorm( 3, 4, A, 4, 1, 0, work, 1, 0 );
+* // returns 33.0
+*/
+function oneNorm( M, N, A, strideA1, strideA2, offsetA, work, strideWork, offsetWork ) { // eslint-disable-line max-len
+ var value;
+ var temp;
+ var ia1;
+ var ia2;
+ var sum;
+ var iw;
+ var i;
+ var j;
+
+ if ( isRowMajor( [ strideA1, strideA2 ] ) ) {
+ iw = offsetWork;
+ for ( i = 0; i < N; i++ ) {
+ work[ iw ] = 0.0;
+ iw += strideWork;
+ }
+
+ ia1 = offsetA;
+ for ( j = 0; j < M; j++ ) {
+ ia2 = 0;
+ iw = offsetWork;
+ for ( i = 0; i < N; i++ ) {
+ work[ iw ] += abs( A[ ia1 + ia2 ] );
+ iw += strideWork;
+ ia2 += strideA2;
+ }
+ ia1 += strideA1;
+ }
+
+ value = 0.0;
+
+ iw = offsetWork;
+ for ( i = 0; i < N; i++ ) {
+ temp = work[ iw ];
+ if ( value < temp || isnan( temp ) ) {
+ value = temp;
+ }
+ iw += strideWork;
+ }
+ } else {
+ value = 0.0;
+ ia1 = offsetA;
+ for ( j = 0; j < N; j++ ) {
+ sum = dasum( M, A, strideA1, ia1 );
+ if ( value < sum || isnan( sum ) ) {
+ value = sum;
+ }
+ ia1 += strideA2;
+ }
+ }
+
+ return value;
+}
+
+/**
+* Returns the absolute value of the maximum element of a real matrix `A`.
+*
+* @private
+* @param {NonNegativeInteger} M - number of rows in `A`
+* @param {NonNegativeInteger} N - number of columns in `A`
+* @param {Float64Array} A - input array
+* @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 of `A`
+* @returns {number} required norm value
+*
+* @example
+* var Float64Array = require( '@stdlib/array/float64' );
+*
+* var A = new Float64Array( [ 1.0, 4.0, 7.0, 10.0, 2.0, 5.0, 8.0, 11.0, 3.0, 6.0, 9.0, 12.0 ] );
+*
+* var out = maxAbs( 3, 4, A, 4, 1, 0 );
+* // returns 12.0
+*/
+function maxAbs( M, N, A, strideA1, strideA2, offsetA ) {
+ var value;
+ var temp;
+ var da0;
+ var da1;
+ var ia;
+ var sa;
+ var sh;
+ var S0;
+ var S1;
+ var o;
+ var i;
+ var j;
+
+ value = 0.0;
+
+ // Resolve the loop interchange order:
+ o = loopOrder( [ M, N ], [ strideA1, strideA2 ] );
+ sh = o.sh;
+ sa = o.sx;
+ S0 = sh[ 0 ];
+ S1 = sh[ 1 ];
+ da0 = sa[ 0 ];
+ da1 = sa[ 1 ] - ( S0*sa[0] );
+ ia = offsetA;
+
+ for ( i = 0; i < S1; i++ ) {
+ for ( j = 0; j < S0; j++ ) {
+ temp = A[ ia ];
+ if ( value < temp || isnan( temp ) ) {
+ value = temp;
+ }
+ ia += da0;
+ }
+ ia += da1;
+ }
+ return value;
+}
+
+/**
+* Returns the value of the infinity norm of a real matrix `A`.
+*
+* @private
+* @param {NonNegativeInteger} M - number of rows in `A`
+* @param {NonNegativeInteger} N - number of columns in `A`
+* @param {Float64Array} A - input array
+* @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 of `A`
+* @param {Float64Array} work - work array, should have `M` indexed elements if column-major layout is used
+* @param {integer} strideWork - stride length of `work`
+* @param {NonNegativeInteger} offsetWork - starting index of `work`
+* @returns {number} required norm value
+*
+* @example
+* var Float64Array = require( '@stdlib/array/float64' );
+*
+* var A = new Float64Array( [ 1.0, 4.0, 7.0, 10.0, 2.0, 5.0, 8.0, 11.0, 3.0, 6.0, 9.0, 12.0 ] );
+* var work = new Float64Array( 3 );
+*
+* var out = infinityNorm( 3, 4, A, 4, 1, 0, work, 1, 0 );
+* // returns 30.0
+*/
+function infinityNorm( M, N, A, strideA1, strideA2, offsetA, work, strideWork, offsetWork ) { // eslint-disable-line max-len
+ var value;
+ var temp;
+ var sum;
+ var ia1;
+ var ia2;
+ var iw;
+ var i;
+ var j;
+
+ if ( isRowMajor( [ strideA1, strideA2 ] ) ) {
+ value = 0.0;
+ ia1 = offsetA;
+ for ( j = 0; j < M; j++ ) {
+ sum = dasum( N, A, strideA2, ia1 );
+ if ( value < sum || isnan( sum ) ) {
+ value = sum;
+ }
+ ia1 += strideA1;
+ }
+ } else {
+ iw = offsetWork;
+ for ( i = 0; i < M; i++ ) {
+ work[ iw ] = 0.0;
+ iw += strideWork;
+ }
+
+ ia1 = offsetA;
+ for ( j = 0; j < N; j++ ) {
+ ia2 = 0;
+ iw = offsetWork;
+ for ( i = 0; i < M; i++ ) {
+ work[ iw ] += abs( A[ ia1 + ia2 ] );
+ iw += strideWork;
+ ia2 += strideA1;
+ }
+ ia1 += strideA2;
+ }
+
+ value = 0.0;
+
+ iw = offsetWork;
+ for ( i = 0; i < M; i++ ) {
+ temp = work[ iw ];
+ if ( value < temp || isnan( temp ) ) {
+ value = temp;
+ }
+ iw += strideWork;
+ }
+ }
+ return value;
+}
+
+/**
+* Returns the absolute value of the frobenius norm of a real matrix `A`.
+*
+* @private
+* @param {NonNegativeInteger} M - number of rows in `A`
+* @param {NonNegativeInteger} N - number of columns in `A`
+* @param {Float64Array} A - input array
+* @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 of `A`
+* @returns {number} required norm value
+*
+* @example
+* var Float64Array = require( '@stdlib/array/float64' );
+*
+* var A = new Float64Array( [ 1.0, 4.0, 7.0, 10.0, 2.0, 5.0, 8.0, 11.0, 3.0, 6.0, 9.0, 12.0 ] );
+*
+* var out = frobeniusNorm( 3, 4, A, 4, 1, 0 );
+* // returns ~25.5
+*/
+function frobeniusNorm( M, N, A, strideA1, strideA2, offsetA ) {
+ var out;
+ var da0;
+ var da1;
+ var S1;
+ var S2;
+ var ia;
+ var i;
+
+ out = new Float64Array( [ 0.0, 1.0 ] );
+
+ if ( isRowMajor( [ strideA1, strideA2 ] ) ) {
+ S1 = M;
+ S2 = N;
+ da0 = strideA2;
+ da1 = strideA1;
+ } else {
+ S1 = N;
+ S2 = M;
+ da0 = strideA1;
+ da1 = strideA2;
+ }
+
+ ia = offsetA;
+ for ( i = 0; i < S1; i++ ) {
+ dlassq( S2, A, da0, ia, out[ 0 ], out[ 1 ], out, 1, 0 );
+ ia += da1;
+ }
+
+ return out[ 0 ] * sqrt( out[ 1 ] );
+}
+
+
+// MAIN //
+
+/**
+* Returns the value of the one norm, or the frobenius norm, or the infinity norm, or the element with the largest absolute value of a real matrix `A`.
+*
+* ## Notes
+*
+* - use `norm` = `max` to calculate the element with the largest absolute value
+* - use `norm` = `one` to calculate the one norm, work should have `N` indexed elements if row-major layout is used
+* - use `norm` = `infinity` to calculate the infinity norm, work should have `M` indexed elements if column-major layout is used
+* - use `norm` = `frobenius` to calculate the frobenius norm
+*
+* @private
+* @param {string} norm - specifies the type of norm to be calculated
+* @param {NonNegativeInteger} M - number of rows in `A`
+* @param {NonNegativeInteger} N - number of columns in `A`
+* @param {Float64Array} A - input array
+* @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 of `A`
+* @param {Float64Array} work - temporary workspace array
+* @param {integer} strideWork - stride length of `work`
+* @param {NonNegativeInteger} offsetWork - starting index of `work`
+* @returns {number} required norm value
+*
+* @example
+* var Float64Array = require( '@stdlib/array/float64' );
+*
+* var A = new Float64Array( [ 1.0, 4.0, 7.0, 10.0, 2.0, 5.0, 8.0, 11.0, 3.0, 6.0, 9.0, 12.0 ] );
+* var work = new Float64Array( 3 );
+*
+* var out = dlange( 'frobenius', 3, 4, A, 4, 1, 0, work, 1, 0 );
+* // returns ~25.5
+*/
+function dlange( norm, M, N, A, strideA1, strideA2, offsetA, work, strideWork, offsetWork ) { // eslint-disable-line max-len
+ if ( min( M, N ) === 0 ) {
+ return 0.0;
+ }
+
+ if ( norm === 'max' ) {
+ return maxAbs( M, N, A, strideA1, strideA2, offsetA );
+ }
+
+ if ( norm === 'one' ) {
+ return oneNorm( M, N, A, strideA1, strideA2, offsetA, work, strideWork, offsetWork ); // eslint-disable-line max-len
+ }
+
+ if ( norm === 'infinity' ) {
+ return infinityNorm( M, N, A, strideA1, strideA2, offsetA, work, strideWork, offsetWork ); // eslint-disable-line max-len
+ }
+
+ if ( norm === 'frobenius' ) {
+ return frobeniusNorm( M, N, A, strideA1, strideA2, offsetA );
+ }
+}
+
+
+// EXPORTS //
+
+module.exports = dlange;
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/lib/dlange.js b/lib/node_modules/@stdlib/lapack/base/dlange/lib/dlange.js
new file mode 100644
index 000000000000..f1f87144403f
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/lib/dlange.js
@@ -0,0 +1,93 @@
+/**
+* @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 isRowMajor = require( '@stdlib/ndarray/base/assert/is-row-major-string' );
+var isColumnMajor = require( '@stdlib/ndarray/base/assert/is-column-major-string' );
+var max = require( '@stdlib/math/base/special/max' );
+var format = require( '@stdlib/string/format' );
+var isOperation = require( './isoperation.js' );
+var NORMS = require( './norms.json' ).norms;
+var base = require( './base.js' );
+
+
+// MAIN //
+
+/**
+* Returns the value of the one norm, or the frobenius norm, or the infinity norm, or the element with the largest absolute value of a real matrix `A`.
+*
+* ## Notes
+*
+* - use `norm` = `max` to calculate the element with the largest absolute value
+* - use `norm` = `one` to calculate the one norm, work should have `N` indexed elements if row-major layout is used
+* - use `norm` = `infinity` to calculate the infinity norm, work should have `M` indexed elements if column-major layout is used
+* - use `norm` = `frobenius` to calculate the frobenius norm
+*
+* @private
+* @param {string} order - storage layout
+* @param {string} norm - specifies the type of norm to be calculated
+* @param {NonNegativeInteger} M - number of rows in `A`
+* @param {NonNegativeInteger} N - number of columns in `A`
+* @param {Float64Array} A - input array
+* @param {PositiveInteger} LDA - stride of the first dimension of `A` (a.k.a., leading dimension of the matrix `A`)
+* @param {Float64Array} work - temporary workspace array
+* @throws {TypeError} first argument must be a valid order
+* @throws {TypeError} second argument must be a valid operation
+* @throws {RangeError} sixth argument must be greater than or equal to max(1,N)
+* @returns {number} required norm value
+*
+* @example
+* var Float64Array = require( '@stdlib/array/float64' );
+*
+* var A = new Float64Array( [ 1.0, 4.0, 7.0, 10.0, 2.0, 5.0, 8.0, 11.0, 3.0, 6.0, 9.0, 12.0 ] );
+* var work = new Float64Array( 3 );
+*
+* var out = dlange( 'row-major', 'frobenius', 3, 4, A, 4, work );
+* // returns ~25.5
+*/
+function dlange( order, norm, M, N, A, LDA, work ) {
+ var sa1;
+ var sa2;
+
+ if ( !isLayout( order ) ) {
+ throw new TypeError( format( 'invalid argument. First argument must be a valid order. Value: `%s`.', order ) );
+ }
+ if ( !isOperation( norm ) ) {
+ throw new TypeError( format( 'invalid argument. Second argument must be one of the following: "%s". Value: `%s`.', NORMS.join( '", "' ), norm ) );
+ }
+ if ( isRowMajor( order ) && LDA < max( 1, N ) ) {
+ throw new RangeError( format( 'invalid argument. Sixth argument must be greater than or equal to max(1,%d). Value: `%d`.', N, LDA ) );
+ }
+ if ( isColumnMajor( order ) ) {
+ sa1 = 1;
+ sa2 = LDA;
+ } else { // order === 'row-major'
+ sa1 = LDA;
+ sa2 = 1;
+ }
+ return base( norm, M, N, A, sa1, sa2, 0, work, 1, 0 );
+}
+
+
+// EXPORTS //
+
+module.exports = dlange;
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/lib/index.js b/lib/node_modules/@stdlib/lapack/base/dlange/lib/index.js
new file mode 100644
index 000000000000..5436caa39f92
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/lib/index.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';
+
+/**
+* LAPACK routine to calculate the value of the one norm, or the frobenius norm, or the infinity norm, or the element with the largest absolute value of a real matrix `A`.
+*
+* @module @stdlib/lapack/base/dlange
+*
+* @example
+* var Float64Array = require( '@stdlib/array/float64' );
+* var dlange = require( '@stdlib/lapack/base/dlange' );
+*
+* var A = new Float64Array( [ 1.0, 4.0, 7.0, 10.0, 2.0, 5.0, 8.0, 11.0, 3.0, 6.0, 9.0, 12.0 ] );
+* var work = new Float64Array( 3 );
+*
+* var out = dlange( 'row-major', 'frobenius', 3, 4, A, 4, work );
+* // returns ~25.5
+*/
+
+// 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 dlange;
+var tmp = tryRequire( join( __dirname, './native.js' ) );
+if ( isError( tmp ) ) {
+ dlange = main;
+} else {
+ dlange = tmp;
+}
+
+
+// EXPORTS //
+
+module.exports = dlange;
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/lib/isoperation.js b/lib/node_modules/@stdlib/lapack/base/dlange/lib/isoperation.js
new file mode 100644
index 000000000000..6e7ae177c2df
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/lib/isoperation.js
@@ -0,0 +1,62 @@
+/**
+* @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 contains = require( '@stdlib/array/base/assert/contains' ).factory;
+
+
+// VARIABLES //
+
+var NORMS = require( './norms.json' ).norms;
+
+
+// MAIN //
+
+/**
+* Tests whether an input value is a supported operation.
+*
+* @name isOperation
+* @type {Function}
+* @param {*} v - value to test
+* @returns {boolean} boolean indicating whether an input value is a supported norm
+*
+* @example
+* var bool = isOperation( 'max' );
+* // returns true
+*
+* bool = isOperation( 'frobenius' );
+* // returns true
+*
+* bool = isOperation( 'max' );
+* // returns true
+*
+* bool = isOperation( 'infinity' );
+* // returns true
+*
+* bool = isOperation( 'foo' );
+* // returns false
+*/
+var isOperation = contains( NORMS );
+
+
+// EXPORTS //
+
+module.exports = isOperation;
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/lib/main.js b/lib/node_modules/@stdlib/lapack/base/dlange/lib/main.js
new file mode 100644
index 000000000000..a511305c5d68
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/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 dlange = require( './dlange.js' );
+var ndarray = require( './ndarray.js' );
+
+
+// MAIN //
+
+setReadOnly( dlange, 'ndarray', ndarray );
+
+
+// EXPORTS //
+
+module.exports = dlange;
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/lib/ndarray.js b/lib/node_modules/@stdlib/lapack/base/dlange/lib/ndarray.js
new file mode 100644
index 000000000000..1aebe3259365
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/lib/ndarray.js
@@ -0,0 +1,73 @@
+/**
+* @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 format = require( '@stdlib/string/format' );
+var isOperation = require( './isoperation.js' );
+var NORMS = require( './norms.json' ).norms;
+var base = require( './base.js' );
+
+
+// MAIN //
+
+/**
+* Returns the value of the one norm, or the frobenius norm, or the infinity norm, or the element with the largest absolute value of a real matrix `A`.
+*
+* ## Notes
+*
+* - use `norm` = `max` to calculate the element with the largest absolute value
+* - use `norm` = `one` to calculate the one norm, work should have `N` indexed elements if row-major layout is used
+* - use `norm` = `infinity` to calculate the infinity norm, work should have `M` indexed elements if column-major layout is used
+* - use `norm` = `frobenius` to calculate the frobenius norm
+*
+* @param {string} norm - specifies the type of norm to be calculated
+* @param {NonNegativeInteger} M - number of rows in `A`
+* @param {NonNegativeInteger} N - number of columns in `A`
+* @param {Float64Array} A - input array
+* @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 of `A`
+* @param {Float64Array} work - temporary workspace array
+* @param {integer} strideWork - stride length of `work`
+* @param {NonNegativeInteger} offsetWork - starting index of `work`
+* @throws {TypeError} first argument must be a valid operation
+* @returns {number} required norm value
+*
+* @example
+* var Float64Array = require( '@stdlib/array/float64' );
+*
+* var A = new Float64Array( [ 1.0, 4.0, 7.0, 10.0, 2.0, 5.0, 8.0, 11.0, 3.0, 6.0, 9.0, 12.0 ] );
+* var work = new Float64Array( 3 );
+*
+* var out = dlange( 'frobenius', 3, 4, A, 4, 1, 0, work, 1, 0 );
+* // returns ~25.5
+*/
+function dlange( norm, M, N, A, strideA1, strideA2, offsetA, work, strideWork, offsetWork ) { // eslint-disable-line max-len
+ if ( !isOperation( norm ) ) {
+ throw new TypeError( format( 'invalid argument. Second argument must be one of the following: "%s". Value: `%s`.', NORMS.join( '", "' ), norm ) );
+ }
+ return base( norm, M, N, A, strideA1, strideA2, offsetA, work, strideWork, offsetWork ); // eslint-disable-line max-len
+}
+
+
+// EXPORTS //
+
+module.exports = dlange;
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/lib/norms.json b/lib/node_modules/@stdlib/lapack/base/dlange/lib/norms.json
new file mode 100644
index 000000000000..1cf4845a3f75
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/lib/norms.json
@@ -0,0 +1,8 @@
+{
+ "norms": [
+ "max",
+ "one",
+ "infinity",
+ "frobenius"
+ ]
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/package.json b/lib/node_modules/@stdlib/lapack/base/dlange/package.json
new file mode 100644
index 000000000000..33dd757212d7
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/package.json
@@ -0,0 +1,72 @@
+{
+ "name": "@stdlib/lapack/base/dlange",
+ "version": "0.0.0",
+ "description": "LAPACK routine to calculate the value of the one norm, or the frobenius norm, or the infinity norm, or the element with the largest absolute value of a real matrix A.",
+ "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",
+ "dlange",
+ "norm",
+ "max",
+ "frobenius",
+ "permute",
+ "permutedims",
+ "linear",
+ "algebra",
+ "subroutines",
+ "array",
+ "ndarray",
+ "float64",
+ "double",
+ "float64array"
+ ]
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/frobenius_norm_column_major.json b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/frobenius_norm_column_major.json
new file mode 100644
index 000000000000..d019cd5ec45d
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/frobenius_norm_column_major.json
@@ -0,0 +1,20 @@
+{
+ "order": "column-major",
+ "norm": "frobenius",
+ "M": 3,
+ "N": 4,
+ "A": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ],
+ "LDA": 3,
+ "strideA1": 1,
+ "strideA2": 3,
+ "offsetA": 0,
+ "A_mat": [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ],
+ "work": [ 0.0, 0.0, 0.0 ],
+ "strideWork": 1,
+ "offsetWork": 0,
+ "expected": 25.495097567963924
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/frobenius_norm_row_major.json b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/frobenius_norm_row_major.json
new file mode 100644
index 000000000000..393cf4cdb455
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/frobenius_norm_row_major.json
@@ -0,0 +1,20 @@
+{
+ "order": "row-major",
+ "norm": "frobenius",
+ "M": 3,
+ "N": 4,
+ "A": [ 1.0, 4.0, 7.0, 10.0, 2.0, 5.0, 8.0, 11.0, 3.0, 6.0, 9.0, 12.0 ],
+ "LDA": 4,
+ "strideA1": 4,
+ "strideA2": 1,
+ "offsetA": 0,
+ "A_mat": [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ],
+ "work": [ 0.0, 0.0, 0.0 ],
+ "strideWork": 1,
+ "offsetWork": 0,
+ "expected": 25.495097567963924
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/infinity_norm_column_major.json b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/infinity_norm_column_major.json
new file mode 100644
index 000000000000..e09a0408ac91
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/infinity_norm_column_major.json
@@ -0,0 +1,20 @@
+{
+ "order": "column-major",
+ "norm": "infinity",
+ "M": 3,
+ "N": 4,
+ "A": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ],
+ "LDA": 3,
+ "strideA1": 1,
+ "strideA2": 3,
+ "offsetA": 0,
+ "A_mat": [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ],
+ "work": [ 0.0, 0.0, 0.0 ],
+ "strideWork": 1,
+ "offsetWork": 0,
+ "expected": 30.0
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/infinity_norm_row_major.json b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/infinity_norm_row_major.json
new file mode 100644
index 000000000000..1c72dd8e6bae
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/infinity_norm_row_major.json
@@ -0,0 +1,20 @@
+{
+ "order": "row-major",
+ "norm": "infinity",
+ "M": 3,
+ "N": 4,
+ "A": [ 1.0, 4.0, 7.0, 10.0, 2.0, 5.0, 8.0, 11.0, 3.0, 6.0, 9.0, 12.0 ],
+ "LDA": 4,
+ "strideA1": 4,
+ "strideA2": 1,
+ "offsetA": 0,
+ "A_mat": [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ],
+ "work": [ 0.0, 0.0, 0.0 ],
+ "strideWork": 1,
+ "offsetWork": 0,
+ "expected": 30.0
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/large_strides/frobenius_norm_column_major.json b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/large_strides/frobenius_norm_column_major.json
new file mode 100644
index 000000000000..8168d1896b13
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/large_strides/frobenius_norm_column_major.json
@@ -0,0 +1,52 @@
+{
+ "order": "column-major",
+ "norm": "frobenius",
+ "M": 3,
+ "N": 4,
+ "A": [
+ 1.0,
+ 9999.0,
+ 2.0,
+ 9999.0,
+ 3.0,
+ 9999.0,
+ 4.0,
+ 9999.0,
+ 5.0,
+ 9999.0,
+ 6.0,
+ 9999.0,
+ 7.0,
+ 9999.0,
+ 8.0,
+ 9999.0,
+ 9.0,
+ 9999.0,
+ 10.0,
+ 9999.0,
+ 11.0,
+ 9999.0,
+ 12.0,
+ 9999.0
+ ],
+ "LDA": 3,
+ "strideA1": 2,
+ "strideA2": 6,
+ "offsetA": 0,
+ "A_mat": [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ],
+ "work": [
+ 0.0,
+ 9999.0,
+ 0.0,
+ 9999.0,
+ 0.0,
+ 9999.0
+ ],
+ "strideWork": 2,
+ "offsetWork": 0,
+ "expected": 25.495097567963924
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/large_strides/frobenius_norm_row_major.json b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/large_strides/frobenius_norm_row_major.json
new file mode 100644
index 000000000000..ef0b68f136c2
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/large_strides/frobenius_norm_row_major.json
@@ -0,0 +1,52 @@
+{
+ "order": "row-major",
+ "norm": "frobenius",
+ "M": 3,
+ "N": 4,
+ "A": [
+ 1.0,
+ 9999.0,
+ 4.0,
+ 9999.0,
+ 7.0,
+ 9999.0,
+ 10.0,
+ 9999.0,
+ 2.0,
+ 9999.0,
+ 5.0,
+ 9999.0,
+ 8.0,
+ 9999.0,
+ 11.0,
+ 9999.0,
+ 3.0,
+ 9999.0,
+ 6.0,
+ 9999.0,
+ 9.0,
+ 9999.0,
+ 12.0,
+ 9999.0
+ ],
+ "LDA": 4,
+ "strideA1": 8,
+ "strideA2": 2,
+ "offsetA": 0,
+ "A_mat": [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ],
+ "work": [
+ 0.0,
+ 9999.0,
+ 0.0,
+ 9999.0,
+ 0.0,
+ 9999.0
+ ],
+ "strideWork": 2,
+ "offsetWork": 0,
+ "expected": 25.495097567963924
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/large_strides/infinity_norm_column_major.json b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/large_strides/infinity_norm_column_major.json
new file mode 100644
index 000000000000..052dc8b4e32e
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/large_strides/infinity_norm_column_major.json
@@ -0,0 +1,52 @@
+{
+ "order": "column-major",
+ "norm": "infinity",
+ "M": 3,
+ "N": 4,
+ "A": [
+ 1.0,
+ 9999.0,
+ 2.0,
+ 9999.0,
+ 3.0,
+ 9999.0,
+ 4.0,
+ 9999.0,
+ 5.0,
+ 9999.0,
+ 6.0,
+ 9999.0,
+ 7.0,
+ 9999.0,
+ 8.0,
+ 9999.0,
+ 9.0,
+ 9999.0,
+ 10.0,
+ 9999.0,
+ 11.0,
+ 9999.0,
+ 12.0,
+ 9999.0
+ ],
+ "LDA": 3,
+ "strideA1": 2,
+ "strideA2": 6,
+ "offsetA": 0,
+ "A_mat": [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ],
+ "work": [
+ 0.0,
+ 9999.0,
+ 0.0,
+ 9999.0,
+ 0.0,
+ 9999.0
+ ],
+ "strideWork": 2,
+ "offsetWork": 0,
+ "expected": 30
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/large_strides/infinity_norm_row_major.json b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/large_strides/infinity_norm_row_major.json
new file mode 100644
index 000000000000..2974f5891f0e
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/large_strides/infinity_norm_row_major.json
@@ -0,0 +1,52 @@
+{
+ "order": "row-major",
+ "norm": "infinity",
+ "M": 3,
+ "N": 4,
+ "A": [
+ 1.0,
+ 9999.0,
+ 4.0,
+ 9999.0,
+ 7.0,
+ 9999.0,
+ 10.0,
+ 9999.0,
+ 2.0,
+ 9999.0,
+ 5.0,
+ 9999.0,
+ 8.0,
+ 9999.0,
+ 11.0,
+ 9999.0,
+ 3.0,
+ 9999.0,
+ 6.0,
+ 9999.0,
+ 9.0,
+ 9999.0,
+ 12.0,
+ 9999.0
+ ],
+ "LDA": 4,
+ "strideA1": 8,
+ "strideA2": 2,
+ "offsetA": 0,
+ "A_mat": [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ],
+ "work": [
+ 0.0,
+ 9999.0,
+ 0.0,
+ 9999.0,
+ 0.0,
+ 9999.0
+ ],
+ "strideWork": 2,
+ "offsetWork": 0,
+ "expected": 30
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/large_strides/max_element_column_major.json b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/large_strides/max_element_column_major.json
new file mode 100644
index 000000000000..e9c4eabd709d
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/large_strides/max_element_column_major.json
@@ -0,0 +1,52 @@
+{
+ "order": "column-major",
+ "norm": "max",
+ "M": 3,
+ "N": 4,
+ "A": [
+ 1.0,
+ 9999.0,
+ 2.0,
+ 9999.0,
+ 3.0,
+ 9999.0,
+ 4.0,
+ 9999.0,
+ 5.0,
+ 9999.0,
+ 6.0,
+ 9999.0,
+ 7.0,
+ 9999.0,
+ 8.0,
+ 9999.0,
+ 9.0,
+ 9999.0,
+ 10.0,
+ 9999.0,
+ 11.0,
+ 9999.0,
+ 12.0,
+ 9999.0
+ ],
+ "LDA": 3,
+ "strideA1": 2,
+ "strideA2": 6,
+ "offsetA": 0,
+ "A_mat": [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ],
+ "work": [
+ 0.0,
+ 9999.0,
+ 0.0,
+ 9999.0,
+ 0.0,
+ 9999.0
+ ],
+ "strideWork": 2,
+ "offsetWork": 0,
+ "expected": 12
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/large_strides/max_element_row_major.json b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/large_strides/max_element_row_major.json
new file mode 100644
index 000000000000..50e75dd2987d
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/large_strides/max_element_row_major.json
@@ -0,0 +1,52 @@
+{
+ "order": "row-major",
+ "norm": "max",
+ "M": 3,
+ "N": 4,
+ "A": [
+ 1.0,
+ 9999.0,
+ 4.0,
+ 9999.0,
+ 7.0,
+ 9999.0,
+ 10.0,
+ 9999.0,
+ 2.0,
+ 9999.0,
+ 5.0,
+ 9999.0,
+ 8.0,
+ 9999.0,
+ 11.0,
+ 9999.0,
+ 3.0,
+ 9999.0,
+ 6.0,
+ 9999.0,
+ 9.0,
+ 9999.0,
+ 12.0,
+ 9999.0
+ ],
+ "LDA": 4,
+ "strideA1": 8,
+ "strideA2": 2,
+ "offsetA": 0,
+ "A_mat": [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ],
+ "work": [
+ 0.0,
+ 9999.0,
+ 0.0,
+ 9999.0,
+ 0.0,
+ 9999.0
+ ],
+ "strideWork": 2,
+ "offsetWork": 0,
+ "expected": 12
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/large_strides/one_norm_column_major.json b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/large_strides/one_norm_column_major.json
new file mode 100644
index 000000000000..dd569ff5fdc0
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/large_strides/one_norm_column_major.json
@@ -0,0 +1,53 @@
+{
+ "order": "column-major",
+ "norm": "one",
+ "M": 3,
+ "N": 4,
+ "A": [
+ 1.0,
+ 9999.0,
+ 2.0,
+ 9999.0,
+ 3.0,
+ 9999.0,
+ 4.0,
+ 9999.0,
+ 5.0,
+ 9999.0,
+ 6.0,
+ 9999.0,
+ 7.0,
+ 9999.0,
+ 8.0,
+ 9999.0,
+ 9.0,
+ 9999.0,
+ 10.0,
+ 9999.0,
+ 11.0,
+ 9999.0,
+ 12.0,
+ 9999.0
+ ],
+ "LDA": 3,
+ "strideA1": 2,
+ "strideA2": 6,
+ "offsetA": 0,
+ "A_mat": [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ],
+ "work": [
+ 0.0,
+ 9999.0,
+ 0.0,
+ 9999.0,
+ 0.0,
+ 9999.0,
+ 0.0
+ ],
+ "strideWork": 2,
+ "offsetWork": 0,
+ "expected": 33
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/large_strides/one_norm_row_major.json b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/large_strides/one_norm_row_major.json
new file mode 100644
index 000000000000..5fc3b3ce02a9
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/large_strides/one_norm_row_major.json
@@ -0,0 +1,53 @@
+{
+ "order": "row-major",
+ "norm": "one",
+ "M": 3,
+ "N": 4,
+ "A": [
+ 1.0,
+ 9999.0,
+ 4.0,
+ 9999.0,
+ 7.0,
+ 9999.0,
+ 10.0,
+ 9999.0,
+ 2.0,
+ 9999.0,
+ 5.0,
+ 9999.0,
+ 8.0,
+ 9999.0,
+ 11.0,
+ 9999.0,
+ 3.0,
+ 9999.0,
+ 6.0,
+ 9999.0,
+ 9.0,
+ 9999.0,
+ 12.0,
+ 9999.0
+ ],
+ "LDA": 4,
+ "strideA1": 8,
+ "strideA2": 2,
+ "offsetA": 0,
+ "A_mat": [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ],
+ "work": [
+ 0.0,
+ 9999.0,
+ 0.0,
+ 9999.0,
+ 0.0,
+ 9999.0,
+ 0.0
+ ],
+ "strideWork": 2,
+ "offsetWork": 0,
+ "expected": 33
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/max_element_column_major.json b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/max_element_column_major.json
new file mode 100644
index 000000000000..e7d59f3b26f2
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/max_element_column_major.json
@@ -0,0 +1,20 @@
+{
+ "order": "column-major",
+ "norm": "max",
+ "M": 3,
+ "N": 4,
+ "A": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ],
+ "LDA": 3,
+ "strideA1": 1,
+ "strideA2": 3,
+ "offsetA": 0,
+ "A_mat": [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ],
+ "work": [ 0.0, 0.0, 0.0 ],
+ "strideWork": 1,
+ "offsetWork": 0,
+ "expected": 12.0
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/max_element_row_major.json b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/max_element_row_major.json
new file mode 100644
index 000000000000..aa5cb6c6abd3
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/max_element_row_major.json
@@ -0,0 +1,20 @@
+{
+ "order": "row-major",
+ "norm": "max",
+ "M": 3,
+ "N": 4,
+ "A": [ 1.0, 4.0, 7.0, 10.0, 2.0, 5.0, 8.0, 11.0, 3.0, 6.0, 9.0, 12.0 ],
+ "LDA": 4,
+ "strideA1": 4,
+ "strideA2": 1,
+ "offsetA": 0,
+ "A_mat": [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ],
+ "work": [ 0.0, 0.0, 0.0 ],
+ "strideWork": 1,
+ "offsetWork": 0,
+ "expected": 12.0
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/mixed_strides/frobenius_norm_column_major.json b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/mixed_strides/frobenius_norm_column_major.json
new file mode 100644
index 000000000000..84aeade96f67
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/mixed_strides/frobenius_norm_column_major.json
@@ -0,0 +1,37 @@
+{
+ "order": "column-major",
+ "norm": "frobenius",
+ "M": 3,
+ "N": 4,
+ "A": [
+ 10.0,
+ 11.0,
+ 12.0,
+ 7.0,
+ 8.0,
+ 9.0,
+ 4.0,
+ 5.0,
+ 6.0,
+ 1.0,
+ 2.0,
+ 3.0
+ ],
+ "LDA": 3,
+ "strideA1": 1,
+ "strideA2": -3,
+ "offsetA": 9,
+ "A_mat": [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ],
+ "work": [
+ 0.0,
+ 0.0,
+ 0.0
+ ],
+ "strideWork": 1,
+ "offsetWork": 0,
+ "expected": 25.495097567963924
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/mixed_strides/frobenius_norm_row_major.json b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/mixed_strides/frobenius_norm_row_major.json
new file mode 100644
index 000000000000..7f662e050a6a
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/mixed_strides/frobenius_norm_row_major.json
@@ -0,0 +1,37 @@
+{
+ "order": "row-major",
+ "norm": "frobenius",
+ "M": 3,
+ "N": 4,
+ "A": [
+ 3.0,
+ 6.0,
+ 9.0,
+ 12.0,
+ 2.0,
+ 5.0,
+ 8.0,
+ 11.0,
+ 1.0,
+ 4.0,
+ 7.0,
+ 10.0
+ ],
+ "LDA": 4,
+ "strideA1": -4,
+ "strideA2": 1,
+ "offsetA": 8,
+ "A_mat": [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ],
+ "work": [
+ 0.0,
+ 0.0,
+ 0.0
+ ],
+ "strideWork": 1,
+ "offsetWork": 0,
+ "expected": 25.495097567963924
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/mixed_strides/infinity_norm_column_major.json b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/mixed_strides/infinity_norm_column_major.json
new file mode 100644
index 000000000000..b2569fe02d1e
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/mixed_strides/infinity_norm_column_major.json
@@ -0,0 +1,37 @@
+{
+ "order": "column-major",
+ "norm": "infinity",
+ "M": 3,
+ "N": 4,
+ "A": [
+ 10.0,
+ 11.0,
+ 12.0,
+ 7.0,
+ 8.0,
+ 9.0,
+ 4.0,
+ 5.0,
+ 6.0,
+ 1.0,
+ 2.0,
+ 3.0
+ ],
+ "LDA": 3,
+ "strideA1": 1,
+ "strideA2": -3,
+ "offsetA": 9,
+ "A_mat": [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ],
+ "work": [
+ 0.0,
+ 0.0,
+ 0.0
+ ],
+ "strideWork": 1,
+ "offsetWork": 0,
+ "expected": 30
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/mixed_strides/infinity_norm_row_major.json b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/mixed_strides/infinity_norm_row_major.json
new file mode 100644
index 000000000000..ac8f48218d25
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/mixed_strides/infinity_norm_row_major.json
@@ -0,0 +1,37 @@
+{
+ "order": "row-major",
+ "norm": "infinity",
+ "M": 3,
+ "N": 4,
+ "A": [
+ 3.0,
+ 6.0,
+ 9.0,
+ 12.0,
+ 2.0,
+ 5.0,
+ 8.0,
+ 11.0,
+ 1.0,
+ 4.0,
+ 7.0,
+ 10.0
+ ],
+ "LDA": 4,
+ "strideA1": -4,
+ "strideA2": 1,
+ "offsetA": 8,
+ "A_mat": [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ],
+ "work": [
+ 0.0,
+ 0.0,
+ 0.0
+ ],
+ "strideWork": 1,
+ "offsetWork": 0,
+ "expected": 30
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/mixed_strides/max_element_column_major.json b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/mixed_strides/max_element_column_major.json
new file mode 100644
index 000000000000..9657df72105f
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/mixed_strides/max_element_column_major.json
@@ -0,0 +1,37 @@
+{
+ "order": "column-major",
+ "norm": "max",
+ "M": 3,
+ "N": 4,
+ "A": [
+ 10.0,
+ 11.0,
+ 12.0,
+ 7.0,
+ 8.0,
+ 9.0,
+ 4.0,
+ 5.0,
+ 6.0,
+ 1.0,
+ 2.0,
+ 3.0
+ ],
+ "LDA": 3,
+ "strideA1": 1,
+ "strideA2": -3,
+ "offsetA": 9,
+ "A_mat": [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ],
+ "work": [
+ 0.0,
+ 0.0,
+ 0.0
+ ],
+ "strideWork": 1,
+ "offsetWork": 0,
+ "expected": 12
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/mixed_strides/max_element_row_major.json b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/mixed_strides/max_element_row_major.json
new file mode 100644
index 000000000000..9977ce92a76d
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/mixed_strides/max_element_row_major.json
@@ -0,0 +1,37 @@
+{
+ "order": "row-major",
+ "norm": "max",
+ "M": 3,
+ "N": 4,
+ "A": [
+ 3,
+ 6,
+ 9,
+ 12,
+ 2,
+ 5,
+ 8,
+ 11,
+ 1,
+ 4,
+ 7,
+ 10
+ ],
+ "LDA": 4,
+ "strideA1": -4,
+ "strideA2": 1,
+ "offsetA": 8,
+ "A_mat": [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ],
+ "work": [
+ 0.0,
+ 0.0,
+ 0.0
+ ],
+ "strideWork": 1,
+ "offsetWork": 0,
+ "expected": 12
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/mixed_strides/one_norm_column_major.json b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/mixed_strides/one_norm_column_major.json
new file mode 100644
index 000000000000..2d98efec5366
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/mixed_strides/one_norm_column_major.json
@@ -0,0 +1,38 @@
+{
+ "order": "column-major",
+ "norm": "one",
+ "M": 3,
+ "N": 4,
+ "A": [
+ 10.0,
+ 11.0,
+ 12.0,
+ 7.0,
+ 8.0,
+ 9.0,
+ 4.0,
+ 5.0,
+ 6.0,
+ 1.0,
+ 2.0,
+ 3.0
+ ],
+ "LDA": 3,
+ "strideA1": 1,
+ "strideA2": -3,
+ "offsetA": 9,
+ "A_mat": [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ],
+ "work": [
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0
+ ],
+ "strideWork": 1,
+ "offsetWork": 0,
+ "expected": 33
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/mixed_strides/one_norm_row_major.json b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/mixed_strides/one_norm_row_major.json
new file mode 100644
index 000000000000..abcae4cc6cdb
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/mixed_strides/one_norm_row_major.json
@@ -0,0 +1,38 @@
+{
+ "order": "row-major",
+ "norm": "one",
+ "M": 3,
+ "N": 4,
+ "A": [
+ 3.0,
+ 6.0,
+ 9.0,
+ 12.0,
+ 2.0,
+ 5.0,
+ 8.0,
+ 11.0,
+ 1.0,
+ 4.0,
+ 7.0,
+ 10.0
+ ],
+ "LDA": 4,
+ "strideA1": -4,
+ "strideA2": 1,
+ "offsetA": 8,
+ "A_mat": [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ],
+ "work": [
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0
+ ],
+ "strideWork": 1,
+ "offsetWork": 0,
+ "expected": 33
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/negative_strides/frobenius_norm_column_major.json b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/negative_strides/frobenius_norm_column_major.json
new file mode 100644
index 000000000000..5083600df887
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/negative_strides/frobenius_norm_column_major.json
@@ -0,0 +1,37 @@
+{
+ "order": "column-major",
+ "norm": "frobenius",
+ "M": 3,
+ "N": 4,
+ "A": [
+ 12.0,
+ 11.0,
+ 10.0,
+ 9.0,
+ 8.0,
+ 7.0,
+ 6.0,
+ 5.0,
+ 4.0,
+ 3.0,
+ 2.0,
+ 1.0
+ ],
+ "LDA": 3,
+ "strideA1": -1,
+ "strideA2": -3,
+ "offsetA": 11,
+ "A_mat": [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ],
+ "work": [
+ 0.0,
+ 0.0,
+ 0.0
+ ],
+ "strideWork": -1,
+ "offsetWork": 2,
+ "expected": 25.495097567963924
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/negative_strides/frobenius_norm_row_major.json b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/negative_strides/frobenius_norm_row_major.json
new file mode 100644
index 000000000000..646c9f821998
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/negative_strides/frobenius_norm_row_major.json
@@ -0,0 +1,37 @@
+{
+ "order": "row-major",
+ "norm": "frobenius",
+ "M": 3,
+ "N": 4,
+ "A": [
+ 12.0,
+ 9.0,
+ 6.0,
+ 3.0,
+ 11.0,
+ 8.0,
+ 5.0,
+ 2.0,
+ 10.0,
+ 7.0,
+ 4.0,
+ 1.0
+ ],
+ "LDA": 4,
+ "strideA1": -4,
+ "strideA2": -1,
+ "offsetA": 11,
+ "A_mat": [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ],
+ "work": [
+ 0.0,
+ 0.0,
+ 0.0
+ ],
+ "strideWork": -1,
+ "offsetWork": 2,
+ "expected": 25.495097567963924
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/negative_strides/infinity_norm_column_major.json b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/negative_strides/infinity_norm_column_major.json
new file mode 100644
index 000000000000..2a3196b91235
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/negative_strides/infinity_norm_column_major.json
@@ -0,0 +1,37 @@
+{
+ "order": "column-major",
+ "norm": "infinity",
+ "M": 3,
+ "N": 4,
+ "A": [
+ 12.0,
+ 11.0,
+ 10.0,
+ 9.0,
+ 8.0,
+ 7.0,
+ 6.0,
+ 5.0,
+ 4.0,
+ 3.0,
+ 2.0,
+ 1.0
+ ],
+ "LDA": 3,
+ "strideA1": -1,
+ "strideA2": -3,
+ "offsetA": 11,
+ "A_mat": [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ],
+ "work": [
+ 0.0,
+ 0.0,
+ 0.0
+ ],
+ "strideWork": -1,
+ "offsetWork": 2,
+ "expected": 30
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/negative_strides/infinity_norm_row_major.json b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/negative_strides/infinity_norm_row_major.json
new file mode 100644
index 000000000000..6314f68541a4
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/negative_strides/infinity_norm_row_major.json
@@ -0,0 +1,37 @@
+{
+ "order": "row-major",
+ "norm": "infinity",
+ "M": 3,
+ "N": 4,
+ "A": [
+ 12.0,
+ 9.0,
+ 6.0,
+ 3.0,
+ 11.0,
+ 8.0,
+ 5.0,
+ 2.0,
+ 10.0,
+ 7.0,
+ 4.0,
+ 1.0
+ ],
+ "LDA": 4,
+ "strideA1": -4,
+ "strideA2": -1,
+ "offsetA": 11,
+ "A_mat": [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ],
+ "work": [
+ 0.0,
+ 0.0,
+ 0.0
+ ],
+ "strideWork": -1,
+ "offsetWork": 2,
+ "expected": 30
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/negative_strides/max_element_column_major.json b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/negative_strides/max_element_column_major.json
new file mode 100644
index 000000000000..2d9f4a261acd
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/negative_strides/max_element_column_major.json
@@ -0,0 +1,37 @@
+{
+ "order": "column-major",
+ "norm": "max",
+ "M": 3,
+ "N": 4,
+ "A": [
+ 12.0,
+ 11.0,
+ 10.0,
+ 9.0,
+ 8.0,
+ 7.0,
+ 6.0,
+ 5.0,
+ 4.0,
+ 3.0,
+ 2.0,
+ 1.0
+ ],
+ "LDA": 3,
+ "strideA1": -1,
+ "strideA2": -3,
+ "offsetA": 11,
+ "A_mat": [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ],
+ "work": [
+ 0.0,
+ 0.0,
+ 0.0
+ ],
+ "strideWork": -1,
+ "offsetWork": 2,
+ "expected": 12
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/negative_strides/max_element_row_major.json b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/negative_strides/max_element_row_major.json
new file mode 100644
index 000000000000..5b5270fa1c6b
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/negative_strides/max_element_row_major.json
@@ -0,0 +1,37 @@
+{
+ "order": "row-major",
+ "norm": "max",
+ "M": 3,
+ "N": 4,
+ "A": [
+ 12.0,
+ 9.0,
+ 6.0,
+ 3.0,
+ 11.0,
+ 8.0,
+ 5.0,
+ 2.0,
+ 10.0,
+ 7.0,
+ 4.0,
+ 1.0
+ ],
+ "LDA": 4,
+ "strideA1": -4,
+ "strideA2": -1,
+ "offsetA": 11,
+ "A_mat": [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ],
+ "work": [
+ 0.0,
+ 0.0,
+ 0.0
+ ],
+ "strideWork": -1,
+ "offsetWork": 2,
+ "expected": 12
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/negative_strides/one_norm_column_major.json b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/negative_strides/one_norm_column_major.json
new file mode 100644
index 000000000000..bbcaaee943a4
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/negative_strides/one_norm_column_major.json
@@ -0,0 +1,38 @@
+{
+ "order": "column-major",
+ "norm": "one",
+ "M": 3,
+ "N": 4,
+ "A": [
+ 12.0,
+ 11.0,
+ 10.0,
+ 9.0,
+ 8.0,
+ 7.0,
+ 6.0,
+ 5.0,
+ 4.0,
+ 3.0,
+ 2.0,
+ 1.0
+ ],
+ "LDA": 3,
+ "strideA1": -1,
+ "strideA2": -3,
+ "offsetA": 11,
+ "A_mat": [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ],
+ "work": [
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0
+ ],
+ "strideWork": -1,
+ "offsetWork": 3,
+ "expected": 33
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/negative_strides/one_norm_row_major.json b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/negative_strides/one_norm_row_major.json
new file mode 100644
index 000000000000..0bf377ac7517
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/negative_strides/one_norm_row_major.json
@@ -0,0 +1,38 @@
+{
+ "order": "row-major",
+ "norm": "one",
+ "M": 3,
+ "N": 4,
+ "A": [
+ 12.0,
+ 9.0,
+ 6.0,
+ 3.0,
+ 11.0,
+ 8.0,
+ 5.0,
+ 2.0,
+ 10.0,
+ 7.0,
+ 4.0,
+ 1.0
+ ],
+ "LDA": 4,
+ "strideA1": -4,
+ "strideA2": -1,
+ "offsetA": 11,
+ "A_mat": [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ],
+ "work": [
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0
+ ],
+ "strideWork": -1,
+ "offsetWork": 3,
+ "expected": 33
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/offsets/frobenius_norm_column_major.json b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/offsets/frobenius_norm_column_major.json
new file mode 100644
index 000000000000..8b76307a3faa
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/offsets/frobenius_norm_column_major.json
@@ -0,0 +1,39 @@
+{
+ "order": "column-major",
+ "norm": "frobenius",
+ "M": 3,
+ "N": 4,
+ "A": [
+ 9999.0,
+ 1.0,
+ 2.0,
+ 3.0,
+ 4.0,
+ 5.0,
+ 6.0,
+ 7.0,
+ 8.0,
+ 9.0,
+ 10.0,
+ 11.0,
+ 12.0
+ ],
+ "LDA": 3,
+ "strideA1": 1,
+ "strideA2": 3,
+ "offsetA": 1,
+ "A_mat": [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ],
+ "work": [
+ 9999.0,
+ 0.0,
+ 0.0,
+ 0.0
+ ],
+ "strideWork": 1,
+ "offsetWork": 1,
+ "expected": 25.495097567963924
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/offsets/frobenius_norm_row_major.json b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/offsets/frobenius_norm_row_major.json
new file mode 100644
index 000000000000..20da98f12127
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/offsets/frobenius_norm_row_major.json
@@ -0,0 +1,39 @@
+{
+ "order": "row-major",
+ "norm": "frobenius",
+ "M": 3,
+ "N": 4,
+ "A": [
+ 9999.0,
+ 1.0,
+ 4.0,
+ 7.0,
+ 10.0,
+ 2.0,
+ 5.0,
+ 8.0,
+ 11.0,
+ 3.0,
+ 6.0,
+ 9.0,
+ 12.0
+ ],
+ "LDA": 4,
+ "strideA1": 4,
+ "strideA2": 1,
+ "offsetA": 1,
+ "A_mat": [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ],
+ "work": [
+ 9999.0,
+ 0.0,
+ 0.0,
+ 0.0
+ ],
+ "strideWork": 1,
+ "offsetWork": 1,
+ "expected": 25.495097567963924
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/offsets/infinity_norm_column_major.json b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/offsets/infinity_norm_column_major.json
new file mode 100644
index 000000000000..2cc1f968c9b7
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/offsets/infinity_norm_column_major.json
@@ -0,0 +1,39 @@
+{
+ "order": "column-major",
+ "norm": "infinity",
+ "M": 3,
+ "N": 4,
+ "A": [
+ 9999.0,
+ 1.0,
+ 2.0,
+ 3.0,
+ 4.0,
+ 5.0,
+ 6.0,
+ 7.0,
+ 8.0,
+ 9.0,
+ 10.0,
+ 11.0,
+ 12.0
+ ],
+ "LDA": 3,
+ "strideA1": 1,
+ "strideA2": 3,
+ "offsetA": 1,
+ "A_mat": [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ],
+ "work": [
+ 9999.0,
+ 0.0,
+ 0.0,
+ 0.0
+ ],
+ "strideWork": 1,
+ "offsetWork": 1,
+ "expected": 30
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/offsets/infinity_norm_row_major.json b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/offsets/infinity_norm_row_major.json
new file mode 100644
index 000000000000..e66529cedf46
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/offsets/infinity_norm_row_major.json
@@ -0,0 +1,39 @@
+{
+ "order": "row-major",
+ "norm": "infinity",
+ "M": 3,
+ "N": 4,
+ "A": [
+ 9999.0,
+ 1.0,
+ 4.0,
+ 7.0,
+ 10.0,
+ 2.0,
+ 5.0,
+ 8.0,
+ 11.0,
+ 3.0,
+ 6.0,
+ 9.0,
+ 12.0
+ ],
+ "LDA": 4,
+ "strideA1": 4,
+ "strideA2": 1,
+ "offsetA": 1,
+ "A_mat": [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ],
+ "work": [
+ 9999.0,
+ 0.0,
+ 0.0,
+ 0.0
+ ],
+ "strideWork": 1,
+ "offsetWork": 1,
+ "expected": 30
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/offsets/max_element_column_major.json b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/offsets/max_element_column_major.json
new file mode 100644
index 000000000000..ea84859af5a7
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/offsets/max_element_column_major.json
@@ -0,0 +1,39 @@
+{
+ "order": "column-major",
+ "norm": "max",
+ "M": 3,
+ "N": 4,
+ "A": [
+ 9999.0,
+ 1.0,
+ 2.0,
+ 3.0,
+ 4.0,
+ 5.0,
+ 6.0,
+ 7.0,
+ 8.0,
+ 9.0,
+ 10.0,
+ 11.0,
+ 12.0
+ ],
+ "LDA": 3,
+ "strideA1": 1,
+ "strideA2": 3,
+ "offsetA": 1,
+ "A_mat": [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ],
+ "work": [
+ 9999.0,
+ 0.0,
+ 0.0,
+ 0.0
+ ],
+ "strideWork": 1,
+ "offsetWork": 1,
+ "expected": 12
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/offsets/max_element_row_major.json b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/offsets/max_element_row_major.json
new file mode 100644
index 000000000000..697141cde7aa
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/offsets/max_element_row_major.json
@@ -0,0 +1,39 @@
+{
+ "order": "row-major",
+ "norm": "max",
+ "M": 3,
+ "N": 4,
+ "A": [
+ 9999.0,
+ 1.0,
+ 4.0,
+ 7.0,
+ 10.0,
+ 2.0,
+ 5.0,
+ 8.0,
+ 11.0,
+ 3.0,
+ 6.0,
+ 9.0,
+ 12.0
+ ],
+ "LDA": 4,
+ "strideA1": 4,
+ "strideA2": 1,
+ "offsetA": 1,
+ "A_mat": [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ],
+ "work": [
+ 9999.0,
+ 0.0,
+ 0.0,
+ 0.0
+ ],
+ "strideWork": 1,
+ "offsetWork": 1,
+ "expected": 12
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/offsets/one_norm_column_major.json b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/offsets/one_norm_column_major.json
new file mode 100644
index 000000000000..7cae90820429
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/offsets/one_norm_column_major.json
@@ -0,0 +1,40 @@
+{
+ "order": "column-major",
+ "norm": "one",
+ "M": 3,
+ "N": 4,
+ "A": [
+ 9999.0,
+ 1.0,
+ 2.0,
+ 3.0,
+ 4.0,
+ 5.0,
+ 6.0,
+ 7.0,
+ 8.0,
+ 9.0,
+ 10.0,
+ 11.0,
+ 12.0
+ ],
+ "LDA": 3,
+ "strideA1": 1,
+ "strideA2": 3,
+ "offsetA": 1,
+ "A_mat": [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ],
+ "work": [
+ 9999.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0
+ ],
+ "strideWork": 1,
+ "offsetWork": 1,
+ "expected": 33
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/offsets/one_norm_row_major.json b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/offsets/one_norm_row_major.json
new file mode 100644
index 000000000000..29234b10ef58
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/offsets/one_norm_row_major.json
@@ -0,0 +1,40 @@
+{
+ "order": "row-major",
+ "norm": "one",
+ "M": 3,
+ "N": 4,
+ "A": [
+ 9999.0,
+ 1.0,
+ 4.0,
+ 7.0,
+ 10.0,
+ 2.0,
+ 5.0,
+ 8.0,
+ 11.0,
+ 3.0,
+ 6.0,
+ 9.0,
+ 12.0
+ ],
+ "LDA": 4,
+ "strideA1": 4,
+ "strideA2": 1,
+ "offsetA": 1,
+ "A_mat": [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ],
+ "work": [
+ 9999.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0
+ ],
+ "strideWork": 1,
+ "offsetWork": 1,
+ "expected": 33
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/one_norm_column_major.json b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/one_norm_column_major.json
new file mode 100644
index 000000000000..b88f0138f8a6
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/one_norm_column_major.json
@@ -0,0 +1,20 @@
+{
+ "order": "column-major",
+ "norm": "one",
+ "M": 3,
+ "N": 4,
+ "A": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ],
+ "LDA": 3,
+ "strideA1": 1,
+ "strideA2": 3,
+ "offsetA": 0,
+ "A_mat": [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ],
+ "work": [ 0.0, 0.0, 0.0, 0.0 ],
+ "strideWork": 1,
+ "offsetWork": 0,
+ "expected": 33.0
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/one_norm_row_major.json b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/one_norm_row_major.json
new file mode 100644
index 000000000000..413d4c9fb034
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/fixtures/one_norm_row_major.json
@@ -0,0 +1,20 @@
+{
+ "order": "row-major",
+ "norm": "one",
+ "M": 3,
+ "N": 4,
+ "A": [ 1.0, 4.0, 7.0, 10.0, 2.0, 5.0, 8.0, 11.0, 3.0, 6.0, 9.0, 12.0 ],
+ "LDA": 4,
+ "strideA1": 4,
+ "strideA2": 1,
+ "offsetA": 0,
+ "A_mat": [
+ [ 1.0, 4.0, 7.0, 10.0 ],
+ [ 2.0, 5.0, 8.0, 11.0 ],
+ [ 3.0, 6.0, 9.0, 12.0 ]
+ ],
+ "work": [ 0.0, 0.0, 0.0, 0.0 ],
+ "strideWork": 1,
+ "offsetWork": 0,
+ "expected": 33.0
+}
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/test.dlange.js b/lib/node_modules/@stdlib/lapack/base/dlange/test/test.dlange.js
new file mode 100644
index 000000000000..1a3822e967d6
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/test.dlange.js
@@ -0,0 +1,308 @@
+/**
+* @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 id-length */
+
+'use strict';
+
+// MODULES //
+
+var tape = require( 'tape' );
+var Float64Array = require( '@stdlib/array/float64' );
+var dlange = require( './../lib/dlange.js' );
+
+
+// FIXTURES //
+
+var ONE_NORM_ROW_MAJOR = require( './fixtures/one_norm_row_major.json' );
+var ONE_NORM_COLUMN_MAJOR = require( './fixtures/one_norm_column_major.json' );
+var INFINITY_NORM_ROW_MAJOR = require( './fixtures/infinity_norm_row_major.json' );
+var INFINITY_NORM_COLUMN_MAJOR = require( './fixtures/infinity_norm_column_major.json' );
+var MAX_ELEMENT_ROW_MAJOR = require( './fixtures/max_element_row_major.json' );
+var MAX_ELEMENT_COLUMN_MAJOR = require( './fixtures/max_element_column_major.json' );
+var FROBENIUS_NORM_ROW_MAJOR = require( './fixtures/frobenius_norm_row_major.json' );
+var FROBENIUS_NORM_COLUMN_MAJOR = require( './fixtures/frobenius_norm_column_major.json' );
+
+
+// TESTS //
+
+tape( 'main export is a function', function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof dlange, 'function', 'main export is a function' );
+ t.end();
+});
+
+tape( 'the function has an arity of 7', function test( t ) {
+ t.strictEqual( dlange.length, 7, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function throws an error if provided a first argument which is not a valid order', function test( t ) {
+ var values;
+ var data;
+ var work;
+ var A;
+ var i;
+
+ data = FROBENIUS_NORM_ROW_MAJOR;
+
+ values = [
+ 'foo',
+ 'bar',
+ 'beep',
+ 'boop',
+ -5,
+ NaN,
+ true,
+ false,
+ null,
+ void 0,
+ [],
+ {},
+ function noop() {}
+ ];
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ 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() {
+ dlange( value, data.norm, data.M, data.N, A, data.LDA, work );
+ };
+ }
+});
+
+tape( 'the function throws an error if provided a second argument which is not a valid operation', function test( t ) {
+ var values;
+ var data;
+ var work;
+ var A;
+ var i;
+
+ data = FROBENIUS_NORM_ROW_MAJOR;
+
+ values = [
+ 'foo',
+ 'bar',
+ 'beep',
+ 'boop',
+ -5,
+ NaN,
+ true,
+ false,
+ null,
+ void 0,
+ [],
+ {},
+ function noop() {}
+ ];
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ 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() {
+ dlange( data.order, value, data.M, data.N, A, data.LDA, work );
+ };
+ }
+});
+
+tape( 'the function throws an error if provided a fourth argument which is not a valid `LDA` value (row-major)', function test( t ) {
+ var values;
+ var data;
+ var work;
+ var A;
+ var i;
+
+ data = FROBENIUS_NORM_ROW_MAJOR;
+
+ values = [
+ 0,
+ 1,
+ 2,
+ 3
+ ];
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ 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() {
+ dlange( data.order, data.norm, data.M, data.N, A, value, work );
+ };
+ }
+});
+
+tape( 'the function returns zero if number of rows or columns is zero', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = ONE_NORM_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.order, data.norm, 0, data.N, A, data.LDA, work );
+ t.strictEqual( out, 0.0, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the one norm for a given matrix A (row-major)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = ONE_NORM_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.order, data.norm, data.M, data.N, A, data.LDA, work );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the one norm for a given matrix A (column-major)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = ONE_NORM_COLUMN_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.order, data.norm, data.M, data.N, A, data.LDA, work );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the infinity norm for a given matrix A (row-major)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = INFINITY_NORM_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.order, data.norm, data.M, data.N, A, data.LDA, work );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the infinity norm for a given matrix A (column-major)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = INFINITY_NORM_COLUMN_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.order, data.norm, data.M, data.N, A, data.LDA, work );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the frobenius norm for a given matrix A (row-major)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = FROBENIUS_NORM_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.order, data.norm, data.M, data.N, A, data.LDA, work );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the frobenius norm for a given matrix A (column-major)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = FROBENIUS_NORM_COLUMN_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.order, data.norm, data.M, data.N, A, data.LDA, work );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the maximum absolute value for a given matrix A (row-major)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = MAX_ELEMENT_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.order, data.norm, data.M, data.N, A, data.LDA, work );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the maximum absolute value for a given matrix A (column-major)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = MAX_ELEMENT_COLUMN_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.order, data.norm, data.M, data.N, A, data.LDA, work );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/test.js b/lib/node_modules/@stdlib/lapack/base/dlange/test/test.js
new file mode 100644
index 000000000000..41c9b5de040a
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/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 dlange = 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 dlange, '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 dlange.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 dlange = proxyquire( './../lib', {
+ '@stdlib/utils/try-require': tryRequire
+ });
+
+ t.strictEqual( dlange, 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 dlange;
+ var main;
+
+ main = require( './../lib/dlange.js' );
+
+ dlange = proxyquire( './../lib', {
+ '@stdlib/utils/try-require': tryRequire
+ });
+
+ t.strictEqual( dlange, main, 'returns expected value' );
+ t.end();
+
+ function tryRequire() {
+ return new Error( 'Cannot find module' );
+ }
+});
diff --git a/lib/node_modules/@stdlib/lapack/base/dlange/test/test.ndarray.js b/lib/node_modules/@stdlib/lapack/base/dlange/test/test.ndarray.js
new file mode 100644
index 000000000000..fb8a050420fa
--- /dev/null
+++ b/lib/node_modules/@stdlib/lapack/base/dlange/test/test.ndarray.js
@@ -0,0 +1,785 @@
+/**
+* @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 id-length, max-len */
+
+'use strict';
+
+// MODULES //
+
+var tape = require( 'tape' );
+var Float64Array = require( '@stdlib/array/float64' );
+var dlange = require( './../lib/ndarray.js' );
+
+
+// FIXTURES //
+
+var ONE_NORM_ROW_MAJOR = require( './fixtures/one_norm_row_major.json' );
+var ONE_NORM_COLUMN_MAJOR = require( './fixtures/one_norm_column_major.json' );
+var INFINITY_NORM_ROW_MAJOR = require( './fixtures/infinity_norm_row_major.json' );
+var INFINITY_NORM_COLUMN_MAJOR = require( './fixtures/infinity_norm_column_major.json' );
+var MAX_ELEMENT_ROW_MAJOR = require( './fixtures/max_element_row_major.json' );
+var MAX_ELEMENT_COLUMN_MAJOR = require( './fixtures/max_element_column_major.json' );
+var FROBENIUS_NORM_ROW_MAJOR = require( './fixtures/frobenius_norm_row_major.json' );
+var FROBENIUS_NORM_COLUMN_MAJOR = require( './fixtures/frobenius_norm_column_major.json' );
+
+var OFFSET_ONE_NORM_ROW_MAJOR = require( './fixtures/offsets/one_norm_row_major.json' );
+var OFFSET_ONE_NORM_COLUMN_MAJOR = require( './fixtures/offsets/one_norm_column_major.json' );
+var OFFSET_INFINITY_NORM_ROW_MAJOR = require( './fixtures/offsets/infinity_norm_row_major.json' );
+var OFFSET_INFINITY_NORM_COLUMN_MAJOR = require( './fixtures/offsets/infinity_norm_column_major.json' );
+var OFFSET_MAX_ELEMENT_ROW_MAJOR = require( './fixtures/offsets/max_element_row_major.json' );
+var OFFSET_MAX_ELEMENT_COLUMN_MAJOR = require( './fixtures/offsets/max_element_column_major.json' );
+var OFFSET_FROBENIUS_NORM_ROW_MAJOR = require( './fixtures/offsets/frobenius_norm_row_major.json' );
+var OFFSET_FROBENIUS_NORM_COLUMN_MAJOR = require( './fixtures/offsets/frobenius_norm_column_major.json' );
+
+var NEGATIVE_STRIDES_ONE_NORM_ROW_MAJOR = require( './fixtures/negative_strides/one_norm_row_major.json' );
+var NEGATIVE_STRIDES_ONE_NORM_COLUMN_MAJOR = require( './fixtures/negative_strides/one_norm_column_major.json' );
+var NEGATIVE_STRIDES_INFINITY_NORM_ROW_MAJOR = require( './fixtures/negative_strides/infinity_norm_row_major.json' );
+var NEGATIVE_STRIDES_INFINITY_NORM_COLUMN_MAJOR = require( './fixtures/negative_strides/infinity_norm_column_major.json' );
+var NEGATIVE_STRIDES_MAX_ELEMENT_ROW_MAJOR = require( './fixtures/negative_strides/max_element_row_major.json' );
+var NEGATIVE_STRIDES_MAX_ELEMENT_COLUMN_MAJOR = require( './fixtures/negative_strides/max_element_column_major.json' );
+var NEGATIVE_STRIDES_FROBENIUS_NORM_ROW_MAJOR = require( './fixtures/negative_strides/frobenius_norm_row_major.json' );
+var NEGATIVE_STRIDES_FROBENIUS_NORM_COLUMN_MAJOR = require( './fixtures/negative_strides/frobenius_norm_column_major.json' );
+
+var MIXED_STRIDES_ONE_NORM_ROW_MAJOR = require( './fixtures/mixed_strides/one_norm_row_major.json' );
+var MIXED_STRIDES_ONE_NORM_COLUMN_MAJOR = require( './fixtures/mixed_strides/one_norm_column_major.json' );
+var MIXED_STRIDES_INFINITY_NORM_ROW_MAJOR = require( './fixtures/mixed_strides/infinity_norm_row_major.json' );
+var MIXED_STRIDES_INFINITY_NORM_COLUMN_MAJOR = require( './fixtures/mixed_strides/infinity_norm_column_major.json' );
+var MIXED_STRIDES_MAX_ELEMENT_ROW_MAJOR = require( './fixtures/mixed_strides/max_element_row_major.json' );
+var MIXED_STRIDES_MAX_ELEMENT_COLUMN_MAJOR = require( './fixtures/mixed_strides/max_element_column_major.json' );
+var MIXED_STRIDES_FROBENIUS_NORM_ROW_MAJOR = require( './fixtures/mixed_strides/frobenius_norm_row_major.json' );
+var MIXED_STRIDES_FROBENIUS_NORM_COLUMN_MAJOR = require( './fixtures/mixed_strides/frobenius_norm_column_major.json' );
+
+var LARGE_STRIDES_ONE_NORM_ROW_MAJOR = require( './fixtures/large_strides/one_norm_row_major.json' );
+var LARGE_STRIDES_ONE_NORM_COLUMN_MAJOR = require( './fixtures/large_strides/one_norm_column_major.json' );
+var LARGE_STRIDES_INFINITY_NORM_ROW_MAJOR = require( './fixtures/large_strides/infinity_norm_row_major.json' );
+var LARGE_STRIDES_INFINITY_NORM_COLUMN_MAJOR = require( './fixtures/large_strides/infinity_norm_column_major.json' );
+var LARGE_STRIDES_MAX_ELEMENT_ROW_MAJOR = require( './fixtures/large_strides/max_element_row_major.json' );
+var LARGE_STRIDES_MAX_ELEMENT_COLUMN_MAJOR = require( './fixtures/large_strides/max_element_column_major.json' );
+var LARGE_STRIDES_FROBENIUS_NORM_ROW_MAJOR = require( './fixtures/large_strides/frobenius_norm_row_major.json' );
+var LARGE_STRIDES_FROBENIUS_NORM_COLUMN_MAJOR = require( './fixtures/large_strides/frobenius_norm_column_major.json' );
+
+
+// TESTS //
+
+tape( 'main export is a function', function test( t ) {
+ t.ok( true, __filename );
+ t.strictEqual( typeof dlange, 'function', 'main export is a function' );
+ t.end();
+});
+
+tape( 'the function has an arity of 10', function test( t ) {
+ t.strictEqual( dlange.length, 10, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function throws an error if provided a second argument which is not a valid operation', function test( t ) {
+ var values;
+ var data;
+ var work;
+ var A;
+ var i;
+
+ data = FROBENIUS_NORM_ROW_MAJOR;
+
+ values = [
+ 'foo',
+ 'bar',
+ 'beep',
+ 'boop',
+ -5,
+ NaN,
+ true,
+ false,
+ null,
+ void 0,
+ [],
+ {},
+ function noop() {}
+ ];
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ 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() {
+ dlange( value, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ };
+ }
+});
+
+tape( 'the function returns zero if number of rows or columns is zero', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = ONE_NORM_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.norm, 0, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ t.strictEqual( out, 0.0, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the one norm for a given matrix A (row-major)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = ONE_NORM_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.norm, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the one norm for a given matrix A (column-major)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = ONE_NORM_COLUMN_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.norm, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the infinity norm for a given matrix A (row-major)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = INFINITY_NORM_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.norm, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the infinity norm for a given matrix A (column-major)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = INFINITY_NORM_COLUMN_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.norm, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the frobenius norm for a given matrix A (row-major)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = FROBENIUS_NORM_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.norm, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the frobenius norm for a given matrix A (column-major)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = FROBENIUS_NORM_COLUMN_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.norm, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the maximum absolute value for a given matrix A (row-major)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = MAX_ELEMENT_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.norm, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the maximum absolute value for a given matrix A (column-major)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = MAX_ELEMENT_COLUMN_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.norm, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the one norm for a given matrix A (row-major) (offsets)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = OFFSET_ONE_NORM_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.norm, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the one norm for a given matrix A (column-major) (offsets)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = OFFSET_ONE_NORM_COLUMN_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.norm, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the infinity norm for a given matrix A (row-major) (offsets)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = OFFSET_INFINITY_NORM_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.norm, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the infinity norm for a given matrix A (column-major) (offsets)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = OFFSET_INFINITY_NORM_COLUMN_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.norm, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the frobenius norm for a given matrix A (row-major) (offsets)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = OFFSET_FROBENIUS_NORM_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.norm, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the frobenius norm for a given matrix A (column-major) (offsets)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = OFFSET_FROBENIUS_NORM_COLUMN_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.norm, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the maximum absolute value for a given matrix A (row-major) (offsets)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = OFFSET_MAX_ELEMENT_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.norm, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the maximum absolute value for a given matrix A (column-major) (offsets)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = OFFSET_MAX_ELEMENT_COLUMN_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.norm, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the one norm for a given matrix A (row-major) (negative strides)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = NEGATIVE_STRIDES_ONE_NORM_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.norm, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the one norm for a given matrix A (column-major) (negative strides)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = NEGATIVE_STRIDES_ONE_NORM_COLUMN_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.norm, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the infinity norm for a given matrix A (row-major) (negative strides)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = NEGATIVE_STRIDES_INFINITY_NORM_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.norm, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the infinity norm for a given matrix A (column-major) (negative strides)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = NEGATIVE_STRIDES_INFINITY_NORM_COLUMN_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.norm, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the frobenius norm for a given matrix A (row-major) (negative strides)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = NEGATIVE_STRIDES_FROBENIUS_NORM_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.norm, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the frobenius norm for a given matrix A (column-major) (negative strides)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = NEGATIVE_STRIDES_FROBENIUS_NORM_COLUMN_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.norm, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the maximum absolute value for a given matrix A (row-major) (negative strides)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = NEGATIVE_STRIDES_MAX_ELEMENT_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.norm, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the maximum absolute value for a given matrix A (column-major) (negative strides)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = NEGATIVE_STRIDES_MAX_ELEMENT_COLUMN_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.norm, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the one norm for a given matrix A (row-major) (mixed strides)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = MIXED_STRIDES_ONE_NORM_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.norm, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the one norm for a given matrix A (column-major) (mixed strides)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = MIXED_STRIDES_ONE_NORM_COLUMN_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.norm, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the infinity norm for a given matrix A (row-major) (mixed strides)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = MIXED_STRIDES_INFINITY_NORM_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.norm, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the infinity norm for a given matrix A (column-major) (mixed strides)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = MIXED_STRIDES_INFINITY_NORM_COLUMN_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.norm, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the frobenius norm for a given matrix A (row-major) (mixed strides)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = MIXED_STRIDES_FROBENIUS_NORM_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.norm, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the frobenius norm for a given matrix A (column-major) (mixed strides)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = MIXED_STRIDES_FROBENIUS_NORM_COLUMN_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.norm, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the maximum absolute value for a given matrix A (row-major) (mixed strides)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = MIXED_STRIDES_MAX_ELEMENT_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.norm, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the maximum absolute value for a given matrix A (column-major) (mixed strides)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = MIXED_STRIDES_MAX_ELEMENT_COLUMN_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.norm, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the one norm for a given matrix A (row-major) (large strides)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = LARGE_STRIDES_ONE_NORM_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.norm, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the one norm for a given matrix A (column-major) (large strides)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = LARGE_STRIDES_ONE_NORM_COLUMN_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.norm, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the infinity norm for a given matrix A (row-major) (large strides)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = LARGE_STRIDES_INFINITY_NORM_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.norm, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the infinity norm for a given matrix A (column-major) (large strides)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = LARGE_STRIDES_INFINITY_NORM_COLUMN_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.norm, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the frobenius norm for a given matrix A (row-major) (large strides)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = LARGE_STRIDES_FROBENIUS_NORM_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.norm, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the frobenius norm for a given matrix A (column-major) (large strides)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = LARGE_STRIDES_FROBENIUS_NORM_COLUMN_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.norm, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the maximum absolute value for a given matrix A (row-major) (large strides)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = LARGE_STRIDES_MAX_ELEMENT_ROW_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.norm, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});
+
+tape( 'the function calculates the maximum absolute value for a given matrix A (column-major) (large strides)', function test( t ) {
+ var data;
+ var work;
+ var out;
+ var A;
+
+ data = LARGE_STRIDES_MAX_ELEMENT_COLUMN_MAJOR;
+
+ A = new Float64Array( data.A );
+ work = new Float64Array( data.work );
+
+ out = dlange( data.norm, data.M, data.N, A, data.strideA1, data.strideA2, data.offsetA, work, data.strideWork, data.offsetWork );
+ t.strictEqual( out, data.expected, 'returns expected value' );
+ t.end();
+});