diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/README.md b/lib/node_modules/@stdlib/blas/base/dtrsm/README.md new file mode 100644 index 000000000000..04f9542723f5 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/README.md @@ -0,0 +1,260 @@ + + +# dtrsm + +> Solve matrix equation `op(A) * X = α * B` or `X * op(A) = α * B` where `α` is a scalar, `X` and `B` are `M` by `N` matrices, `A` is a unit, or non-unit, upper or lower triangular matrix and `op(A)` is one of `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B`. + +
+ +## Usage + +```javascript +var dtrsm = require( '@stdlib/blas/base/dtrsm' ); +``` + +#### dtrsm( order, side, uplo, transa, diag, M, N, α, A, LDA, B, LDB ) + +Solves matrix equation `op(A) * X = α * B` or `X * op(A) = α * B` where `α` is a scalar, `X` and `B` are `M` by `N` matrices, `A` is a unit, or non-unit, upper or lower triangular matrix and `op(A)` is one of `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B`. + +```javascript +var Float64Array = require( '@stdlib/array/float64' ); + +var A = new Float64Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); +var B = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); + +dtrsm( 'row-major', 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, B, 3 ); +// B => [ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ] +``` + +The function has the following parameters: + +- **order**: storage layout of `A` and `B`. +- **side**: specifies whether `op( A )` appears on the left or right side of `X`. +- **uplo**: specifies whether the upper or lower triangular part of the matrix `A` is supplied. +- **transa**: specifies the form of `op( A )` to be used in the matrix multiplication. +- **diag**: specifies whether or not `A` is unit triangular. +- **M**: number of rows in `B`. +- **N**: number of columns in `B`. +- **α**: scalar constant. +- **A**: input matrix `A`. +- **LDA**: stride of the first dimension of `A` (a.k.a., leading dimension of the matrix `A`). +- **B**: input matrix `B`. +- **LDB**: stride of the first dimension of `B` (a.k.a., leading dimension of the matrix `B`). + +Note that indexing is relative to the first index. To introduce an offset, use [`typed array`][mdn-typed-array] views. + + + +```javascript +var Float64Array = require( '@stdlib/array/float64' ); + +// Initial arrays... +var A0 = new Float64Array( [ 0.0, 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); +var B0 = new Float64Array( [ 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); + +// Create offset views... +var A1 = new Float64Array( A0.buffer, A0.BYTES_PER_ELEMENT*1 ); // start at 2nd element +var B1 = new Float64Array( B0.buffer, B0.BYTES_PER_ELEMENT*1 ); // start at 2nd element + +dtrsm( 'row-major', 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, B, 3 ); +// B0 => [ 0.0, 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ] +``` + +#### dtrsm.ndarray( s, ul, t, d, M, N, α, A, sa1, sa2, oa, B, sb1, sb2, ob ) + +Solves matrix equation `op(A) * X = α * B` or `X * op(A) = α * B` using alternative indexing semantics and where `α` is a scalar, `X` and `B` are `M` by `N` matrices, `A` is a unit, or non-unit, upper or lower triangular matrix and `op(A)` is one of `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B`. + +```javascript +var Float64Array = require( '@stdlib/array/float64' ); + +var A = new Float64Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); +var B = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); + +dtrsm( 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 ); +// B => [ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ] +``` + +The function has the following parameters: + +- **side**: specifies whether `op( A )` appears on the left or right side of `X`. +- **uplo**: specifies whether the upper or lower triangular part of the matrix `A` is supplied. +- **transa**: specifies the form of `op( A )` to be used in the matrix multiplication. +- **diag**: specifies whether or not `A` is unit triangular. +- **M**: number of rows in `B`. +- **N**: number of columns in `B`. +- **α**: scalar constant. +- **A**: input matrix `A`. +- **sa1**: stride of the first dimension of `A`. +- **sa2**: stride of the second dimension of `A`. +- **oa**: starting index for `A`. +- **B**: input matrix `B`. +- **sb1**: stride of the first dimension of `B`. +- **sb2**: stride of the second dimension of `B`. +- **ob**: starting index for `B`. + +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( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); +var B = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); + +dtrsm( 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 ); +// B => [ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ] +``` + +
+ + + +
+ +## Notes + +- `dtrsm()` corresponds to the [BLAS][blas] level 3 function [`dtrsm`][dtrsm]. + +
+ + + +
+ +## Examples + + + +```javascript +var discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); +var dtrsm = require( '@stdlib/blas/base/dtrsm' ); + +var opts = { + 'dtype': 'float64' +}; + +var M = 3; +var N = 3; + +var A = discreteUniform( M*N, -10.0, 10.0, opts ); +var B = discreteUniform( M*N, -10.0, 10.0, opts ); + +var out = dtrsm( 'column-major', 'left', 'upper', 'no-transpose', 'non-unit', M, N, 1.0, A, N, B, N ); +console.log( out ); + +out = dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', M, N, 1.0, A, N, 1, 0, B, N, 1, 0 ); +console.log( out ); +``` + +
+ + + + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +TODO +``` + +#### TODO + +TODO. + +```c +TODO +``` + +TODO + +```c +TODO +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +TODO +``` + +
+ + + +
+ + + + + + + + + + + + + + diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/dtrsm/benchmark/benchmark.js new file mode 100644 index 000000000000..374de83aab0a --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/benchmark/benchmark.js @@ -0,0 +1,105 @@ +/** +* @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 zeros = require( '@stdlib/array/zeros' ); +var isnan = require( '@stdlib/math/base/assert/is-nan' ); +var pow = require( '@stdlib/math/base/special/pow' ); +var floor = require( '@stdlib/math/base/special/floor' ); +var pkg = require( './../package.json' ).name; +var dtrsm = require( './../lib/dtrsm.js' ); + + +// VARIABLES // + +var options = { + 'dtype': 'float64' +}; + + +// FUNCTIONS // + +/** +* Creates a benchmark function. +* +* @private +* @param {PositiveInteger} N - array dimension size +* @returns {Function} benchmark function +*/ +function createBenchmark( N ) { + var A = uniform( N*N, -10.0, 10.0, options ); + var B = zeros( N*N, options.dtype ); + 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 = dtrsm( 'row-major', 'left', 'lower', 'no-transpose', 'non-unit', N, N, 1.0, A, N, B, N ); + if ( isnan( z[ i%z.length ] ) ) { + b.fail( 'should not return NaN' ); + } + } + b.toc(); + if ( isnan( z[ i%z.length ] ) ) { + b.fail( 'should not return NaN' ); + } + b.pass( 'benchmark finished' ); + b.end(); + } +} + + +// MAIN // + +/** +* Main execution sequence. +* +* @private +*/ +function main() { + var len; + var min; + var max; + var f; + var i; + + min = 1; // 10^min + max = 6; // 10^max + + for ( i = min; i <= max; i++ ) { + len = floor( pow( pow( 10, i ), 1.0/2.0 ) ); + f = createBenchmark( len ); + bench( pkg+':size='+(len*len), f ); + } +} + +main(); diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/dtrsm/benchmark/benchmark.ndarray.js new file mode 100644 index 000000000000..4bfe62327862 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/benchmark/benchmark.ndarray.js @@ -0,0 +1,105 @@ +/** +* @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 zeros = require( '@stdlib/array/zeros' ); +var isnan = require( '@stdlib/math/base/assert/is-nan' ); +var pow = require( '@stdlib/math/base/special/pow' ); +var floor = require( '@stdlib/math/base/special/floor' ); +var pkg = require( './../package.json' ).name; +var dtrsm = require( './../lib/ndarray.js' ); + + +// VARIABLES // + +var options = { + 'dtype': 'float64' +}; + + +// FUNCTIONS // + +/** +* Creates a benchmark function. +* +* @private +* @param {PositiveInteger} N - array dimension size +* @returns {Function} benchmark function +*/ +function createBenchmark( N ) { + var A = uniform( N*N, -10.0, 10.0, options ); + var B = zeros( N*N, options.dtype ); + 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 = dtrsm( 'left', 'lower', 'no-transpose', 'non-unit', N, N, 1.0, A, 1, N, 0, B, 1, N, 0 ); + if ( isnan( z[ i%z.length ] ) ) { + b.fail( 'should not return NaN' ); + } + } + b.toc(); + if ( isnan( z[ i%z.length ] ) ) { + b.fail( 'should not return NaN' ); + } + b.pass( 'benchmark finished' ); + b.end(); + } +} + + +// MAIN // + +/** +* Main execution sequence. +* +* @private +*/ +function main() { + var len; + var min; + var max; + var f; + var i; + + min = 1; // 10^min + max = 6; // 10^max + + for ( i = min; i <= max; i++ ) { + len = floor( pow( pow( 10, i ), 1.0/2.0 ) ); + f = createBenchmark( len ); + bench( pkg+':ndarray:size='+(len*len), f ); + } +} + +main(); diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/docs/repl.txt b/lib/node_modules/@stdlib/blas/base/dtrsm/docs/repl.txt new file mode 100644 index 000000000000..cc0b25ff4248 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/docs/repl.txt @@ -0,0 +1,151 @@ + +{{alias}}( ord, side, uplo, transa, diag, M, N, α, A, lda, B, ldb ) + Solves matrix equation `op(A) * X = α * B` or `X * op(A) = α * B` where `α` + is a scalar, `X` and `B` are `M` by `N` matrices, `A` is a unit, or + non-unit, upper or lower triangular matrix and `op(A)` is one of + `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B`. + + Indexing is relative to the first index. To introduce an offset, use typed + array views. + + If `M` or `N` is equal to `0`, the function returns `B` unchanged. + + If `α` equals `0`, returns `B` filled with zeros. + + Parameters + ---------- + ord: string + Row-major (C-style) or column-major (Fortran-style) order. Must be + either 'row-major' or 'column-major'. + + side: string + Specifies whether `op( A )` appears on the left or right of `X`. + + uplo: string + Specifies whether `A` is an upper or lower triangular matrix. + + transa: string + Specifies whether `op( A )` should be transposed, conjugate-transposed, + or not transposed. + + diag: string + Specifies whether `A` has a unit diagonal. + + M: integer + Number of rows of `B`. + + N: integer + Number of columns of `B`. + + α: number + Scalar constant. + + A: Float64Array + Input matrix. + + lda: integer + Stride of the first dimension of `A` (a.k.a., leading dimension of the + matrix `A`). + + B: Float64Array + Second matrix. + + ldb: integer + Stride of the first dimension of `B` (a.k.a., leading dimension of the + matrix `B`). + + Returns + ------- + B: Float64Array + Second matrix. + + Examples + -------- + > var A = new {{alias:@stdlib/array/float64}}( [ 1.0, 0.0, 2.0, 3.0 ] ); + > var B = new {{alias:@stdlib/array/float64}}( [ 1.0, 2.0, 3.0, 4.0 ] ); + > var ord = 'row-major'; + > var side = 'left'; + > var uplo = 'lower'; + > var transa = 'no-transpose'; + > var diag = 'unit'; + > {{alias}}( ord, side, uplo, transa, diag, 2, 2, 1.0, A, 2, B, 2 ) + [ 1.0, 2.0, 1.0, 0.0 ] + + +{{alias}}.ndarray(side,uplo,transa,diag,M,N,α,A,sa1,sa2,oa,B,sb1,sb2,ob) + Solves matrix equation `op(A) * X = α * B` or `X * op(A) = α * B` where `α` + is a scalar, `X` and `B` are `M` by `N` matrices, `A` is a unit, or + non-unit, upper or lower triangular matrix and `op(A)` is one of + `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B` 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 + ---------- + side: string + Specifies whether `op( A )` appears on the left or right of `X`. + + uplo: string + Specifies whether `A` is an upper or lower triangular matrix. + + transa: string + Specifies whether `op( A )` should be transposed, conjugate-transposed, + or not transposed. + + diag: string + Specifies whether `A` has a unit diagonal. + + M: integer + Number of rows of `B`. + + N: integer + Number of columns of `B`. + + α: number + Scalar constant. + + A: Float64Array + Input matrix. + + sa1: integer + Stride of the first dimension of `A`. + + sa2: integer + Stride of the second dimension of `A`. + + oa: integer + Starting index for `A`. + + B: Float64Array + Second matrix. + + sb1: integer + Stride of the first dimension of `B`. + + sb2: integer + Stride of the second dimension of `B`. + + ob: integer + Starting index for `B`. + + Returns + ------- + B: Float64Array + Second matrix. + + Examples + -------- + > var A = new {{alias:@stdlib/array/float64}}( [ 1.0, 0.0, 2.0, 3.0 ] ); + > var B = new {{alias:@stdlib/array/float64}}( [ 1.0, 2.0, 3.0, 4.0 ] ); + > var side = 'left'; + > var uplo = 'lower'; + > var transa = 'no-transpose'; + > var diag = 'unit'; + > {{alias}}.ndarray(side,uplo,transa,diag,2,2,1.0,A,2,1,0,B,2,1,0) + [ 1.0, 2.0, 1.0, 0.0 ] + + See Also + -------- diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/base/dtrsm/docs/types/index.d.ts new file mode 100644 index 000000000000..0ae59ba3ff36 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/docs/types/index.d.ts @@ -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. +*/ + +// TypeScript Version: 4.1 + +/// + +import { Layout, MatrixTriangle, DiagonalType, OperationSide, TransposeOperation } from '@stdlib/types/blas'; + +/** +* Interface describing `dtrsm`. +*/ +interface Routine { + /** + * Solves matrix equation `op(A) * X = α * B` or `X * op(A) = α * B` where `α` is a scalar, `X` and `B` are `M` by `N` matrices, `A` is a unit, or non-unit, upper or lower triangular matrix and `op(A)` is one of `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B`. + * + * @param order - storage layout of `A` and `B` + * @param side - specifies whether `op( A )` appears on the left or right of `X` + * @param uplo - specifies whether the upper or lower triangular part of the matrix `A` is supplied + * @param transa - specifies whether `op( A )` should be transposed, conjugate-transposed, or not transposed + * @param diag - specifies whether or not `A` is unit triangular + * @param M - number of rows in `B` + * @param N - number of columns in `B` + * @param alpha - scalar constant + * @param A - input matrix `A` + * @param LDA - stride of the first dimension of `A` (a.k.a., leading dimension of the matrix `A`) + * @param B - input matrix `B` + * @param LDB - stride of the first dimension of `B` (a.k.a., leading dimension of the matrix `B`) + * @returns `B` + * + * @example + * var Float64Array = require( '@stdlib/array/float64' ); + * + * var A = new Float64Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); + * var B = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); + * + * dtrsm( 'row-major', 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, B, 3 ); + * // B => [ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ] + */ + ( order: Layout, side: OperationSide, uplo: MatrixTriangle, transa: TransposeOperation, diag: DiagonalType, M: number, N: number, alpha: number, A: Float64Array, LDA: number, B: Float64Array, LDB: number ): Float64Array; + + /** + * Solves matrix equation `op(A) * X = α * B` or `X * op(A) = α * B` using alternative indexing semantics and where `α` is a scalar, `X` and `B` are `M` by `N` matrices, `A` is a unit, or non-unit, upper or lower triangular matrix and `op(A)` is one of `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B`. + * + * @param side - specifies whether `op( A )` appears on the left or right of `X` + * @param uplo - specifies whether the upper or lower triangular part of the matrix `A` is supplied + * @param transa - specifies whether `op( A )` should be transposed, conjugate-transposed, or not transposed + * @param diag - specifies whether or not `A` is unit triangular + * @param M - number of rows in `B` + * @param N - number of columns in `B` + * @param alpha - scalar constant + * @param A - input matrix `A` + * @param strideA1 - stride of the first dimension of `A` + * @param strideA2 - stride of the second dimension of `A` + * @param offsetA - starting index for `A` + * @param B - input matrix `B` + * @param strideB1 - stride of the first dimension of `B` + * @param strideB2 - stride of the second dimension of `B` + * @param offsetB - starting index for `B` + * @returns `B` + * + * @example + * var Float64Array = require( '@stdlib/array/float64' ); + * + * var A = new Float64Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); + * var B = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); + * + * dtrsm.ndarray( 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 ); + * // B => [ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ]` + */ + ndarray( side: OperationSide, uplo: MatrixTriangle, transa: TransposeOperation, diag: DiagonalType, M: number, N: number, alpha: number, A: Float64Array, strideA1: number, strideA2: number, offsetA: number, B: Float64Array, strideB1: number, strideB2: number, offsetB: number ): Float64Array; +} + +/** +* Solves matrix equation `op(A) * X = α * B` or `X * op(A) = α * B` where `α` is a scalar, `X` and `B` are `M` by `N` matrices, `A` is a unit, or non-unit, upper or lower triangular matrix and `op(A)` is one of `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B`. +* +* @param order - storage layout of `A` and `B` +* @param side - specifies whether `op( A )` appears on the left or right of `X` +* @param uplo - specifies whether the upper or lower triangular part of the matrix `A` is supplied +* @param transa - specifies whether `op( A )` should be transposed, conjugate-transposed, or not transposed +* @param diag - specifies whether or not `A` is unit triangular +* @param M - number of rows in `B` +* @param N - number of columns in `B` +* @param alpha - scalar constant +* @param A - input matrix `A` +* @param LDA - stride of the first dimension of `A` (a.k.a., leading dimension of the matrix `A`) +* @param B - input matrix `B` +* @param LDB - stride of the first dimension of `B` (a.k.a., leading dimension of the matrix `B`) +* @returns `B` +* +* @example +* var Float64Array = require( '@stdlib/array/float64' ); +* +* var A = new Float64Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); +* var B = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); +* +* dtrsm( 'row-major', 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, B, 3 ); +* // B => [ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ] +* +* @example +* var Float64Array = require( '@stdlib/array/float64' ); +* +* var A = new Float64Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); +* var B = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); +* +* dtrsm.ndarray( 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 ); +* // B => [ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ] +*/ +declare var dtrsm: Routine; + + +// EXPORTS // + +export = dtrsm; diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/docs/types/test.ts b/lib/node_modules/@stdlib/blas/base/dtrsm/docs/types/test.ts new file mode 100644 index 000000000000..a9c159b46c81 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/docs/types/test.ts @@ -0,0 +1,486 @@ +/* +* @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 dtrsm = require( './index' ); + + +// TESTS // + +// The function returns a Float64Array... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectType Float64Array +} + +// The compiler throws an error if the function is provided a first argument which is not a string... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm( 5, 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( true, 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( false, 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( null, 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( void 0, 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( [], 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( {}, 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( ( x: number ): number => x, 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a second argument which is not a string... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm( 'row-major', 5, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', true, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', false, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', null, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', void 0, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', [], 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', {}, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', ( x: number ): number => x, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a third argument which is not a string... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm( 'row-major', 'left', 5, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', true, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', false, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', null, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', void 0, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', [], 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', {}, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', ( x: number ): number => x, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a fourth argument which is not a string... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm( 'row-major', 'left', 'upper', 5, 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', true, 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', false, 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', null, 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', void 0, 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', [], 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', {}, 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', ( x: number ): number => x, 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a fifth argument which is not a string... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 5, 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', true, 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', false, 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', null, 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', void 0, 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', [], 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', {}, 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', ( x: number ): number => x, 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a sixth argument which is not a number... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', '5', 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', true, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', false, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', null, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', void 0, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', [], 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', {}, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', ( x: number ): number => x, 2, 6.0, A, 2, B, 2 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a seventh argument which is not a number... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, '5', 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, true, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, false, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, null, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, void 0, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, [], 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, {}, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, ( x: number ): number => x, 6.0, A, 2, B, 2 ); // $ExpectError +} + +// The compiler throws an error if the function is provided an eighth argument which is not a number... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, '5', A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, true, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, false, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, null, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, void 0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, [], A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, {}, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, ( x: number ): number => x, A, 2, B, 2 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a ninth argument which is not a Float64Array... +{ + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, '5', 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, 5, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, true, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, false, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, null, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, void 0, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, [], 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, {}, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, ( x: number ): number => x, 2, B, 2 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a tenth argument which is not a number... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, '5', B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, true, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, false, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, null, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, void 0, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, [], B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, {}, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, ( x: number ): number => x, B, 2 ); // $ExpectError +} + +// The compiler throws an error if the function is provided an eleventh argument which is not a Float64Array... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, '5', 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 5, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, true, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, false, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, null, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, void 0, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, [], 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, {}, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, ( x: number ): number => x, 2 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a twelfth argument which is not a number... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, '5' ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, true ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, false ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, null ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, void 0 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, [] ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, {} ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, ( x: number ): number => x ); // $ExpectError +} + +// The compiler throws an error if the function is provided an unsupported number of arguments... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm(); // $ExpectError + dtrsm( 'row-major' ); // $ExpectError + dtrsm( 'row-major', 'left' ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper' ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose' ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit' ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2, 10 ); // $ExpectError +} + +// Attached to main export is an `ndarray` method which returns a Float64Array... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectType Float64Array +} + +// The compiler throws an error if the function is provided a first argument which is not a string... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm.ndarray( 5, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( true, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( false, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( null, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( void 0, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( [], 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( {}, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( ( x: number ): number => x, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a second argument which is not a string... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm.ndarray( 'left', 5, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', true, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', false, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', null, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', void 0, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', [], 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', {}, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', ( x: number ): number => x, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a third argument which is not a string... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm.ndarray( 'left', 'upper', 5, 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', true, 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', false, 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', null, 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', void 0, 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', [], 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', {}, 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', ( x: number ): number => x, 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a fourth argument which is not a string... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 5, 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', true, 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', false, 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', null, 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', void 0, 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', [], 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', {}, 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', ( x: number ): number => x, 2, 2, 6.0, A, 2, 1, 0, B, 2, 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( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', '5', 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', true, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', false, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', null, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', void 0, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', [], 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', {}, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', ( x: number ): number => x, 2, 6.0, A, 2, 1, 0, B, 2, 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( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, '5', 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, true, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, false, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, null, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, void 0, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, [], 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, {}, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, ( x: number ): number => x, 6.0, A, 2, 1, 0, B, 2, 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( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, '5', A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, true, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, false, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, null, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, void 0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, [], A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, {}, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, ( x: number ): number => x, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided an eighth argument which is not a Float64Array... +{ + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, '5', 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, 5, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, true, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, false, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, null, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, void 0, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, [], 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, {}, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, ( x: number ): number => x, 2, 1, 0, B, 2, 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( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, '5', 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, true, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, false, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, null, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, void 0, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, [], 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, {}, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, ( x: number ): number => x, 1, 0, B, 2, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a tenth argument which is not a number... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, '5', 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, true, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, false, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, null, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, void 0, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, [], 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, {}, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, ( x: number ): number => x, 0, B, 2, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided an eleventh argument which is not a number... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, '5', B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, true, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, false, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, null, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, void 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, [], B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, {}, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, ( x: number ): number => x, B, 2, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a twelfth argument which is not a Float64Array... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, '5', 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, 5, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, true, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, false, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, null, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, void 0, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, [], 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, {}, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, ( x: number ): number => x, 2, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a thirteenth argument which is not a number... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, '5', 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, true, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, false, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, null, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, void 0, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, [], 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, {}, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, ( x: number ): number => x, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a fourteenth argument which is not a number... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, '5', 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, true, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, false, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, null, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, void 0, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, [], 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, {}, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, ( x: number ): number => x, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a fifteenth argument which is not a number... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, '5' ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, true ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, false ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, null ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, void 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, [] ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, {} ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, ( x: number ): number => x ); // $ExpectError +} + +// The compiler throws an error if the `ndarray` method is provided an unsupported number of arguments... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm.ndarray(); // $ExpectError + dtrsm.ndarray( 'left' ); // $ExpectError + dtrsm.ndarray( 'left', 'upper' ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose' ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit' ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0, 10 ); // $ExpectError +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/examples/index.js b/lib/node_modules/@stdlib/blas/base/dtrsm/examples/index.js new file mode 100644 index 000000000000..8b5f1f5fbf5e --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/examples/index.js @@ -0,0 +1,38 @@ +/** +* @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 discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); +var dtrsm = require( './../lib' ); + +var opts = { + 'dtype': 'float64' +}; + +var M = 3; +var N = 3; + +var A = discreteUniform( M*N, -10.0, 10.0, opts ); +var B = discreteUniform( M*N, -10.0, 10.0, opts ); + +var out = dtrsm( 'column-major', 'left', 'upper', 'no-transpose', 'non-unit', M, N, 1.0, A, N, B, N ); +console.log( out ); + +out = dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', M, N, 1.0, A, N, 1, 0, B, N, 1, 0 ); +console.log( out ); diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/lib/base.js b/lib/node_modules/@stdlib/blas/base/dtrsm/lib/base.js new file mode 100644 index 000000000000..fb022fb86970 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/lib/base.js @@ -0,0 +1,391 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +/* eslint-disable max-len, max-statements, max-lines-per-function */ + +'use strict'; + +// MODULES // + +var isRowMajor = require( '@stdlib/ndarray/base/assert/is-row-major' ); + + +// FUNCTIONS // + +/** +* Fills a matrix with zeros. +* +* @private +* @param {NonNegativeInteger} M - number of rows +* @param {NonNegativeInteger} N - number of columns +* @param {Float64Array} X - matrix to fill +* @param {integer} strideX1 - stride of the first dimension of `X` +* @param {integer} strideX2 - stride of the second dimension of `X` +* @param {NonNegativeInteger} offsetX - starting index for `X` +* @returns {Float64Array} input matrix +* +* @example +* var Float64Array = require( '@stdlib/array/float64' ); +* +* var X = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); +* +* zeros( 2, 3, X, 3, 1, 0 ); +* // X => [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] +* +* @example +* var Float64Array = require( '@stdlib/array/float64' ); +* +* var X = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); +* +* zeros( 2, 3, X, 1, 2, 0 ); +* // X => [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] +*/ +function zeros( M, N, X, strideX1, strideX2, offsetX ) { // TODO: consider moving to a separate package + var dx0; + var dx1; + var S0; + var S1; + var i0; + var i1; + var ix; + + if ( isRowMajor( [ strideX1, strideX2 ] ) ) { + // For row-major matrices, the last dimension has the fastest changing index... + S0 = N; + S1 = M; + dx0 = strideX2; // offset increment for innermost loop + dx1 = strideX1 - ( S0*strideX2 ); // offset increment for outermost loop + } else { // column-major + // For column-major matrices, the first dimension has the fastest changing index... + S0 = M; + S1 = N; + dx0 = strideX1; // offset increment for innermost loop + dx1 = strideX2 - ( S0*strideX1 ); // offset increment for outermost loop + } + ix = offsetX; + for ( i1 = 0; i1 < S1; i1++ ) { + for ( i0 = 0; i0 < S0; i0++ ) { + X[ ix ] = 0.0; + ix += dx0; + } + ix += dx1; + } + return X; +} + + +// MAIN // + +/** +* Solves matrix equation `op(A) * X = α * B` or `X * op(A) = α * B` where `α` is a scalar, `X` and `B` are `M` by `N` matrices, `A` is a unit, or non-unit, upper or lower triangular matrix and `op(A)` is one of `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B`. +* +* @private +* @param {string} side - specifies whether `op( A )` appears on the left or right of `X` +* @param {string} uplo - specifies whether the upper or lower triangular part of the matrix `A` is supplied +* @param {string} transa - specifies whether `op( A )` should be transposed, conjugate-transposed, or not transposed +* @param {string} diag - specifies whether or not `A` is unit triangular +* @param {NonNegativeInteger} M - number of rows in `B` +* @param {NonNegativeInteger} N - number of columns in `B` +* @param {number} alpha - scalar constant +* @param {Float64Array} A - input matrix `A` +* @param {integer} strideA1 - stride of the first dimension of `A` +* @param {integer} strideA2 - stride of the second dimension of `A` +* @param {NonNegativeInteger} offsetA - starting index for `A` +* @param {Float64Array} B - input matrix `B` +* @param {integer} strideB1 - stride of the first dimension of `B` +* @param {integer} strideB2 - stride of the second dimension of `B` +* @param {NonNegativeInteger} offsetB - starting index for `B` +* @returns {Float64Array} `B` +* +* @example +* var Float64Array = require( '@stdlib/array/float64' ); +* +* var A = new Float64Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); +* var B = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); +* +* dtrsm( 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 ); +* // B => [ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ] +*/ +function dtrsm( side, uplo, transa, diag, M, N, alpha, A, strideA1, strideA2, offsetA, B, strideB1, strideB2, offsetB ) { // eslint-disable-line max-params + var nonunit; + var isrma; + var tmp; + var oa2; + var ob2; + var sa0; + var sa1; + var sb0; + var sb1; + var oa; + var ob; + var i; + var j; + var k; + + // Note on variable naming convention: sa#, ix#, i# where # corresponds to the loop number, with `0` being the innermost loop... + + isrma = isRowMajor( [ strideA1, strideA2 ] ); + nonunit = ( diag === 'non-unit' ); + + if ( M === 0 || N === 0 ) { + return B; + } + if ( isrma ) { + // For row-major matrices, the last dimension has the fastest changing index... + sa0 = strideA2; // stride for innermost loop + sa1 = strideA1; // stride for outermost loop + sb0 = strideB2; + sb1 = strideB1; + } else { // isColMajor + // For column-major matrices, the first dimension has the fastest changing index... + sa0 = strideA1; // stride for innermost loop + sa1 = strideA2; // stride for outermost loop + sb0 = strideB1; + sb1 = strideB2; + } + if ( alpha === 0.0 ) { + zeros( M, N, B, sb0, sb1, offsetB ); + return B; + } + if ( + ( isrma && side === 'left' && uplo === 'upper' && transa === 'no-transpose' ) || + ( !isrma && side === 'right' && uplo === 'lower' && transa === 'no-transpose' ) + ) { + for ( k = N - 1; k >= 0; k-- ) { + if ( nonunit ) { + oa2 = offsetA + ( k * sa1 ) + ( k * sa0 ); + tmp = 1.0 / A[ oa2 ]; + for ( i = 0; i < M; i++ ) { + ob2 = offsetB + ( i * sb0 ) + ( k * sb1 ); + B[ ob2 ] *= tmp; + } + } + for ( j = 0; j < k; j++ ) { + oa2 = offsetA + ( j * sa1 ) + ( k * sa0 ); + if ( A[ oa2 ] !== 0.0 ) { + for ( i = 0; i < M; i++ ) { + ob = offsetB + ( i * sb0 ); + B[ ob + ( j * sb1 ) ] -= A[ oa2 ] * B[ ob + ( k * sb1 ) ]; + } + } + } + if ( alpha !== 1.0 ) { + for ( i = 0; i < M; i++ ) { + ob2 = offsetB + ( i * sb0 ) + ( k * sb1 ); + B[ ob2 ] *= alpha; + } + } + } + return B; + } + if ( + ( isrma && side === 'left' && uplo === 'lower' && transa === 'no-transpose' ) || + ( !isrma && side === 'right' && uplo === 'upper' && transa === 'no-transpose' ) + ) { + for ( j = 0; j < N; j++ ) { + ob = offsetB + ( j * sb0 ); + if ( alpha !== 1.0 ) { + for ( i = 0; i < M; i++ ) { + B[ ob + ( i * sb1 ) ] *= alpha; + } + } + for ( k = 0; k < M; k++ ) { + oa2 = offsetA + ( k * sa1 ) + ( k * sa0 ); + ob2 = ob + ( k * sb1 ); + if ( B[ ob2 ] !== 0.0 ) { + if ( nonunit ) { + B[ ob2 ] /= A[ oa2 ]; + } + for ( i = k + 1; i < M; i++ ) { + oa2 = offsetA + ( i * sa1 ) + ( k * sa0 ); + B[ ob + ( i * sb1 ) ] -= B[ ob2 ] * A[ oa2 ]; + } + } + } + } + return B; + } + if ( + ( isrma && side === 'left' && uplo === 'upper' && transa !== 'no-transpose' ) || + ( !isrma && side === 'right' && uplo === 'lower' && transa !== 'no-transpose' ) + ) { + for ( j = 0; j < N; j++ ) { + for ( i = 0; i < M; i++ ) { + ob2 = offsetB + ( i * sb0 ) + ( j * sb1 ); + if ( alpha !== 1.0 ) { + B[ ob2 ] *= alpha; + } + } + for ( k = 0; k < j; k++ ) { + for ( i = 0; i < M; i++ ) { + ob = offsetB + ( i * sb0 ); + oa2 = offsetA + ( k * sa1 ) + ( j * sa0 ); + if ( A[ oa2 ] !== 0.0 ) { + B[ ob + ( j * sb1 ) ] -= A[ oa2 ] * B[ ob + ( k * sb1 ) ]; + } + } + } + if ( nonunit ) { + oa2 = offsetA + ( j * sa1 ) + (j * sa0 ); + tmp = 1.0 / A[ oa2 ]; + for ( i = 0; i < M; i++ ) { + ob2 = offsetB + ( i * sb0 ) + ( j * sb1 ); + B[ ob2 ] *= tmp; + } + } + } + return B; + } + if ( + ( isrma && side === 'left' && uplo === 'lower' && transa !== 'no-transpose' ) || + ( !isrma && side === 'right' && uplo === 'upper' && transa === 'transpose' ) + ) { + for ( j = 0; j < N; j++ ) { + ob = offsetB + ( j * sb0 ); + if ( alpha !== 1.0 ) { + for ( i = 0; i < M; i++ ) { + B[ ob + ( i * sb1 ) ] *= alpha; + } + } + for ( i = M - 1; i >= 0; i-- ) { + ob2 = ob + ( i * sb1 ); + for ( k = i + 1; k < M; k++ ) { + oa2 = offsetA + ( i * sa0 ) + ( k * sa1 ); + B[ ob2 ] -= A[ oa2 ] * B[ ob + ( k * sb1 ) ]; + } + if ( nonunit ) { + oa2 = offsetA + ( i * sa0 ) + ( i * sa1 ); + B[ ob2 ] /= A[ oa2 ]; + } + B[ ob + ( i * sb1 ) ] = B[ ob2 ]; + } + } + return B; + } + if ( + ( isrma && side === 'right' && uplo === 'upper' && transa === 'no-transpose' ) || + ( !isrma && side === 'left' && uplo === 'lower' && transa === 'no-transpose' ) + ) { + for ( j = 0; j < N; j++ ) { + ob = offsetB + ( j * sb1 ); + for ( i = 0; i < M; i++ ) { + oa2 = offsetA + ( i * sa1 ) + ( i * sa0 ); + tmp = B[ ob + ( i * sb0 ) ] * alpha; + for ( k = 0; k < i; k++ ) { + oa = offsetA + ( k * sa1 ); + tmp -= A[ oa + ( i * sa0 ) ] * B[ ob + ( k * sb0 ) ]; + } + if ( nonunit ) { + tmp /= A[ oa2 ]; + } + B[ ob + ( i * sb0 ) ] = tmp; + } + } + return B; + } + if ( + ( isrma && side === 'right' && uplo === 'lower' && transa === 'no-transpose' ) || + ( !isrma && side === 'left' && uplo === 'upper' && transa === 'no-transpose' ) + ) { + for ( j = N - 1; j >= 0; j-- ) { + for ( i = 0; i < M; i++ ) { + ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); + if ( alpha !== 1.0 ) { + B[ ob2 ] *= alpha; + } + } + for ( k = j + 1; k < N; k++ ) { + for ( i = 0; i < M; i++ ) { + ob2 = offsetB + ( i * sb1 ); + oa2 = offsetA + ( k * sa1 ); + if ( A[ oa2 + ( j * sa0 ) ] !== 0.0 ) { + B[ ob2 + ( j * sb0 ) ] -= A[ oa2 + ( j * sa0 ) ] * B[ ob2 + ( k * sb0 ) ]; + } + } + } + if ( nonunit ) { + oa2 = offsetA + ( j * sa1 ) + ( j * sa0 ); + tmp = 1.0 / A[ oa2 ]; + for ( i = 0; i < M; i++ ) { + ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); + B[ ob2 ] *= tmp; + } + } + } + return B; + } + if ( + ( isrma && side === 'right' && uplo === 'upper' && transa !== 'no-transpose' ) || + ( !isrma && side === 'left' && uplo === 'lower' && transa !== 'no-transpose' ) + ) { + for ( j = 0; j < N; j++ ) { + ob = offsetB + ( j * sb1 ); + if ( alpha !== 1.0 ) { + for ( i = 0; i < M; i++ ) { + B[ ob + ( i * sb0 ) ] = B[ ob + ( i * sb0 ) ] * alpha; + } + } + for ( k = M - 1; k >= 0; k-- ) { + oa2 = offsetA + ( k * sa1 ) + ( k * sa0 ); + ob2 = ob + ( k * sb0 ); + if ( B[ ob2 ] !== 0.0 ) { + if ( nonunit ) { + B[ ob2 ] /= A[ oa2 ]; + } + for ( i= 0; i < k; i++ ) { + oa = offsetA + ( i * sa1 ) + ( k * sa0 ); + B[ ob + ( i * sb0 ) ] -= B[ ob2 ] * A[ oa ]; + } + } + } + } + return B; + } + // ( isrma && side === 'right' && uplo === 'lower' && transa !== 'no-transpose' ) || ( !isrma && side === 'left' && uplo === 'upper' && transa !== 'no-transpose' ) + for ( k = 0; k < N; k++ ) { + ob = offsetB + ( k * sb0 ); + oa = offsetA + ( k * sa1 ); + oa2 = oa + ( k * sa0 ); + if ( nonunit ) { + tmp = 1.0 / A[ oa2 ]; + for ( i = 0; i < M; i++ ) { + B[ ob + ( i * sb1 ) ] *= tmp; + } + } + for ( j = k + 1; j < N; j++ ) { + ob2 = offsetB + ( j * sb0 ); + oa2 = offsetA + ( j * sa1 ) + ( k * sa0 ); + if ( A[ oa2 ] !== 0.0 ) { + for ( i = 0; i < M; i++ ) { + B[ ob2 + ( i * sb1 ) ] -= A[ oa2 ] * B[ ob + ( i * sb1 ) ]; + } + } + } + if ( alpha !== 1.0 ) { + for ( i = 0; i < M; i++ ) { + B[ ob + ( i * sb1 ) ] *= alpha; + } + } + } + return B; +} + + +// EXPORTS // + +module.exports = dtrsm; diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/lib/dtrsm.js b/lib/node_modules/@stdlib/blas/base/dtrsm/lib/dtrsm.js new file mode 100644 index 000000000000..125f5899b06a --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/lib/dtrsm.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 max = require( '@stdlib/math/base/special/fast/max' ); +var isLayout = require( '@stdlib/blas/base/assert/is-layout' ); +var isMatrixTriangle = require( '@stdlib/blas/base/assert/is-matrix-triangle' ); +var isOperationSide = require( '@stdlib/blas/base/assert/is-operation-side' ); +var isTransposeOperation = require( '@stdlib/blas/base/assert/is-transpose-operation' ); +var isDiagonalType = require( '@stdlib/blas/base/assert/is-diagonal-type' ); +var isColumnMajor = require( '@stdlib/ndarray/base/assert/is-column-major-string' ); +var format = require( '@stdlib/string/format' ); +var base = require( './base.js' ); + + +// MAIN // + +/** +* Solves matrix equation `op(A) * X = α * B` or `X * op(A) = α * B` where `α` is a scalar, `X` and `B` are `M` by `N` matrices, `A` is a unit, or non-unit, upper or lower triangular matrix and `op(A)` is one of `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B`. +* +* @param {string} order - storage layout of `A` and `B` +* @param {string} side - specifies whether `op( A )` appears on the left or right of `X` +* @param {string} uplo - specifies whether the upper or lower triangular part of the matrix `A` is supplied +* @param {string} transa - specifies whether `op( A )` should be transposed, conjugate-transposed, or not transposed +* @param {string} diag - specifies whether or not `A` is unit triangular +* @param {NonNegativeInteger} M - number of rows in `B` +* @param {NonNegativeInteger} N - number of columns in `B` +* @param {number} alpha - scalar constant +* @param {Float64Array} A - input matrix `A` +* @param {NonNegativeInteger} LDA - stride of the first dimension of `A` (a.k.a., leading dimension of the matrix `A`) +* @param {Float64Array} B - input matrix `B` +* @param {NonNegativeInteger} LDB - stride of the first dimension of `B` (a.k.a., leading dimension of the matrix `B`) +* @throws {TypeError} first argument must be a valid order +* @throws {TypeError} second argument must be a valid side +* @throws {TypeError} third argument must specify whether the lower or upper triangular matrix is supplied +* @throws {TypeError} fourth argument must specify correct transpose operation +* @throws {TypeError} fifth argument must specify whether the matrix is unit triangular or not +* @throws {RangeError} sixth argument must be a nonnegative integer +* @throws {RangeError} seventh argument must be a nonnegative integer +* @throws {RangeError} tenth argument must be greater than or equal to max(1,M) when `A` is on left side and max(1,N) otherwise +* @throws {RangeError} twelfth argument must be greater than or equal to max(1,M) +* @returns {Float64Array} `B` +* +* @example +* var Float64Array = require( '@stdlib/array/float64' ); +* +* var A = new Float64Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); +* var B = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); +* +* dtrsm( 'row-major', 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, B, 3 ); +* // B => [ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ] +*/ +function dtrsm( order, side, uplo, transa, diag, M, N, alpha, A, LDA, B, LDB ) { // eslint-disable-line max-params + var nrowsa; + var iscm; + var sa1; + var sa2; + var sb1; + var sb2; + if ( !isLayout( order ) ) { + throw new TypeError( format( 'invalid argument. First argument must be a valid order. Value: `%s`.', order ) ); + } + if ( !isOperationSide( side ) ) { + throw new TypeError( format( 'invalid argument. Second argument must be a valid side. Value: `%s`.', side ) ); + } + if ( !isMatrixTriangle( uplo ) ) { + throw new TypeError( format( 'invalid argument. Third argument must specify whether the lower or upper triangular matrix is supplied. Value: `%s`.', uplo ) ); + } + if ( !isTransposeOperation( transa ) ) { + throw new TypeError( format( 'invalid argument. Fourth argument must specify correct transpose operation. Value: `%s`.', transa ) ); + } + if ( !isDiagonalType( diag ) ) { + throw new TypeError( format( 'invalid argument. Fifth argument must specify whether the matrix is unit triangular or not. Value: `%s`.', diag ) ); + } + if ( M < 0 ) { + throw new RangeError( format( 'invalid argument. Sixth argument must be a nonnegative integer. Value: `%d`.', M ) ); + } + if ( N < 0 ) { + throw new RangeError( format( 'invalid argument. Seventh argument must be a nonnegative integer. Value: `%d`.', N ) ); + } + if ( side === 'left' ) { + nrowsa = M; + } else { + nrowsa = N; + } + if ( LDA < max( 1, nrowsa ) ) { + throw new RangeError( format( 'invalid argument. Tenth argument must be greater than or equal to max(1,%d). Value: `%d`.', nrowsa, LDA ) ); + } + if ( LDB < max( 1, M ) ) { + throw new RangeError( format( 'invalid argument. Twelfth argument must be greater than or equal to max(1,%d). Value: `%d`.', M, LDB ) ); + } + iscm = isColumnMajor( order ); + if ( iscm ) { + sa1 = 1; + sa2 = LDA; + sb1 = 1; + sb2 = LDB; + } else { // order === 'row-major' + sa1 = LDA; + sa2 = 1; + sb1 = LDB; + sb2 = 1; + } + return base( side, uplo, transa, diag, M, N, alpha, A, sa1, sa2, 0, B, sb1, sb2, 0 ); // eslint-disable-line max-len +} + + +// EXPORTS // + +module.exports = dtrsm; diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/lib/index.js b/lib/node_modules/@stdlib/blas/base/dtrsm/lib/index.js new file mode 100644 index 000000000000..dd758aa9ca3a --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/lib/index.js @@ -0,0 +1,68 @@ +/** +* @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'; + +/** +* BLAS routine to solve matrix equation `op(A) * X = α * B` or `X * op(A) = α * B` where `α` is a scalar, `X` and `B` are `M` by `N` matrices, `A` is a unit, or non-unit, upper or lower triangular matrix and `op(A)` is one of `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B`. +* +* @module @stdlib/blas/base/dtrsm +* +* @example +* var Float64Array = require( '@stdlib/array/float64' ); +* var dtrsm = require( '@stdlib/blas/base/dtrsm' ); +* +* var A = new Float64Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); +* var B = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); +* +* dtrsm( 'row-major', 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, B, 3 ); +* // B => [ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ] +* +* @example +* var Float64Array = require( '@stdlib/array/float64' ); +* var dtrsm = require( '@stdlib/blas/base/dtrsm' ); +* +* var A = new Float64Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); +* var B = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); +* +* dtrsm.ndarray( 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 ); +* // B => [ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ] +*/ + +// MODULES // + +var join = require( 'path' ).join; +var tryRequire = require( '@stdlib/utils/try-require' ); +var isError = require( '@stdlib/assert/is-error' ); +var main = require( './main.js' ); + + +// MAIN // + +var dtrsm; +var tmp = tryRequire( join( __dirname, './native.js' ) ); +if ( isError( tmp ) ) { + dtrsm = main; +} else { + dtrsm = tmp; +} + + +// EXPORTS // + +module.exports = dtrsm; diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/lib/main.js b/lib/node_modules/@stdlib/blas/base/dtrsm/lib/main.js new file mode 100644 index 000000000000..03f6a5f997a2 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/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 dtrsm = require( './dtrsm.js' ); +var ndarray = require( './ndarray.js' ); + + +// MAIN // + +setReadOnly( dtrsm, 'ndarray', ndarray ); + + +// EXPORTS // + +module.exports = dtrsm; diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/lib/ndarray.js b/lib/node_modules/@stdlib/blas/base/dtrsm/lib/ndarray.js new file mode 100644 index 000000000000..0c88536b08c3 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/lib/ndarray.js @@ -0,0 +1,101 @@ +/** +* @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 isMatrixTriangle = require( '@stdlib/blas/base/assert/is-matrix-triangle' ); +var isOperationSide = require( '@stdlib/blas/base/assert/is-operation-side' ); +var isTransposeOperation = require( '@stdlib/blas/base/assert/is-transpose-operation' ); +var isDiagonalType = require( '@stdlib/blas/base/assert/is-diagonal-type' ); +var format = require( '@stdlib/string/format' ); +var base = require( './base.js' ); + + +// MAIN // + +/** +* Solve matrix equation `op(A) * X = α * B` or `X * op(A) = α * B` where `α` is a scalar, `X` and `B` are `M` by `N` matrices, `A` is a unit, or non-unit, upper or lower triangular matrix and `op(A)` is one of `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B`. +* +* @param {string} side - specifies whether `op( A )` appears on the left or right of `X` +* @param {string} uplo - specifies whether the upper or lower triangular part of the matrix `A` is supplied +* @param {string} transa - specifies whether `op( A )` should be transposed, conjugate-transposed, or not transposed +* @param {string} diag - specifies whether or not `A` is unit triangular +* @param {NonNegativeInteger} M - number of rows in `B` +* @param {NonNegativeInteger} N - number of columns in `B` +* @param {number} alpha - scalar constant +* @param {Float64Array} A - input matrix `A` +* @param {integer} strideA1 - stride of the first dimension of `A` +* @param {integer} strideA2 - stride of the second dimension of `A` +* @param {NonNegativeInteger} offsetA - starting index for `A` +* @param {Float64Array} B - input matrix `B` +* @param {integer} strideB1 - stride of the first dimension of `B` +* @param {integer} strideB2 - stride of the second dimension of `B` +* @param {NonNegativeInteger} offsetB - starting index for `B` +* @throws {TypeError} first argument must be a valid side +* @throws {TypeError} second argument must specify whether the lower or upper triangular matrix is supplied. +* @throws {TypeError} third argument must specify correct transpose operation +* @throws {TypeError} fourth argument must specify whether the matrix is unit triangular or not +* @throws {RangeError} fifth argument must be a nonnegative integer +* @throws {RangeError} sixth argument must be a nonnegative integer +* @throws {RangeError} thirteenth argument must be non-zero +* @throws {RangeError} fourteenth argument must be non-zero +* @returns {Float64Array} `B` +* +* @example +* var Float64Array = require( '@stdlib/array/float64' ); +* +* var A = new Float64Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); +* var B = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); +* +* dtrsm( 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 ); +* // B => [ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ] +*/ +function dtrsm( side, uplo, transa, diag, M, N, alpha, A, strideA1, strideA2, offsetA, B, strideB1, strideB2, offsetB ) { // eslint-disable-line max-len, max-params + if ( !isOperationSide( side ) ) { + throw new TypeError( format( 'invalid argument. First argument must be a valid side. Value: `%s`.', side ) ); + } + if ( !isMatrixTriangle( uplo ) ) { + throw new TypeError( format( 'invalid argument. Second argument must specify whether the lower or upper triangular matrix is supplied. Value: `%s`.', uplo ) ); + } + if ( !isTransposeOperation( transa ) ) { + throw new TypeError( format( 'invalid argument. Third argument must specify correct transpose operation. Value: `%s`.', transa ) ); + } + if ( !isDiagonalType( diag ) ) { + throw new TypeError( format( 'invalid argument. Fourth argument must specify whether the matrix is unit triangular or not. Value: `%s`.', diag ) ); + } + if ( M < 0 ) { + throw new RangeError( format( 'invalid argument. Fifth argument must be a nonnegative integer. Value: `%d`.', M ) ); + } + if ( N < 0 ) { + throw new RangeError( format( 'invalid argument. Sixth argument must be a nonnegative integer. Value: `%d`.', N ) ); + } + if ( strideB1 === 0 ) { + throw new RangeError( format( 'invalid argument. Thirteenth argument must be non-zero. Value: `%d`.', strideB1 ) ); + } + if ( strideB2 === 0 ) { + throw new RangeError( format( 'invalid argument. Fourteenth argument must be non-zero. Value: `%d`.', strideB2 ) ); + } + return base( side, uplo, transa, diag, M, N, alpha, A, strideA1, strideA2, offsetA, B, strideB1, strideB2, offsetB ); // eslint-disable-line max-len +} + + +// EXPORTS // + +module.exports = dtrsm; diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/package.json b/lib/node_modules/@stdlib/blas/base/dtrsm/package.json new file mode 100644 index 000000000000..2215ac534d94 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/package.json @@ -0,0 +1,68 @@ +{ + "name": "@stdlib/blas/base/dtrsm", + "version": "0.0.0", + "description": "Solve matrix equation `op(A) * X = alpha * B` or `X * op(A) = alpha * B` where `alpha` is a scalar, `X` and `B` are `M` by `N` matrices, `A` is a unit, or non-unit, upper or lower triangular matrix and `op(A)` is one of `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B`.", + "license": "Apache-2.0", + "author": { + "name": "The Stdlib Authors", + "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" + }, + "contributors": [ + { + "name": "The Stdlib Authors", + "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" + } + ], + "main": "./lib", + "directories": { + "benchmark": "./benchmark", + "doc": "./docs", + "example": "./examples", + "lib": "./lib", + "test": "./test" + }, + "types": "./docs/types", + "scripts": {}, + "homepage": "https://github.com/stdlib-js/stdlib", + "repository": { + "type": "git", + "url": "git://github.com/stdlib-js/stdlib.git" + }, + "bugs": { + "url": "https://github.com/stdlib-js/stdlib/issues" + }, + "dependencies": {}, + "devDependencies": {}, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "keywords": [ + "stdlib", + "stdmath", + "mathematics", + "math", + "blas", + "level 3", + "dtrsm", + "linear", + "algebra", + "subroutines", + "array", + "ndarray", + "float64", + "double", + "float64array" + ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_l_nta_nu.json new file mode 100644 index 000000000000..fde0a02b26b1 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_l_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 4.0, 5.0, 0.0, 0.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 4.0, 7.0, 2.0, 5.0, 8.0, 3.0, 6.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 0.5, 0.25, 2.0, 0.25, 0.125, 3.0, 0.0, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_l_nta_nu_complex_access_pattern.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_l_nta_nu_complex_access_pattern.json new file mode 100644 index 000000000000..2d9c3ab92fe2 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_l_nta_nu_complex_access_pattern.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 999.0, 1.0, 999.0, 2.0, 999.0, 3.0, 999.0, 0.0, 999.0, 4.0, 999.0, 5.0, 999.0, 0.0, 999.0, 0.0, 999.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": 2, + "strideA2": 6, + "offsetA": 1, + "B": [ 999.0, 1.0, 999.0, 999.0, 4.0, 999.0, 999.0, 7.0, 999.0, 999.0, 2.0, 999.0, 999.0, 5.0, 999.0, 999.0, 8.0, 999.0, 999.0, 3.0, 999.0, 999.0, 6.0, 999.0, 999.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 9, + "offsetB": 1, + "B_out": [ 999.0, 1.0, 999.0, 999.0, 0.5, 999.0, 999.0, 0.25, 999.0, 999.0, 2.0, 999.0, 999.0, 0.25, 999.0, 999.0, 0.125, 999.0, 999.0, 3.0, 999.0, 999.0, 0.0, 999.0, 999.0, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_l_nta_u.json new file mode 100644 index 000000000000..11e9fc49bf55 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_l_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 4.0, 5.0, 0.0, 0.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 4.0, 7.0, 2.0, 5.0, 8.0, 3.0, 6.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 2.0, -6.0, 2.0, 1.0, -3.0, 3.0, 0.0, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_l_ta_nu.json new file mode 100644 index 000000000000..c631c87b9984 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_l_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_l_ta_u.json new file mode 100644 index 000000000000..c5f1a2ce2075 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_l_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_u_nta_nu.json new file mode 100644 index 000000000000..d3856591fb24 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_u_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_u_nta_u.json new file mode 100644 index 000000000000..b211884bdc02 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_u_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_u_ta_nu.json new file mode 100644 index 000000000000..0788b249b2d8 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_u_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 0.0, 0.0, 1.0, 1.0, -1.0, 1.0, 0.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_u_ta_u.json new file mode 100644 index 000000000000..7ebe4c0f7708 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_u_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 0.0, 0.0, 1.0, 1.0, -1.0, 1.0, 0.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_l_nta_nu.json new file mode 100644 index 000000000000..7c862826981a --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_l_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_l_nta_u.json new file mode 100644 index 000000000000..7c862826981a --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_l_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_l_ta_nu.json new file mode 100644 index 000000000000..fed58d9f23ab --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_l_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, -1.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_l_ta_u.json new file mode 100644 index 000000000000..dafd2ef270c9 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_l_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, -1.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_u_nta_nu.json new file mode 100644 index 000000000000..25e32ccdbd54 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_u_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, -1.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_u_nta_u.json new file mode 100644 index 000000000000..25e32ccdbd54 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_u_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, -1.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_u_ta_nu.json new file mode 100644 index 000000000000..75f95500b9c1 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_u_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_u_ta_u.json new file mode 100644 index 000000000000..2bbf37b8d80f --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_u_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_l_nta_nu.json new file mode 100644 index 000000000000..3975a6d85b0f --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_l_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 4.0, 5.0, 0.0, 0.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 0.5, 0.25, 0.0, 0.25, 0.125, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_l_nta_nu_complex_access_pattern.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_l_nta_nu_complex_access_pattern.json new file mode 100644 index 000000000000..f4e4c6d67e29 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_l_nta_nu_complex_access_pattern.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 999.0, 1.0, 999.0, 2.0, 999.0, 3.0, 999.0, 0.0, 999.0, 4.0, 999.0, 5.0, 999.0, 0.0, 999.0, 0.0, 999.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": 2, + "strideA2": 6, + "offsetA": 1, + "B": [ 999.0, 1.0, 999.0, 999.0, 2.0, 999.0, 999.0, 3.0, 999.0, 999.0, 4.0, 999.0, 999.0, 5.0, 999.0, 999.0, 6.0, 999.0, 999.0, 7.0, 999.0, 999.0, 8.0, 999.0, 999.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 9, + "strideB2": 3, + "offsetB": 1, + "B_out": [ 999.0, 1.0, 999.0, 999.0, 2.0, 999.0, 999.0, 3.0, 999.0, 999.0, 0.5, 999.0, 999.0, 0.25, 999.0, 999.0, 0.0, 999.0, 999.0, 0.25, 999.0, 999.0, 0.125, 999.0, 999.0, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_l_nta_u.json new file mode 100644 index 000000000000..039009443ae7 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_l_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 4.0, 5.0, 0.0, 0.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -6.0, -3.0, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_l_ta_nu.json new file mode 100644 index 000000000000..f898728eebdc --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_l_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_l_ta_u.json new file mode 100644 index 000000000000..75a8f018101e --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_l_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_u_nta_nu.json new file mode 100644 index 000000000000..1d9b3d5d3fe1 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_u_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_u_nta_u.json new file mode 100644 index 000000000000..f60a2e82482c --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_u_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_u_ta_nu.json new file mode 100644 index 000000000000..3cf87c34eee6 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_u_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, -1.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_u_ta_u.json new file mode 100644 index 000000000000..00e1ca6d2096 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_u_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, -1.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_l_nta_nu.json new file mode 100644 index 000000000000..684af9bb2e0f --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_l_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_l_nta_u.json new file mode 100644 index 000000000000..684af9bb2e0f --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_l_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_l_ta_nu.json new file mode 100644 index 000000000000..f749d110cffa --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_l_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 0.0, 0.0, 1.0, 1.0, -1.0, 1.0, 0.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_l_ta_u.json new file mode 100644 index 000000000000..3b603100ded5 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_l_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 0.0, 0.0, 1.0, 1.0, -1.0, 1.0, 0.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_u_nta_nu.json new file mode 100644 index 000000000000..d4d237f1c096 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_u_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 0.0, 0.0, 1.0, 1.0, -1.0, 1.0, 0.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_u_nta_u.json new file mode 100644 index 000000000000..d4d237f1c096 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_u_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 0.0, 0.0, 1.0, 1.0, -1.0, 1.0, 0.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_u_ta_nu.json new file mode 100644 index 000000000000..a7272a84ceb9 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_u_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_u_ta_u.json new file mode 100644 index 000000000000..a7272a84ceb9 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_u_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_l_nta_nu.json new file mode 100644 index 000000000000..4314e031c110 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_l_nta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 4.0, 5.0, 0.0, 0.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "lda": 3, + "B": [ 1.0, 4.0, 7.0, 2.0, 5.0, 8.0, 3.0, 6.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 0.5, 0.25, 2.0, 0.25, 0.125, 3.0, 0.0, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_l_nta_u.json new file mode 100644 index 000000000000..d90b37370147 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_l_nta_u.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 4.0, 5.0, 0.0, 0.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "lda": 3, + "B": [ 1.0, 4.0, 7.0, 2.0, 5.0, 8.0, 3.0, 6.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 2.0, -6.0, 2.0, 1.0, -3.0, 3.0, 0.0, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_l_ta_nu.json new file mode 100644 index 000000000000..f07d7d64bd2e --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_l_ta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "left", + "uplo": "lower", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_l_ta_u.json new file mode 100644 index 000000000000..8b385cce0082 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_l_ta_u.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "left", + "uplo": "lower", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_u_nta_nu.json new file mode 100644 index 000000000000..505ce1e9c0a2 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_u_nta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "left", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_u_nta_u.json new file mode 100644 index 000000000000..a89ad92caa78 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_u_nta_u.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "left", + "uplo": "upper", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_u_ta_nu.json new file mode 100644 index 000000000000..47980ac95e89 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_u_ta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "left", + "uplo": "upper", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 0.0, 0.0, 1.0, 1.0, -1.0, 1.0, 0.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_u_ta_u.json new file mode 100644 index 000000000000..10afd6e6f8e5 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_u_ta_u.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "left", + "uplo": "upper", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 0.0, 0.0, 1.0, 1.0, -1.0, 1.0, 0.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_nta_nu.json new file mode 100644 index 000000000000..15047c6ba5ef --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_nta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "right", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_nta_u.json new file mode 100644 index 000000000000..15047c6ba5ef --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_nta_u.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "right", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_ta_nu.json new file mode 100644 index 000000000000..1fff9a546079 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_ta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "right", + "uplo": "lower", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, -1.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_ta_u.json new file mode 100644 index 000000000000..3329e2dc80bc --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_ta_u.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "right", + "uplo": "lower", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, -1.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_u_nta_nu.json new file mode 100644 index 000000000000..6af2704382de --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_u_nta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, -1.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_u_nta_u.json new file mode 100644 index 000000000000..6af2704382de --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_u_nta_u.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, -1.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_u_ta_nu.json new file mode 100644 index 000000000000..faa2e3ce5440 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_u_ta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "right", + "uplo": "upper", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_u_ta_u.json new file mode 100644 index 000000000000..63be66d06dec --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_u_ta_u.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "right", + "uplo": "upper", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_l_nta_nu.json new file mode 100644 index 000000000000..aadcab631d90 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_l_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 2.0, 4.0, 0.0, 3.0, 5.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 4.0, 7.0, 2.0, 5.0, 8.0, 3.0, 6.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 0.5, 0.25, 2.0, 0.25, 0.125, 3.0, 0.0, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_l_nta_nu_complex_access_pattern.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_l_nta_nu_complex_access_pattern.json new file mode 100644 index 000000000000..9fa063ab076c --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_l_nta_nu_complex_access_pattern.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 999.0, 1.0, 999.0, 0.0, 999.0, 0.0, 999.0, 2.0, 999.0, 4.0, 999.0, 0.0, 999.0, 3.0, 999.0, 5.0, 999.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": 6, + "strideA2": 2, + "offsetA": 1, + "B": [ 999.0, 1.0, 999.0, 999.0, 4.0, 999.0, 999.0, 7.0, 999.0, 999.0, 2.0, 999.0, 999.0, 5.0, 999.0, 999.0, 8.0, 999.0, 999.0, 3.0, 999.0, 999.0, 6.0, 999.0, 999.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 9, + "offsetB": 1, + "B_out": [ 999.0, 1.0, 999.0, 999.0, 0.5, 999.0, 999.0, 0.25, 999.0, 999.0, 2.0, 999.0, 999.0, 0.25, 999.0, 999.0, 0.125, 999.0, 999.0, 3.0, 999.0, 999.0, 0.0, 999.0, 999.0, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_l_nta_u.json new file mode 100644 index 000000000000..25b051f80df8 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_l_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 2.0, 4.0, 0.0, 3.0, 5.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 4.0, 7.0, 2.0, 5.0, 8.0, 3.0, 6.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 2.0, -6.0, 2.0, 1.0, -3.0, 3.0, 0.0, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_l_ta_nu.json new file mode 100644 index 000000000000..e8b436dcfd64 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_l_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_l_ta_u.json new file mode 100644 index 000000000000..6595cc09acaa --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_l_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_u_nta_nu.json new file mode 100644 index 000000000000..6a020f078a37 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_u_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_u_nta_u.json new file mode 100644 index 000000000000..1249ca4a159c --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_u_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_u_ta_nu.json new file mode 100644 index 000000000000..c4c304ade432 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_u_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 0.0, 0.0, 1.0, 1.0, -1.0, 1.0, 0.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_u_ta_u.json new file mode 100644 index 000000000000..67db56dd6fb8 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_u_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 0.0, 0.0, 1.0, 1.0, -1.0, 1.0, 0.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_nta_nu.json new file mode 100644 index 000000000000..70ef59a28903 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_nta_u.json new file mode 100644 index 000000000000..70ef59a28903 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_ta_nu.json new file mode 100644 index 000000000000..8c615758ebc3 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, -1.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_ta_u.json new file mode 100644 index 000000000000..d6de55b164a8 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, -1.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_u_nta_nu.json new file mode 100644 index 000000000000..13eda4dc74a1 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_u_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, -1.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_u_nta_u.json new file mode 100644 index 000000000000..13eda4dc74a1 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_u_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, -1.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_u_ta_nu.json new file mode 100644 index 000000000000..446c8efb5b50 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_u_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_u_ta_u.json new file mode 100644 index 000000000000..6fd43c08a014 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_u_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu.json new file mode 100644 index 000000000000..508e42483e61 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 2.0, 4.0, 0.0, 3.0, 5.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 0.5, 0.25, 0.0, 0.25, 0.125, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_complex_access_pattern.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_complex_access_pattern.json new file mode 100644 index 000000000000..37f6cb228c8d --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_complex_access_pattern.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 999.0, 1.0, 999.0, 0.0, 999.0, 0.0, 999.0, 2.0, 999.0, 4.0, 999.0, 0.0, 999.0, 3.0, 999.0, 5.0, 999.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": 6, + "strideA2": 2, + "offsetA": 1, + "B": [ 999.0, 1.0, 999.0, 999.0, 2.0, 999.0, 999.0, 3.0, 999.0, 999.0, 4.0, 999.0, 999.0, 5.0, 999.0, 999.0, 6.0, 999.0, 999.0, 7.0, 999.0, 999.0, 8.0, 999.0, 999.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 9, + "strideB2": 3, + "offsetB": 1, + "B_out": [ 999.0, 1.0, 999.0, 999.0, 2.0, 999.0, 999.0, 3.0, 999.0, 999.0, 0.5, 999.0, 999.0, 0.25, 999.0, 999.0, 0.0, 999.0, 999.0, 0.25, 999.0, 999.0, 0.125, 999.0, 999.0, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_oa.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_oa.json new file mode 100644 index 000000000000..35ba36095cbc --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_oa.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 0.0, 0.0, 1.0, 0.0, 0.0, 2.0, 4.0, 0.0, 3.0, 5.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 2, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 0.5, 0.25, 0.0, 0.25, 0.125, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_ob.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_ob.json new file mode 100644 index 000000000000..82e87842cc06 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_ob.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 2.0, 4.0, 0.0, 3.0, 5.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 0.0, 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 2, + "B_out": [ 0.0, 0.0, 1.0, 2.0, 3.0, 0.5, 0.25, 0.0, 0.25, 0.125, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sa1_sa2.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sa1_sa2.json new file mode 100644 index 000000000000..bf942fb2176e --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sa1_sa2.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 999.0, 0.0, 999.0, 0.0, 999.0, 2.0, 999.0, 4.0, 999.0, 0.0, 999.0, 3.0, 999.0, 5.0, 999.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": 6, + "strideA2": 2, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 0.5, 0.25, 0.0, 0.25, 0.125, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sa1_sa2n.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sa1_sa2n.json new file mode 100644 index 000000000000..a976e304d085 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sa1_sa2n.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 0.0, 0.0, 1.0, 999.0, 999.0, 999.0, 0.0, 4.0, 2.0, 999.0, 999.0, 999.0, 6.0, 5.0, 3.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": 6, + "strideA2": -1, + "offsetA": 2, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 0.5, 0.25, 0.0, 0.25, 0.125, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2.json new file mode 100644 index 000000000000..d8271015a70a --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 3.0, 5.0, 6.0, 999.0, 999.0, 999.0, 2.0, 4.0, 0.0, 999.0, 999.0, 999.0, 1.0, 0.0, 0.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": -6, + "strideA2": 1, + "offsetA": 12, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 0.5, 0.25, 0.0, 0.25, 0.125, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2n.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2n.json new file mode 100644 index 000000000000..2c6d176da51e --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2n.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 6.0, 5.0, 3.0, 0.0, 4.0, 2.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": -3, + "strideA2": -1, + "offsetA": 8, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 0.5, 0.25, 0.0, 0.25, 0.125, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sb1_sb2.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sb1_sb2.json new file mode 100644 index 000000000000..43ef9ff02a13 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sb1_sb2.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 2.0, 4.0, 0.0, 3.0, 5.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 999.0, 2.0, 999.0, 3.0, 999.0, 4.0, 999.0, 5.0, 999.0, 6.0, 999.0, 7.0, 999.0, 8.0, 999.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 6, + "strideB2": 2, + "offsetB": 0, + "B_out": [ 1.0, 999.0, 2.0, 999.0, 3.0, 999.0, 0.5, 999.0, 0.25, 999.0, 0.0, 999.0, 0.25, 999.0, 0.125, 999.0, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sb1_sb2n.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sb1_sb2n.json new file mode 100644 index 000000000000..b631e30776db --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sb1_sb2n.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 2.0, 4.0, 0.0, 3.0, 5.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 3.0, 2.0, 1.0, 999.0, 999.0, 999.0, 6.0, 5.0, 4.0, 999.0, 999.0, 999.0, 9.0, 8.0, 7.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 6, + "strideB2": -1, + "offsetB": 2, + "B_out": [ 3.0, 2.0, 1.0, 999.0, 999.0, 999.0, 0.0, 0.25, 0.5, 999.0, 999.0, 999.0, 0.0, 0.125, 0.25 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sb1n_sb2.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sb1n_sb2.json new file mode 100644 index 000000000000..edef2db54355 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sb1n_sb2.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 2.0, 4.0, 0.0, 3.0, 5.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 7.0, 8.0, 9.0, 999.0, 999.0, 999.0, 4.0, 5.0, 6.0, 999.0, 999.0, 999.0, 1.0, 2.0, 3.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": -6, + "strideB2": 1, + "offsetB": 12, + "B_out": [ 0.25, 0.125, 0.0, 999.0, 999.0, 999.0, 0.5, 0.25, 0.0, 999.0, 999.0, 999.0, 1.0, 2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sb1n_sb2n.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sb1n_sb2n.json new file mode 100644 index 000000000000..8dd1ff69e55a --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sb1n_sb2n.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 2.0, 4.0, 0.0, 3.0, 5.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 9.0, 8.0, 7.0, 6.0, 5.0, 4.0, 3.0, 2.0, 1.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": -3, + "strideB2": -1, + "offsetB": 8, + "B_out": [ 0.0, 0.125, 0.25, 0.0, 0.25, 0.5, 3.0, 2.0, 1.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_u.json new file mode 100644 index 000000000000..5af8bbdef0c4 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 2.0, 4.0, 0.0, 3.0, 5.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -6.0, -3.0, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_ta_nu.json new file mode 100644 index 000000000000..2f9d3ea404bc --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_ta_u.json new file mode 100644 index 000000000000..d79e8a24c416 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_u_nta_nu.json new file mode 100644 index 000000000000..9bfc8df0b3f5 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_u_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_u_nta_u.json new file mode 100644 index 000000000000..d7c3ecc860d3 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_u_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_u_ta_nu.json new file mode 100644 index 000000000000..db988517d5d9 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_u_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, -1.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_u_ta_u.json new file mode 100644 index 000000000000..e334b9ca9cd6 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_u_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, -1.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_l_nta_nu.json new file mode 100644 index 000000000000..a9e9dda200c5 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_l_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_l_nta_u.json new file mode 100644 index 000000000000..a9e9dda200c5 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_l_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_l_ta_nu.json new file mode 100644 index 000000000000..84e5a2909f52 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_l_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 0.0, 0.0, 1.0, 1.0, -1.0, 1.0, 0.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_l_ta_u.json new file mode 100644 index 000000000000..b3b8055ccf2d --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_l_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 0.0, 0.0, 1.0, 1.0, -1.0, 1.0, 0.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_u_nta_nu.json new file mode 100644 index 000000000000..3d01ccddf9a0 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_u_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 0.0, 0.0, 1.0, 1.0, -1.0, 1.0, 0.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_u_nta_u.json new file mode 100644 index 000000000000..3d01ccddf9a0 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_u_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 0.0, 0.0, 1.0, 1.0, -1.0, 1.0, 0.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_u_ta_nu.json new file mode 100644 index 000000000000..e74f229a7cd4 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_u_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_u_ta_u.json new file mode 100644 index 000000000000..a60937296ad8 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_u_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_l_nta_nu.json new file mode 100644 index 000000000000..26f38eb16d71 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_l_nta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 2.0, + "A": [ 1.0, 0.0, 0.0, 2.0, 4.0, 0.0, 3.0, 5.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "lda": 3, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 2.0, 4.0, 6.0, 1.0, 0.5, 0.0, 0.5, 0.25, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_l_nta_u.json new file mode 100644 index 000000000000..f1768fd0c05a --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_l_nta_u.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 2.0, 4.0, 0.0, 3.0, 5.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "lda": 3, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -6.0, -3.0, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_l_ta_nu.json new file mode 100644 index 000000000000..3d236debe33b --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_l_ta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "left", + "uplo": "lower", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 2.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 0.0, -2.0, 0.0, 0.0, 2.0, -4.0, 2.0, 2.0, 6.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_l_ta_u.json new file mode 100644 index 000000000000..151c0791fb59 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_l_ta_u.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "left", + "uplo": "lower", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_u_nta_nu.json new file mode 100644 index 000000000000..643c210b672f --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_u_nta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "left", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 2.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 0.0, -2.0, 0.0, 0.0, 2.0, -4.0, 2.0, 2.0, 6.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_u_nta_u.json new file mode 100644 index 000000000000..fef7c0409b8d --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_u_nta_u.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "left", + "uplo": "upper", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_u_ta_nu.json new file mode 100644 index 000000000000..aa82c5ea73a3 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_u_ta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "left", + "uplo": "upper", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 2.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 2.0, 2.0, 2.0, 0.0, 2.0, 0.0, 0.0, -2.0, 4.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_u_ta_u.json new file mode 100644 index 000000000000..24784a5b8e7b --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_u_ta_u.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "left", + "uplo": "upper", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, -1.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_l_nta_nu.json new file mode 100644 index 000000000000..ad3770fe1fd2 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_l_nta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "right", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 2.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 0.0, 0.0, 2.0, -2.0, 2.0, 2.0, 0.0, -4.0, 6.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_l_nta_u.json new file mode 100644 index 000000000000..ddf9097bd983 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_l_nta_u.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "right", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_l_ta_nu.json new file mode 100644 index 000000000000..c4c1416831dd --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_l_ta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "right", + "uplo": "lower", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 2.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 2.0, 0.0, 0.0, 2.0, 2.0, -2.0, 2.0, 0.0, 4.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_l_ta_u.json new file mode 100644 index 000000000000..ca4bb4b270ac --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_l_ta_u.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "right", + "uplo": "lower", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 0.0, 0.0, 1.0, 1.0, -1.0, 1.0, 0.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_u_nta_nu.json new file mode 100644 index 000000000000..5ded0b15e373 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_u_nta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 2.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 2.0, 0.0, 0.0, 2.0, 2.0, -2.0, 2.0, 0.0, 4.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_u_nta_u.json new file mode 100644 index 000000000000..86ac26291989 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_u_nta_u.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 0.0, 0.0, 1.0, 1.0, -1.0, 1.0, 0.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_u_ta_nu.json new file mode 100644 index 000000000000..85680a948046 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_u_ta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "right", + "uplo": "upper", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 2.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 0.0, 0.0, 2.0, -2.0, 2.0, 2.0, 0.0, -4.0, 6.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_u_ta_u.json new file mode 100644 index 000000000000..18b5ba2ba7e7 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_u_ta_u.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "right", + "uplo": "upper", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/test.dtrsm.js b/lib/node_modules/@stdlib/blas/base/dtrsm/test/test.dtrsm.js new file mode 100644 index 000000000000..a531a171b2f5 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/test.dtrsm.js @@ -0,0 +1,1076 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +/* eslint-disable max-len */ + +'use strict'; + +// MODULES // + +var tape = require( 'tape' ); +var Float64Array = require( '@stdlib/array/float64' ); +var dtrsm = require( './../lib/dtrsm.js' ); + + +// FIXTURES // + +var cllntanu = require( './fixtures/column_major_l_l_nta_nu.json' ); +var cllntau = require( './fixtures/column_major_l_l_nta_u.json' ); +var clltanu = require( './fixtures/column_major_l_l_ta_nu.json' ); +var clltau = require( './fixtures/column_major_l_l_ta_u.json' ); +var cluntanu = require( './fixtures/column_major_l_u_nta_nu.json' ); +var cluntau = require( './fixtures/column_major_l_u_nta_u.json' ); +var clutanu = require( './fixtures/column_major_l_u_ta_nu.json' ); +var clutau = require( './fixtures/column_major_l_u_ta_u.json' ); +var crlntanu = require( './fixtures/column_major_r_l_nta_nu.json' ); +var crlntau = require( './fixtures/column_major_r_l_nta_u.json' ); +var crltanu = require( './fixtures/column_major_r_l_ta_nu.json' ); +var crltau = require( './fixtures/column_major_r_l_ta_u.json' ); +var cruntanu = require( './fixtures/column_major_r_u_nta_nu.json' ); +var cruntau = require( './fixtures/column_major_r_u_nta_u.json' ); +var crutanu = require( './fixtures/column_major_r_u_ta_nu.json' ); +var crutau = require( './fixtures/column_major_r_u_ta_u.json' ); + +var rllntanu = require( './fixtures/row_major_l_l_nta_nu.json' ); +var rllntau = require( './fixtures/row_major_l_l_nta_u.json' ); +var rlltanu = require( './fixtures/row_major_l_l_ta_nu.json' ); +var rlltau = require( './fixtures/row_major_l_l_ta_u.json' ); +var rluntanu = require( './fixtures/row_major_l_u_nta_nu.json' ); +var rluntau = require( './fixtures/row_major_l_u_nta_u.json' ); +var rlutanu = require( './fixtures/row_major_l_u_ta_nu.json' ); +var rlutau = require( './fixtures/row_major_l_u_ta_u.json' ); +var rrlntanu = require( './fixtures/row_major_r_l_nta_nu.json' ); +var rrlntau = require( './fixtures/row_major_r_l_nta_u.json' ); +var rrltanu = require( './fixtures/row_major_r_l_ta_nu.json' ); +var rrltau = require( './fixtures/row_major_r_l_ta_u.json' ); +var rruntanu = require( './fixtures/row_major_r_u_nta_nu.json' ); +var rruntau = require( './fixtures/row_major_r_u_nta_u.json' ); +var rrutanu = require( './fixtures/row_major_r_u_ta_nu.json' ); +var rrutau = require( './fixtures/row_major_r_u_ta_u.json' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof dtrsm, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function has an arity of 12', function test( t ) { + t.strictEqual( dtrsm.length, 12, 'returns expected value' ); + t.end(); +}); + +tape( 'the function throws an error if provided an invalid first argument', function test( t ) { + var values; + var data; + var i; + + data = rllntanu; + + values = [ + 'foo', + 'bar', + 'beep', + 'boop' + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + dtrsm( value, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), data.ldb ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid second argument', function test( t ) { + var values; + var data; + var i; + + data = rllntanu; + + values = [ + 'foo', + 'bar', + 'beep', + 'boop' + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + dtrsm( data.order, value, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), data.ldb ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid third argument', function test( t ) { + var values; + var data; + var i; + + data = rllntanu; + + values = [ + 'foo', + 'bar', + 'beep', + 'boop' + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + dtrsm( data.order, data.side, value, data.transA, data.diag, data.M, data.N, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), data.ldb ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid fourth argument', function test( t ) { + var values; + var data; + var i; + + data = rllntanu; + + values = [ + 'foo', + 'bar', + 'beep', + 'boop' + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + dtrsm( data.order, data.side, data.uplo, value, data.diag, data.M, data.N, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), data.ldb ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid fifth argument', function test( t ) { + var values; + var data; + var i; + + data = rllntanu; + + values = [ + 'foo', + 'bar', + 'beep', + 'boop' + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + dtrsm( data.order, data.side, data.uplo, data.transA, value, data.M, data.N, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), data.ldb ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid sixth argument', function test( t ) { + var values; + var data; + var i; + + data = rllntanu; + + values = [ + -1, + -2, + -3 + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, value, data.N, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), data.ldb ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid seventh argument', function test( t ) { + var values; + var data; + var i; + + data = rllntanu; + + values = [ + -1, + -2, + -3 + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, value, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), data.ldb ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid tenth argument', function test( t ) { + var values; + var data; + var i; + + data = rllntanu; + + values = [ + 1, + 0, + -1, + -2, + -3 + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, new Float64Array( data.A ), value, new Float64Array( data.B ), data.ldb ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid twelfth argument', function test( t ) { + var values; + var data; + var i; + + data = rllntanu; + + values = [ + 1, + 0, + -1, + -2, + -3 + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), value ); + }; + } +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, left, lower, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rllntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, left, lower, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cllntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, left, lower, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rllntau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, left, lower, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cllntau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, left, lower, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rlltanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, left, lower, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = clltanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, left, lower, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rlltau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, left, lower, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = clltau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, left, upper, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rluntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, left, upper, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cluntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, left, upper, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rluntau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, left, upper, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cluntau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, left, upper, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rlutanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, left, upper, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = clutanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, left, upper, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rlutau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, left, upper, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = clutau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (row-major, right, lower, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rrlntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (column-major, right, lower, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = crlntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (row-major, right, lower, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rrlntau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (column-major, right, lower, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = crlntau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (row-major, right, lower, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rrltanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (column-major, right, lower, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = crltanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (row-major, right, lower, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rrltau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (column-major, right, lower, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = crltau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (row-major, right, upper, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rruntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (column-major, right, upper, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cruntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (row-major, right, upper, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rruntau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (column-major, right, upper, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cruntau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (row-major, right, upper, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rrutanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (column-major, right, upper, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = crutanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (row-major, right, upper, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rrutau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (column-major, right, upper, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = crutau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns a reference to the second input matrix (row-major)', function test( t ) { + var data; + var out; + var a; + var b; + + data = rlltau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns a reference to the second input matrix (column-major)', function test( t ) { + var data; + var out; + var a; + var b; + + data = clltau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.end(); +}); + +tape( 'if either `M` or `N` is `0`, the function returns the second input matrix unchanged (row-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rlltau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, 0, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, 0, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'if either `M` or `N` is `0`, the function returns the second input matrix unchanged (column-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = clltau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, 0, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, 0, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'if `α` is `0`, the function returns the second input matrix filled with zeros (row-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rlltau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( b.length ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, 0.0, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'if `α` is `0`, the function returns the second input matrix filled with zeros (column-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = clltau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( b.length ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, 0.0, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/test.js b/lib/node_modules/@stdlib/blas/base/dtrsm/test/test.js new file mode 100644 index 000000000000..abb0626f4e22 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/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 dtrsm = 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 dtrsm, '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 dtrsm.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 dtrsm = proxyquire( './../lib', { + '@stdlib/utils/try-require': tryRequire + }); + + t.strictEqual( dtrsm, 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 dtrsm; + var main; + + main = require( './../lib/dtrsm.js' ); + + dtrsm = proxyquire( './../lib', { + '@stdlib/utils/try-require': tryRequire + }); + + t.strictEqual( dtrsm, main, 'returns expected value' ); + t.end(); + + function tryRequire() { + return new Error( 'Cannot find module' ); + } +}); diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/test.ndarray.js b/lib/node_modules/@stdlib/blas/base/dtrsm/test/test.ndarray.js new file mode 100644 index 000000000000..95f2b355428c --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/test.ndarray.js @@ -0,0 +1,1947 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +/* eslint-disable max-len */ + +'use strict'; + +// MODULES // + +var tape = require( 'tape' ); +var Float64Array = require( '@stdlib/array/float64' ); +var dtrsm = require( './../lib/ndarray.js' ); + + +// FIXTURES // + +var cacbllntanu = require( './fixtures/ca_cb_l_l_nta_nu.json' ); +var cacbllntau = require( './fixtures/ca_cb_l_l_nta_u.json' ); +var cacblltanu = require( './fixtures/ca_cb_l_l_ta_nu.json' ); +var cacblltau = require( './fixtures/ca_cb_l_l_ta_u.json' ); +var cacbluntanu = require( './fixtures/ca_cb_l_u_nta_nu.json' ); +var cacbluntau = require( './fixtures/ca_cb_l_u_nta_u.json' ); +var cacblutanu = require( './fixtures/ca_cb_l_u_ta_nu.json' ); +var cacblutau = require( './fixtures/ca_cb_l_u_ta_u.json' ); +var cacbrlntanu = require( './fixtures/ca_cb_r_l_nta_nu.json' ); +var cacbrlntau = require( './fixtures/ca_cb_r_l_nta_u.json' ); +var cacbrltanu = require( './fixtures/ca_cb_r_l_ta_nu.json' ); +var cacbrltau = require( './fixtures/ca_cb_r_l_ta_u.json' ); +var cacbruntanu = require( './fixtures/ca_cb_r_u_nta_nu.json' ); +var cacbruntau = require( './fixtures/ca_cb_r_u_nta_u.json' ); +var cacbrutanu = require( './fixtures/ca_cb_r_u_ta_nu.json' ); +var cacbrutau = require( './fixtures/ca_cb_r_u_ta_u.json' ); +var carbllntanu = require( './fixtures/ca_rb_l_l_nta_nu.json' ); +var carbllntau = require( './fixtures/ca_rb_l_l_nta_u.json' ); +var carblltanu = require( './fixtures/ca_rb_l_l_ta_nu.json' ); +var carblltau = require( './fixtures/ca_rb_l_l_ta_u.json' ); +var carbluntanu = require( './fixtures/ca_rb_l_u_nta_nu.json' ); +var carbluntau = require( './fixtures/ca_rb_l_u_nta_u.json' ); +var carblutanu = require( './fixtures/ca_rb_l_u_ta_nu.json' ); +var carblutau = require( './fixtures/ca_rb_l_u_ta_u.json' ); +var carbrlntanu = require( './fixtures/ca_rb_r_l_nta_nu.json' ); +var carbrlntau = require( './fixtures/ca_rb_r_l_nta_u.json' ); +var carbrltanu = require( './fixtures/ca_rb_r_l_ta_nu.json' ); +var carbrltau = require( './fixtures/ca_rb_r_l_ta_u.json' ); +var carbruntanu = require( './fixtures/ca_rb_r_u_nta_nu.json' ); +var carbruntau = require( './fixtures/ca_rb_r_u_nta_u.json' ); +var carbrutanu = require( './fixtures/ca_rb_r_u_ta_nu.json' ); +var carbrutau = require( './fixtures/ca_rb_r_u_ta_u.json' ); + +var racbllntanu = require( './fixtures/ra_cb_l_l_nta_nu.json' ); +var racbllntau = require( './fixtures/ra_cb_l_l_nta_u.json' ); +var racblltanu = require( './fixtures/ra_cb_l_l_ta_nu.json' ); +var racblltau = require( './fixtures/ra_cb_l_l_ta_u.json' ); +var racbluntanu = require( './fixtures/ra_cb_l_u_nta_nu.json' ); +var racbluntau = require( './fixtures/ra_cb_l_u_nta_u.json' ); +var racblutanu = require( './fixtures/ra_cb_l_u_ta_nu.json' ); +var racblutau = require( './fixtures/ra_cb_l_u_ta_u.json' ); +var racbrlntanu = require( './fixtures/ra_cb_r_l_nta_nu.json' ); +var racbrlntau = require( './fixtures/ra_cb_r_l_nta_u.json' ); +var racbrltanu = require( './fixtures/ra_cb_r_l_ta_nu.json' ); +var racbrltau = require( './fixtures/ra_cb_r_l_ta_u.json' ); +var racbruntanu = require( './fixtures/ra_cb_r_u_nta_nu.json' ); +var racbruntau = require( './fixtures/ra_cb_r_u_nta_u.json' ); +var racbrutanu = require( './fixtures/ra_cb_r_u_ta_nu.json' ); +var racbrutau = require( './fixtures/ra_cb_r_u_ta_u.json' ); +var rarbllntanu = require( './fixtures/ra_rb_l_l_nta_nu.json' ); +var rarbllntau = require( './fixtures/ra_rb_l_l_nta_u.json' ); +var rarblltanu = require( './fixtures/ra_rb_l_l_ta_nu.json' ); +var rarblltau = require( './fixtures/ra_rb_l_l_ta_u.json' ); +var rarbluntanu = require( './fixtures/ra_rb_l_u_nta_nu.json' ); +var rarbluntau = require( './fixtures/ra_rb_l_u_nta_u.json' ); +var rarblutanu = require( './fixtures/ra_rb_l_u_ta_nu.json' ); +var rarblutau = require( './fixtures/ra_rb_l_u_ta_u.json' ); +var rarbrlntanu = require( './fixtures/ra_rb_r_l_nta_nu.json' ); +var rarbrlntau = require( './fixtures/ra_rb_r_l_nta_u.json' ); +var rarbrltanu = require( './fixtures/ra_rb_r_l_ta_nu.json' ); +var rarbrltau = require( './fixtures/ra_rb_r_l_ta_u.json' ); +var rarbruntanu = require( './fixtures/ra_rb_r_u_nta_nu.json' ); +var rarbruntau = require( './fixtures/ra_rb_r_u_nta_u.json' ); +var rarbrutanu = require( './fixtures/ra_rb_r_u_ta_nu.json' ); +var rarbrutau = require( './fixtures/ra_rb_r_u_ta_u.json' ); + +var rarbllntanusa1sa2 = require( './fixtures/ra_rb_l_l_nta_nu_sa1_sa2.json' ); +var rarbllntanusa1nsa2 = require( './fixtures/ra_rb_l_l_nta_nu_sa1n_sa2.json' ); +var rarbllntanusa1sa2n = require( './fixtures/ra_rb_l_l_nta_nu_sa1_sa2n.json' ); +var rarbllntanusa1nsa2n = require( './fixtures/ra_rb_l_l_nta_nu_sa1n_sa2n.json' ); +var rarbllntanusb1sb2 = require( './fixtures/ra_rb_l_l_nta_nu_sb1_sb2.json' ); +var rarbllntanusb1nsb2 = require( './fixtures/ra_rb_l_l_nta_nu_sb1n_sb2.json' ); +var rarbllntanusb1sb2n = require( './fixtures/ra_rb_l_l_nta_nu_sb1_sb2n.json' ); +var rarbllntanusb1nsb2n = require( './fixtures/ra_rb_l_l_nta_nu_sb1n_sb2n.json' ); +var rarbllntanuoa = require( './fixtures/ra_rb_l_l_nta_nu_oa.json' ); +var rarbllntanuob = require( './fixtures/ra_rb_l_l_nta_nu_ob.json' ); +var rrcap = require( './fixtures/ra_rb_l_l_nta_nu_complex_access_pattern.json' ); +var rccap = require( './fixtures/ra_cb_l_l_nta_nu_complex_access_pattern.json' ); +var cccap = require( './fixtures/ca_cb_l_l_nta_nu_complex_access_pattern.json' ); +var crcap = require( './fixtures/ca_rb_l_l_nta_nu_complex_access_pattern.json' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof dtrsm, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function has an arity of 15', function test( t ) { + t.strictEqual( dtrsm.length, 15, 'returns expected value' ); + t.end(); +}); + +tape( 'the function throws an error if provided an invalid first argument', function test( t ) { + var values; + var data; + var i; + + data = racbllntanu; + + values = [ + 'foo', + 'bar', + 'beep', + 'boop' + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + dtrsm( value, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, new Float64Array( data.A ), data.strideA1, data.strideA2, data.offsetA, new Float64Array( data.B ), data.strideB1, data.strideB2, data.offsetB ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid second argument', function test( t ) { + var values; + var data; + var i; + + data = racbllntanu; + + values = [ + 'foo', + 'bar', + 'beep', + 'boop' + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + dtrsm( data.side, value, data.transA, data.diag, data.M, data.N, data.alpha, new Float64Array( data.A ), data.strideA1, data.strideA2, data.offsetA, new Float64Array( data.B ), data.strideB1, data.strideB2, data.offsetB ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid third argument', function test( t ) { + var values; + var data; + var i; + + data = racbllntanu; + + values = [ + 'foo', + 'bar', + 'beep', + 'boop' + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + dtrsm( data.side, data.uplo, value, data.diag, data.M, data.N, data.alpha, new Float64Array( data.A ), data.strideA1, data.strideA2, data.offsetA, new Float64Array( data.B ), data.strideB1, data.strideB2, data.offsetB ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid fourth argument', function test( t ) { + var values; + var data; + var i; + + data = racbllntanu; + + values = [ + 'foo', + 'bar', + 'beep', + 'boop' + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + dtrsm( data.side, data.uplo, data.transA, value, data.M, data.N, data.alpha, new Float64Array( data.A ), data.strideA1, data.strideA2, data.offsetA, new Float64Array( data.B ), data.strideB1, data.strideB2, data.offsetB ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid fifth argument', function test( t ) { + var values; + var data; + var i; + + data = racbllntanu; + + values = [ + -1, + -2, + -3 + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + dtrsm( data.side, data.uplo, data.transA, data.diag, value, data.N, data.alpha, new Float64Array( data.A ), data.strideA1, data.strideA2, data.offsetA, new Float64Array( data.B ), data.strideB1, data.strideB2, data.offsetB ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid sixth argument', function test( t ) { + var values; + var data; + var i; + + data = racbllntanu; + + values = [ + -1, + -2, + -3 + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, value, data.alpha, new Float64Array( data.A ), data.strideA1, data.strideA2, data.offsetA, new Float64Array( data.B ), data.strideB1, data.strideB2, data.offsetB ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid thirteenth argument', function test( t ) { + var values; + var data; + var i; + + data = racbllntanu; + + values = [ + 0 + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, new Float64Array( data.A ), data.strideA1, data.strideA2, data.offsetA, new Float64Array( data.B ), value, data.strideB2, data.offsetB ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid fourteenth argument', function test( t ) { + var values; + var data; + var i; + + data = racbllntanu; + + values = [ + 0 + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, new Float64Array( data.A ), data.strideA1, data.strideA2, data.offsetA, new Float64Array( data.B ), data.strideB1, value, data.offsetB ); + }; + } +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, column-major, left, lower, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racbllntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, column-major, left, lower, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cacbllntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, column-major, left, lower, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racbllntau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, column-major, left, lower, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cacbllntau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, column-major, left, lower, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racblltanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, column-major, left, lower, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cacblltanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, column-major, left, lower, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racblltau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, column-major, left, lower, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cacblltau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, column-major, left, upper, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racbluntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, column-major, left, upper, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cacbluntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, column-major, left, upper, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racbluntau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, column-major, left, upper, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cacbluntau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, column-major, left, upper, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racblutanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, column-major, left, upper, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cacblutanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, column-major, left, upper, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racblutau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, column-major, left, upper, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cacblutau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, column-major, right, lower, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racbrlntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, column-major, right, lower, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cacbrlntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, column-major, right, lower, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racbrlntau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, column-major, right, lower, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cacbrlntau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, column-major, right, lower, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racbrltanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, column-major, right, lower, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cacbrltanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, column-major, right, lower, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racbrltau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, column-major, right, lower, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cacbrltau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, column-major, right, upper, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racbruntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, column-major, right, upper, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cacbruntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, column-major, right, upper, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racbruntau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, column-major, right, upper, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cacbruntau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, column-major, right, upper, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racbrutanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, column-major, right, upper, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cacbrutanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, column-major, right, upper, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racbrutau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, column-major, right, upper, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cacbrutau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, row-major, left, lower, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbllntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, row-major, left, lower, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = carbllntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, row-major, left, lower, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbllntau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, row-major, left, lower, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = carbllntau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, row-major, left, lower, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarblltanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, row-major, left, lower, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = carblltanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, row-major, left, lower, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarblltau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, row-major, left, lower, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = carblltau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, row-major, left, upper, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbluntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, row-major, left, upper, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = carbluntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, row-major, left, upper, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbluntau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, row-major, left, upper, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = carbluntau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, row-major, left, upper, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarblutanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, row-major, left, upper, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = carblutanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, row-major, left, upper, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarblutau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, row-major, left, upper, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = carblutau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, row-major, right, lower, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbrlntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, row-major, right, lower, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = carbrlntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, row-major, right, lower, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbrlntau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, row-major, right, lower, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = carbrlntau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, row-major, right, lower, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbrltanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, row-major, right, lower, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = carbrltanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, row-major, right, lower, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbrltau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, row-major, right, lower, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = carbrltau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, row-major, right, upper, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbruntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, row-major, right, upper, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = carbruntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, row-major, right, upper, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbruntau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, row-major, right, upper, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = carbruntau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, row-major, right, upper, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbrutanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, row-major, right, upper, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = carbrutanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, row-major, right, upper, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbrutau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, row-major, right, upper, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = carbrutau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns a reference to the second input matrix', function test( t ) { + var data; + var out; + var a; + var b; + + data = racbllntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.end(); +}); + +tape( 'if either `M` or `N` is `0`, the function returns the second input matrix unchanged', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racbllntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, 0, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, 0, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'if `α` is `0`, the function returns the second input matrix filled with zeros', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racbllntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( b.length ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, 0.0, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports specifying the strides of the first and second dimensions of `A`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbllntanusa1sa2; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports a negative stride for the first dimension of `A`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbllntanusa1nsa2; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports a negative stride for the second dimension of `A`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbllntanusa1sa2n; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports a negative strides of `A`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbllntanusa1nsa2n; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports specifying an offset parameter for `A`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbllntanuoa; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports specifying the strides of the first and second dimensions of `B`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbllntanusb1sb2; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports a negative stride for the first dimension of `B`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbllntanusb1nsb2; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports a negative stride for the second dimension of `B`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbllntanusb1sb2n; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports a negative strides of `B`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbllntanusb1nsb2n; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports specifying an offset parameter for `B`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbllntanuob; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports complex access patterns (row-major, row-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rrcap; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports complex access patterns (row-major, column-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rccap; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports complex access patterns (column-major, row-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = crcap; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports complex access patterns (column-major, column-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cccap; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +});