diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/README.md b/lib/node_modules/@stdlib/blas/base/dtrmm/README.md new file mode 100644 index 000000000000..33e41afef0ca --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/README.md @@ -0,0 +1,263 @@ + + + +# dtrmm + +> Perform one of the matrix-matrix operations `B = α * op(A) * B` or `B = α * B * op(A)` where α is a scalar, `B` is an `M` by `N` matrix, 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`. + +
+ +## Usage + +```javascript +var dtrmm = require( '@stdlib/blas/base/dtrmm' ); +``` + +#### dtrmm( order, side, uplo, transa, diag, M, N, α, A, LDA, B, LDB ) + +Performs one of the matrix-matrix operations `B = α * op(A) * B` or `B = α * B * op(A)` where α is a scalar, `B` is an `M` by `N` matrix, 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`. + +```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 ] ); + +dtrmm( 'row-major', 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, B, 3 ); +// B => [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 31.0, 41.0, 51.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`. +- **alpha**: 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 + +dtrmm( 'row-major', 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A1, 3, B1, 3 ); +// B1 => [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 31.0, 41.0, 51.0 ] +``` + +#### dtrmm.ndarray( s, ul, t, d, M, N, α, A, sa1, sa2, oa, B, sb1, sb2, ob ) + +one of the matrix-matrix operations `B = α * op(A) * B` or `B = α * B * op(A)` using alternative indexing semantics and where α is a scalar, `B` is an `M` by `N` matrix, 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`. + +```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 ] ); + +dtrmm.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, 6.0, 9.0, 12.0, 31.0, 41.0, 51.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`. +- **alpha**: 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( [ 0.0, 0.0, 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); +var B = new Float64Array( [ 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); + +dtrmm.ndarray( 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 2, B, 3, 1, 1 ); +// B => [ 0.0, 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 31.0, 41.0, 51.0 ] +``` + +
+ + + +
+ +## Notes + +- `dtrmm()` corresponds to the [BLAS][blas] level 3 function [`dtrmm`][dtrmm]. + +
+ + + +
+ +## Examples + + + +```javascript +var discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); +var dtrmm = require( '@stdlib/blas/base/dtrmm' ); + +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 = dtrmm( 'column-major', 'left', 'upper', 'no-transpose', 'non-unit', M, N, 1.0, A, N, B, N ); +console.log( out ); + +out = dtrmm.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/dtrmm/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/dtrmm/benchmark/benchmark.js new file mode 100644 index 000000000000..26f3598d0988 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/benchmark/benchmark.js @@ -0,0 +1,104 @@ +/** +* @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 ones = require( '@stdlib/array/ones' ); +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 dtrmm = require( './../lib/dtrmm.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 = ones( N*N, options.dtype ); + var B = ones( 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 = dtrmm( '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/dtrmm/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/dtrmm/benchmark/benchmark.ndarray.js new file mode 100644 index 000000000000..4a01935abe8f --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/benchmark/benchmark.ndarray.js @@ -0,0 +1,104 @@ +/** +* @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 ones = require( '@stdlib/array/ones' ); +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 dtrmm = 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 = ones( N*N, options.dtype ); + var B = ones( 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 = dtrmm( '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/dtrmm/docs/repl.txt b/lib/node_modules/@stdlib/blas/base/dtrmm/docs/repl.txt new file mode 100644 index 000000000000..7f7dff7fb9f6 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/docs/repl.txt @@ -0,0 +1,150 @@ + +{{alias}}( ord, side, uplo, transa, diag, M, N, α, A, lda, B, ldb ) + Performs one of the matrix-matrix operations `B = α * op(A) * B` or + `B = α * B * op(A)` where α is a scalar, `B` is an `M` by `N` matrix, 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`. + + 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 )` multiplies `B` from the left or right. + + uplo: string + Specifies whether `A` is an upper or lower triangular matrix. + + transa: string + Specifies whether `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, 5.0, 8.0 ] + + +{{alias}}.ndarray(side,uplo,transa,diag,M,N,α,A,sa1,sa2,oa,B,sb1,sb2,ob) + Performs one of the matrix-matrix operations `B = α * op(A) * B` or + `B = α * B * op(A)` where α is a scalar, `B` is an `M` by `N` matrix, 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` 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 )` multiplies `B` from the left or right. + + uplo: string + Specifies whether `A` is an upper or lower triangular matrix. + + transa: string + Specifies whether `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, 5.0, 8.0 ] + + See Also + -------- diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/base/dtrmm/docs/types/index.d.ts new file mode 100644 index 000000000000..fbe62b4eb448 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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 `dtrmm`. +*/ +interface Routine { + /** + * Performs one of the matrix-matrix operations `B = α * op(A) * B` or `B = α * B * op(A)` where α is a scalar, `B` is an `M` by `N` matrix, 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`. + * + * @param order - storage layout of `A` and `B` + * @param side - specifies whether `op( A )` multiplies `B` from the left or right + * @param uplo - specifies whether the upper or lower triangular part of the matrix `A` is supplied + * @param transa - specifies the form of `op( A )` to be used in matrix multiplication + * @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 ] ); + * + * dtrmm( 'row-major', 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, B, 3 ); + * // B => [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 31.0, 41.0, 51.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; + + /** + * Performs one of the matrix-matrix operations `B = α * op(A) * B` or `B = α * B * op(A)` using alternative indexing semantics, where α is a scalar, `B` is an `M` by `N` matrix, 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`. + * + * @param side - specifies whether `op( A )` multiplies `B` from the left or right + * @param uplo - specifies whether the upper or lower triangular part of the matrix `A` is supplied + * @param transa - specifies the form of `op( A )` to be used in matrix multiplication + * @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 ] ); + * + * dtrmm.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, 6.0, 9.0, 12.0, 31.0, 41.0, 51.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; +} + +/** +* Performs one of the matrix-matrix operations `B = α * op(A) * B` or `B = α * B * op(A)` where α is a scalar, `B` is an `M` by `N` matrix, 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`. +* +* @param order - storage layout of `A` and `B` +* @param side - specifies whether `op( A )` multiplies `B` from the left or right +* @param uplo - specifies whether the upper or lower triangular part of the matrix `A` is supplied +* @param transa - specifies the form of `op( A )` to be used in matrix multiplication +* @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 ] ); +* +* dtrmm( 'row-major', 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, B, 3 ); +* // B => [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 31.0, 41.0, 51.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 ] ); +* +* dtrmm.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, 6.0, 9.0, 12.0, 31.0, 41.0, 51.0 ] +*/ +declare var dtrmm: Routine; + + +// EXPORTS // + +export = dtrmm; diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/docs/types/test.ts b/lib/node_modules/@stdlib/blas/base/dtrmm/docs/types/test.ts new file mode 100644 index 000000000000..e37226c14382 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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 dtrmm = 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 ] ); + + dtrmm( '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 ] ); + + dtrmm( 5, 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( true, 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( false, 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( null, 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( void 0, 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( [], 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( {}, 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( ( 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 ] ); + + dtrmm( 'row-major', 5, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', true, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', false, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', null, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', void 0, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', [], 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', {}, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( '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 ] ); + + dtrmm( 'row-major', 'left', 5, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', true, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', false, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', null, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', void 0, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', [], 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', {}, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( '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 ] ); + + dtrmm( 'row-major', 'left', 'upper', 5, 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', true, 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', false, 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', null, 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', void 0, 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', [], 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', {}, 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( '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 ] ); + + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 5, 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', true, 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', false, 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', null, 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', void 0, 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', [], 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', {}, 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( '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 ] ); + + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', '5', 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', true, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', false, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', null, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', void 0, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', [], 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', {}, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( '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 ] ); + + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, '5', 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, true, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, false, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, null, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, void 0, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, [], 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, {}, 6.0, A, 2, B, 2 ); // $ExpectError + dtrmm( '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 ] ); + + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, '5', A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, true, A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, false, A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, null, A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, void 0, A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, [], A, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, {}, A, 2, B, 2 ); // $ExpectError + dtrmm( '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 ] ); + + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, '5', 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, 5, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, true, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, false, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, null, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, void 0, 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, [], 2, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, {}, 2, B, 2 ); // $ExpectError + dtrmm( '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 ] ); + + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, '5', B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, true, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, false, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, null, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, void 0, B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, [], B, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, {}, B, 2 ); // $ExpectError + dtrmm( '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 ] ); + + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, '5', 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 5, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, true, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, false, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, null, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, void 0, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, [], 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, {}, 2 ); // $ExpectError + dtrmm( '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 ] ); + + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, '5' ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, true ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, false ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, null ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, void 0 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, [] ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, {} ); // $ExpectError + dtrmm( '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 ] ); + + dtrmm(); // $ExpectError + dtrmm( 'row-major' ); // $ExpectError + dtrmm( 'row-major', 'left' ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper' ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose' ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit' ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2 ); // $ExpectError + dtrmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B ); // $ExpectError + dtrmm( '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 ] ); + + dtrmm.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 ] ); + + dtrmm.ndarray( 5, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( true, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( false, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( null, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( void 0, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( [], 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( {}, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.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 ] ); + + dtrmm.ndarray( 'left', 5, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', true, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', false, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', null, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', void 0, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', [], 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', {}, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.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 ] ); + + dtrmm.ndarray( 'left', 'upper', 5, 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', true, 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', false, 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', null, 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', void 0, 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', [], 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', {}, 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.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 ] ); + + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 5, 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', true, 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', false, 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', null, 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', void 0, 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', [], 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', {}, 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.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 ] ); + + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', '5', 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', true, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', false, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', null, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', void 0, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', [], 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', {}, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.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 ] ); + + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, '5', 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, true, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, false, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, null, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, void 0, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, [], 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, {}, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.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 ] ); + + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, '5', A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, true, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, false, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, null, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, void 0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, [], A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, {}, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.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 ] ); + + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, '5', 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, 5, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, true, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, false, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, null, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, void 0, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, [], 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, {}, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.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 ] ); + + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, '5', 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, true, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, false, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, null, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, void 0, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, [], 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, {}, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.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 ] ); + + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, '5', 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, true, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, false, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, null, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, void 0, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, [], 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, {}, 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.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 ] ); + + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, '5', B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, true, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, false, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, null, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, void 0, B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, [], B, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, {}, B, 2, 1, 0 ); // $ExpectError + dtrmm.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 ] ); + + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, '5', 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, 5, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, true, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, false, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, null, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, void 0, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, [], 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, {}, 2, 1, 0 ); // $ExpectError + dtrmm.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 ] ); + + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, '5', 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, true, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, false, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, null, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, void 0, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, [], 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, {}, 1, 0 ); // $ExpectError + dtrmm.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 ] ); + + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, '5', 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, true, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, false, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, null, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, void 0, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, [], 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, {}, 0 ); // $ExpectError + dtrmm.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 ] ); + + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, '5' ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, true ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, false ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, null ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, void 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, [] ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, {} ); // $ExpectError + dtrmm.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 ] ); + + dtrmm.ndarray(); // $ExpectError + dtrmm.ndarray( 'left' ); // $ExpectError + dtrmm.ndarray( 'left', 'upper' ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose' ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit' ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2 ); // $ExpectError + dtrmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1 ); // $ExpectError + dtrmm.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/dtrmm/examples/index.js b/lib/node_modules/@stdlib/blas/base/dtrmm/examples/index.js new file mode 100644 index 000000000000..270c22dfab3c --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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 dtrmm = 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 = dtrmm( 'column-major', 'left', 'upper', 'no-transpose', 'non-unit', M, N, 1.0, A, N, B, N ); +console.log( out ); + +out = dtrmm.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/dtrmm/lib/base.js b/lib/node_modules/@stdlib/blas/base/dtrmm/lib/base.js new file mode 100644 index 000000000000..7530dfb88c18 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/lib/base.js @@ -0,0 +1,356 @@ +/** +* @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 // + +/** +* Performs one of the matrix-matrix operations `B = α * op(A) * B` or `B = α * B * op(A)` where α is a scalar, `B` is an `M` by `N` matrix, 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`. +* +* @private +* @param {string} side - specifies whether `op( A )` multiplies `B` from the left or right +* @param {string} uplo - specifies whether the upper or lower triangular part of the matrix `A` is supplied +* @param {string} transa - specifies the form of `op( A )` to be used in matrix multiplication +* @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 ] ); +* +* dtrmm( 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 ); +* // B => [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 31.0, 41.0, 51.0 ] +*/ +function dtrmm( 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 ob; + var i; + var j; + var k; + + isrma = isRowMajor( [ strideA1, strideA2 ] ); + nonunit = ( diag === 'non-unit' ); + + if ( M === 0 || N === 0 ) { + return B; + } + if ( isrma ) { + sa0 = strideA2; + sa1 = strideA1; + sb0 = strideB2; + sb1 = strideB1; + } else { + sa0 = strideA1; + sa1 = strideA2; + 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 ( j = 0; j < N; j++ ) { + for ( k = 0; k < M; k++ ) { + ob2 = offsetB + ( k * sb1 ) + ( j * sb0 ); + tmp = alpha * B[ ob2 ]; + for ( i = 0; i < k; i++ ) { + oa2 = offsetA + ( i * sa1 ) + ( k * sa0 ); + ob = offsetB + ( i * sb1 ) + ( j * sb0 ); + B[ ob ] += ( tmp * A[ oa2 ] ); + } + if ( nonunit ) { + oa2 = offsetA + ( k * sa1 ) + ( k * sa0 ); + tmp *= A[ oa2 ]; + } + B[ ob2 ] = tmp; + } + } + 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++ ) { + for ( k = M - 1; k >= 0; k-- ) { + ob2 = offsetB + ( k * sb1 ) + ( j * sb0 ); + tmp = alpha * B[ ob2 ]; + for ( i = k + 1; i < M; i++ ) { + oa2 = offsetA + ( i * sa1 ) + ( k * sa0 ); + ob = offsetB + ( i * sb1 ) + ( j * sb0 ); + B[ ob ] += ( tmp * A[ oa2 ] ); + } + if ( nonunit ) { + oa2 = offsetA + ( k * sa1 ) + ( k * sa0 ); + tmp *= A[ oa2 ]; + } + B[ ob2 ] = tmp; + } + } + 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 = M - 1; i >= 0; i-- ) { + ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); + tmp = 0.0; + for ( k = 0; k < i; k++ ) { + oa2 = offsetA + ( k * sa1 ) + ( i * sa0 ); + tmp += A[ oa2 ] * B[ offsetB + ( k * sb1 ) + ( j * sb0 ) ]; + } + if ( nonunit ) { + oa2 = offsetA + ( i * sa1 ) + ( i * sa0 ); + tmp += ( A[ oa2 ] * B[ ob2 ] ); + } else { + tmp += B[ ob2 ]; + } + B[ ob2 ] = alpha * 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++ ) { + for ( i = 0; i < M; i++ ) { + ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); + tmp = 0.0; + for ( k = i + 1; k < M; k++ ) { + oa2 = offsetA + ( k * sa1 ) + ( i * sa0 ); + tmp += A[ oa2 ] * B[ offsetB + ( k * sb1 ) + ( j * sb0 ) ]; + } + if ( nonunit ) { + oa2 = offsetA + ( i * sa1 ) + ( i * sa0 ); + tmp += ( A[ oa2 ] * B[ ob2 ] ); + } else { + tmp += B[ ob2 ]; + } + B[ ob2 ] = alpha * tmp; + } + } + return B; + } + if ( + ( isrma && side === 'right' && uplo === 'upper' && transa === 'no-transpose' ) || + ( !isrma && side === 'left' && uplo === 'lower' && transa === 'no-transpose' ) + ) { + for ( j = N - 1; j >= 0; j-- ) { + if ( nonunit ) { + oa2 = offsetA + ( j * sa1 ) + ( j * sa0 ); + tmp = A[ oa2 ]; + for ( i = 0; i < M; i++ ) { + ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); + B[ ob2 ] *= tmp; + } + } + for ( i = 0; i < M; i++ ) { + ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); + B[ ob2 ] *= alpha; + } + for ( k = 0; k < j; k++ ) { + oa2 = offsetA + ( k * sa1 ) + ( j * sa0 ); + if ( A[ oa2 ] !== 0.0 ) { + tmp = alpha * A[ oa2 ]; + for ( i = 0; i < M; i++ ) { + ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); + B[ ob2 ] += ( tmp * B[ offsetB + ( i * sb1 ) + ( k * sb0 ) ] ); + } + } + } + } + return B; + } + if ( + ( isrma && side === 'right' && uplo === 'lower' && transa === 'no-transpose' ) || + ( !isrma && side === 'left' && uplo === 'upper' && transa === 'no-transpose' ) + ) { + for ( j = 0; j < N; j++ ) { + if ( nonunit ) { + oa2 = offsetA + ( j * sa1 ) + ( j * sa0 ); + tmp = A[ oa2 ]; + for ( i = 0; i < M; i++ ) { + ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); + B[ ob2 ] *= tmp; + } + } + for ( i = 0; i < M; i++ ) { + ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); + B[ ob2 ] *= alpha; + } + for ( k = j + 1; k < N; k++ ) { + oa2 = offsetA + ( k * sa1 ) + ( j * sa0 ); + if ( A[ oa2 ] !== 0.0 ) { + tmp = alpha * A[ oa2 ]; + for ( i = 0; i < M; i++ ) { + ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); + B[ ob2 ] += ( tmp * B[ offsetB + ( i * sb1 ) + ( k * sb0 ) ] ); + } + } + } + } + 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++ ) { + for ( i = 0; i < M; i++ ) { + ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); + oa2 = offsetA + ( j * sa1 ) + ( j * sa0 ); + if ( nonunit ) { + tmp = B[ ob2 ] * A[ oa2 ]; + } else { + tmp = B[ ob2 ]; + } + for ( k = j + 1; k < N; k++ ) { + oa2 = offsetA + ( j * sa1 ) + ( k * sa0 ); + tmp += ( B[ offsetB + ( i * sb1 ) + ( k * sb0 ) ] * A[ oa2 ] ); + } + B[ ob2 ] = alpha * tmp; + } + } + return B; + } + // ( isrma && side === 'right' && uplo === 'lower' && transa !== 'no-transpose' ) || ( !isrma && side === 'left' && uplo === 'upper' && transa !== 'no-transpose' ) + for ( i = 0; i < M; i++ ) { + for ( j = N - 1; j >= 0; j-- ) { + ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); + oa2 = offsetA + ( j * sa1 ) + ( j * sa0 ); + if ( nonunit ) { + tmp = B[ ob2 ] * A[ oa2 ]; + } else { + tmp = B[ ob2 ]; + } + for ( k = 0; k < j; k++ ) { + oa2 = offsetA + ( j * sa1 ) + ( k * sa0 ); + tmp += ( B[ offsetB + ( i * sb1 ) + ( k * sb0 ) ] * A[ oa2 ] ); + } + + B[ ob2 ] = alpha * tmp; + } + } + return B; +} + + +// EXPORTS // + +module.exports = dtrmm; diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/lib/dtrmm.js b/lib/node_modules/@stdlib/blas/base/dtrmm/lib/dtrmm.js new file mode 100644 index 000000000000..a5cd6676aa0f --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/lib/dtrmm.js @@ -0,0 +1,128 @@ +/** +* @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 // + +/** +* Performs one of the matrix-matrix operations `B = α * op(A) * B` or `B = α * B * op(A)` where α is a scalar, `B` is an `M` by `N` matrix, 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`. +* +* @param {string} order - storage layout of `A` and `B` +* @param {string} side - specifies whether `op( A )` multiplies `B` from the left or right +* @param {string} uplo - specifies whether the upper or lower triangular part of the matrix `A` is supplied +* @param {string} transa - specifies the form of `op( A )` to be used in matrix multiplication +* @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 ] ); +* +* dtrmm( 'row-major', 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, B, 3 ); +* // B => [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 31.0, 41.0, 51.0 ] +*/ +function dtrmm( 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 = dtrmm; diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/lib/index.js b/lib/node_modules/@stdlib/blas/base/dtrmm/lib/index.js new file mode 100644 index 000000000000..65be6bfb03e0 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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 perform one of the matrix-matrix operations `B = α * op(A) * B` or `B = α * B * op(A)` where α is a scalar, `B` is an `M` by `N` matrix, 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`. +* +* @module @stdlib/blas/base/dtrmm +* +* @example +* var Float64Array = require( '@stdlib/array/float64' ); +* var dtrmm = require( '@stdlib/blas/base/dtrmm' ); +* +* 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 ] ); +* +* dtrmm( 'row-major', 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, B, 3 ); +* // B => [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 31.0, 41.0, 51.0 ] +* +* @example +* var Float64Array = require( '@stdlib/array/float64' ); +* var dtrmm = require( '@stdlib/blas/base/dtrmm' ); +* +* 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 ] ); +* +* dtrmm.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, 6.0, 9.0, 12.0, 31.0, 41.0, 51.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 dtrmm; +var tmp = tryRequire( join( __dirname, './native.js' ) ); +if ( isError( tmp ) ) { + dtrmm = main; +} else { + dtrmm = tmp; +} + + +// EXPORTS // + +module.exports = dtrmm; diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/lib/main.js b/lib/node_modules/@stdlib/blas/base/dtrmm/lib/main.js new file mode 100644 index 000000000000..d3f79e1db2d7 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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 dtrmm = require( './dtrmm.js' ); +var ndarray = require( './ndarray.js' ); + + +// MAIN // + +setReadOnly( dtrmm, 'ndarray', ndarray ); + + +// EXPORTS // + +module.exports = dtrmm; diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/lib/ndarray.js b/lib/node_modules/@stdlib/blas/base/dtrmm/lib/ndarray.js new file mode 100644 index 000000000000..82faeb9cadef --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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 // + +/** +* Performs one of the matrix-matrix operations `B = α * op(A) * B` or `B = α * B * op(A)` where α is a scalar, `B` is an `M` by `N` matrix, 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`. +* +* @param {string} side - specifies whether `op( A )` multiplies `B` from the left or right +* @param {string} uplo - specifies whether the upper or lower triangular part of the matrix `A` is supplied +* @param {string} transa - specifies the form of `op( A )` to be used in matrix multiplication +* @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 ] ); +* +* dtrmm( 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 ); +* // B => [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 31.0, 41.0, 51.0 ] +*/ +function dtrmm( 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 = dtrmm; diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/package.json b/lib/node_modules/@stdlib/blas/base/dtrmm/package.json new file mode 100644 index 000000000000..41c1467cc2ae --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/package.json @@ -0,0 +1,68 @@ +{ + "name": "@stdlib/blas/base/dtrmm", + "version": "0.0.0", + "description": "Perform one of the matrix-matrix operations `B = alpha * op(A) * B` or `B = alpha * B * op(A)` where alpha is a scalar, B is an m by n matrix, 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`.", + "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", + "dtrmm", + "linear", + "algebra", + "subroutines", + "array", + "ndarray", + "float64", + "single", + "float64array" + ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_cb_l_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_cb_l_l_nta_nu.json new file mode 100644 index 000000000000..4d481be32b05 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 12.0, 42.0, 4.0, 33.0, 96.0, 7.0, 54.0, 150.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_cb_l_l_nta_nu_complex_access_pattern.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_cb_l_l_nta_nu_complex_access_pattern.json new file mode 100644 index 000000000000..25fb17bf4125 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 999.0, 7.0, 999.0, 0.0, 999.0, 5.0, 999.0, 8.0, 999.0, 0.0, 999.0, 0.0, 999.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.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, 24.0, 999.0, 999.0, 102.0, 999.0, 999.0, 2.0, 999.0, 999.0, 33.0, 999.0, 999.0, 126.0, 999.0, 999.0, 3.0, 999.0, 999.0, 42.0, 999.0, 999.0, 150.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_cb_l_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_cb_l_l_nta_u.json new file mode 100644 index 000000000000..2bd032b1eea0 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 4.0, 18.0, 4.0, 13.0, 48.0, 7.0, 22.0, 78.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_cb_l_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_cb_l_l_ta_nu.json new file mode 100644 index 000000000000..2da784d4a60e --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 14.0, 28.0, 27.0, 32.0, 61.0, 54.0, 50.0, 94.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_cb_l_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_cb_l_l_ta_u.json new file mode 100644 index 000000000000..4e428f60204f --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 14.0, 20.0, 3.0, 32.0, 41.0, 6.0, 50.0, 62.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_cb_l_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_cb_l_u_nta_nu.json new file mode 100644 index 000000000000..3c5b25b774b3 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 30.0, 34.0, 27.0, 66.0, 73.0, 54.0, 102.0, 112.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_cb_l_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_cb_l_u_nta_u.json new file mode 100644 index 000000000000..781b1c12aaf4 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 30.0, 26.0, 3.0, 66.0, 53.0, 6.0, 102.0, 80.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_cb_l_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_cb_l_u_ta_nu.json new file mode 100644 index 000000000000..17f7afbb0f0f --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 14.0, 50.0, 4.0, 41.0, 122.0, 7.0, 68.0, 194.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_cb_l_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_cb_l_u_ta_u.json new file mode 100644 index 000000000000..7dafd9776b44 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 6.0, 26.0, 4.0, 21.0, 74.0, 7.0, 36.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_cb_r_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_cb_r_l_nta_nu.json new file mode 100644 index 000000000000..1d34baaf7ff2 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 30.0, 36.0, 42.0, 62.0, 73.0, 84.0, 63.0, 72.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_cb_r_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_cb_r_l_nta_u.json new file mode 100644 index 000000000000..7e1c92047035 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_cb_r_l_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 30.0, 36.0, 42.0, 46.0, 53.0, 60.0, 7.0, 8.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_cb_r_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_cb_r_l_ta_nu.json new file mode 100644 index 000000000000..011fc9099964 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 22.0, 29.0, 36.0, 90.0, 108.0, 126.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_cb_r_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_cb_r_l_ta_u.json new file mode 100644 index 000000000000..977bc48ed07a --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 34.0, 44.0, 54.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_cb_r_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_cb_r_u_nta_nu.json new file mode 100644 index 000000000000..6a29a998fbe9 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 24.0, 33.0, 42.0, 102.0, 126.0, 150.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_cb_r_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_cb_r_u_nta_u.json new file mode 100644 index 000000000000..314c9962b40d --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_cb_r_u_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 8.0, 13.0, 18.0, 46.0, 62.0, 78.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_cb_r_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_cb_r_u_ta_nu.json new file mode 100644 index 000000000000..61d1ad1ffb03 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 66.0, 78.0, 90.0, 76.0, 89.0, 102.0, 63.0, 72.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_cb_r_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_cb_r_u_ta_u.json new file mode 100644 index 000000000000..aeb9a5a5ab98 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 66.0, 78.0, 90.0, 60.0, 69.0, 78.0, 7.0, 8.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_rb_l_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_rb_l_l_nta_nu.json new file mode 100644 index 000000000000..06d26d5a5658 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.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, 22.0, 29.0, 36.0, 90.0, 108.0, 126.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_rb_l_l_nta_nu_complex_access_pattern.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_rb_l_l_nta_nu_complex_access_pattern.json new file mode 100644 index 000000000000..a163c33bc992 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 5.0, 999.0, 6.0, 999.0, 0.0, 999.0, 0.0, 999.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.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, 22.0, 999.0, 999.0, 29.0, 999.0, 999.0, 36.0, 999.0, 999.0, 90.0, 999.0, 999.0, 108.0, 999.0, 999.0, 126.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_rb_l_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_rb_l_l_nta_u.json new file mode 100644 index 000000000000..25965b5e6b7a --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.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, 6.0, 9.0, 12.0, 34.0, 44.0, 54.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_rb_l_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_rb_l_l_ta_nu.json new file mode 100644 index 000000000000..fb4c5887f764 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.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": [ 30.0, 36.0, 42.0, 62.0, 73.0, 84.0, 63.0, 72.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_rb_l_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_rb_l_l_ta_u.json new file mode 100644 index 000000000000..091796a80450 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.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": [ 30.0, 36.0, 42.0, 46.0, 53.0, 60.0, 7.0, 8.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_rb_l_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_rb_l_u_nta_nu.json new file mode 100644 index 000000000000..99165d6f9320 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.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": [ 66.0, 78.0, 90.0, 76.0, 89.0, 102.0, 63.0, 72.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_rb_l_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_rb_l_u_nta_u.json new file mode 100644 index 000000000000..ba0acdf8dc74 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.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": [ 66.0, 78.0, 90.0, 60.0, 69.0, 78.0, 7.0, 8.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_rb_l_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_rb_l_u_ta_nu.json new file mode 100644 index 000000000000..4954594d02ae --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.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, 24.0, 33.0, 42.0, 102.0, 126.0, 150.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_rb_l_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_rb_l_u_ta_u.json new file mode 100644 index 000000000000..a2602f871b6c --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.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, 8.0, 13.0, 18.0, 46.0, 62.0, 78.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_rb_r_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_rb_r_l_nta_nu.json new file mode 100644 index 000000000000..f13243838ee6 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.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": [ 14.0, 28.0, 27.0, 32.0, 61.0, 54.0, 50.0, 94.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_rb_r_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_rb_r_l_nta_u.json new file mode 100644 index 000000000000..7b7f6ec422d9 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_rb_r_l_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.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": [ 14.0, 20.0, 3.0, 32.0, 41.0, 6.0, 50.0, 62.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_rb_r_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_rb_r_l_ta_nu.json new file mode 100644 index 000000000000..8a8fa2994175 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.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, 12.0, 42.0, 4.0, 33.0, 96.0, 7.0, 54.0, 150.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_rb_r_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_rb_r_l_ta_u.json new file mode 100644 index 000000000000..350669451961 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.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, 4.0, 18.0, 4.0, 13.0, 48.0, 7.0, 22.0, 78.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_rb_r_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_rb_r_u_nta_nu.json new file mode 100644 index 000000000000..de5bf2433941 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.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, 14.0, 50.0, 4.0, 41.0, 122.0, 7.0, 68.0, 194.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_rb_r_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_rb_r_u_nta_u.json new file mode 100644 index 000000000000..0448f873634a --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_rb_r_u_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.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, 6.0, 26.0, 4.0, 21.0, 74.0, 7.0, 36.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_rb_r_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_rb_r_u_ta_nu.json new file mode 100644 index 000000000000..dd22a3ce294d --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.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": [ 30.0, 34.0, 27.0, 66.0, 73.0, 54.0, 102.0, 112.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_rb_r_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_rb_r_u_ta_u.json new file mode 100644 index 000000000000..22fd1af828f4 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ca_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, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.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": [ 30.0, 26.0, 3.0, 66.0, 53.0, 6.0, 102.0, 80.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/column_major_l_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/column_major_l_l_nta_nu.json new file mode 100644 index 000000000000..c188c3b85227 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 12.0, 42.0, 4.0, 33.0, 96.0, 7.0, 54.0, 150.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/column_major_l_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/column_major_l_l_nta_u.json new file mode 100644 index 000000000000..81a49482d80b --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 4.0, 18.0, 4.0, 13.0, 48.0, 7.0, 22.0, 78.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/column_major_l_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/column_major_l_l_ta_nu.json new file mode 100644 index 000000000000..5b10b3cf968f --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 14.0, 28.0, 27.0, 32.0, 61.0, 54.0, 50.0, 94.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/column_major_l_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/column_major_l_l_ta_u.json new file mode 100644 index 000000000000..db472e6b5316 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 14.0, 20.0, 3.0, 32.0, 41.0, 6.0, 50.0, 62.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/column_major_l_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/column_major_l_u_nta_nu.json new file mode 100644 index 000000000000..64fc2c0b218b --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 30.0, 34.0, 27.0, 66.0, 73.0, 54.0, 102.0, 112.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/column_major_l_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/column_major_l_u_nta_u.json new file mode 100644 index 000000000000..c818ef189753 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 30.0, 26.0, 3.0, 66.0, 53.0, 6.0, 102.0, 80.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/column_major_l_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/column_major_l_u_ta_nu.json new file mode 100644 index 000000000000..6cbfcf3e9f0e --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 14.0, 50.0, 4.0, 41.0, 122.0, 7.0, 68.0, 194.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/column_major_l_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/column_major_l_u_ta_u.json new file mode 100644 index 000000000000..809c79b64b1a --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 6.0, 26.0, 4.0, 21.0, 74.0, 7.0, 36.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/column_major_r_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/column_major_r_l_nta_nu.json new file mode 100644 index 000000000000..75bfce5d8006 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 30.0, 36.0, 42.0, 62.0, 73.0, 84.0, 63.0, 72.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/column_major_r_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/column_major_r_l_nta_u.json new file mode 100644 index 000000000000..b4423e09b511 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/column_major_r_l_nta_u.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "right", + "uplo": "lower", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 30.0, 36.0, 42.0, 46.0, 53.0, 60.0, 7.0, 8.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/column_major_r_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/column_major_r_l_ta_nu.json new file mode 100644 index 000000000000..7f2fc645c972 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 2.0, 3.0, 22.0, 29.0, 36.0, 90.0, 108.0, 126.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/column_major_r_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/column_major_r_l_ta_u.json new file mode 100644 index 000000000000..ba170a816151 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 34.0, 44.0, 54.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/column_major_r_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/column_major_r_u_nta_nu.json new file mode 100644 index 000000000000..f68df0e23fe2 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 2.0, 3.0, 24.0, 33.0, 42.0, 102.0, 126.0, 150.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/column_major_r_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/column_major_r_u_nta_u.json new file mode 100644 index 000000000000..bcfee4fd0544 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/column_major_r_u_nta_u.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 2.0, 3.0, 8.0, 13.0, 18.0, 46.0, 62.0, 78.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/column_major_r_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/column_major_r_u_ta_nu.json new file mode 100644 index 000000000000..544007962b4a --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 66.0, 78.0, 90.0, 76.0, 89.0, 102.0, 63.0, 72.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/column_major_r_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/column_major_r_u_ta_u.json new file mode 100644 index 000000000000..a33b3eafdc9a --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 66.0, 78.0, 90.0, 60.0, 69.0, 78.0, 7.0, 8.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_cb_l_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_cb_l_l_nta_nu.json new file mode 100644 index 000000000000..dbcd17ff8f36 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 5.0, 0.0, 3.0, 6.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 12.0, 42.0, 4.0, 33.0, 96.0, 7.0, 54.0, 150.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_cb_l_l_nta_nu_complex_access_pattern.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_cb_l_l_nta_nu_complex_access_pattern.json new file mode 100644 index 000000000000..722fbc4338d7 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 5.0, 999.0, 0.0, 999.0, 3.0, 999.0, 6.0, 999.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 9, + "offsetB": 1, + "B_out": [ 999.0, 1.0, 999.0, 999.0, 12.0, 999.0, 999.0, 42.0, 999.0, 999.0, 4.0, 999.0, 999.0, 33.0, 999.0, 999.0, 96.0, 999.0, 999.0, 7.0, 999.0, 999.0, 54.0, 999.0, 999.0, 150.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_cb_l_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_cb_l_l_nta_u.json new file mode 100644 index 000000000000..ee771dc81876 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 5.0, 0.0, 3.0, 6.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 4.0, 18.0, 4.0, 13.0, 48.0, 7.0, 22.0, 78.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_cb_l_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_cb_l_l_ta_nu.json new file mode 100644 index 000000000000..64b2027d7235 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 2.0, 5.0, 0.0, 3.0, 6.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 3.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 14.0, 28.0, 27.0, 32.0, 61.0, 54.0, 50.0, 94.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_cb_l_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_cb_l_l_ta_u.json new file mode 100644 index 000000000000..7ae33c9f4c6c --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 2.0, 5.0, 0.0, 3.0, 6.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 14.0, 20.0, 3.0, 32.0, 41.0, 6.0, 50.0, 62.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_cb_l_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_cb_l_u_nta_nu.json new file mode 100644 index 000000000000..41373e49266a --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 7.0, 0.0, 5.0, 8.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 30.0, 34.0, 27.0, 66.0, 73.0, 54.0, 102.0, 112.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_cb_l_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_cb_l_u_nta_u.json new file mode 100644 index 000000000000..d54525902f1b --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 7.0, 0.0, 5.0, 8.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 30.0, 26.0, 3.0, 66.0, 53.0, 6.0, 102.0, 80.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_cb_l_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_cb_l_u_ta_nu.json new file mode 100644 index 000000000000..0796f6764fca --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 7.0, 0.0, 5.0, 8.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 14.0, 50.0, 4.0, 41.0, 122.0, 7.0, 68.0, 194.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_cb_l_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_cb_l_u_ta_u.json new file mode 100644 index 000000000000..2166e1fc645d --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 7.0, 0.0, 5.0, 8.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 6.0, 26.0, 4.0, 21.0, 74.0, 7.0, 36.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_cb_r_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_cb_r_l_nta_nu.json new file mode 100644 index 000000000000..bf2d9ffba9c5 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 2.0, 5.0, 0.0, 3.0, 6.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 30.0, 36.0, 42.0, 62.0, 73.0, 84.0, 63.0, 72.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_cb_r_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_cb_r_l_nta_u.json new file mode 100644 index 000000000000..c9573098c975 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_cb_r_l_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 2.0, 5.0, 0.0, 3.0, 6.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 30.0, 36.0, 42.0, 46.0, 53.0, 60.0, 7.0, 8.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_cb_r_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_cb_r_l_ta_nu.json new file mode 100644 index 000000000000..be6f0a66fd15 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 2.0, 5.0, 0.0, 3.0, 6.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 22.0, 29.0, 36.0, 90.0, 108.0, 126.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_cb_r_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_cb_r_l_ta_u.json new file mode 100644 index 000000000000..429c0001ce58 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 2.0, 5.0, 0.0, 3.0, 6.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 34.0, 44.0, 54.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_cb_r_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_cb_r_u_nta_nu.json new file mode 100644 index 000000000000..22cabfb74476 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 7.0, 0.0, 5.0, 8.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 24.0, 33.0, 42.0, 102.0, 126.0, 150.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_cb_r_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_cb_r_u_nta_u.json new file mode 100644 index 000000000000..0641461d3126 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_cb_r_u_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 4.0, 7.0, 0.0, 5.0, 8.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 8.0, 13.0, 18.0, 46.0, 62.0, 78.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_cb_r_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_cb_r_u_ta_nu.json new file mode 100644 index 000000000000..93cfb9c69e5f --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 7.0, 0.0, 5.0, 8.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 66.0, 78.0, 90.0, 76.0, 89.0, 102.0, 63.0, 72.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_cb_r_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_cb_r_u_ta_u.json new file mode 100644 index 000000000000..5542d74d7469 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 7.0, 0.0, 5.0, 8.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.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, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 66.0, 78.0, 90.0, 60.0, 69.0, 78.0, 7.0, 8.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_l_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_l_l_nta_nu.json new file mode 100644 index 000000000000..69a60b2676ed --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.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, 24.0, 33.0, 42.0, 102.0, 126.0, 150.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_l_l_nta_nu_complex_access_pattern.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_l_l_nta_nu_complex_access_pattern.json new file mode 100644 index 000000000000..66ac35575006 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 999.0, 5.0, 999.0, 0.0, 999.0, 7.0, 999.0, 8.0, 999.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.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, 24.0, 999.0, 999.0, 33.0, 999.0, 999.0, 42.0, 999.0, 999.0, 102.0, 999.0, 999.0, 126.0, 999.0, 999.0, 150.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_l_l_nta_nu_oa.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_l_l_nta_nu_oa.json new file mode 100644 index 000000000000..b2b561d31d36 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.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, 24.0, 33.0, 42.0, 102.0, 126.0, 150.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_l_l_nta_nu_ob.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_l_l_nta_nu_ob.json new file mode 100644 index 000000000000..199cb451ef8f --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.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, 24.0, 33.0, 42.0, 102.0, 126.0, 150.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_l_l_nta_nu_sa1_sa2.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_l_l_nta_nu_sa1_sa2.json new file mode 100644 index 000000000000..f727cbeddf77 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 999.0, 5.0, 999.0, 0.0, 999.0, 7.0, 999.0, 8.0, 999.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.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, 24.0, 33.0, 42.0, 102.0, 126.0, 150.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_l_l_nta_nu_sa1_sa2n.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_l_l_nta_nu_sa1_sa2n.json new file mode 100644 index 000000000000..7700222df592 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 5.0, 4.0, 999.0, 999.0, 999.0, 9.0, 8.0, 7.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.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, 24.0, 33.0, 42.0, 102.0, 126.0, 150.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2.json new file mode 100644 index 000000000000..a35b90938d6d --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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": [ 7.0, 8.0, 9.0, 999.0, 999.0, 999.0, 4.0, 5.0, 0.0, 999.0, 999.0, 999.0, 1.0, 0.0, 0.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.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, 24.0, 33.0, 42.0, 102.0, 126.0, 150.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2n.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2n.json new file mode 100644 index 000000000000..2b596f80066f --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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": [ 9.0, 8.0, 7.0, 0.0, 5.0, 4.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.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, 24.0, 33.0, 42.0, 102.0, 126.0, 150.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_l_l_nta_nu_sb1_sb2.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_l_l_nta_nu_sb1_sb2.json new file mode 100644 index 000000000000..376335b8db03 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.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, 24.0, 999.0, 33.0, 999.0, 42.0, 999.0, 102.0, 999.0, 126.0, 999.0, 150.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_l_l_nta_nu_sb1_sb2n.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_l_l_nta_nu_sb1_sb2n.json new file mode 100644 index 000000000000..5b07e94992d6 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.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, 42.0, 33.0, 24.0, 999.0, 999.0, 999.0, 150.0, 126.0, 102.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_l_l_nta_nu_sb1n_sb2.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_l_l_nta_nu_sb1n_sb2.json new file mode 100644 index 000000000000..8d06d8fdd191 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.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": [ 102.0, 126.0, 150.0, 999.0, 999.0, 999.0, 24.0, 33.0, 42.0, 999.0, 999.0, 999.0, 1.0, 2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_l_l_nta_nu_sb1n_sb2n.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_l_l_nta_nu_sb1n_sb2n.json new file mode 100644 index 000000000000..3c0d67f72bb0 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.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": [ 150.0, 126.0, 102.0, 42.0, 33.0, 24.0, 3.0, 2.0, 1.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_l_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_l_l_nta_u.json new file mode 100644 index 000000000000..249c98229e3f --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.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, 8.0, 13.0, 18.0, 46.0, 62.0, 78.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_l_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_l_l_ta_nu.json new file mode 100644 index 000000000000..6a1f529f33e3 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.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": [ 66.0, 78.0, 90.0, 76.0, 89.0, 102.0, 63.0, 72.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_l_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_l_l_ta_u.json new file mode 100644 index 000000000000..6a1f529f33e3 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_l_l_ta_u.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, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.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": [ 66.0, 78.0, 90.0, 76.0, 89.0, 102.0, 63.0, 72.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_l_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_l_u_nta_nu.json new file mode 100644 index 000000000000..201f5dcf3a79 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 0.0, 5.0, 6.0 ], + [ 0.0, 0.0, 9.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": [ 30.0, 36.0, 42.0, 62.0, 73.0, 84.0, 63.0, 72.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_l_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_l_u_nta_u.json new file mode 100644 index 000000000000..34bbfa727599 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 0.0, 5.0, 6.0 ], + [ 0.0, 0.0, 9.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": [ 30.0, 36.0, 42.0, 46.0, 53.0, 60.0, 7.0, 8.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_l_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_l_u_ta_nu.json new file mode 100644 index 000000000000..eea11b41a01c --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 0.0, 5.0, 6.0 ], + [ 0.0, 0.0, 9.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, 22.0, 29.0, 36.0, 90.0, 108.0, 126.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_l_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_l_u_ta_u.json new file mode 100644 index 000000000000..0d887d86ee9d --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 0.0, 5.0, 6.0 ], + [ 0.0, 0.0, 9.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, 6.0, 9.0, 12.0, 34.0, 44.0, 54.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_r_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_r_l_nta_nu.json new file mode 100644 index 000000000000..c459e5eea6a1 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.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": [ 30.0, 34.0, 27.0, 66.0, 73.0, 54.0, 102.0, 112.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_r_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_r_l_nta_u.json new file mode 100644 index 000000000000..f11c9e2edca7 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_r_l_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.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": [ 30.0, 26.0, 3.0, 66.0, 53.0, 6.0, 102.0, 80.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_r_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_r_l_ta_nu.json new file mode 100644 index 000000000000..56595d2eabef --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.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, 14.0, 50.0, 4.0, 41.0, 122.0, 7.0, 68.0, 194.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_r_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_r_l_ta_u.json new file mode 100644 index 000000000000..d51a379519e5 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.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, 6.0, 26.0, 4.0, 21.0, 74.0, 7.0, 36.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_r_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_r_u_nta_nu.json new file mode 100644 index 000000000000..68e649b6265b --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 0.0, 5.0, 6.0 ], + [ 0.0, 0.0, 9.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, 12.0, 42.0, 4.0, 33.0, 96.0, 7.0, 54.0, 150.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_r_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_r_u_nta_u.json new file mode 100644 index 000000000000..be808d80f190 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_r_u_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 0.0, 5.0, 6.0 ], + [ 0.0, 0.0, 9.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, 4.0, 18.0, 4.0, 13.0, 48.0, 7.0, 22.0, 78.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_r_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_r_u_ta_nu.json new file mode 100644 index 000000000000..af9867e2b7b4 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 0.0, 5.0, 6.0 ], + [ 0.0, 0.0, 9.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": [ 14.0, 28.0, 27.0, 32.0, 61.0, 54.0, 50.0, 94.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_r_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/ra_rb_r_u_ta_u.json new file mode 100644 index 000000000000..312de01134ce --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 0.0, 5.0, 6.0 ], + [ 0.0, 0.0, 9.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": [ 14.0, 20.0, 3.0, 32.0, 41.0, 6.0, 50.0, 62.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/row_major_l_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/row_major_l_l_nta_nu.json new file mode 100644 index 000000000000..d16e0d9529b2 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.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, 24.0, 33.0, 42.0, 102.0, 126.0, 150.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/row_major_l_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/row_major_l_l_nta_u.json new file mode 100644 index 000000000000..56421cce6859 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.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, 8.0, 13.0, 18.0, 46.0, 62.0, 78.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/row_major_l_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/row_major_l_l_ta_nu.json new file mode 100644 index 000000000000..5230f9a5d270 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.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": [ 66.0, 78.0, 90.0, 76.0, 89.0, 102.0, 63.0, 72.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/row_major_l_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/row_major_l_l_ta_u.json new file mode 100644 index 000000000000..0adb2938feb5 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.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": [ 66.0, 78.0, 90.0, 60.0, 69.0, 78.0, 7.0, 8.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/row_major_l_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/row_major_l_u_nta_nu.json new file mode 100644 index 000000000000..084367a6c39f --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 0.0, 5.0, 6.0 ], + [ 0.0, 0.0, 9.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": [ 30.0, 36.0, 42.0, 62.0, 73.0, 84.0, 63.0, 72.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/row_major_l_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/row_major_l_u_nta_u.json new file mode 100644 index 000000000000..fdb29297dbc4 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 0.0, 5.0, 6.0 ], + [ 0.0, 0.0, 9.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": [ 30.0, 36.0, 42.0, 46.0, 53.0, 60.0, 7.0, 8.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/row_major_l_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/row_major_l_u_ta_nu.json new file mode 100644 index 000000000000..6170388e64f8 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 0.0, 5.0, 6.0 ], + [ 0.0, 0.0, 9.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, 22.0, 29.0, 36.0, 90.0, 108.0, 126.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/row_major_l_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/row_major_l_u_ta_u.json new file mode 100644 index 000000000000..8f193dfcd8eb --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 0.0, 5.0, 6.0 ], + [ 0.0, 0.0, 9.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, 6.0, 9.0, 12.0, 34.0, 44.0, 54.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/row_major_r_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/row_major_r_l_nta_nu.json new file mode 100644 index 000000000000..7ca43b2eaf96 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.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": [ 60.0, 68.0, 54.0, 132.0, 146.0, 108.0, 204.0, 224.0, 162.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/row_major_r_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/row_major_r_l_nta_u.json new file mode 100644 index 000000000000..1a0e87261f07 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/row_major_r_l_nta_u.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "right", + "uplo": "lower", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.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": [ 30.0, 26.0, 3.0, 66.0, 53.0, 6.0, 102.0, 80.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/row_major_r_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/row_major_r_l_ta_nu.json new file mode 100644 index 000000000000..5002cbf5d166 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.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, 14.0, 50.0, 4.0, 41.0, 122.0, 7.0, 68.0, 194.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/row_major_r_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/row_major_r_l_ta_u.json new file mode 100644 index 000000000000..556c3da327d5 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.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, 6.0, 26.0, 4.0, 21.0, 74.0, 7.0, 36.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/row_major_r_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/row_major_r_u_nta_nu.json new file mode 100644 index 000000000000..b7b083cabc52 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 0.0, 5.0, 6.0 ], + [ 0.0, 0.0, 9.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, 24.0, 84.0, 8.0, 66.0, 192.0, 14.0, 108.0, 300.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/row_major_r_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/row_major_r_u_nta_u.json new file mode 100644 index 000000000000..c94262a3eeff --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/row_major_r_u_nta_u.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 0.0, 5.0, 6.0 ], + [ 0.0, 0.0, 9.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, 4.0, 18.0, 4.0, 13.0, 48.0, 7.0, 22.0, 78.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/row_major_r_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/row_major_r_u_ta_nu.json new file mode 100644 index 000000000000..e3065fd1860e --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 0.0, 5.0, 6.0 ], + [ 0.0, 0.0, 9.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": [ 14.0, 28.0, 27.0, 32.0, 61.0, 54.0, 50.0, 94.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/row_major_r_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrmm/test/fixtures/row_major_r_u_ta_u.json new file mode 100644 index 000000000000..8de16d06cb39 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 0.0, 5.0, 6.0 ], + [ 0.0, 0.0, 9.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": [ 14.0, 20.0, 3.0, 32.0, 41.0, 6.0, 50.0, 62.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/test.dtrmm.js b/lib/node_modules/@stdlib/blas/base/dtrmm/test/test.dtrmm.js new file mode 100644 index 000000000000..1c669fdf9351 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/test/test.dtrmm.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 dtrmm = require( './../lib/dtrmm.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 dtrmm, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function has an arity of 12', function test( t ) { + t.strictEqual( dtrmm.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() { + dtrmm( 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() { + dtrmm( 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() { + dtrmm( 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() { + dtrmm( 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() { + dtrmm( 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() { + dtrmm( 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() { + dtrmm( 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() { + dtrmm( 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() { + dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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/dtrmm/test/test.js b/lib/node_modules/@stdlib/blas/base/dtrmm/test/test.js new file mode 100644 index 000000000000..b561a2e83a6c --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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 dtrmm = 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 dtrmm, '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 dtrmm.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 dtrmm = proxyquire( './../lib', { + '@stdlib/utils/try-require': tryRequire + }); + + t.strictEqual( dtrmm, 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 dtrmm; + var main; + + main = require( './../lib/dtrmm.js' ); + + dtrmm = proxyquire( './../lib', { + '@stdlib/utils/try-require': tryRequire + }); + + t.strictEqual( dtrmm, main, 'returns expected value' ); + t.end(); + + function tryRequire() { + return new Error( 'Cannot find module' ); + } +}); diff --git a/lib/node_modules/@stdlib/blas/base/dtrmm/test/test.ndarray.js b/lib/node_modules/@stdlib/blas/base/dtrmm/test/test.ndarray.js new file mode 100644 index 000000000000..11d55bfafded --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrmm/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 dtrmm = 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 dtrmm, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function has an arity of 15', function test( t ) { + t.strictEqual( dtrmm.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() { + dtrmm( 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() { + dtrmm( 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() { + dtrmm( 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() { + dtrmm( 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() { + dtrmm( 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() { + dtrmm( 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() { + dtrmm( 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() { + dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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 = dtrmm( 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(); +});