From 3cfb102b4d5af5ba3605047bfad34ebdce7e054e Mon Sep 17 00:00:00 2001 From: ShabiShett07 Date: Sat, 14 Jun 2025 23:32:45 +0530 Subject: [PATCH 1/9] feat: add blas/base/dtrsm --- .../@stdlib/blas/base/dtrsm/README.md | 260 ++++ .../blas/base/dtrsm/benchmark/benchmark.js | 105 ++ .../base/dtrsm/benchmark/benchmark.ndarray.js | 105 ++ .../@stdlib/blas/base/dtrsm/docs/repl.txt | 151 +++ .../blas/base/dtrsm/docs/types/index.d.ts | 129 ++ .../blas/base/dtrsm/docs/types/test.ts | 486 ++++++++ .../@stdlib/blas/base/dtrsm/examples/index.js | 38 + .../@stdlib/blas/base/dtrsm/lib/base.js | 391 ++++++ .../@stdlib/blas/base/dtrsm/lib/dtrsm.js | 129 ++ .../@stdlib/blas/base/dtrsm/lib/index.js | 68 ++ .../@stdlib/blas/base/dtrsm/lib/main.js | 35 + .../@stdlib/blas/base/dtrsm/lib/ndarray.js | 101 ++ .../@stdlib/blas/base/dtrsm/package.json | 68 ++ .../dtrsm/test/fixtures/ca_cb_l_l_nta_nu.json | 28 + ..._cb_l_l_nta_nu_complex_access_pattern.json | 28 + .../dtrsm/test/fixtures/ca_cb_l_l_nta_u.json | 28 + .../dtrsm/test/fixtures/ca_cb_l_l_ta_nu.json | 28 + .../dtrsm/test/fixtures/ca_cb_l_l_ta_u.json | 28 + .../dtrsm/test/fixtures/ca_cb_l_u_nta_nu.json | 28 + .../dtrsm/test/fixtures/ca_cb_l_u_nta_u.json | 28 + .../dtrsm/test/fixtures/ca_cb_l_u_ta_nu.json | 28 + .../dtrsm/test/fixtures/ca_cb_l_u_ta_u.json | 28 + .../dtrsm/test/fixtures/ca_cb_r_l_nta_nu.json | 28 + .../dtrsm/test/fixtures/ca_cb_r_l_nta_u.json | 28 + .../dtrsm/test/fixtures/ca_cb_r_l_ta_nu.json | 28 + .../dtrsm/test/fixtures/ca_cb_r_l_ta_u.json | 28 + .../dtrsm/test/fixtures/ca_cb_r_u_nta_nu.json | 28 + .../dtrsm/test/fixtures/ca_cb_r_u_nta_u.json | 28 + .../dtrsm/test/fixtures/ca_cb_r_u_ta_nu.json | 28 + .../dtrsm/test/fixtures/ca_cb_r_u_ta_u.json | 28 + .../dtrsm/test/fixtures/ca_rb_l_l_nta_nu.json | 28 + ..._rb_l_l_nta_nu_complex_access_pattern.json | 28 + .../dtrsm/test/fixtures/ca_rb_l_l_nta_u.json | 28 + .../dtrsm/test/fixtures/ca_rb_l_l_ta_nu.json | 28 + .../dtrsm/test/fixtures/ca_rb_l_l_ta_u.json | 28 + .../dtrsm/test/fixtures/ca_rb_l_u_nta_nu.json | 28 + .../dtrsm/test/fixtures/ca_rb_l_u_nta_u.json | 28 + .../dtrsm/test/fixtures/ca_rb_l_u_ta_nu.json | 28 + .../dtrsm/test/fixtures/ca_rb_l_u_ta_u.json | 28 + .../dtrsm/test/fixtures/ca_rb_r_l_nta_nu.json | 28 + .../dtrsm/test/fixtures/ca_rb_r_l_nta_u.json | 28 + .../dtrsm/test/fixtures/ca_rb_r_l_ta_nu.json | 28 + .../dtrsm/test/fixtures/ca_rb_r_l_ta_u.json | 28 + .../dtrsm/test/fixtures/ca_rb_r_u_nta_nu.json | 28 + .../dtrsm/test/fixtures/ca_rb_r_u_nta_u.json | 28 + .../dtrsm/test/fixtures/ca_rb_r_u_ta_nu.json | 28 + .../dtrsm/test/fixtures/ca_rb_r_u_ta_u.json | 28 + .../fixtures/column_major_l_l_nta_nu.json | 25 + .../test/fixtures/column_major_l_l_nta_u.json | 25 + .../test/fixtures/column_major_l_l_ta_nu.json | 25 + .../test/fixtures/column_major_l_l_ta_u.json | 25 + .../fixtures/column_major_l_u_nta_nu.json | 25 + .../test/fixtures/column_major_l_u_nta_u.json | 25 + .../test/fixtures/column_major_l_u_ta_nu.json | 25 + .../test/fixtures/column_major_l_u_ta_u.json | 25 + .../fixtures/column_major_r_l_nta_nu.json | 25 + .../test/fixtures/column_major_r_l_nta_u.json | 25 + .../test/fixtures/column_major_r_l_ta_nu.json | 25 + .../test/fixtures/column_major_r_l_ta_u.json | 25 + .../fixtures/column_major_r_u_nta_nu.json | 25 + .../test/fixtures/column_major_r_u_nta_u.json | 25 + .../test/fixtures/column_major_r_u_ta_nu.json | 25 + .../test/fixtures/column_major_r_u_ta_u.json | 25 + .../dtrsm/test/fixtures/ra_cb_l_l_nta_nu.json | 28 + ..._cb_l_l_nta_nu_complex_access_pattern.json | 28 + .../dtrsm/test/fixtures/ra_cb_l_l_nta_u.json | 28 + .../dtrsm/test/fixtures/ra_cb_l_l_ta_nu.json | 28 + .../dtrsm/test/fixtures/ra_cb_l_l_ta_u.json | 28 + .../dtrsm/test/fixtures/ra_cb_l_u_nta_nu.json | 28 + .../dtrsm/test/fixtures/ra_cb_l_u_nta_u.json | 28 + .../dtrsm/test/fixtures/ra_cb_l_u_ta_nu.json | 28 + .../dtrsm/test/fixtures/ra_cb_l_u_ta_u.json | 28 + .../dtrsm/test/fixtures/ra_cb_r_l_nta_nu.json | 28 + .../dtrsm/test/fixtures/ra_cb_r_l_nta_u.json | 28 + .../dtrsm/test/fixtures/ra_cb_r_l_ta_nu.json | 28 + .../dtrsm/test/fixtures/ra_cb_r_l_ta_u.json | 28 + .../dtrsm/test/fixtures/ra_cb_r_u_nta_nu.json | 28 + .../dtrsm/test/fixtures/ra_cb_r_u_nta_u.json | 28 + .../dtrsm/test/fixtures/ra_cb_r_u_ta_nu.json | 28 + .../dtrsm/test/fixtures/ra_cb_r_u_ta_u.json | 28 + .../dtrsm/test/fixtures/ra_rb_l_l_nta_nu.json | 28 + ..._rb_l_l_nta_nu_complex_access_pattern.json | 28 + .../test/fixtures/ra_rb_l_l_nta_nu_oa.json | 28 + .../test/fixtures/ra_rb_l_l_nta_nu_ob.json | 28 + .../fixtures/ra_rb_l_l_nta_nu_sa1_sa2.json | 28 + .../fixtures/ra_rb_l_l_nta_nu_sa1_sa2n.json | 28 + .../fixtures/ra_rb_l_l_nta_nu_sa1n_sa2.json | 28 + .../fixtures/ra_rb_l_l_nta_nu_sa1n_sa2n.json | 28 + .../fixtures/ra_rb_l_l_nta_nu_sb1_sb2.json | 28 + .../fixtures/ra_rb_l_l_nta_nu_sb1_sb2n.json | 28 + .../fixtures/ra_rb_l_l_nta_nu_sb1n_sb2.json | 28 + .../fixtures/ra_rb_l_l_nta_nu_sb1n_sb2n.json | 28 + .../dtrsm/test/fixtures/ra_rb_l_l_nta_u.json | 28 + .../dtrsm/test/fixtures/ra_rb_l_l_ta_nu.json | 28 + .../dtrsm/test/fixtures/ra_rb_l_l_ta_u.json | 28 + .../blas/base/dtrsm/test/test.dtrsm.js | 1076 +++++++++++++++++ .../@stdlib/blas/base/dtrsm/test/test.js | 82 ++ .../blas/base/dtrsm/test/test.ndarray.js | 1076 +++++++++++++++++ 98 files changed, 6548 insertions(+) create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/README.md create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/benchmark/benchmark.ndarray.js create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/examples/index.js create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/lib/base.js create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/lib/dtrsm.js create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/lib/index.js create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/lib/main.js create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/lib/ndarray.js create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/package.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_l_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_l_nta_nu_complex_access_pattern.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_l_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_l_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_l_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_u_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_u_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_u_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_u_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_l_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_l_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_l_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_l_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_u_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_u_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_u_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_u_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_l_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_l_nta_nu_complex_access_pattern.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_l_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_l_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_l_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_u_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_u_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_u_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_u_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_l_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_l_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_l_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_l_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_u_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_u_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_u_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_u_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_l_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_l_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_l_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_l_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_u_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_u_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_u_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_u_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_u_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_u_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_u_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_u_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_l_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_l_nta_nu_complex_access_pattern.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_l_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_l_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_l_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_u_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_u_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_u_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_u_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_u_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_u_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_u_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_u_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_complex_access_pattern.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_oa.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_ob.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sa1_sa2.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sa1_sa2n.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2n.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sb1_sb2.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sb1_sb2n.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sb1n_sb2.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sb1n_sb2n.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/test.dtrsm.js create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/test.js create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/test.ndarray.js diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/README.md b/lib/node_modules/@stdlib/blas/base/dtrsm/README.md new file mode 100644 index 000000000000..04f9542723f5 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/README.md @@ -0,0 +1,260 @@ + + +# dtrsm + +> Solve matrix equation `op(A) * X = α * B` or `X * op(A) = α * B` where `α` is a scalar, `X` and `B` are `M` by `N` matrices, `A` is a unit, or non-unit, upper or lower triangular matrix and `op(A)` is one of `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B`. + +
+ +## Usage + +```javascript +var dtrsm = require( '@stdlib/blas/base/dtrsm' ); +``` + +#### dtrsm( order, side, uplo, transa, diag, M, N, α, A, LDA, B, LDB ) + +Solves matrix equation `op(A) * X = α * B` or `X * op(A) = α * B` where `α` is a scalar, `X` and `B` are `M` by `N` matrices, `A` is a unit, or non-unit, upper or lower triangular matrix and `op(A)` is one of `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B`. + +```javascript +var Float64Array = require( '@stdlib/array/float64' ); + +var A = new Float64Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); +var B = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); + +dtrsm( 'row-major', 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, B, 3 ); +// B => [ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ] +``` + +The function has the following parameters: + +- **order**: storage layout of `A` and `B`. +- **side**: specifies whether `op( A )` appears on the left or right side of `X`. +- **uplo**: specifies whether the upper or lower triangular part of the matrix `A` is supplied. +- **transa**: specifies the form of `op( A )` to be used in the matrix multiplication. +- **diag**: specifies whether or not `A` is unit triangular. +- **M**: number of rows in `B`. +- **N**: number of columns in `B`. +- **α**: scalar constant. +- **A**: input matrix `A`. +- **LDA**: stride of the first dimension of `A` (a.k.a., leading dimension of the matrix `A`). +- **B**: input matrix `B`. +- **LDB**: stride of the first dimension of `B` (a.k.a., leading dimension of the matrix `B`). + +Note that indexing is relative to the first index. To introduce an offset, use [`typed array`][mdn-typed-array] views. + + + +```javascript +var Float64Array = require( '@stdlib/array/float64' ); + +// Initial arrays... +var A0 = new Float64Array( [ 0.0, 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); +var B0 = new Float64Array( [ 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); + +// Create offset views... +var A1 = new Float64Array( A0.buffer, A0.BYTES_PER_ELEMENT*1 ); // start at 2nd element +var B1 = new Float64Array( B0.buffer, B0.BYTES_PER_ELEMENT*1 ); // start at 2nd element + +dtrsm( 'row-major', 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, B, 3 ); +// B0 => [ 0.0, 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ] +``` + +#### dtrsm.ndarray( s, ul, t, d, M, N, α, A, sa1, sa2, oa, B, sb1, sb2, ob ) + +Solves matrix equation `op(A) * X = α * B` or `X * op(A) = α * B` using alternative indexing semantics and where `α` is a scalar, `X` and `B` are `M` by `N` matrices, `A` is a unit, or non-unit, upper or lower triangular matrix and `op(A)` is one of `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B`. + +```javascript +var Float64Array = require( '@stdlib/array/float64' ); + +var A = new Float64Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); +var B = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); + +dtrsm( 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 ); +// B => [ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ] +``` + +The function has the following parameters: + +- **side**: specifies whether `op( A )` appears on the left or right side of `X`. +- **uplo**: specifies whether the upper or lower triangular part of the matrix `A` is supplied. +- **transa**: specifies the form of `op( A )` to be used in the matrix multiplication. +- **diag**: specifies whether or not `A` is unit triangular. +- **M**: number of rows in `B`. +- **N**: number of columns in `B`. +- **α**: scalar constant. +- **A**: input matrix `A`. +- **sa1**: stride of the first dimension of `A`. +- **sa2**: stride of the second dimension of `A`. +- **oa**: starting index for `A`. +- **B**: input matrix `B`. +- **sb1**: stride of the first dimension of `B`. +- **sb2**: stride of the second dimension of `B`. +- **ob**: starting index for `B`. + +While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying buffer, the offset parameters support indexing semantics based on starting indices. For example, + +```javascript +var Float64Array = require( '@stdlib/array/float64' ); + +var A = new Float64Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); +var B = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); + +dtrsm( 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 ); +// B => [ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ] +``` + +
+ + + +
+ +## Notes + +- `dtrsm()` corresponds to the [BLAS][blas] level 3 function [`dtrsm`][dtrsm]. + +
+ + + +
+ +## Examples + + + +```javascript +var discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); +var dtrsm = require( '@stdlib/blas/base/dtrsm' ); + +var opts = { + 'dtype': 'float64' +}; + +var M = 3; +var N = 3; + +var A = discreteUniform( M*N, -10.0, 10.0, opts ); +var B = discreteUniform( M*N, -10.0, 10.0, opts ); + +var out = dtrsm( 'column-major', 'left', 'upper', 'no-transpose', 'non-unit', M, N, 1.0, A, N, B, N ); +console.log( out ); + +out = dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', M, N, 1.0, A, N, 1, 0, B, N, 1, 0 ); +console.log( out ); +``` + +
+ + + + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +TODO +``` + +#### TODO + +TODO. + +```c +TODO +``` + +TODO + +```c +TODO +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +TODO +``` + +
+ + + +
+ + + + + + + + + + + + + + diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/dtrsm/benchmark/benchmark.js new file mode 100644 index 000000000000..374de83aab0a --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/benchmark/benchmark.js @@ -0,0 +1,105 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var bench = require( '@stdlib/bench' ); +var uniform = require( '@stdlib/random/array/uniform' ); +var zeros = require( '@stdlib/array/zeros' ); +var isnan = require( '@stdlib/math/base/assert/is-nan' ); +var pow = require( '@stdlib/math/base/special/pow' ); +var floor = require( '@stdlib/math/base/special/floor' ); +var pkg = require( './../package.json' ).name; +var dtrsm = require( './../lib/dtrsm.js' ); + + +// VARIABLES // + +var options = { + 'dtype': 'float64' +}; + + +// FUNCTIONS // + +/** +* Creates a benchmark function. +* +* @private +* @param {PositiveInteger} N - array dimension size +* @returns {Function} benchmark function +*/ +function createBenchmark( N ) { + var A = uniform( N*N, -10.0, 10.0, options ); + var B = zeros( N*N, options.dtype ); + return benchmark; + + /** + * Benchmark function. + * + * @private + * @param {Benchmark} b - benchmark instance + */ + function benchmark( b ) { + var z; + var i; + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + z = dtrsm( 'row-major', 'left', 'lower', 'no-transpose', 'non-unit', N, N, 1.0, A, N, B, N ); + if ( isnan( z[ i%z.length ] ) ) { + b.fail( 'should not return NaN' ); + } + } + b.toc(); + if ( isnan( z[ i%z.length ] ) ) { + b.fail( 'should not return NaN' ); + } + b.pass( 'benchmark finished' ); + b.end(); + } +} + + +// MAIN // + +/** +* Main execution sequence. +* +* @private +*/ +function main() { + var len; + var min; + var max; + var f; + var i; + + min = 1; // 10^min + max = 6; // 10^max + + for ( i = min; i <= max; i++ ) { + len = floor( pow( pow( 10, i ), 1.0/2.0 ) ); + f = createBenchmark( len ); + bench( pkg+':size='+(len*len), f ); + } +} + +main(); diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/dtrsm/benchmark/benchmark.ndarray.js new file mode 100644 index 000000000000..4bfe62327862 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/benchmark/benchmark.ndarray.js @@ -0,0 +1,105 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var bench = require( '@stdlib/bench' ); +var uniform = require( '@stdlib/random/array/uniform' ); +var zeros = require( '@stdlib/array/zeros' ); +var isnan = require( '@stdlib/math/base/assert/is-nan' ); +var pow = require( '@stdlib/math/base/special/pow' ); +var floor = require( '@stdlib/math/base/special/floor' ); +var pkg = require( './../package.json' ).name; +var dtrsm = require( './../lib/ndarray.js' ); + + +// VARIABLES // + +var options = { + 'dtype': 'float64' +}; + + +// FUNCTIONS // + +/** +* Creates a benchmark function. +* +* @private +* @param {PositiveInteger} N - array dimension size +* @returns {Function} benchmark function +*/ +function createBenchmark( N ) { + var A = uniform( N*N, -10.0, 10.0, options ); + var B = zeros( N*N, options.dtype ); + return benchmark; + + /** + * Benchmark function. + * + * @private + * @param {Benchmark} b - benchmark instance + */ + function benchmark( b ) { + var z; + var i; + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + z = dtrsm( 'left', 'lower', 'no-transpose', 'non-unit', N, N, 1.0, A, 1, N, 0, B, 1, N, 0 ); + if ( isnan( z[ i%z.length ] ) ) { + b.fail( 'should not return NaN' ); + } + } + b.toc(); + if ( isnan( z[ i%z.length ] ) ) { + b.fail( 'should not return NaN' ); + } + b.pass( 'benchmark finished' ); + b.end(); + } +} + + +// MAIN // + +/** +* Main execution sequence. +* +* @private +*/ +function main() { + var len; + var min; + var max; + var f; + var i; + + min = 1; // 10^min + max = 6; // 10^max + + for ( i = min; i <= max; i++ ) { + len = floor( pow( pow( 10, i ), 1.0/2.0 ) ); + f = createBenchmark( len ); + bench( pkg+':ndarray:size='+(len*len), f ); + } +} + +main(); diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/docs/repl.txt b/lib/node_modules/@stdlib/blas/base/dtrsm/docs/repl.txt new file mode 100644 index 000000000000..70df8dfd5a93 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/docs/repl.txt @@ -0,0 +1,151 @@ + +{{alias}}( ord, side, uplo, transa, diag, M, N, α, A, lda, B, ldb ) + Solves matrix equation `op(A) * X = α * B` or `X * op(A) = α * B` where `α` + is a scalar, `X` and `B` are `M` by `N` matrices, `A` is a unit, or + non-unit, upper or lower triangular matrix and `op(A)` is one of + `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B`. + + Indexing is relative to the first index. To introduce an offset, use typed + array views. + + If `M` or `N` is equal to `0`, the function returns `B` unchanged. + + If `α` equals `0`, returns `B` filled with zeros. + + Parameters + ---------- + ord: string + Row-major (C-style) or column-major (Fortran-style) order. Must be + either 'row-major' or 'column-major'. + + side: string + Specifies whether `op( A )` 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, 3.0, 1.0 ] + + +{{alias}}.ndarray(side,uplo,transa,diag,M,N,α,A,sa1,sa2,oa,B,sb1,sb2,ob) + Solves matrix equation `op(A) * X = α * B` or `X * op(A) = α * B` where `α` + is a scalar, `X` and `B` are `M` by `N` matrices, `A` is a unit, or + non-unit, upper or lower triangular matrix and `op(A)` is one of + `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B` using + alternative indexing semantics. + + While typed array views mandate a view offset based on the underlying + buffer, the offset parameters support indexing semantics based on starting + indices. + + Parameters + ---------- + side: string + Specifies whether `op( A )` 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, 3.0, 1.0 ] + + See Also + -------- diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/base/dtrsm/docs/types/index.d.ts new file mode 100644 index 000000000000..a31935324f40 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/docs/types/index.d.ts @@ -0,0 +1,129 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +// TypeScript Version: 4.1 + +/// + +import { Layout, MatrixTriangle, DiagonalType, OperationSide, TransposeOperation } from '@stdlib/types/blas'; + +/** +* Interface describing `dtrsm`. +*/ +interface Routine { + /** + * Solves matrix equation `op(A) * X = α * B` or `X * op(A) = α * B` where `α` is a scalar, `X` and `B` are `M` by `N` matrices, `A` is a unit, or non-unit, upper or lower triangular matrix and `op(A)` is one of `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B`. + * + * @param order - storage layout of `A` and `B` + * @param side - specifies whether `op( A )` appears on the left or right of `X` + * @param uplo - specifies whether the upper or lower triangular part of the matrix `A` is supplied + * @param transa - specifies 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 ] ); + * + * dtrsm( 'row-major', 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, B, 3 ); + * // B => [ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ] + */ + ( order: Layout, side: OperationSide, uplo: MatrixTriangle, transa: TransposeOperation, diag: DiagonalType, M: number, N: number, alpha: number, A: Float64Array, LDA: number, B: Float64Array, LDB: number ): Float64Array; + + /** + * Solves matrix equation `op(A) * X = α * B` or `X * op(A) = α * B` using alternative indexing semantics and where `α` is a scalar, `X` and `B` are `M` by `N` matrices, `A` is a unit, or non-unit, upper or lower triangular matrix and `op(A)` is one of `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B`. + * + * @param side - specifies whether `op( A )` appears on the left or right of `X` + * @param uplo - specifies whether the upper or lower triangular part of the matrix `A` is supplied + * @param transa - specifies 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 ] ); + * + * dtrsm.ndarray( left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 ); + * // B => [ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ]` + */ + ndarray( side: OperationSide, uplo: MatrixTriangle, transa: TransposeOperation, diag: DiagonalType, M: number, N: number, alpha: number, A: Float64Array, strideA1: number, strideA2: number, offsetA: number, B: Float64Array, strideB1: number, strideB2: number, offsetB: number ): Float64Array; +} + +/** +* Solves matrix equation `op(A) * X = α * B` or `X * op(A) = α * B` where `α` is a scalar, `X` and `B` are `M` by `N` matrices, `A` is a unit, or non-unit, upper or lower triangular matrix and `op(A)` is one of `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B`. +* +* @param order - storage layout of `A` and `B` +* @param side - specifies whether `op( A )` appears on the left or right of `X` +* @param uplo - specifies whether the upper or lower triangular part of the matrix `A` is supplied +* @param transa - specifies 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 ] ); +* +* dtrsm( 'row-major', 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, B, 3 ); +* // B => [ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ] +* +* @example +* var Float64Array = require( '@stdlib/array/float64' ); +* +* var A = new Float64Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); +* var B = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); +* +* dtrsm.ndarray( left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 ); +* // B => [ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ] +*/ +declare var dtrsm: Routine; + + +// EXPORTS // + +export = dtrsm; diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/docs/types/test.ts b/lib/node_modules/@stdlib/blas/base/dtrsm/docs/types/test.ts new file mode 100644 index 000000000000..a9c159b46c81 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/docs/types/test.ts @@ -0,0 +1,486 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +import dtrsm = require( './index' ); + + +// TESTS // + +// The function returns a Float64Array... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectType Float64Array +} + +// The compiler throws an error if the function is provided a first argument which is not a string... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm( 5, 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( true, 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( false, 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( null, 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( void 0, 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( [], 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( {}, 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( ( x: number ): number => x, 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a second argument which is not a string... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm( 'row-major', 5, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', true, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', false, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', null, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', void 0, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', [], 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', {}, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', ( x: number ): number => x, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a third argument which is not a string... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm( 'row-major', 'left', 5, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', true, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', false, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', null, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', void 0, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', [], 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', {}, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', ( x: number ): number => x, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a fourth argument which is not a string... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm( 'row-major', 'left', 'upper', 5, 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', true, 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', false, 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', null, 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', void 0, 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', [], 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', {}, 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', ( x: number ): number => x, 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a fifth argument which is not a string... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 5, 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', true, 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', false, 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', null, 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', void 0, 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', [], 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', {}, 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', ( x: number ): number => x, 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a sixth argument which is not a number... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', '5', 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', true, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', false, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', null, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', void 0, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', [], 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', {}, 2, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', ( x: number ): number => x, 2, 6.0, A, 2, B, 2 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a seventh argument which is not a number... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, '5', 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, true, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, false, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, null, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, void 0, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, [], 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, {}, 6.0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, ( x: number ): number => x, 6.0, A, 2, B, 2 ); // $ExpectError +} + +// The compiler throws an error if the function is provided an eighth argument which is not a number... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, '5', A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, true, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, false, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, null, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, void 0, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, [], A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, {}, A, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, ( x: number ): number => x, A, 2, B, 2 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a ninth argument which is not a Float64Array... +{ + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, '5', 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, 5, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, true, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, false, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, null, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, void 0, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, [], 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, {}, 2, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, ( x: number ): number => x, 2, B, 2 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a tenth argument which is not a number... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, '5', B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, true, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, false, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, null, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, void 0, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, [], B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, {}, B, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, ( x: number ): number => x, B, 2 ); // $ExpectError +} + +// The compiler throws an error if the function is provided an eleventh argument which is not a Float64Array... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, '5', 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 5, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, true, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, false, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, null, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, void 0, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, [], 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, {}, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, ( x: number ): number => x, 2 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a twelfth argument which is not a number... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, '5' ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, true ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, false ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, null ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, void 0 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, [] ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, {} ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, ( x: number ): number => x ); // $ExpectError +} + +// The compiler throws an error if the function is provided an unsupported number of arguments... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm(); // $ExpectError + dtrsm( 'row-major' ); // $ExpectError + dtrsm( 'row-major', 'left' ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper' ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose' ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit' ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2 ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B ); // $ExpectError + dtrsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2, 10 ); // $ExpectError +} + +// Attached to main export is an `ndarray` method which returns a Float64Array... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectType Float64Array +} + +// The compiler throws an error if the function is provided a first argument which is not a string... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm.ndarray( 5, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( true, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( false, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( null, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( void 0, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( [], 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( {}, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( ( x: number ): number => x, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a second argument which is not a string... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm.ndarray( 'left', 5, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', true, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', false, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', null, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', void 0, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', [], 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', {}, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', ( x: number ): number => x, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a third argument which is not a string... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm.ndarray( 'left', 'upper', 5, 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', true, 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', false, 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', null, 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', void 0, 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', [], 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', {}, 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', ( x: number ): number => x, 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a fourth argument which is not a string... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 5, 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', true, 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', false, 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', null, 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', void 0, 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', [], 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', {}, 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', ( x: number ): number => x, 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a fifth argument which is not a number... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', '5', 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', true, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', false, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', null, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', void 0, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', [], 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', {}, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', ( x: number ): number => x, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a sixth argument which is not a number... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, '5', 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, true, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, false, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, null, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, void 0, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, [], 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, {}, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, ( x: number ): number => x, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a seventh argument which is not a number... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, '5', A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, true, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, false, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, null, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, void 0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, [], A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, {}, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, ( x: number ): number => x, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided an eighth argument which is not a Float64Array... +{ + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, '5', 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, 5, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, true, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, false, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, null, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, void 0, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, [], 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, {}, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, ( x: number ): number => x, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a ninth argument which is not a number... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, '5', 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, true, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, false, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, null, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, void 0, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, [], 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, {}, 1, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, ( x: number ): number => x, 1, 0, B, 2, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a tenth argument which is not a number... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, '5', 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, true, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, false, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, null, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, void 0, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, [], 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, {}, 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, ( x: number ): number => x, 0, B, 2, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided an eleventh argument which is not a number... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, '5', B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, true, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, false, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, null, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, void 0, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, [], B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, {}, B, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, ( x: number ): number => x, B, 2, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a twelfth argument which is not a Float64Array... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, '5', 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, 5, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, true, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, false, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, null, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, void 0, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, [], 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, {}, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, ( x: number ): number => x, 2, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a thirteenth argument which is not a number... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, '5', 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, true, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, false, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, null, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, void 0, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, [], 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, {}, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, ( x: number ): number => x, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a fourteenth argument which is not a number... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, '5', 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, true, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, false, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, null, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, void 0, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, [], 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, {}, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, ( x: number ): number => x, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a fifteenth argument which is not a number... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, '5' ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, true ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, false ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, null ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, void 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, [] ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, {} ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, ( x: number ): number => x ); // $ExpectError +} + +// The compiler throws an error if the `ndarray` method is provided an unsupported number of arguments... +{ + const A = new Float64Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float64Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + dtrsm.ndarray(); // $ExpectError + dtrsm.ndarray( 'left' ); // $ExpectError + dtrsm.ndarray( 'left', 'upper' ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose' ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit' ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1 ); // $ExpectError + dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0, 10 ); // $ExpectError +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/examples/index.js b/lib/node_modules/@stdlib/blas/base/dtrsm/examples/index.js new file mode 100644 index 000000000000..8b5f1f5fbf5e --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/examples/index.js @@ -0,0 +1,38 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +var discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); +var dtrsm = require( './../lib' ); + +var opts = { + 'dtype': 'float64' +}; + +var M = 3; +var N = 3; + +var A = discreteUniform( M*N, -10.0, 10.0, opts ); +var B = discreteUniform( M*N, -10.0, 10.0, opts ); + +var out = dtrsm( 'column-major', 'left', 'upper', 'no-transpose', 'non-unit', M, N, 1.0, A, N, B, N ); +console.log( out ); + +out = dtrsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', M, N, 1.0, A, N, 1, 0, B, N, 1, 0 ); +console.log( out ); diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/lib/base.js b/lib/node_modules/@stdlib/blas/base/dtrsm/lib/base.js new file mode 100644 index 000000000000..2ea4c694b771 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/lib/base.js @@ -0,0 +1,391 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +/* eslint-disable max-len, max-statements, max-lines-per-function */ + +'use strict'; + +// MODULES // + +var isRowMajor = require( '@stdlib/ndarray/base/assert/is-row-major' ); + + +// FUNCTIONS // + +/** +* Fills a matrix with zeros. +* +* @private +* @param {NonNegativeInteger} M - number of rows +* @param {NonNegativeInteger} N - number of columns +* @param {Float64Array} X - matrix to fill +* @param {integer} strideX1 - stride of the first dimension of `X` +* @param {integer} strideX2 - stride of the second dimension of `X` +* @param {NonNegativeInteger} offsetX - starting index for `X` +* @returns {Float64Array} input matrix +* +* @example +* var Float64Array = require( '@stdlib/array/float64' ); +* +* var X = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); +* +* zeros( 2, 3, X, 3, 1, 0 ); +* // X => [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] +* +* @example +* var Float64Array = require( '@stdlib/array/float64' ); +* +* var X = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); +* +* zeros( 2, 3, X, 1, 2, 0 ); +* // X => [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] +*/ +function zeros( M, N, X, strideX1, strideX2, offsetX ) { // TODO: consider moving to a separate package + var dx0; + var dx1; + var S0; + var S1; + var i0; + var i1; + var ix; + + if ( isRowMajor( [ strideX1, strideX2 ] ) ) { + // For row-major matrices, the last dimension has the fastest changing index... + S0 = N; + S1 = M; + dx0 = strideX2; // offset increment for innermost loop + dx1 = strideX1 - ( S0*strideX2 ); // offset increment for outermost loop + } else { // column-major + // For column-major matrices, the first dimension has the fastest changing index... + S0 = M; + S1 = N; + dx0 = strideX1; // offset increment for innermost loop + dx1 = strideX2 - ( S0*strideX1 ); // offset increment for outermost loop + } + ix = offsetX; + for ( i1 = 0; i1 < S1; i1++ ) { + for ( i0 = 0; i0 < S0; i0++ ) { + X[ ix ] = 0.0; + ix += dx0; + } + ix += dx1; + } + return X; +} + + +// MAIN // + +/** +* Solves matrix equation `op(A) * X = α * B` or `X * op(A) = α * B` where `α` is a scalar, `X` and `B` are `M` by `N` matrices, `A` is a unit, or non-unit, upper or lower triangular matrix and `op(A)` is one of `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B`. +* +* @private +* @param {string} side - specifies whether `op( A )` appears on the left or right of `X` +* @param {string} uplo - specifies whether the upper or lower triangular part of the matrix `A` is supplied +* @param {string} transa - specifies 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 ] ); +* +* dtrsm( left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 ); +* // B => [ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ] +*/ +function dtrsm( side, uplo, transa, diag, M, N, alpha, A, strideA1, strideA2, offsetA, B, strideB1, strideB2, offsetB ) { // eslint-disable-line max-params + var nonunit; + var isrma; + var tmp; + var oa2; + var ob2; + var sa0; + var sa1; + var sb0; + var sb1; + var oa; + var ob; + var i; + var j; + var k; + + // Note on variable naming convention: sa#, ix#, i# where # corresponds to the loop number, with `0` being the innermost loop... + + isrma = isRowMajor( [ strideA1, strideA2 ] ); + nonunit = ( diag === 'non-unit' ); + + if ( M === 0 || N === 0 ) { + return B; + } + if ( isrma ) { + // For row-major matrices, the last dimension has the fastest changing index... + sa0 = strideA2; // stride for innermost loop + sa1 = strideA1; // stride for outermost loop + sb0 = strideB2; + sb1 = strideB1; + } else { // isColMajor + // For column-major matrices, the first dimension has the fastest changing index... + sa0 = strideA1; // stride for innermost loop + sa1 = strideA2; // stride for outermost loop + sb0 = strideB1; + sb1 = strideB2; + } + if ( alpha === 0.0 ) { + zeros( M, N, B, sb0, sb1, offsetB ); + return B; + } + if ( + ( isrma && side === 'left' && uplo === 'upper' && transa === 'no-transpose' ) || + ( !isrma && side === 'right' && uplo === 'lower' && transa === 'no-transpose' ) + ) { + for ( k = N - 1; k >= 0; k-- ) { + if ( nonunit ) { + oa2 = offsetA + ( k * sa1 ) + ( k * sa0 ); + tmp = 1.0 / A[ oa2 ]; + for ( i = 0; i < M; i++ ) { + ob2 = offsetB + ( i * sb0 ) + ( k * sb1 ); + B[ ob2 ] = B[ ob2 ] * tmp; + } + } + for ( j = 0; j < k; j++ ) { + oa2 = offsetA + ( j * sa1 ) + ( k * sa0 ); + if ( A[ oa2 ] !== 0.0 ) { + for ( i = 0; i < M; i++ ) { + ob = offsetB + ( i * sb0 ); + B[ ob + ( j * sb1 ) ] -= A[ oa2 ] * B[ ob + ( k * sb1 ) ]; + } + } + } + if ( alpha !== 1.0 ) { + for ( i = 0; i < M; i++ ) { + ob2 = offsetB + ( i * sb0 ) + ( k * sb1 ); + B[ ob2 ] = B[ ob2 ] * alpha; + } + } + } + return B; + } + if ( + ( isrma && side === 'left' && uplo === 'lower' && transa === 'no-transpose' ) || + ( !isrma && side === 'right' && uplo === 'upper' && transa === 'no-transpose' ) + ) { + for ( j = 0; j < N; j++ ) { + ob = offsetB + ( j * sb0 ); + if ( alpha !== 1.0 ) { + for ( i = 0; i < M; i++ ) { + B[ ob + ( i * sb1 ) ] = B[ ob + ( i * sb1 ) ] * alpha; + } + } + for ( k = 0; k < M; k++ ) { + oa2 = offsetA + ( k * sa1 ) + ( k * sa0 ); + ob2 = ob + ( k * sb1 ); + if ( B[ ob2 ] !== 0.0 ) { + if ( nonunit ) { + B[ ob2 ] = B[ ob2 ] / A[ oa2 ]; + } + for ( i = k + 1; i < M; i++ ) { + oa2 = offsetA + ( i * sa1 ) + ( k * sa0 ); + B[ ob + ( i * sb1 ) ] -= B[ ob2 ] * A[ oa2 ]; + } + } + } + } + return B; + } + if ( + ( isrma && side === 'left' && uplo === 'upper' && transa !== 'no-transpose' ) || + ( !isrma && side === 'right' && uplo === 'lower' && transa !== 'no-transpose' ) + ) { + for ( j = 0; j < N; j++ ) { + for ( i = 0; i < M; i++ ) { + ob2 = offsetB + ( i * sb0 ) + ( j * sb1 ); + if ( alpha !== 1.0 ) { + B[ ob2 ] = B[ ob2 ] * alpha; + } + } + for ( k = 0; k < j; k++ ) { + for ( i = 0; i < M; i++ ) { + ob = offsetB + ( i * sb0 ); + oa2 = offsetA + ( k * sa1 ) + ( j * sa0 ); + if ( A[ oa2 ] !== 0.0 ) { + B[ ob + ( j * sb1 ) ] -= A[ oa2 ] * B[ ob + ( k * sb1 ) ]; + } + } + } + if ( nonunit ) { + oa2 = offsetA + ( j * sa1 ) + (j * sa0 ); + tmp = 1.0 / A[ oa2 ]; + for ( i = 0; i < M; i++ ) { + ob2 = offsetB + ( i * sb0 ) + ( j * sb1 ); + B[ ob2 ] = B[ ob2 ] * tmp; + } + } + } + return B; + } + if ( + ( isrma && side === 'left' && uplo === 'lower' && transa !== 'no-transpose' ) || + ( !isrma && side === 'right' && uplo === 'upper' && transa === 'transpose' ) + ) { + for ( j = 0; j < N; j++ ) { + ob = offsetB + ( j * sb0 ); + if ( alpha !== 1.0 ) { + for ( i = 0; i < M; i++ ) { + B[ ob + ( i * sb1 ) ] = B[ ob + ( i * sb1 ) ] * alpha; + } + } + for ( i = M - 1; i >= 0; i-- ) { + ob2 = ob + ( i * sb1 ); + for ( k = i + 1; k < M; k++ ) { + oa2 = offsetA + ( i * sa0 ) + ( k * sa1 ); + B[ ob2 ] -= A[ oa2 ] * B[ ob + ( k * sb1 ) ]; + } + if ( nonunit ) { + oa2 = offsetA + ( i * sa0 ) + ( i * sa1 ); + B[ ob2 ] = B[ ob2 ] / A[ oa2 ]; + } + B[ ob + ( i * sb1 ) ] = B[ ob2 ]; + } + } + return B; + } + if ( + ( isrma && side === 'right' && uplo === 'upper' && transa === 'no-transpose' ) || + ( !isrma && side === 'left' && uplo === 'lower' && transa === 'no-transpose' ) + ) { + for ( j = 0; j < N; j++ ) { + ob = offsetB + ( j * sb1 ); + for ( i = 0; i < M; i++ ) { + oa2 = offsetA + ( i * sa1 ) + ( i * sa0 ); + tmp = B[ ob + ( i * sb0 ) ] * alpha; + for ( k = 0; k < i; k++ ) { + oa = offsetA + ( k * sa1 ); + tmp -= A[ oa + ( i * sa0 ) ] * B[ ob + ( k * sb0 ) ]; + } + if ( nonunit ) { + tmp = tmp / A[ oa2 ]; + } + B[ ob + ( i * sb0 ) ] = tmp; + } + } + return B; + } + if ( + ( isrma && side === 'right' && uplo === 'lower' && transa === 'no-transpose' ) || + ( !isrma && side === 'left' && uplo === 'upper' && transa === 'no-transpose' ) + ) { + for ( j = N - 1; j >= 0; j-- ) { + for ( i = 0; i < M; i++ ) { + ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); + if ( alpha !== 1.0 ) { + B[ ob2 ] = B[ ob2 ] * alpha; + } + } + for ( k = j + 1; k < N; k++ ) { + for ( i = 0; i < M; i++ ) { + ob2 = offsetB + ( i * sb1 ); + oa2 = offsetA + ( k * sa1 ); + if ( A[ oa2 + ( j * sa0 ) ] !== 0.0 ) { + B[ ob2 + ( j * sb0 ) ] -= A[ oa2 + ( j * sa0 ) ] * B[ ob2 + ( k * sb0 ) ]; + } + } + } + if ( nonunit ) { + oa2 = offsetA + ( j * sa1 ) + ( j * sa0 ); + tmp = 1.0 / A[ oa2 ]; + for ( i = 0; i < M; i++ ) { + ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); + B[ ob2 ] = B[ ob2 ] * tmp; + } + } + } + return B; + } + if ( + ( isrma && side === 'right' && uplo === 'upper' && transa !== 'no-transpose' ) || + ( !isrma && side === 'left' && uplo === 'lower' && transa !== 'no-transpose' ) + ) { + for ( j = 0; j < N; j++ ) { + ob = offsetB + ( j * sb1 ); + if ( alpha !== 1.0 ) { + for ( i = 0; i < M; i++ ) { + B[ ob + ( i * sb0 ) ] = B[ ob + ( i * sb0 ) ] * alpha; + } + } + for ( k = M - 1; k >= 0; k-- ) { + oa2 = offsetA + ( k * sa1 ) + ( k * sa0 ); + ob2 = ob + ( k * sb0 ); + if ( B[ ob2 ] !== 0.0 ) { + if ( nonunit ) { + B[ ob2 ] = B[ ob2 ] / A[ oa2 ]; + } + for ( i= 0; i < k; i++ ) { + oa = offsetA + ( i * sa1 ) + ( k * sa0 ); + B[ ob + ( i * sb0 ) ] -= B[ ob2 ] * A[ oa ]; + } + } + } + } + return B; + } + // ( isrma && side === 'right' && uplo === 'lower' && transa !== 'no-transpose' ) || ( !isrma && side === 'left' && uplo === 'upper' && transa !== 'no-transpose' ) + for ( k = 0; k < N; k++ ) { + ob = offsetB + ( k * sb0 ); + oa = offsetA + ( k * sa1 ); + oa2 = oa + ( k * sa0 ); + if ( nonunit ) { + tmp = 1.0 / A[ oa2 ]; + for ( i = 0; i < M; i++ ) { + B[ ob + ( i * sb1 ) ] = B[ ob + ( i * sb1 ) ] * tmp; + } + } + for ( j = k + 1; j < N; j++ ) { + ob2 = offsetB + ( j * sb0 ); + oa2 = offsetA + ( j * sa1 ) + ( k * sa0 ); + if ( A[ oa2 ] !== 0.0 ) { + for ( i = 0; i < M; i++ ) { + B[ ob2 + ( i * sb1 ) ] -= A[ oa2 ] * B[ ob + ( i * sb1 ) ]; + } + } + } + if ( alpha !== 1.0 ) { + for ( i = 0; i < M; i++ ) { + B[ ob + ( i * sb1 ) ] = B[ ob + ( i * sb1 ) ] * alpha; + } + } + } + return B; +} + + +// EXPORTS // + +module.exports = dtrsm; diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/lib/dtrsm.js b/lib/node_modules/@stdlib/blas/base/dtrsm/lib/dtrsm.js new file mode 100644 index 000000000000..c9c6dc1a7f27 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/lib/dtrsm.js @@ -0,0 +1,129 @@ + +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var max = require( '@stdlib/math/base/special/fast/max' ); +var isLayout = require( '@stdlib/blas/base/assert/is-layout' ); +var isMatrixTriangle = require( '@stdlib/blas/base/assert/is-matrix-triangle' ); +var isOperationSide = require( '@stdlib/blas/base/assert/is-operation-side' ); +var isTransposeOperation = require( '@stdlib/blas/base/assert/is-transpose-operation' ); +var isDiagonalType = require( '@stdlib/blas/base/assert/is-diagonal-type' ); +var isColumnMajor = require( '@stdlib/ndarray/base/assert/is-column-major-string' ); +var format = require( '@stdlib/string/format' ); +var base = require( './base.js' ); + + +// MAIN // + +/** +* Solves matrix equation `op(A) * X = α * B` or `X * op(A) = α * B` where `α` is a scalar, `X` and `B` are `M` by `N` matrices, `A` is a unit, or non-unit, upper or lower triangular matrix and `op(A)` is one of `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B`. +* +* @param {string} order - storage layout of `A` and `B` +* @param {string} side - specifies whether `op( A )` appears on the left or right of `X` +* @param {string} uplo - specifies whether the upper or lower triangular part of the matrix `A` is supplied +* @param {string} transa - specifies 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 ] ); +* +* dtrsm( 'row-major', 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, B, 3 ); +* // B => [ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ] +*/ +function dtrsm( order, side, uplo, transa, diag, M, N, alpha, A, LDA, B, LDB ) { // eslint-disable-line max-params + var nrowsa; + var iscm; + var sa1; + var sa2; + var sb1; + var sb2; + if ( !isLayout( order ) ) { + throw new TypeError( format( 'invalid argument. First argument must be a valid order. Value: `%s`.', order ) ); + } + if ( !isOperationSide( side ) ) { + throw new TypeError( format( 'invalid argument. Second argument must be a valid side. Value: `%s`.', side ) ); + } + if ( !isMatrixTriangle( uplo ) ) { + throw new TypeError( format( 'invalid argument. Thirds argument must specify whether the lower or upper triangular matrix is supplied. Value: `%s`.', uplo ) ); + } + if ( !isTransposeOperation( transa ) ) { + throw new TypeError( format( 'invalid argument. Fourth argument must specify correct transpose operation. Value: `%s`.', transa ) ); + } + if ( !isDiagonalType( diag ) ) { + throw new TypeError( format( 'invalid argument. Fifth argument must specify whether the matrix is unit triangular or not. Value: `%s`.', diag ) ); + } + if ( M < 0 ) { + throw new RangeError( format( 'invalid argument. Sixth argument must be a nonnegative integer. Value: `%d`.', M ) ); + } + if ( N < 0 ) { + throw new RangeError( format( 'invalid argument. Seventh argument must be a nonnegative integer. Value: `%d`.', N ) ); + } + if ( side === 'left' ) { + nrowsa = M; + } else { + nrowsa = N; + } + if ( LDA < max( 1, nrowsa ) ) { + throw new RangeError( format( 'invalid argument. Tenth argument must be greater than or equal to max(1,%d). Value: `%d`.', nrowsa, LDA ) ); + } + if ( LDB < max( 1, M ) ) { + throw new RangeError( format( 'invalid argument. Twelfth argument must be greater than or equal to max(1,%d). Value: `%d`.', M, LDB ) ); + } + iscm = isColumnMajor( order ); + if ( iscm ) { + sa1 = 1; + sa2 = LDA; + sb1 = 1; + sb2 = LDB; + } else { // order === 'row-major' + sa1 = LDA; + sa2 = 1; + sb1 = LDB; + sb2 = 1; + } + return base( side, uplo, transa, diag, M, N, alpha, A, sa1, sa2, 0, B, sb1, sb2, 0 ); // eslint-disable-line max-len +} + + +// EXPORTS // + +module.exports = dtrsm; diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/lib/index.js b/lib/node_modules/@stdlib/blas/base/dtrsm/lib/index.js new file mode 100644 index 000000000000..c7e7a061c114 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/lib/index.js @@ -0,0 +1,68 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +/** +* BLAS routine to solve matrix equation `op(A) * X = α * B` or `X * op(A) = α * B` where `α` is a scalar, `X` and `B` are `M` by `N` matrices, `A` is a unit, or non-unit, upper or lower triangular matrix and `op(A)` is one of `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B`. +* +* @module @stdlib/blas/base/dtrsm +* +* @example +* var Float64Array = require( '@stdlib/array/float64' ); +* var dtrsm = require( '@stdlib/blas/base/dtrsm' ); +* +* var A = new Float64Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); +* var B = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); +* +* dtrsm( 'row-major', 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, B, 3 ); +* // B => [ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ] +* +* @example +* var Float64Array = require( '@stdlib/array/float64' ); +* var dtrsm = require( '@stdlib/blas/base/dtrsm' ); +* +* var A = new Float64Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); +* var B = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); +* +* dtrsm.ndarray( left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 ); +* // B => [ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ] +*/ + +// MODULES // + +var join = require( 'path' ).join; +var tryRequire = require( '@stdlib/utils/try-require' ); +var isError = require( '@stdlib/assert/is-error' ); +var main = require( './main.js' ); + + +// MAIN // + +var dtrsm; +var tmp = tryRequire( join( __dirname, './native.js' ) ); +if ( isError( tmp ) ) { + dtrsm = main; +} else { + dtrsm = tmp; +} + + +// EXPORTS // + +module.exports = dtrsm; diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/lib/main.js b/lib/node_modules/@stdlib/blas/base/dtrsm/lib/main.js new file mode 100644 index 000000000000..03f6a5f997a2 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/lib/main.js @@ -0,0 +1,35 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var setReadOnly = require( '@stdlib/utils/define-nonenumerable-read-only-property' ); +var dtrsm = require( './dtrsm.js' ); +var ndarray = require( './ndarray.js' ); + + +// MAIN // + +setReadOnly( dtrsm, 'ndarray', ndarray ); + + +// EXPORTS // + +module.exports = dtrsm; diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/lib/ndarray.js b/lib/node_modules/@stdlib/blas/base/dtrsm/lib/ndarray.js new file mode 100644 index 000000000000..ca56a4b33b82 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/lib/ndarray.js @@ -0,0 +1,101 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var isMatrixTriangle = require( '@stdlib/blas/base/assert/is-matrix-triangle' ); +var isOperationSide = require( '@stdlib/blas/base/assert/is-operation-side' ); +var isTransposeOperation = require( '@stdlib/blas/base/assert/is-transpose-operation' ); +var isDiagonalType = require( '@stdlib/blas/base/assert/is-diagonal-type' ); +var format = require( '@stdlib/string/format' ); +var base = require( './base.js' ); + + +// MAIN // + +/** +* Solve matrix equation `op(A) * X = α * B` or `X * op(A) = α * B` where `α` is a scalar, `X` and `B` are `M` by `N` matrices, `A` is a unit, or non-unit, upper or lower triangular matrix and `op(A)` is one of `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B`. +* +* @param {string} side - specifies whether `op( A )` appears on the left or right of `X` +* @param {string} uplo - specifies whether the upper or lower triangular part of the matrix `A` is supplied +* @param {string} transa - specifies 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 ] ); +* +* dtrsm( left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 ); +* // B => [ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ] +*/ +function dtrsm( side, uplo, transa, diag, M, N, alpha, A, strideA1, strideA2, offsetA, B, strideB1, strideB2, offsetB ) { // eslint-disable-line max-len, max-params + if ( !isOperationSide( side ) ) { + throw new TypeError( format( 'invalid argument. First argument must be a valid side. Value: `%s`.', side ) ); + } + if ( !isMatrixTriangle( uplo ) ) { + throw new TypeError( format( 'invalid argument. Second argument must specify whether the lower or upper triangular matrix is supplied. Value: `%s`.', uplo ) ); + } + if ( !isTransposeOperation( transa ) ) { + throw new TypeError( format( 'invalid argument. Third argument must specify correct transpose operation. Value: `%s`.', transa ) ); + } + if ( !isDiagonalType( diag ) ) { + throw new TypeError( format( 'invalid argument. Fourth argument must specify whether the matrix is unit triangular or not. Value: `%s`.', diag ) ); + } + if ( M < 0 ) { + throw new RangeError( format( 'invalid argument. Fifth argument must be a nonnegative integer. Value: `%d`.', M ) ); + } + if ( N < 0 ) { + throw new RangeError( format( 'invalid argument. Sixth argument must be a nonnegative integer. Value: `%d`.', N ) ); + } + if ( strideB1 === 0 ) { + throw new RangeError( format( 'invalid argument. Thirteenth argument must be non-zero. Value: `%d`.', strideB1 ) ); + } + if ( strideB2 === 0 ) { + throw new RangeError( format( 'invalid argument. Fourteenth argument must be non-zero. Value: `%d`.', strideB2 ) ); + } + return base( side, uplo, transa, diag, M, N, alpha, A, strideA1, strideA2, offsetA, B, strideB1, strideB2, offsetB ); // eslint-disable-line max-len +} + + +// EXPORTS // + +module.exports = dtrsm; diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/package.json b/lib/node_modules/@stdlib/blas/base/dtrsm/package.json new file mode 100644 index 000000000000..2215ac534d94 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/package.json @@ -0,0 +1,68 @@ +{ + "name": "@stdlib/blas/base/dtrsm", + "version": "0.0.0", + "description": "Solve matrix equation `op(A) * X = alpha * B` or `X * op(A) = alpha * B` where `alpha` is a scalar, `X` and `B` are `M` by `N` matrices, `A` is a unit, or non-unit, upper or lower triangular matrix and `op(A)` is one of `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B`.", + "license": "Apache-2.0", + "author": { + "name": "The Stdlib Authors", + "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" + }, + "contributors": [ + { + "name": "The Stdlib Authors", + "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" + } + ], + "main": "./lib", + "directories": { + "benchmark": "./benchmark", + "doc": "./docs", + "example": "./examples", + "lib": "./lib", + "test": "./test" + }, + "types": "./docs/types", + "scripts": {}, + "homepage": "https://github.com/stdlib-js/stdlib", + "repository": { + "type": "git", + "url": "git://github.com/stdlib-js/stdlib.git" + }, + "bugs": { + "url": "https://github.com/stdlib-js/stdlib/issues" + }, + "dependencies": {}, + "devDependencies": {}, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "keywords": [ + "stdlib", + "stdmath", + "mathematics", + "math", + "blas", + "level 3", + "dtrsm", + "linear", + "algebra", + "subroutines", + "array", + "ndarray", + "float64", + "double", + "float64array" + ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_l_nta_nu.json new file mode 100644 index 000000000000..fde0a02b26b1 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_l_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 4.0, 5.0, 0.0, 0.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 4.0, 7.0, 2.0, 5.0, 8.0, 3.0, 6.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 0.5, 0.25, 2.0, 0.25, 0.125, 3.0, 0.0, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_l_nta_nu_complex_access_pattern.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_l_nta_nu_complex_access_pattern.json new file mode 100644 index 000000000000..2d9c3ab92fe2 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_l_nta_nu_complex_access_pattern.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 999.0, 1.0, 999.0, 2.0, 999.0, 3.0, 999.0, 0.0, 999.0, 4.0, 999.0, 5.0, 999.0, 0.0, 999.0, 0.0, 999.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": 2, + "strideA2": 6, + "offsetA": 1, + "B": [ 999.0, 1.0, 999.0, 999.0, 4.0, 999.0, 999.0, 7.0, 999.0, 999.0, 2.0, 999.0, 999.0, 5.0, 999.0, 999.0, 8.0, 999.0, 999.0, 3.0, 999.0, 999.0, 6.0, 999.0, 999.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 9, + "offsetB": 1, + "B_out": [ 999.0, 1.0, 999.0, 999.0, 0.5, 999.0, 999.0, 0.25, 999.0, 999.0, 2.0, 999.0, 999.0, 0.25, 999.0, 999.0, 0.125, 999.0, 999.0, 3.0, 999.0, 999.0, 0.0, 999.0, 999.0, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_l_nta_u.json new file mode 100644 index 000000000000..11e9fc49bf55 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_l_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 4.0, 5.0, 0.0, 0.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 4.0, 7.0, 2.0, 5.0, 8.0, 3.0, 6.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 2.0, -6.0, 2.0, 1.0, -3.0, 3.0, 0.0, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_l_ta_nu.json new file mode 100644 index 000000000000..c631c87b9984 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_l_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_l_ta_u.json new file mode 100644 index 000000000000..c5f1a2ce2075 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_l_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_u_nta_nu.json new file mode 100644 index 000000000000..d3856591fb24 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_u_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_u_nta_u.json new file mode 100644 index 000000000000..b211884bdc02 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_u_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_u_ta_nu.json new file mode 100644 index 000000000000..0788b249b2d8 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_u_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 0.0, 0.0, 1.0, 1.0, -1.0, 1.0, 0.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_u_ta_u.json new file mode 100644 index 000000000000..7ebe4c0f7708 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_l_u_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 0.0, 0.0, 1.0, 1.0, -1.0, 1.0, 0.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_l_nta_nu.json new file mode 100644 index 000000000000..7c862826981a --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_l_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_l_nta_u.json new file mode 100644 index 000000000000..7c862826981a --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_l_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_l_ta_nu.json new file mode 100644 index 000000000000..fed58d9f23ab --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_l_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, -1.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_l_ta_u.json new file mode 100644 index 000000000000..dafd2ef270c9 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_l_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, -1.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_u_nta_nu.json new file mode 100644 index 000000000000..25e32ccdbd54 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_u_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, -1.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_u_nta_u.json new file mode 100644 index 000000000000..25e32ccdbd54 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_u_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, -1.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_u_ta_nu.json new file mode 100644 index 000000000000..75f95500b9c1 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_u_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_u_ta_u.json new file mode 100644 index 000000000000..2bbf37b8d80f --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_cb_r_u_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_l_nta_nu.json new file mode 100644 index 000000000000..3975a6d85b0f --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_l_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 4.0, 5.0, 0.0, 0.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 0.5, 0.25, 0.0, 0.25, 0.125, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_l_nta_nu_complex_access_pattern.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_l_nta_nu_complex_access_pattern.json new file mode 100644 index 000000000000..f4e4c6d67e29 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_l_nta_nu_complex_access_pattern.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 999.0, 1.0, 999.0, 2.0, 999.0, 3.0, 999.0, 0.0, 999.0, 4.0, 999.0, 5.0, 999.0, 0.0, 999.0, 0.0, 999.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": 2, + "strideA2": 6, + "offsetA": 1, + "B": [ 999.0, 1.0, 999.0, 999.0, 2.0, 999.0, 999.0, 3.0, 999.0, 999.0, 4.0, 999.0, 999.0, 5.0, 999.0, 999.0, 6.0, 999.0, 999.0, 7.0, 999.0, 999.0, 8.0, 999.0, 999.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 9, + "strideB2": 3, + "offsetB": 1, + "B_out": [ 999.0, 1.0, 999.0, 999.0, 2.0, 999.0, 999.0, 3.0, 999.0, 999.0, 0.5, 999.0, 999.0, 0.25, 999.0, 999.0, 0.0, 999.0, 999.0, 0.25, 999.0, 999.0, 0.125, 999.0, 999.0, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_l_nta_u.json new file mode 100644 index 000000000000..039009443ae7 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_l_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 4.0, 5.0, 0.0, 0.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -6.0, -3.0, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_l_ta_nu.json new file mode 100644 index 000000000000..f898728eebdc --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_l_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_l_ta_u.json new file mode 100644 index 000000000000..75a8f018101e --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_l_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_u_nta_nu.json new file mode 100644 index 000000000000..1d9b3d5d3fe1 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_u_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_u_nta_u.json new file mode 100644 index 000000000000..f60a2e82482c --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_u_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_u_ta_nu.json new file mode 100644 index 000000000000..3cf87c34eee6 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_u_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, -1.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_u_ta_u.json new file mode 100644 index 000000000000..00e1ca6d2096 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_l_u_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, -1.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_l_nta_nu.json new file mode 100644 index 000000000000..684af9bb2e0f --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_l_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_l_nta_u.json new file mode 100644 index 000000000000..684af9bb2e0f --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_l_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_l_ta_nu.json new file mode 100644 index 000000000000..f749d110cffa --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_l_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 0.0, 0.0, 1.0, 1.0, -1.0, 1.0, 0.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_l_ta_u.json new file mode 100644 index 000000000000..3b603100ded5 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_l_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 0.0, 0.0, 1.0, 1.0, -1.0, 1.0, 0.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_u_nta_nu.json new file mode 100644 index 000000000000..d4d237f1c096 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_u_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 0.0, 0.0, 1.0, 1.0, -1.0, 1.0, 0.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_u_nta_u.json new file mode 100644 index 000000000000..d4d237f1c096 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_u_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 0.0, 0.0, 1.0, 1.0, -1.0, 1.0, 0.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_u_ta_nu.json new file mode 100644 index 000000000000..a7272a84ceb9 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_u_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_u_ta_u.json new file mode 100644 index 000000000000..a7272a84ceb9 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ca_rb_r_u_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_l_nta_nu.json new file mode 100644 index 000000000000..4314e031c110 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_l_nta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 4.0, 5.0, 0.0, 0.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "lda": 3, + "B": [ 1.0, 4.0, 7.0, 2.0, 5.0, 8.0, 3.0, 6.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 0.5, 0.25, 2.0, 0.25, 0.125, 3.0, 0.0, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_l_nta_u.json new file mode 100644 index 000000000000..e634ce644c96 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_l_nta_u.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 4.0, 5.0, 0.0, 0.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "lda": 3, + "B": [ 1.0, 4.0, 7.0, 2.0, 5.0, 8.0, 3.0, 6.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 2.0, -6.0, 2.0, 1.0, -3.0, 0.0, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_l_ta_nu.json new file mode 100644 index 000000000000..f07d7d64bd2e --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_l_ta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "left", + "uplo": "lower", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_l_ta_u.json new file mode 100644 index 000000000000..8b385cce0082 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_l_ta_u.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "left", + "uplo": "lower", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_u_nta_nu.json new file mode 100644 index 000000000000..505ce1e9c0a2 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_u_nta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "left", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_u_nta_u.json new file mode 100644 index 000000000000..a89ad92caa78 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_u_nta_u.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "left", + "uplo": "upper", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_u_ta_nu.json new file mode 100644 index 000000000000..47980ac95e89 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_u_ta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "left", + "uplo": "upper", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 0.0, 0.0, 1.0, 1.0, -1.0, 1.0, 0.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_u_ta_u.json new file mode 100644 index 000000000000..10afd6e6f8e5 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_u_ta_u.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "left", + "uplo": "upper", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 0.0, 0.0, 1.0, 1.0, -1.0, 1.0, 0.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_nta_nu.json new file mode 100644 index 000000000000..4e71f8024748 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_nta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_nta_u.json new file mode 100644 index 000000000000..4e71f8024748 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_nta_u.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_ta_nu.json new file mode 100644 index 000000000000..bbbffbfff2d5 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_ta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "left", + "uplo": "lower", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, -1.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_ta_u.json new file mode 100644 index 000000000000..07403a5bbfd9 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_ta_u.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "left", + "uplo": "lower", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, -1.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_u_nta_nu.json new file mode 100644 index 000000000000..6af2704382de --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_u_nta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, -1.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_u_nta_u.json new file mode 100644 index 000000000000..6af2704382de --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_u_nta_u.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, -1.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_u_ta_nu.json new file mode 100644 index 000000000000..faa2e3ce5440 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_u_ta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "right", + "uplo": "upper", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_u_ta_u.json new file mode 100644 index 000000000000..63be66d06dec --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_u_ta_u.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "right", + "uplo": "upper", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_l_nta_nu.json new file mode 100644 index 000000000000..aadcab631d90 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_l_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 2.0, 4.0, 0.0, 3.0, 5.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 4.0, 7.0, 2.0, 5.0, 8.0, 3.0, 6.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 0.5, 0.25, 2.0, 0.25, 0.125, 3.0, 0.0, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_l_nta_nu_complex_access_pattern.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_l_nta_nu_complex_access_pattern.json new file mode 100644 index 000000000000..9fa063ab076c --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_l_nta_nu_complex_access_pattern.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 999.0, 1.0, 999.0, 0.0, 999.0, 0.0, 999.0, 2.0, 999.0, 4.0, 999.0, 0.0, 999.0, 3.0, 999.0, 5.0, 999.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": 6, + "strideA2": 2, + "offsetA": 1, + "B": [ 999.0, 1.0, 999.0, 999.0, 4.0, 999.0, 999.0, 7.0, 999.0, 999.0, 2.0, 999.0, 999.0, 5.0, 999.0, 999.0, 8.0, 999.0, 999.0, 3.0, 999.0, 999.0, 6.0, 999.0, 999.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 9, + "offsetB": 1, + "B_out": [ 999.0, 1.0, 999.0, 999.0, 0.5, 999.0, 999.0, 0.25, 999.0, 999.0, 2.0, 999.0, 999.0, 0.25, 999.0, 999.0, 0.125, 999.0, 999.0, 3.0, 999.0, 999.0, 0.0, 999.0, 999.0, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_l_nta_u.json new file mode 100644 index 000000000000..a9c3863f0d92 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_l_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 2.0, 4.0, 0.0, 3.0, 5.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 4.0, 7.0, 2.0, 5.0, 8.0, 3.0, 6.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 2.0, -6.0, 2.0, 1.0, -3.0, 0.0, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_l_ta_nu.json new file mode 100644 index 000000000000..e8b436dcfd64 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_l_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_l_ta_u.json new file mode 100644 index 000000000000..6595cc09acaa --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_l_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_u_nta_nu.json new file mode 100644 index 000000000000..6a020f078a37 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_u_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_u_nta_u.json new file mode 100644 index 000000000000..1249ca4a159c --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_u_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_u_ta_nu.json new file mode 100644 index 000000000000..c4c304ade432 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_u_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 0.0, 0.0, 1.0, 1.0, -1.0, 1.0, 0.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_u_ta_u.json new file mode 100644 index 000000000000..67db56dd6fb8 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_u_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 0.0, 0.0, 1.0, 1.0, -1.0, 1.0, 0.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_nta_nu.json new file mode 100644 index 000000000000..701405389256 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_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, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_nta_u.json new file mode 100644 index 000000000000..701405389256 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_nta_u.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, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_ta_nu.json new file mode 100644 index 000000000000..417bac00ae6c --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, -1.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_ta_u.json new file mode 100644 index 000000000000..de86f7f10fc3 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, -1.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_u_nta_nu.json new file mode 100644 index 000000000000..ef2bd0b9dc47 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_u_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, -1.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_u_nta_u.json new file mode 100644 index 000000000000..13eda4dc74a1 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_u_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, -1.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_u_ta_nu.json new file mode 100644 index 000000000000..446c8efb5b50 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_u_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_u_ta_u.json new file mode 100644 index 000000000000..6fd43c08a014 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_u_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu.json new file mode 100644 index 000000000000..508e42483e61 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 2.0, 4.0, 0.0, 3.0, 5.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 0.5, 0.25, 0.0, 0.25, 0.125, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_complex_access_pattern.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_complex_access_pattern.json new file mode 100644 index 000000000000..37f6cb228c8d --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_complex_access_pattern.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 999.0, 1.0, 999.0, 0.0, 999.0, 0.0, 999.0, 2.0, 999.0, 4.0, 999.0, 0.0, 999.0, 3.0, 999.0, 5.0, 999.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": 6, + "strideA2": 2, + "offsetA": 1, + "B": [ 999.0, 1.0, 999.0, 999.0, 2.0, 999.0, 999.0, 3.0, 999.0, 999.0, 4.0, 999.0, 999.0, 5.0, 999.0, 999.0, 6.0, 999.0, 999.0, 7.0, 999.0, 999.0, 8.0, 999.0, 999.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 9, + "strideB2": 3, + "offsetB": 1, + "B_out": [ 999.0, 1.0, 999.0, 999.0, 2.0, 999.0, 999.0, 3.0, 999.0, 999.0, 0.5, 999.0, 999.0, 0.25, 999.0, 999.0, 0.0, 999.0, 999.0, 0.25, 999.0, 999.0, 0.125, 999.0, 999.0, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_oa.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_oa.json new file mode 100644 index 000000000000..35ba36095cbc --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_oa.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 0.0, 0.0, 1.0, 0.0, 0.0, 2.0, 4.0, 0.0, 3.0, 5.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 2, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 0.5, 0.25, 0.0, 0.25, 0.125, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_ob.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_ob.json new file mode 100644 index 000000000000..89399595496f --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_ob.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 2.0, 4.0, 0.0, 3.0, 5.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 0.0, 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 2, + "B_out": [ 1.0, 2.0, 3.0, 0.5, 0.25, 0.0, 0.25, 0.125, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sa1_sa2.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sa1_sa2.json new file mode 100644 index 000000000000..bf942fb2176e --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sa1_sa2.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 999.0, 0.0, 999.0, 0.0, 999.0, 2.0, 999.0, 4.0, 999.0, 0.0, 999.0, 3.0, 999.0, 5.0, 999.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": 6, + "strideA2": 2, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 0.5, 0.25, 0.0, 0.25, 0.125, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sa1_sa2n.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sa1_sa2n.json new file mode 100644 index 000000000000..a976e304d085 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sa1_sa2n.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 0.0, 0.0, 1.0, 999.0, 999.0, 999.0, 0.0, 4.0, 2.0, 999.0, 999.0, 999.0, 6.0, 5.0, 3.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": 6, + "strideA2": -1, + "offsetA": 2, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 0.5, 0.25, 0.0, 0.25, 0.125, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2.json new file mode 100644 index 000000000000..20065a046d93 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 3.0, 5.0, 6.0, 999.0, 999.0, 999.0, 2.0, 4.0, 0.0, 999.0, 999.0, 999.0, 3.0, 5.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": -6, + "strideA2": 1, + "offsetA": 12, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 0.5, 0.25, 0.0, 0.25, 0.125, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2n.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2n.json new file mode 100644 index 000000000000..2c6d176da51e --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2n.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 6.0, 5.0, 3.0, 0.0, 4.0, 2.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": -3, + "strideA2": -1, + "offsetA": 8, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 0.5, 0.25, 0.0, 0.25, 0.125, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sb1_sb2.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sb1_sb2.json new file mode 100644 index 000000000000..43ef9ff02a13 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sb1_sb2.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 2.0, 4.0, 0.0, 3.0, 5.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 999.0, 2.0, 999.0, 3.0, 999.0, 4.0, 999.0, 5.0, 999.0, 6.0, 999.0, 7.0, 999.0, 8.0, 999.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 6, + "strideB2": 2, + "offsetB": 0, + "B_out": [ 1.0, 999.0, 2.0, 999.0, 3.0, 999.0, 0.5, 999.0, 0.25, 999.0, 0.0, 999.0, 0.25, 999.0, 0.125, 999.0, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sb1_sb2n.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sb1_sb2n.json new file mode 100644 index 000000000000..b631e30776db --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sb1_sb2n.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 2.0, 4.0, 0.0, 3.0, 5.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 3.0, 2.0, 1.0, 999.0, 999.0, 999.0, 6.0, 5.0, 4.0, 999.0, 999.0, 999.0, 9.0, 8.0, 7.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 6, + "strideB2": -1, + "offsetB": 2, + "B_out": [ 3.0, 2.0, 1.0, 999.0, 999.0, 999.0, 0.0, 0.25, 0.5, 999.0, 999.0, 999.0, 0.0, 0.125, 0.25 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sb1n_sb2.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sb1n_sb2.json new file mode 100644 index 000000000000..c09b9152e9f4 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sb1n_sb2.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 2.0, 4.0, 0.0, 3.0, 5.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 7.0, 8.0, 9.0, 999.0, 999.0, 999.0, 4.0, 5.0, 6.0, 999.0, 999.0, 999.0, 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": -6, + "strideB2": 1, + "offsetB": 12, + "B_out": [ 0.25, 0.125, 0.0, 999.0, 999.0, 999.0, 0.5, 0.25, 0.0, 999.0, 999.0, 999.0, 1.0, 2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sb1n_sb2n.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sb1n_sb2n.json new file mode 100644 index 000000000000..8dd1ff69e55a --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sb1n_sb2n.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 2.0, 4.0, 0.0, 3.0, 5.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 9.0, 8.0, 7.0, 6.0, 5.0, 4.0, 3.0, 2.0, 1.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": -3, + "strideB2": -1, + "offsetB": 8, + "B_out": [ 0.0, 0.125, 0.25, 0.0, 0.25, 0.5, 3.0, 2.0, 1.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_u.json new file mode 100644 index 000000000000..5af8bbdef0c4 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 2.0, 4.0, 0.0, 3.0, 5.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -6.0, -3.0, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_ta_nu.json new file mode 100644 index 000000000000..2f9d3ea404bc --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_ta_u.json new file mode 100644 index 000000000000..d79e8a24c416 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/test.dtrsm.js b/lib/node_modules/@stdlib/blas/base/dtrsm/test/test.dtrsm.js new file mode 100644 index 000000000000..a531a171b2f5 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/test.dtrsm.js @@ -0,0 +1,1076 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +/* eslint-disable max-len */ + +'use strict'; + +// MODULES // + +var tape = require( 'tape' ); +var Float64Array = require( '@stdlib/array/float64' ); +var dtrsm = require( './../lib/dtrsm.js' ); + + +// FIXTURES // + +var cllntanu = require( './fixtures/column_major_l_l_nta_nu.json' ); +var cllntau = require( './fixtures/column_major_l_l_nta_u.json' ); +var clltanu = require( './fixtures/column_major_l_l_ta_nu.json' ); +var clltau = require( './fixtures/column_major_l_l_ta_u.json' ); +var cluntanu = require( './fixtures/column_major_l_u_nta_nu.json' ); +var cluntau = require( './fixtures/column_major_l_u_nta_u.json' ); +var clutanu = require( './fixtures/column_major_l_u_ta_nu.json' ); +var clutau = require( './fixtures/column_major_l_u_ta_u.json' ); +var crlntanu = require( './fixtures/column_major_r_l_nta_nu.json' ); +var crlntau = require( './fixtures/column_major_r_l_nta_u.json' ); +var crltanu = require( './fixtures/column_major_r_l_ta_nu.json' ); +var crltau = require( './fixtures/column_major_r_l_ta_u.json' ); +var cruntanu = require( './fixtures/column_major_r_u_nta_nu.json' ); +var cruntau = require( './fixtures/column_major_r_u_nta_u.json' ); +var crutanu = require( './fixtures/column_major_r_u_ta_nu.json' ); +var crutau = require( './fixtures/column_major_r_u_ta_u.json' ); + +var rllntanu = require( './fixtures/row_major_l_l_nta_nu.json' ); +var rllntau = require( './fixtures/row_major_l_l_nta_u.json' ); +var rlltanu = require( './fixtures/row_major_l_l_ta_nu.json' ); +var rlltau = require( './fixtures/row_major_l_l_ta_u.json' ); +var rluntanu = require( './fixtures/row_major_l_u_nta_nu.json' ); +var rluntau = require( './fixtures/row_major_l_u_nta_u.json' ); +var rlutanu = require( './fixtures/row_major_l_u_ta_nu.json' ); +var rlutau = require( './fixtures/row_major_l_u_ta_u.json' ); +var rrlntanu = require( './fixtures/row_major_r_l_nta_nu.json' ); +var rrlntau = require( './fixtures/row_major_r_l_nta_u.json' ); +var rrltanu = require( './fixtures/row_major_r_l_ta_nu.json' ); +var rrltau = require( './fixtures/row_major_r_l_ta_u.json' ); +var rruntanu = require( './fixtures/row_major_r_u_nta_nu.json' ); +var rruntau = require( './fixtures/row_major_r_u_nta_u.json' ); +var rrutanu = require( './fixtures/row_major_r_u_ta_nu.json' ); +var rrutau = require( './fixtures/row_major_r_u_ta_u.json' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof dtrsm, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function has an arity of 12', function test( t ) { + t.strictEqual( dtrsm.length, 12, 'returns expected value' ); + t.end(); +}); + +tape( 'the function throws an error if provided an invalid first argument', function test( t ) { + var values; + var data; + var i; + + data = rllntanu; + + values = [ + 'foo', + 'bar', + 'beep', + 'boop' + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + dtrsm( value, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), data.ldb ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid second argument', function test( t ) { + var values; + var data; + var i; + + data = rllntanu; + + values = [ + 'foo', + 'bar', + 'beep', + 'boop' + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + dtrsm( data.order, value, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), data.ldb ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid third argument', function test( t ) { + var values; + var data; + var i; + + data = rllntanu; + + values = [ + 'foo', + 'bar', + 'beep', + 'boop' + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + dtrsm( data.order, data.side, value, data.transA, data.diag, data.M, data.N, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), data.ldb ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid fourth argument', function test( t ) { + var values; + var data; + var i; + + data = rllntanu; + + values = [ + 'foo', + 'bar', + 'beep', + 'boop' + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + dtrsm( data.order, data.side, data.uplo, value, data.diag, data.M, data.N, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), data.ldb ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid fifth argument', function test( t ) { + var values; + var data; + var i; + + data = rllntanu; + + values = [ + 'foo', + 'bar', + 'beep', + 'boop' + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + dtrsm( data.order, data.side, data.uplo, data.transA, value, data.M, data.N, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), data.ldb ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid sixth argument', function test( t ) { + var values; + var data; + var i; + + data = rllntanu; + + values = [ + -1, + -2, + -3 + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, value, data.N, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), data.ldb ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid seventh argument', function test( t ) { + var values; + var data; + var i; + + data = rllntanu; + + values = [ + -1, + -2, + -3 + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, value, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), data.ldb ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid tenth argument', function test( t ) { + var values; + var data; + var i; + + data = rllntanu; + + values = [ + 1, + 0, + -1, + -2, + -3 + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, new Float64Array( data.A ), value, new Float64Array( data.B ), data.ldb ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid twelfth argument', function test( t ) { + var values; + var data; + var i; + + data = rllntanu; + + values = [ + 1, + 0, + -1, + -2, + -3 + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), value ); + }; + } +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, left, lower, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rllntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, left, lower, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cllntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, left, lower, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rllntau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, left, lower, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cllntau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, left, lower, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rlltanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, left, lower, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = clltanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, left, lower, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rlltau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, left, lower, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = clltau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, left, upper, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rluntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, left, upper, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cluntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, left, upper, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rluntau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, left, upper, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cluntau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, left, upper, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rlutanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, left, upper, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = clutanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, left, upper, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rlutau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, left, upper, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = clutau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (row-major, right, lower, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rrlntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (column-major, right, lower, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = crlntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (row-major, right, lower, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rrlntau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (column-major, right, lower, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = crlntau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (row-major, right, lower, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rrltanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (column-major, right, lower, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = crltanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (row-major, right, lower, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rrltau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (column-major, right, lower, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = crltau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (row-major, right, upper, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rruntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (column-major, right, upper, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cruntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (row-major, right, upper, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rruntau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (column-major, right, upper, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cruntau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (row-major, right, upper, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rrutanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (column-major, right, upper, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = crutanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (row-major, right, upper, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rrutau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (column-major, right, upper, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = crutau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns a reference to the second input matrix (row-major)', function test( t ) { + var data; + var out; + var a; + var b; + + data = rlltau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns a reference to the second input matrix (column-major)', function test( t ) { + var data; + var out; + var a; + var b; + + data = clltau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.end(); +}); + +tape( 'if either `M` or `N` is `0`, the function returns the second input matrix unchanged (row-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rlltau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, 0, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, 0, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'if either `M` or `N` is `0`, the function returns the second input matrix unchanged (column-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = clltau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, 0, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, 0, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'if `α` is `0`, the function returns the second input matrix filled with zeros (row-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rlltau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( b.length ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, 0.0, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'if `α` is `0`, the function returns the second input matrix filled with zeros (column-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = clltau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( b.length ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, 0.0, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/test.js b/lib/node_modules/@stdlib/blas/base/dtrsm/test/test.js new file mode 100644 index 000000000000..abb0626f4e22 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/test.js @@ -0,0 +1,82 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var tape = require( 'tape' ); +var proxyquire = require( 'proxyquire' ); +var IS_BROWSER = require( '@stdlib/assert/is-browser' ); +var dtrsm = require( './../lib' ); + + +// VARIABLES // + +var opts = { + 'skip': IS_BROWSER +}; + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof dtrsm, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'attached to the main export is a method providing an ndarray interface', function test( t ) { + t.strictEqual( typeof dtrsm.ndarray, 'function', 'method is a function' ); + t.end(); +}); + +tape( 'if a native implementation is available, the main export is the native implementation', opts, function test( t ) { + var dtrsm = proxyquire( './../lib', { + '@stdlib/utils/try-require': tryRequire + }); + + t.strictEqual( dtrsm, mock, 'returns expected value' ); + t.end(); + + function tryRequire() { + return mock; + } + + function mock() { + // Mock... + } +}); + +tape( 'if a native implementation is not available, the main export is a JavaScript implementation', opts, function test( t ) { + var dtrsm; + var main; + + main = require( './../lib/dtrsm.js' ); + + dtrsm = proxyquire( './../lib', { + '@stdlib/utils/try-require': tryRequire + }); + + t.strictEqual( dtrsm, main, 'returns expected value' ); + t.end(); + + function tryRequire() { + return new Error( 'Cannot find module' ); + } +}); diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/test.ndarray.js b/lib/node_modules/@stdlib/blas/base/dtrsm/test/test.ndarray.js new file mode 100644 index 000000000000..a531a171b2f5 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/test.ndarray.js @@ -0,0 +1,1076 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +/* eslint-disable max-len */ + +'use strict'; + +// MODULES // + +var tape = require( 'tape' ); +var Float64Array = require( '@stdlib/array/float64' ); +var dtrsm = require( './../lib/dtrsm.js' ); + + +// FIXTURES // + +var cllntanu = require( './fixtures/column_major_l_l_nta_nu.json' ); +var cllntau = require( './fixtures/column_major_l_l_nta_u.json' ); +var clltanu = require( './fixtures/column_major_l_l_ta_nu.json' ); +var clltau = require( './fixtures/column_major_l_l_ta_u.json' ); +var cluntanu = require( './fixtures/column_major_l_u_nta_nu.json' ); +var cluntau = require( './fixtures/column_major_l_u_nta_u.json' ); +var clutanu = require( './fixtures/column_major_l_u_ta_nu.json' ); +var clutau = require( './fixtures/column_major_l_u_ta_u.json' ); +var crlntanu = require( './fixtures/column_major_r_l_nta_nu.json' ); +var crlntau = require( './fixtures/column_major_r_l_nta_u.json' ); +var crltanu = require( './fixtures/column_major_r_l_ta_nu.json' ); +var crltau = require( './fixtures/column_major_r_l_ta_u.json' ); +var cruntanu = require( './fixtures/column_major_r_u_nta_nu.json' ); +var cruntau = require( './fixtures/column_major_r_u_nta_u.json' ); +var crutanu = require( './fixtures/column_major_r_u_ta_nu.json' ); +var crutau = require( './fixtures/column_major_r_u_ta_u.json' ); + +var rllntanu = require( './fixtures/row_major_l_l_nta_nu.json' ); +var rllntau = require( './fixtures/row_major_l_l_nta_u.json' ); +var rlltanu = require( './fixtures/row_major_l_l_ta_nu.json' ); +var rlltau = require( './fixtures/row_major_l_l_ta_u.json' ); +var rluntanu = require( './fixtures/row_major_l_u_nta_nu.json' ); +var rluntau = require( './fixtures/row_major_l_u_nta_u.json' ); +var rlutanu = require( './fixtures/row_major_l_u_ta_nu.json' ); +var rlutau = require( './fixtures/row_major_l_u_ta_u.json' ); +var rrlntanu = require( './fixtures/row_major_r_l_nta_nu.json' ); +var rrlntau = require( './fixtures/row_major_r_l_nta_u.json' ); +var rrltanu = require( './fixtures/row_major_r_l_ta_nu.json' ); +var rrltau = require( './fixtures/row_major_r_l_ta_u.json' ); +var rruntanu = require( './fixtures/row_major_r_u_nta_nu.json' ); +var rruntau = require( './fixtures/row_major_r_u_nta_u.json' ); +var rrutanu = require( './fixtures/row_major_r_u_ta_nu.json' ); +var rrutau = require( './fixtures/row_major_r_u_ta_u.json' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof dtrsm, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function has an arity of 12', function test( t ) { + t.strictEqual( dtrsm.length, 12, 'returns expected value' ); + t.end(); +}); + +tape( 'the function throws an error if provided an invalid first argument', function test( t ) { + var values; + var data; + var i; + + data = rllntanu; + + values = [ + 'foo', + 'bar', + 'beep', + 'boop' + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + dtrsm( value, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), data.ldb ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid second argument', function test( t ) { + var values; + var data; + var i; + + data = rllntanu; + + values = [ + 'foo', + 'bar', + 'beep', + 'boop' + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + dtrsm( data.order, value, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), data.ldb ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid third argument', function test( t ) { + var values; + var data; + var i; + + data = rllntanu; + + values = [ + 'foo', + 'bar', + 'beep', + 'boop' + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + dtrsm( data.order, data.side, value, data.transA, data.diag, data.M, data.N, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), data.ldb ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid fourth argument', function test( t ) { + var values; + var data; + var i; + + data = rllntanu; + + values = [ + 'foo', + 'bar', + 'beep', + 'boop' + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + dtrsm( data.order, data.side, data.uplo, value, data.diag, data.M, data.N, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), data.ldb ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid fifth argument', function test( t ) { + var values; + var data; + var i; + + data = rllntanu; + + values = [ + 'foo', + 'bar', + 'beep', + 'boop' + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + dtrsm( data.order, data.side, data.uplo, data.transA, value, data.M, data.N, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), data.ldb ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid sixth argument', function test( t ) { + var values; + var data; + var i; + + data = rllntanu; + + values = [ + -1, + -2, + -3 + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, value, data.N, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), data.ldb ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid seventh argument', function test( t ) { + var values; + var data; + var i; + + data = rllntanu; + + values = [ + -1, + -2, + -3 + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, value, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), data.ldb ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid tenth argument', function test( t ) { + var values; + var data; + var i; + + data = rllntanu; + + values = [ + 1, + 0, + -1, + -2, + -3 + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, new Float64Array( data.A ), value, new Float64Array( data.B ), data.ldb ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid twelfth argument', function test( t ) { + var values; + var data; + var i; + + data = rllntanu; + + values = [ + 1, + 0, + -1, + -2, + -3 + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), value ); + }; + } +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, left, lower, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rllntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, left, lower, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cllntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, left, lower, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rllntau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, left, lower, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cllntau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, left, lower, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rlltanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, left, lower, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = clltanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, left, lower, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rlltau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, left, lower, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = clltau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, left, upper, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rluntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, left, upper, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cluntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, left, upper, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rluntau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, left, upper, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cluntau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, left, upper, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rlutanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, left, upper, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = clutanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, left, upper, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rlutau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, left, upper, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = clutau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (row-major, right, lower, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rrlntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (column-major, right, lower, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = crlntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (row-major, right, lower, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rrlntau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (column-major, right, lower, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = crlntau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (row-major, right, lower, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rrltanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (column-major, right, lower, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = crltanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (row-major, right, lower, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rrltau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (column-major, right, lower, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = crltau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (row-major, right, upper, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rruntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (column-major, right, upper, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cruntanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (row-major, right, upper, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rruntau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (column-major, right, upper, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cruntau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (row-major, right, upper, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rrutanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (column-major, right, upper, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = crutanu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (row-major, right, upper, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rrutau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (column-major, right, upper, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = crutau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B_out ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns a reference to the second input matrix (row-major)', function test( t ) { + var data; + var out; + var a; + var b; + + data = rlltau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns a reference to the second input matrix (column-major)', function test( t ) { + var data; + var out; + var a; + var b; + + data = clltau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.end(); +}); + +tape( 'if either `M` or `N` is `0`, the function returns the second input matrix unchanged (row-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rlltau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, 0, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, 0, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'if either `M` or `N` is `0`, the function returns the second input matrix unchanged (column-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = clltau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( data.B ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, 0, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, 0, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'if `α` is `0`, the function returns the second input matrix filled with zeros (row-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rlltau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( b.length ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, 0.0, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'if `α` is `0`, the function returns the second input matrix filled with zeros (column-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = clltau; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + + expected = new Float64Array( b.length ); + + out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, 0.0, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); From c238fd568b5df0d247212ff44d4cd6fe11ee5ff0 Mon Sep 17 00:00:00 2001 From: ShabiShett07 Date: Sun, 15 Jun 2025 11:23:20 +0530 Subject: [PATCH 2/9] chore: add implementation --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../test/fixtures/column_major_l_l_nta_u.json | 2 +- .../fixtures/column_major_r_l_nta_nu.json | 2 +- .../test/fixtures/column_major_r_l_nta_u.json | 2 +- .../test/fixtures/column_major_r_l_ta_nu.json | 2 +- .../test/fixtures/column_major_r_l_ta_u.json | 2 +- .../dtrsm/test/fixtures/ra_cb_r_l_nta_nu.json | 2 +- .../dtrsm/test/fixtures/ra_cb_r_l_nta_u.json | 2 +- .../dtrsm/test/fixtures/ra_cb_r_l_ta_nu.json | 2 +- .../dtrsm/test/fixtures/ra_cb_r_l_ta_u.json | 2 +- .../dtrsm/test/fixtures/ra_rb_l_u_nta_nu.json | 28 +++++++++++++++++++ .../dtrsm/test/fixtures/ra_rb_l_u_nta_u.json | 28 +++++++++++++++++++ .../dtrsm/test/fixtures/ra_rb_l_u_ta_nu.json | 28 +++++++++++++++++++ .../dtrsm/test/fixtures/ra_rb_l_u_ta_u.json | 28 +++++++++++++++++++ .../dtrsm/test/fixtures/ra_rb_r_l_nta_nu.json | 28 +++++++++++++++++++ .../dtrsm/test/fixtures/ra_rb_r_l_nta_u.json | 28 +++++++++++++++++++ .../dtrsm/test/fixtures/ra_rb_r_l_ta_nu.json | 28 +++++++++++++++++++ .../dtrsm/test/fixtures/ra_rb_r_l_ta_u.json | 28 +++++++++++++++++++ .../dtrsm/test/fixtures/ra_rb_r_u_nta_nu.json | 28 +++++++++++++++++++ .../dtrsm/test/fixtures/ra_rb_r_u_nta_u.json | 28 +++++++++++++++++++ .../dtrsm/test/fixtures/ra_rb_r_u_ta_nu.json | 28 +++++++++++++++++++ .../dtrsm/test/fixtures/ra_rb_r_u_ta_u.json | 28 +++++++++++++++++++ .../test/fixtures/row_major_l_l_nta_nu.json | 25 +++++++++++++++++ .../test/fixtures/row_major_l_l_nta_u.json | 25 +++++++++++++++++ .../test/fixtures/row_major_l_l_ta_nu.json | 25 +++++++++++++++++ .../test/fixtures/row_major_l_l_ta_u.json | 25 +++++++++++++++++ .../test/fixtures/row_major_l_u_nta_nu.json | 25 +++++++++++++++++ .../test/fixtures/row_major_l_u_nta_u.json | 25 +++++++++++++++++ .../test/fixtures/row_major_l_u_ta_nu.json | 25 +++++++++++++++++ .../test/fixtures/row_major_l_u_ta_u.json | 25 +++++++++++++++++ .../test/fixtures/row_major_r_l_nta_nu.json | 25 +++++++++++++++++ .../test/fixtures/row_major_r_l_nta_u.json | 25 +++++++++++++++++ .../test/fixtures/row_major_r_l_ta_nu.json | 25 +++++++++++++++++ .../test/fixtures/row_major_r_l_ta_u.json | 25 +++++++++++++++++ .../test/fixtures/row_major_r_u_nta_nu.json | 25 +++++++++++++++++ .../test/fixtures/row_major_r_u_nta_u.json | 25 +++++++++++++++++ .../test/fixtures/row_major_r_u_ta_nu.json | 25 +++++++++++++++++ .../test/fixtures/row_major_r_u_ta_u.json | 25 +++++++++++++++++ 37 files changed, 745 insertions(+), 9 deletions(-) create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_u_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_u_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_u_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_u_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_l_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_l_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_l_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_l_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_u_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_u_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_u_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_u_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_l_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_l_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_l_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_l_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_u_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_u_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_u_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_u_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_l_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_l_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_l_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_l_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_u_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_u_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_u_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_u_ta_u.json diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_l_nta_u.json index e634ce644c96..d90b37370147 100644 --- a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_l_nta_u.json +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_l_l_nta_u.json @@ -21,5 +21,5 @@ [ 7.0, 8.0, 9.0 ] ], "ldb": 3, - "B_out": [ 1.0, 2.0, -6.0, 2.0, 1.0, -3.0, 0.0, 0.0 ] + "B_out": [ 1.0, 2.0, -6.0, 2.0, 1.0, -3.0, 3.0, 0.0, 0.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_nta_nu.json index 4e71f8024748..15047c6ba5ef 100644 --- a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_nta_nu.json +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_nta_nu.json @@ -1,6 +1,6 @@ { "order": "column-major", - "side": "left", + "side": "right", "uplo": "lower", "transA": "no-transpose", "diag": "non-unit", diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_nta_u.json index 4e71f8024748..15047c6ba5ef 100644 --- a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_nta_u.json +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_nta_u.json @@ -1,6 +1,6 @@ { "order": "column-major", - "side": "left", + "side": "right", "uplo": "lower", "transA": "no-transpose", "diag": "non-unit", diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_ta_nu.json index bbbffbfff2d5..1fff9a546079 100644 --- a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_ta_nu.json +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_ta_nu.json @@ -1,6 +1,6 @@ { "order": "column-major", - "side": "left", + "side": "right", "uplo": "lower", "transA": "transpose", "diag": "non-unit", diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_ta_u.json index 07403a5bbfd9..3329e2dc80bc 100644 --- a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_ta_u.json +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/column_major_r_l_ta_u.json @@ -1,6 +1,6 @@ { "order": "column-major", - "side": "left", + "side": "right", "uplo": "lower", "transA": "transpose", "diag": "unit", diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_nta_nu.json index 701405389256..70ef59a28903 100644 --- a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_nta_nu.json +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_nta_nu.json @@ -1,5 +1,5 @@ { - "side": "left", + "side": "right", "uplo": "lower", "transA": "no-transpose", "diag": "non-unit", diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_nta_u.json index 701405389256..70ef59a28903 100644 --- a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_nta_u.json +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_nta_u.json @@ -1,5 +1,5 @@ { - "side": "left", + "side": "right", "uplo": "lower", "transA": "no-transpose", "diag": "non-unit", diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_ta_nu.json index 417bac00ae6c..8c615758ebc3 100644 --- a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_ta_nu.json +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_ta_nu.json @@ -1,5 +1,5 @@ { - "side": "left", + "side": "right", "uplo": "lower", "transA": "transpose", "diag": "non-unit", diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_ta_u.json index de86f7f10fc3..d6de55b164a8 100644 --- a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_ta_u.json +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_l_ta_u.json @@ -1,5 +1,5 @@ { - "side": "left", + "side": "right", "uplo": "lower", "transA": "transpose", "diag": "unit", diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_u_nta_nu.json new file mode 100644 index 000000000000..9bfc8df0b3f5 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_u_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_u_nta_u.json new file mode 100644 index 000000000000..d7c3ecc860d3 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_u_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_u_ta_nu.json new file mode 100644 index 000000000000..db988517d5d9 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_u_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, -1.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_u_ta_u.json new file mode 100644 index 000000000000..e334b9ca9cd6 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_u_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, -1.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_l_nta_nu.json new file mode 100644 index 000000000000..a9e9dda200c5 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_l_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_l_nta_u.json new file mode 100644 index 000000000000..a9e9dda200c5 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_l_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_l_ta_nu.json new file mode 100644 index 000000000000..84e5a2909f52 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_l_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 0.0, 0.0, 1.0, 1.0, -1.0, 1.0, 0.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_l_ta_u.json new file mode 100644 index 000000000000..b3b8055ccf2d --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_l_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 0.0, 0.0, 1.0, 1.0, -1.0, 1.0, 0.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_u_nta_nu.json new file mode 100644 index 000000000000..adaeee6ad96e --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_u_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 0.0, 0.0, 1.0, 1.0, -1.0, 1.0, 0.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_u_nta_u.json new file mode 100644 index 000000000000..3d01ccddf9a0 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_u_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 0.0, 0.0, 1.0, 1.0, -1.0, 1.0, 0.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_u_ta_nu.json new file mode 100644 index 000000000000..e74f229a7cd4 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_u_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_u_ta_u.json new file mode 100644 index 000000000000..a60937296ad8 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_u_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_l_nta_nu.json new file mode 100644 index 000000000000..f5e0a19378c1 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_l_nta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 2.0, 4.0, 0.0, 3.0, 5.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "lda": 3, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 2.0, 3.0, 0.5, 0.25, 0.0, 0.25, 0.125, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_l_nta_u.json new file mode 100644 index 000000000000..f1768fd0c05a --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_l_nta_u.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 2.0, 4.0, 0.0, 3.0, 5.0, 6.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 4.0, 0.0 ], + [ 3.0, 5.0, 6.0 ] + ], + "lda": 3, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -6.0, -3.0, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_l_ta_nu.json new file mode 100644 index 000000000000..b0b6c6dc0222 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_l_ta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "left", + "uplo": "lower", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_l_ta_u.json new file mode 100644 index 000000000000..151c0791fb59 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_l_ta_u.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "left", + "uplo": "lower", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_u_nta_nu.json new file mode 100644 index 000000000000..7a2124380498 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_u_nta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "left", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_u_nta_u.json new file mode 100644 index 000000000000..fef7c0409b8d --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_u_nta_u.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "left", + "uplo": "upper", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_u_ta_nu.json new file mode 100644 index 000000000000..1a495d1724b4 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_u_ta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "left", + "uplo": "upper", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, -1.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_u_ta_u.json new file mode 100644 index 000000000000..24784a5b8e7b --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_u_ta_u.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "left", + "uplo": "upper", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, -1.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_l_nta_nu.json new file mode 100644 index 000000000000..ddf9097bd983 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_l_nta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "right", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_l_nta_u.json new file mode 100644 index 000000000000..ddf9097bd983 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_l_nta_u.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "right", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_l_ta_nu.json new file mode 100644 index 000000000000..ef1ec1635480 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_l_ta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "right", + "uplo": "lower", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 0.0, 0.0, 1.0, 1.0, -1.0, 1.0, 0.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_l_ta_u.json new file mode 100644 index 000000000000..ca4bb4b270ac --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_l_ta_u.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "right", + "uplo": "lower", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 0.0, 0.0, 1.0, 1.0, -1.0, 1.0, 0.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_u_nta_nu.json new file mode 100644 index 000000000000..86ac26291989 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_u_nta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 0.0, 0.0, 1.0, 1.0, -1.0, 1.0, 0.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_u_nta_u.json new file mode 100644 index 000000000000..86ac26291989 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_u_nta_u.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 0.0, 0.0, 1.0, 1.0, -1.0, 1.0, 0.0, 2.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_u_ta_nu.json new file mode 100644 index 000000000000..b0e913a57267 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_u_ta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "right", + "uplo": "upper", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_u_ta_u.json new file mode 100644 index 000000000000..18b5ba2ba7e7 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_u_ta_u.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "right", + "uplo": "upper", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "lda": 3, + "B": [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ], + "B_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 2.0, 1.0 ], + [ 1.0, 1.0, 3.0 ] + ], + "ldb": 3, + "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] +} From 2b29b8d9bde7a338a0d980f3f0bcb8e53e096bf0 Mon Sep 17 00:00:00 2001 From: ShabiShett07 Date: Sun, 15 Jun 2025 12:03:34 +0530 Subject: [PATCH 3/9] chore: update implementation --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../dtrsm/test/fixtures/ra_cb_l_l_nta_u.json | 2 +- .../dtrsm/test/fixtures/ra_cb_r_u_nta_nu.json | 2 +- .../test/fixtures/ra_rb_l_l_nta_nu_ob.json | 2 +- .../fixtures/ra_rb_l_l_nta_nu_sa1n_sa2.json | 2 +- .../fixtures/ra_rb_l_l_nta_nu_sb1n_sb2.json | 2 +- .../dtrsm/test/fixtures/ra_rb_r_u_nta_nu.json | 2 +- .../blas/base/dtrsm/test/test.ndarray.js | 1502 +++++++++++++---- 7 files changed, 1193 insertions(+), 321 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_l_nta_u.json index a9c3863f0d92..25b051f80df8 100644 --- a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_l_nta_u.json +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_l_l_nta_u.json @@ -24,5 +24,5 @@ "strideB1": 1, "strideB2": 3, "offsetB": 0, - "B_out": [ 1.0, 2.0, -6.0, 2.0, 1.0, -3.0, 0.0, 0.0 ] + "B_out": [ 1.0, 2.0, -6.0, 2.0, 1.0, -3.0, 3.0, 0.0, 0.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_u_nta_nu.json index ef2bd0b9dc47..13eda4dc74a1 100644 --- a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_u_nta_nu.json +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_cb_r_u_nta_nu.json @@ -6,7 +6,7 @@ "M": 3, "N": 3, "alpha": 1.0, - "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0 ], + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], "A_mat": [ [ 1.0, 1.0, 1.0 ], [ 0.0, 1.0, 1.0 ], diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_ob.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_ob.json index 89399595496f..82e87842cc06 100644 --- a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_ob.json +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_ob.json @@ -24,5 +24,5 @@ "strideB1": 3, "strideB2": 1, "offsetB": 2, - "B_out": [ 1.0, 2.0, 3.0, 0.5, 0.25, 0.0, 0.25, 0.125, 0.0 ] + "B_out": [ 0.0, 0.0, 1.0, 2.0, 3.0, 0.5, 0.25, 0.0, 0.25, 0.125, 0.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2.json index 20065a046d93..d8271015a70a 100644 --- a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2.json +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2.json @@ -6,7 +6,7 @@ "M": 3, "N": 3, "alpha": 1.0, - "A": [ 3.0, 5.0, 6.0, 999.0, 999.0, 999.0, 2.0, 4.0, 0.0, 999.0, 999.0, 999.0, 3.0, 5.0, 6.0 ], + "A": [ 3.0, 5.0, 6.0, 999.0, 999.0, 999.0, 2.0, 4.0, 0.0, 999.0, 999.0, 999.0, 1.0, 0.0, 0.0 ], "A_mat": [ [ 1.0, 0.0, 0.0 ], [ 2.0, 4.0, 0.0 ], diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sb1n_sb2.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sb1n_sb2.json index c09b9152e9f4..edef2db54355 100644 --- a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sb1n_sb2.json +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_l_l_nta_nu_sb1n_sb2.json @@ -15,7 +15,7 @@ "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, 7.0, 8.0, 9.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 ], diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_u_nta_nu.json index adaeee6ad96e..3d01ccddf9a0 100644 --- a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_u_nta_nu.json +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/ra_rb_r_u_nta_nu.json @@ -6,7 +6,7 @@ "M": 3, "N": 3, "alpha": 1.0, - "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0 ], + "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], "A_mat": [ [ 1.0, 1.0, 1.0 ], [ 0.0, 1.0, 1.0 ], diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/test.ndarray.js b/lib/node_modules/@stdlib/blas/base/dtrsm/test/test.ndarray.js index a531a171b2f5..aa5fb840dea7 100644 --- a/lib/node_modules/@stdlib/blas/base/dtrsm/test/test.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/test.ndarray.js @@ -1,3 +1,4 @@ + /** * @license Apache-2.0 * @@ -23,45 +24,92 @@ // MODULES // var tape = require( 'tape' ); -var Float64Array = require( '@stdlib/array/float64' ); -var dtrsm = require( './../lib/dtrsm.js' ); +var Float32Array = require( '@stdlib/array/float32' ); +var dtrsm = require( './../lib/ndarray.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' ); +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 // @@ -72,8 +120,8 @@ tape( 'main export is a function', function test( t ) { t.end(); }); -tape( 'the function has an arity of 12', function test( t ) { - t.strictEqual( dtrsm.length, 12, 'returns expected value' ); +tape( 'the function has an arity of 15', function test( t ) { + t.strictEqual( dtrsm.length, 15, 'returns expected value' ); t.end(); }); @@ -82,7 +130,7 @@ tape( 'the function throws an error if provided an invalid first argument', func var data; var i; - data = rllntanu; + data = racbllntanu; values = [ 'foo', @@ -98,7 +146,7 @@ tape( 'the function throws an error if provided an invalid first argument', func function badValue( value ) { return function badValue() { - dtrsm( value, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), data.ldb ); + dtrsm( value, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, new Float32Array( data.A ), data.strideA1, data.strideA2, data.offsetA, new Float32Array( data.B ), data.strideB1, data.strideB2, data.offsetB ); }; } }); @@ -108,7 +156,7 @@ tape( 'the function throws an error if provided an invalid second argument', fun var data; var i; - data = rllntanu; + data = racbllntanu; values = [ 'foo', @@ -124,7 +172,7 @@ tape( 'the function throws an error if provided an invalid second argument', fun function badValue( value ) { return function badValue() { - dtrsm( data.order, value, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), data.ldb ); + dtrsm( data.side, value, data.transA, data.diag, data.M, data.N, data.alpha, new Float32Array( data.A ), data.strideA1, data.strideA2, data.offsetA, new Float32Array( data.B ), data.strideB1, data.strideB2, data.offsetB ); }; } }); @@ -134,7 +182,7 @@ tape( 'the function throws an error if provided an invalid third argument', func var data; var i; - data = rllntanu; + data = racbllntanu; values = [ 'foo', @@ -150,7 +198,7 @@ tape( 'the function throws an error if provided an invalid third argument', func function badValue( value ) { return function badValue() { - dtrsm( data.order, data.side, value, data.transA, data.diag, data.M, data.N, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), data.ldb ); + dtrsm( data.side, data.uplo, value, data.diag, data.M, data.N, data.alpha, new Float32Array( data.A ), data.strideA1, data.strideA2, data.offsetA, new Float32Array( data.B ), data.strideB1, data.strideB2, data.offsetB ); }; } }); @@ -160,7 +208,7 @@ tape( 'the function throws an error if provided an invalid fourth argument', fun var data; var i; - data = rllntanu; + data = racbllntanu; values = [ 'foo', @@ -176,7 +224,7 @@ tape( 'the function throws an error if provided an invalid fourth argument', fun function badValue( value ) { return function badValue() { - dtrsm( data.order, data.side, data.uplo, value, data.diag, data.M, data.N, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), data.ldb ); + dtrsm( data.side, data.uplo, data.transA, value, data.M, data.N, data.alpha, new Float32Array( data.A ), data.strideA1, data.strideA2, data.offsetA, new Float32Array( data.B ), data.strideB1, data.strideB2, data.offsetB ); }; } }); @@ -186,23 +234,22 @@ tape( 'the function throws an error if provided an invalid fifth argument', func var data; var i; - data = rllntanu; + data = racbllntanu; values = [ - 'foo', - 'bar', - 'beep', - 'boop' + -1, + -2, + -3 ]; for ( i = 0; i < values.length; i++ ) { - t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided ' + values[ i ] ); + t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] ); } t.end(); function badValue( value ) { return function badValue() { - dtrsm( data.order, data.side, data.uplo, data.transA, value, data.M, data.N, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), data.ldb ); + dtrsm( data.side, data.uplo, data.transA, data.diag, value, data.N, data.alpha, new Float32Array( data.A ), data.strideA1, data.strideA2, data.offsetA, new Float32Array( data.B ), data.strideB1, data.strideB2, data.offsetB ); }; } }); @@ -212,7 +259,7 @@ tape( 'the function throws an error if provided an invalid sixth argument', func var data; var i; - data = rllntanu; + data = racbllntanu; values = [ -1, @@ -227,22 +274,20 @@ tape( 'the function throws an error if provided an invalid sixth argument', func function badValue( value ) { return function badValue() { - dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, value, data.N, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), data.ldb ); + dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, value, data.alpha, new Float32Array( data.A ), data.strideA1, data.strideA2, data.offsetA, new Float32Array( data.B ), data.strideB1, data.strideB2, data.offsetB ); }; } }); -tape( 'the function throws an error if provided an invalid seventh argument', function test( t ) { +tape( 'the function throws an error if provided an invalid thirteenth argument', function test( t ) { var values; var data; var i; - data = rllntanu; + data = racbllntanu; values = [ - -1, - -2, - -3 + 0 ]; for ( i = 0; i < values.length; i++ ) { @@ -252,24 +297,20 @@ tape( 'the function throws an error if provided an invalid seventh argument', fu function badValue( value ) { return function badValue() { - dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, value, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), data.ldb ); + dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, new Float32Array( data.A ), data.strideA1, data.strideA2, data.offsetA, new Float32Array( data.B ), value, data.strideB2, data.offsetB ); }; } }); -tape( 'the function throws an error if provided an invalid tenth argument', function test( t ) { +tape( 'the function throws an error if provided an invalid fourteenth argument', function test( t ) { var values; var data; var i; - data = rllntanu; + data = racbllntanu; values = [ - 1, - 0, - -1, - -2, - -3 + 0 ]; for ( i = 0; i < values.length; i++ ) { @@ -279,798 +320,1629 @@ tape( 'the function throws an error if provided an invalid tenth argument', func function badValue( value ) { return function badValue() { - dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, new Float64Array( data.A ), value, new Float64Array( data.B ), data.ldb ); + dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, new Float32Array( data.A ), data.strideA1, data.strideA2, data.offsetA, new Float32Array( data.B ), data.strideB1, value, data.offsetB ); }; } }); -tape( 'the function throws an error if provided an invalid twelfth argument', function test( t ) { - var values; +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 i; + var out; + var a; + var b; - data = rllntanu; + data = racbllntanu; - values = [ - 1, - 0, - -1, - -2, - -3 - ]; + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); - for ( i = 0; i < values.length; i++ ) { - t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] ); - } + expected = new Float32Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); t.end(); +}); - function badValue( value ) { - return function badValue() { - dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), value ); - }; - } +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (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 Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, column-major, left, lower, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racbllntau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, column-major, left, lower, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cacbllntau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, column-major, left, lower, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racblltanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, column-major, left, lower, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cacblltanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, column-major, left, lower, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racblltau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, column-major, left, lower, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cacblltau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, column-major, left, upper, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racbluntanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, column-major, left, upper, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cacbluntanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, column-major, left, upper, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racbluntau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); }); -tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, left, lower, no-transpose, non-unit)', function test( t ) { +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 = rllntanu; + data = cacbluntau; - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); - expected = new Float64Array( data.B_out ); + expected = new Float32Array( data.B_out ); - out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); t.end(); }); -tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, left, lower, no-transpose, non-unit)', function test( t ) { +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 = cllntanu; + data = racblutanu; - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); - expected = new Float64Array( data.B_out ); + expected = new Float32Array( data.B_out ); - out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); t.end(); }); -tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, left, lower, no-transpose, unit)', function test( t ) { +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 = rllntau; + data = cacblutanu; - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); - expected = new Float64Array( data.B_out ); + expected = new Float32Array( data.B_out ); - out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); t.end(); }); -tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, left, lower, no-transpose, unit)', function test( t ) { +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 = cllntau; + data = racblutau; - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); - expected = new Float64Array( data.B_out ); + expected = new Float32Array( data.B_out ); - out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); t.end(); }); -tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, left, lower, transpose, non-unit)', function test( t ) { +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 = rlltanu; + data = cacblutau; - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); - expected = new Float64Array( data.B_out ); + expected = new Float32Array( data.B_out ); - out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); t.end(); }); -tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, left, lower, transpose, non-unit)', function test( t ) { +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 = clltanu; + data = racbrlntanu; - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); - expected = new Float64Array( data.B_out ); + expected = new Float32Array( data.B_out ); - out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); t.end(); }); -tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, left, lower, transpose, unit)', function test( t ) { +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 = rlltau; + data = cacbrlntanu; - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); - expected = new Float64Array( data.B_out ); + expected = new Float32Array( data.B_out ); - out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); t.end(); }); -tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, left, lower, transpose, unit)', function test( t ) { +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 = clltau; + data = racbrlntau; - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); - expected = new Float64Array( data.B_out ); + expected = new Float32Array( data.B_out ); - out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); t.end(); }); -tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, left, upper, no-transpose, non-unit)', function test( t ) { +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 = rluntanu; + data = cacbrlntau; - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); - expected = new Float64Array( data.B_out ); + expected = new Float32Array( data.B_out ); - out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); t.end(); }); -tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, left, upper, no-transpose, non-unit)', function test( t ) { +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 = cluntanu; + data = racbrltanu; - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); - expected = new Float64Array( data.B_out ); + expected = new Float32Array( data.B_out ); - out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); t.end(); }); -tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, left, upper, no-transpose, unit)', function test( t ) { +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 = rluntau; + data = cacbrltanu; - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); - expected = new Float64Array( data.B_out ); + expected = new Float32Array( data.B_out ); - out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); t.end(); }); -tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, left, upper, no-transpose, unit)', function test( t ) { +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 = cluntau; + data = racbrltau; - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); - expected = new Float64Array( data.B_out ); + expected = new Float32Array( data.B_out ); - out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); t.end(); }); -tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, left, upper, transpose, non-unit)', function test( t ) { +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 = rlutanu; + data = cacbrltau; - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); - expected = new Float64Array( data.B_out ); + expected = new Float32Array( data.B_out ); - out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); t.end(); }); -tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, left, upper, transpose, non-unit)', function test( t ) { +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 = clutanu; + data = racbruntanu; - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); - expected = new Float64Array( data.B_out ); + expected = new Float32Array( data.B_out ); - out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); t.end(); }); -tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, left, upper, transpose, unit)', function test( t ) { +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 = rlutau; + data = cacbruntanu; - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); - expected = new Float64Array( data.B_out ); + expected = new Float32Array( data.B_out ); - out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); t.end(); }); -tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, left, upper, transpose, unit)', function test( t ) { +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 = clutau; + data = racbruntau; - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); - expected = new Float64Array( data.B_out ); + expected = new Float32Array( data.B_out ); - out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); t.end(); }); -tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (row-major, right, lower, no-transpose, non-unit)', function test( t ) { +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 = rrlntanu; + data = cacbruntau; - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); - expected = new Float64Array( data.B_out ); + expected = new Float32Array( data.B_out ); - out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); t.end(); }); -tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (column-major, right, lower, no-transpose, non-unit)', function test( t ) { +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 = crlntanu; + data = racbrutanu; - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); - expected = new Float64Array( data.B_out ); + expected = new Float32Array( data.B_out ); - out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); t.end(); }); -tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (row-major, right, lower, no-transpose, unit)', function test( t ) { +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 = rrlntau; + data = cacbrutanu; - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); - expected = new Float64Array( data.B_out ); + expected = new Float32Array( data.B_out ); - out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); t.end(); }); -tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (column-major, right, lower, no-transpose, unit)', function test( t ) { +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 = crlntau; + data = racbrutau; - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); - expected = new Float64Array( data.B_out ); + expected = new Float32Array( data.B_out ); - out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); t.end(); }); -tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (row-major, right, lower, transpose, non-unit)', function test( t ) { +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 = rrltanu; + data = cacbrutau; - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); - expected = new Float64Array( data.B_out ); + expected = new Float32Array( data.B_out ); - out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); t.end(); }); -tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (column-major, right, lower, transpose, non-unit)', function test( t ) { +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 = crltanu; + data = rarbllntanu; - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); - expected = new Float64Array( data.B_out ); + expected = new Float32Array( data.B_out ); - out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); t.end(); }); -tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (row-major, right, lower, transpose, unit)', function test( t ) { +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 = rrltau; + data = carbllntanu; - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); - expected = new Float64Array( data.B_out ); + expected = new Float32Array( data.B_out ); - out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); t.end(); }); -tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (column-major, right, lower, transpose, unit)', function test( t ) { +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 = crltau; + data = rarbllntau; - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); - expected = new Float64Array( data.B_out ); + expected = new Float32Array( data.B_out ); - out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); t.end(); }); -tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (row-major, right, upper, no-transpose, non-unit)', function test( t ) { +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 = rruntanu; + data = carbllntau; - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); - expected = new Float64Array( data.B_out ); + expected = new Float32Array( data.B_out ); - out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); t.end(); }); -tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (column-major, right, upper, no-transpose, non-unit)', function test( t ) { +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 = cruntanu; + data = rarblltanu; - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); - expected = new Float64Array( data.B_out ); + expected = new Float32Array( data.B_out ); - out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); t.end(); }); -tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (row-major, right, upper, no-transpose, unit)', function test( t ) { +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 = rruntau; + data = carblltanu; - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); - expected = new Float64Array( data.B_out ); + expected = new Float32Array( data.B_out ); - out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); t.end(); }); -tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (column-major, right, upper, no-transpose, unit)', function test( t ) { +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 = cruntau; + data = rarblltau; - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); - expected = new Float64Array( data.B_out ); + expected = new Float32Array( data.B_out ); - out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); t.end(); }); -tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (row-major, right, upper, transpose, non-unit)', function test( t ) { +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 = rrutanu; + data = carblltau; - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); - expected = new Float64Array( data.B_out ); + expected = new Float32Array( data.B_out ); - out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); t.end(); }); -tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (column-major, right, upper, transpose, non-unit)', function test( t ) { +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 = crutanu; + data = rarbluntanu; - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); - expected = new Float64Array( data.B_out ); + expected = new Float32Array( data.B_out ); - out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); t.end(); }); -tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (row-major, right, upper, transpose, unit)', function test( t ) { +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 = rrutau; + data = carbluntanu; - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); - expected = new Float64Array( data.B_out ); + expected = new Float32Array( data.B_out ); - out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); t.end(); }); -tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (column-major, right, upper, transpose, unit)', function test( t ) { +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 = crutau; + data = rarbluntau; - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); - expected = new Float64Array( data.B_out ); + expected = new Float32Array( data.B_out ); - out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); t.end(); }); -tape( 'the function returns a reference to the second input matrix (row-major)', function test( t ) { +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 = rlltau; + data = carbluntau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); + expected = new Float32Array( data.B_out ); - out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); t.end(); }); -tape( 'the function returns a reference to the second input matrix (column-major)', function test( t ) { +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 = clltau; + data = rarblutanu; - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); - out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + expected = new Float32Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); t.end(); }); -tape( 'if either `M` or `N` is `0`, the function returns the second input matrix unchanged (row-major)', function test( t ) { +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 = rlltau; + data = carblutanu; - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); - expected = new Float64Array( data.B ); + expected = new Float32Array( data.B_out ); - out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, 0, data.N, data.alpha, a, data.lda, b, data.ldb ); + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, row-major, left, upper, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarblutau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); - out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, 0, data.alpha, a, data.lda, b, data.ldb ); + expected = new Float32Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, row-major, left, upper, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = carblutau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); t.end(); }); -tape( 'if either `M` or `N` is `0`, the function returns the second input matrix unchanged (column-major)', function test( t ) { +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 = clltau; + data = rarbrlntanu; - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); - expected = new Float64Array( data.B ); + expected = new Float32Array( data.B_out ); - out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, 0, data.N, data.alpha, a, data.lda, b, data.ldb ); + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); - out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, 0, data.alpha, a, data.lda, b, data.ldb ); +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 Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, row-major, right, lower, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbrlntau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); t.end(); }); -tape( 'if `α` is `0`, the function returns the second input matrix filled with zeros (row-major)', function test( t ) { +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 = rlltau; + data = carbrlntau; - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); - expected = new Float64Array( b.length ); + expected = new Float32Array( data.B_out ); - out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, 0.0, a, data.lda, b, data.ldb ); + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, row-major, right, lower, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbrltanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + expected = new Float32Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); t.end(); }); -tape( 'if `α` is `0`, the function returns the second input matrix filled with zeros (column-major)', function test( t ) { +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 = clltau; + data = carbrltanu; - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); - expected = new Float64Array( b.length ); + expected = new Float32Array( data.B_out ); - out = dtrsm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, 0.0, a, data.lda, b, data.ldb ); + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, row-major, right, lower, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbrltau; + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, row-major, right, lower, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = carbrltau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, row-major, right, upper, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbruntanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, row-major, right, upper, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = carbruntanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, row-major, right, upper, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbruntau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, row-major, right, upper, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = carbruntau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, row-major, right, upper, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbrutanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, row-major, right, upper, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = carbrutanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, row-major, right, upper, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbrutau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, row-major, right, upper, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = carbrutau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns a reference to the second input matrix', function test( t ) { + var data; + var out; + var a; + var b; + + data = racbllntanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.end(); +}); + +tape( 'if either `M` or `N` is `0`, the function returns the second input matrix unchanged', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racbllntanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, 0, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, 0, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'if `α` is `0`, the function returns the second input matrix filled with zeros', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racbllntanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( b.length ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, 0.0, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports specifying the strides of the first and second dimensions of `A`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbllntanusa1sa2; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports a negative stride for the first dimension of `A`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbllntanusa1nsa2; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports a negative stride for the second dimension of `A`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbllntanusa1sa2n; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports a negative strides of `A`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbllntanusa1nsa2n; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports specifying an offset parameter for `A`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbllntanuoa; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports specifying the strides of the first and second dimensions of `B`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbllntanusb1sb2; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports a negative stride for the first dimension of `B`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbllntanusb1nsb2; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports a negative stride for the second dimension of `B`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbllntanusb1sb2n; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports a negative strides of `B`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbllntanusb1nsb2n; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports specifying an offset parameter for `B`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbllntanuob; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports complex access patterns (row-major, row-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rrcap; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports complex access patterns (row-major, column-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rccap; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports complex access patterns (column-major, row-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = crcap; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports complex access patterns (column-major, column-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cccap; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); t.end(); }); From 0c1360f168a2792af1bab9cdfcc3ddb9e7aa26fb Mon Sep 17 00:00:00 2001 From: ShabiShett07 Date: Sun, 15 Jun 2025 13:42:24 +0530 Subject: [PATCH 4/9] chore: update implementation --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../blas/base/dtrsm/test/test.ndarray.js | 503 +++++++++--------- 1 file changed, 251 insertions(+), 252 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/test.ndarray.js b/lib/node_modules/@stdlib/blas/base/dtrsm/test/test.ndarray.js index aa5fb840dea7..95f2b355428c 100644 --- a/lib/node_modules/@stdlib/blas/base/dtrsm/test/test.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/test.ndarray.js @@ -1,4 +1,3 @@ - /** * @license Apache-2.0 * @@ -24,7 +23,7 @@ // MODULES // var tape = require( 'tape' ); -var Float32Array = require( '@stdlib/array/float32' ); +var Float64Array = require( '@stdlib/array/float64' ); var dtrsm = require( './../lib/ndarray.js' ); @@ -146,7 +145,7 @@ tape( 'the function throws an error if provided an invalid first argument', func function badValue( value ) { return function badValue() { - dtrsm( value, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, new Float32Array( data.A ), data.strideA1, data.strideA2, data.offsetA, new Float32Array( data.B ), data.strideB1, data.strideB2, data.offsetB ); + dtrsm( value, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, new Float64Array( data.A ), data.strideA1, data.strideA2, data.offsetA, new Float64Array( data.B ), data.strideB1, data.strideB2, data.offsetB ); }; } }); @@ -172,7 +171,7 @@ tape( 'the function throws an error if provided an invalid second argument', fun function badValue( value ) { return function badValue() { - dtrsm( data.side, value, data.transA, data.diag, data.M, data.N, data.alpha, new Float32Array( data.A ), data.strideA1, data.strideA2, data.offsetA, new Float32Array( data.B ), data.strideB1, data.strideB2, data.offsetB ); + dtrsm( data.side, value, data.transA, data.diag, data.M, data.N, data.alpha, new Float64Array( data.A ), data.strideA1, data.strideA2, data.offsetA, new Float64Array( data.B ), data.strideB1, data.strideB2, data.offsetB ); }; } }); @@ -198,7 +197,7 @@ tape( 'the function throws an error if provided an invalid third argument', func function badValue( value ) { return function badValue() { - dtrsm( data.side, data.uplo, value, data.diag, data.M, data.N, data.alpha, new Float32Array( data.A ), data.strideA1, data.strideA2, data.offsetA, new Float32Array( data.B ), data.strideB1, data.strideB2, data.offsetB ); + dtrsm( data.side, data.uplo, value, data.diag, data.M, data.N, data.alpha, new Float64Array( data.A ), data.strideA1, data.strideA2, data.offsetA, new Float64Array( data.B ), data.strideB1, data.strideB2, data.offsetB ); }; } }); @@ -224,7 +223,7 @@ tape( 'the function throws an error if provided an invalid fourth argument', fun function badValue( value ) { return function badValue() { - dtrsm( data.side, data.uplo, data.transA, value, data.M, data.N, data.alpha, new Float32Array( data.A ), data.strideA1, data.strideA2, data.offsetA, new Float32Array( data.B ), data.strideB1, data.strideB2, data.offsetB ); + dtrsm( data.side, data.uplo, data.transA, value, data.M, data.N, data.alpha, new Float64Array( data.A ), data.strideA1, data.strideA2, data.offsetA, new Float64Array( data.B ), data.strideB1, data.strideB2, data.offsetB ); }; } }); @@ -249,7 +248,7 @@ tape( 'the function throws an error if provided an invalid fifth argument', func function badValue( value ) { return function badValue() { - dtrsm( data.side, data.uplo, data.transA, data.diag, value, data.N, data.alpha, new Float32Array( data.A ), data.strideA1, data.strideA2, data.offsetA, new Float32Array( data.B ), data.strideB1, data.strideB2, data.offsetB ); + dtrsm( data.side, data.uplo, data.transA, data.diag, value, data.N, data.alpha, new Float64Array( data.A ), data.strideA1, data.strideA2, data.offsetA, new Float64Array( data.B ), data.strideB1, data.strideB2, data.offsetB ); }; } }); @@ -274,7 +273,7 @@ tape( 'the function throws an error if provided an invalid sixth argument', func function badValue( value ) { return function badValue() { - dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, value, data.alpha, new Float32Array( data.A ), data.strideA1, data.strideA2, data.offsetA, new Float32Array( data.B ), data.strideB1, data.strideB2, data.offsetB ); + dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, value, data.alpha, new Float64Array( data.A ), data.strideA1, data.strideA2, data.offsetA, new Float64Array( data.B ), data.strideB1, data.strideB2, data.offsetB ); }; } }); @@ -297,7 +296,7 @@ tape( 'the function throws an error if provided an invalid thirteenth argument', function badValue( value ) { return function badValue() { - dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, new Float32Array( data.A ), data.strideA1, data.strideA2, data.offsetA, new Float32Array( data.B ), value, data.strideB2, data.offsetB ); + dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, new Float64Array( data.A ), data.strideA1, data.strideA2, data.offsetA, new Float64Array( data.B ), value, data.strideB2, data.offsetB ); }; } }); @@ -320,7 +319,7 @@ tape( 'the function throws an error if provided an invalid fourteenth argument', function badValue( value ) { return function badValue() { - dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, new Float32Array( data.A ), data.strideA1, data.strideA2, data.offsetA, new Float32Array( data.B ), data.strideB1, value, data.offsetB ); + dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, new Float64Array( data.A ), data.strideA1, data.strideA2, data.offsetA, new Float64Array( data.B ), data.strideB1, value, data.offsetB ); }; } }); @@ -334,10 +333,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = racbllntanu; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -354,10 +353,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = cacbllntanu; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -374,10 +373,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = racbllntau; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -394,10 +393,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = cacbllntau; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -414,10 +413,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = racblltanu; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -434,10 +433,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = cacblltanu; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -454,10 +453,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = racblltau; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -474,10 +473,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = cacblltau; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -494,10 +493,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = racbluntanu; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -514,10 +513,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = cacbluntanu; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -534,10 +533,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = racbluntau; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -554,10 +553,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = cacbluntau; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -574,10 +573,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = racblutanu; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -594,10 +593,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = cacblutanu; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -614,10 +613,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = racblutau; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -634,10 +633,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = cacblutau; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -654,10 +653,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = racbrlntanu; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -674,10 +673,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = cacbrlntanu; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -694,10 +693,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = racbrlntau; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -714,10 +713,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = cacbrlntau; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -734,10 +733,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = racbrltanu; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -754,10 +753,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = cacbrltanu; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -774,10 +773,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = racbrltau; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -794,10 +793,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = cacbrltau; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -814,10 +813,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = racbruntanu; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -834,10 +833,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = cacbruntanu; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -854,10 +853,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = racbruntau; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -874,10 +873,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = cacbruntau; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -894,10 +893,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = racbrutanu; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -914,10 +913,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = cacbrutanu; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -934,10 +933,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = racbrutau; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -954,10 +953,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = cacbrutau; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -974,10 +973,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = rarbllntanu; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -994,10 +993,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = carbllntanu; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1014,10 +1013,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = rarbllntau; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1034,10 +1033,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = carbllntau; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1054,10 +1053,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = rarblltanu; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1074,10 +1073,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = carblltanu; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1094,10 +1093,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = rarblltau; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1114,10 +1113,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = carblltau; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1134,10 +1133,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = rarbluntanu; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1154,10 +1153,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = carbluntanu; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1174,10 +1173,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = rarbluntau; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1194,10 +1193,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = carbluntau; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1214,10 +1213,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = rarblutanu; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1234,10 +1233,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = carblutanu; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1254,10 +1253,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = rarblutau; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1274,10 +1273,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = carblutau; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1294,10 +1293,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = rarbrlntanu; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1314,10 +1313,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = carbrlntanu; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1334,10 +1333,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = rarbrlntau; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1354,10 +1353,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = carbrlntau; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1374,10 +1373,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = rarbrltanu; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1394,10 +1393,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = carbrltanu; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1414,10 +1413,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = rarbrltau; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1434,10 +1433,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = carbrltau; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1454,10 +1453,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = rarbruntanu; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1474,10 +1473,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = carbruntanu; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1494,10 +1493,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = rarbruntau; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1514,10 +1513,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = carbruntau; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1534,10 +1533,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = rarbrutanu; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1554,10 +1553,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = carbrutanu; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1574,10 +1573,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = rarbrutau; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1594,10 +1593,10 @@ tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` data = carbrutau; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1613,8 +1612,8 @@ tape( 'the function returns a reference to the second input matrix', function te data = racbllntanu; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1630,10 +1629,10 @@ tape( 'if either `M` or `N` is `0`, the function returns the second input matrix data = racbllntanu; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B ); + expected = new Float64Array( data.B ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, 0, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1655,10 +1654,10 @@ tape( 'if `α` is `0`, the function returns the second input matrix filled with data = racbllntanu; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( b.length ); + expected = new Float64Array( b.length ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, 0.0, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1676,10 +1675,10 @@ tape( 'the function supports specifying the strides of the first and second dime data = rarbllntanusa1sa2; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1696,10 +1695,10 @@ tape( 'the function supports a negative stride for the first dimension of `A`', data = rarbllntanusa1nsa2; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1716,10 +1715,10 @@ tape( 'the function supports a negative stride for the second dimension of `A`', data = rarbllntanusa1sa2n; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1736,10 +1735,10 @@ tape( 'the function supports a negative strides of `A`', function test( t ) { data = rarbllntanusa1nsa2n; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1756,10 +1755,10 @@ tape( 'the function supports specifying an offset parameter for `A`', function t data = rarbllntanuoa; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1776,10 +1775,10 @@ tape( 'the function supports specifying the strides of the first and second dime data = rarbllntanusb1sb2; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1796,10 +1795,10 @@ tape( 'the function supports a negative stride for the first dimension of `B`', data = rarbllntanusb1nsb2; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1816,10 +1815,10 @@ tape( 'the function supports a negative stride for the second dimension of `B`', data = rarbllntanusb1sb2n; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1836,10 +1835,10 @@ tape( 'the function supports a negative strides of `B`', function test( t ) { data = rarbllntanusb1nsb2n; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1856,10 +1855,10 @@ tape( 'the function supports specifying an offset parameter for `B`', function t data = rarbllntanuob; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1876,10 +1875,10 @@ tape( 'the function supports complex access patterns (row-major, row-major)', fu data = rrcap; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1896,10 +1895,10 @@ tape( 'the function supports complex access patterns (row-major, column-major)', data = rccap; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1916,10 +1915,10 @@ tape( 'the function supports complex access patterns (column-major, row-major)', data = crcap; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); @@ -1936,10 +1935,10 @@ tape( 'the function supports complex access patterns (column-major, column-major data = cccap; - a = new Float32Array( data.A ); - b = new Float32Array( data.B ); + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); - expected = new Float32Array( data.B_out ); + expected = new Float64Array( data.B_out ); out = dtrsm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); t.strictEqual( out, b, 'returns expected value' ); From 8ff64f4c2f8f7b6d08aa3f0724b9cf270ed0649d Mon Sep 17 00:00:00 2001 From: ShabiShett07 Date: Sun, 15 Jun 2025 16:43:09 +0530 Subject: [PATCH 5/9] chore: update test cases --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../blas/base/dtrsm/test/fixtures/row_major_l_l_nta_nu.json | 4 ++-- .../blas/base/dtrsm/test/fixtures/row_major_l_l_ta_nu.json | 4 ++-- .../blas/base/dtrsm/test/fixtures/row_major_l_u_nta_nu.json | 4 ++-- .../blas/base/dtrsm/test/fixtures/row_major_l_u_ta_nu.json | 4 ++-- .../blas/base/dtrsm/test/fixtures/row_major_r_l_nta_nu.json | 4 ++-- .../blas/base/dtrsm/test/fixtures/row_major_r_l_ta_nu.json | 4 ++-- .../blas/base/dtrsm/test/fixtures/row_major_r_u_nta_nu.json | 4 ++-- .../blas/base/dtrsm/test/fixtures/row_major_r_u_ta_nu.json | 4 ++-- 8 files changed, 16 insertions(+), 16 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_l_nta_nu.json index f5e0a19378c1..26f38eb16d71 100644 --- a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_l_nta_nu.json +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_l_nta_nu.json @@ -6,7 +6,7 @@ "diag": "non-unit", "M": 3, "N": 3, - "alpha": 1.0, + "alpha": 2.0, "A": [ 1.0, 0.0, 0.0, 2.0, 4.0, 0.0, 3.0, 5.0, 6.0 ], "A_mat": [ [ 1.0, 0.0, 0.0 ], @@ -21,5 +21,5 @@ [ 7.0, 8.0, 9.0 ] ], "ldb": 3, - "B_out": [ 1.0, 2.0, 3.0, 0.5, 0.25, 0.0, 0.25, 0.125, 0.0 ] + "B_out": [ 2.0, 4.0, 6.0, 1.0, 0.5, 0.0, 0.5, 0.25, 0.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_l_ta_nu.json index b0b6c6dc0222..3d236debe33b 100644 --- a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_l_ta_nu.json +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_l_ta_nu.json @@ -6,7 +6,7 @@ "diag": "non-unit", "M": 3, "N": 3, - "alpha": 1.0, + "alpha": 2.0, "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], "A_mat": [ [ 1.0, 0.0, 0.0 ], @@ -21,5 +21,5 @@ [ 1.0, 1.0, 3.0 ] ], "ldb": 3, - "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] + "B_out": [ 0.0, -2.0, 0.0, 0.0, 2.0, -4.0, 2.0, 2.0, 6.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_u_nta_nu.json index 7a2124380498..643c210b672f 100644 --- a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_u_nta_nu.json +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_u_nta_nu.json @@ -6,7 +6,7 @@ "diag": "non-unit", "M": 3, "N": 3, - "alpha": 1.0, + "alpha": 2.0, "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], "A_mat": [ [ 1.0, 1.0, 1.0 ], @@ -21,5 +21,5 @@ [ 1.0, 1.0, 3.0 ] ], "ldb": 3, - "B_out": [ 0.0, -1.0, 0.0, 0.0, 1.0, -2.0, 1.0, 1.0, 3.0 ] + "B_out": [ 0.0, -2.0, 0.0, 0.0, 2.0, -4.0, 2.0, 2.0, 6.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_u_ta_nu.json index 1a495d1724b4..aa82c5ea73a3 100644 --- a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_u_ta_nu.json +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_l_u_ta_nu.json @@ -6,7 +6,7 @@ "diag": "non-unit", "M": 3, "N": 3, - "alpha": 1.0, + "alpha": 2.0, "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], "A_mat": [ [ 1.0, 1.0, 1.0 ], @@ -21,5 +21,5 @@ [ 1.0, 1.0, 3.0 ] ], "ldb": 3, - "B_out": [ 1.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, -1.0, 2.0 ] + "B_out": [ 2.0, 2.0, 2.0, 0.0, 2.0, 0.0, 0.0, -2.0, 4.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_l_nta_nu.json index ddf9097bd983..ad3770fe1fd2 100644 --- a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_l_nta_nu.json +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_l_nta_nu.json @@ -6,7 +6,7 @@ "diag": "non-unit", "M": 3, "N": 3, - "alpha": 1.0, + "alpha": 2.0, "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], "A_mat": [ [ 1.0, 0.0, 0.0 ], @@ -21,5 +21,5 @@ [ 1.0, 1.0, 3.0 ] ], "ldb": 3, - "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] + "B_out": [ 0.0, 0.0, 2.0, -2.0, 2.0, 2.0, 0.0, -4.0, 6.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_l_ta_nu.json index ef1ec1635480..c4c1416831dd 100644 --- a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_l_ta_nu.json +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_l_ta_nu.json @@ -6,7 +6,7 @@ "diag": "non-unit", "M": 3, "N": 3, - "alpha": 1.0, + "alpha": 2.0, "A": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], "A_mat": [ [ 1.0, 0.0, 0.0 ], @@ -21,5 +21,5 @@ [ 1.0, 1.0, 3.0 ] ], "ldb": 3, - "B_out": [ 1.0, 0.0, 0.0, 1.0, 1.0, -1.0, 1.0, 0.0, 2.0 ] + "B_out": [ 2.0, 0.0, 0.0, 2.0, 2.0, -2.0, 2.0, 0.0, 4.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_u_nta_nu.json index 86ac26291989..5ded0b15e373 100644 --- a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_u_nta_nu.json +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_u_nta_nu.json @@ -6,7 +6,7 @@ "diag": "non-unit", "M": 3, "N": 3, - "alpha": 1.0, + "alpha": 2.0, "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], "A_mat": [ [ 1.0, 1.0, 1.0 ], @@ -21,5 +21,5 @@ [ 1.0, 1.0, 3.0 ] ], "ldb": 3, - "B_out": [ 1.0, 0.0, 0.0, 1.0, 1.0, -1.0, 1.0, 0.0, 2.0 ] + "B_out": [ 2.0, 0.0, 0.0, 2.0, 2.0, -2.0, 2.0, 0.0, 4.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_u_ta_nu.json index b0e913a57267..85680a948046 100644 --- a/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_u_ta_nu.json +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/test/fixtures/row_major_r_u_ta_nu.json @@ -6,7 +6,7 @@ "diag": "non-unit", "M": 3, "N": 3, - "alpha": 1.0, + "alpha": 2.0, "A": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], "A_mat": [ [ 1.0, 1.0, 1.0 ], @@ -21,5 +21,5 @@ [ 1.0, 1.0, 3.0 ] ], "ldb": 3, - "B_out": [ 0.0, 0.0, 1.0, -1.0, 1.0, 1.0, 0.0, -2.0, 3.0 ] + "B_out": [ 0.0, 0.0, 2.0, -2.0, 2.0, 2.0, 0.0, -4.0, 6.0 ] } From 18c1983ec8cf20d39064481fcbae08f69fc09c8e Mon Sep 17 00:00:00 2001 From: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> Date: Sun, 15 Jun 2025 18:22:26 +0530 Subject: [PATCH 6/9] chore: minor clean-up Signed-off-by: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> --- lib/node_modules/@stdlib/blas/base/dtrsm/lib/dtrsm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/lib/dtrsm.js b/lib/node_modules/@stdlib/blas/base/dtrsm/lib/dtrsm.js index c9c6dc1a7f27..97387ce0df73 100644 --- a/lib/node_modules/@stdlib/blas/base/dtrsm/lib/dtrsm.js +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/lib/dtrsm.js @@ -83,7 +83,7 @@ function dtrsm( order, side, uplo, transa, diag, M, N, alpha, A, LDA, B, LDB ) { 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. Thirds argument must specify whether the lower or upper triangular matrix is supplied. Value: `%s`.', 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 ) ); From 2123d855987f0153c95bf55d0afbd354ecf8b162 Mon Sep 17 00:00:00 2001 From: ShabiShett07 Date: Sun, 15 Jun 2025 19:03:46 +0530 Subject: [PATCH 7/9] chore: clean-up --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: passed - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- lib/node_modules/@stdlib/blas/base/dtrsm/docs/repl.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/docs/repl.txt b/lib/node_modules/@stdlib/blas/base/dtrsm/docs/repl.txt index 70df8dfd5a93..2538b27240bf 100644 --- a/lib/node_modules/@stdlib/blas/base/dtrsm/docs/repl.txt +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/docs/repl.txt @@ -69,7 +69,7 @@ > 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, 3.0, 1.0 ] + [ 1.0, 2.0, 1.0, 0.0 ] {{alias}}.ndarray(side,uplo,transa,diag,M,N,α,A,sa1,sa2,oa,B,sb1,sb2,ob) @@ -145,7 +145,7 @@ > 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, 3.0, 1.0 ] + [ 1.0, 2.0, 1.0, 0.0 ] See Also -------- From 75101f6febd76a11f4866159239599fce5f8db83 Mon Sep 17 00:00:00 2001 From: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> Date: Sun, 15 Jun 2025 19:40:07 +0530 Subject: [PATCH 8/9] chore: minor clean-up Signed-off-by: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> --- lib/node_modules/@stdlib/blas/base/dtrsm/lib/base.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/lib/base.js b/lib/node_modules/@stdlib/blas/base/dtrsm/lib/base.js index 2ea4c694b771..831bea0ff25a 100644 --- a/lib/node_modules/@stdlib/blas/base/dtrsm/lib/base.js +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/lib/base.js @@ -201,7 +201,7 @@ function dtrsm( side, uplo, transa, diag, M, N, alpha, A, strideA1, strideA2, of ob = offsetB + ( j * sb0 ); if ( alpha !== 1.0 ) { for ( i = 0; i < M; i++ ) { - B[ ob + ( i * sb1 ) ] = B[ ob + ( i * sb1 ) ] * alpha; + B[ ob + ( i * sb1 ) ] *= alpha; } } for ( k = 0; k < M; k++ ) { @@ -259,7 +259,7 @@ function dtrsm( side, uplo, transa, diag, M, N, alpha, A, strideA1, strideA2, of ob = offsetB + ( j * sb0 ); if ( alpha !== 1.0 ) { for ( i = 0; i < M; i++ ) { - B[ ob + ( i * sb1 ) ] = B[ ob + ( i * sb1 ) ] * alpha; + B[ ob + ( i * sb1 ) ] *= alpha; } } for ( i = M - 1; i >= 0; i-- ) { @@ -364,7 +364,7 @@ function dtrsm( side, uplo, transa, diag, M, N, alpha, A, strideA1, strideA2, of if ( nonunit ) { tmp = 1.0 / A[ oa2 ]; for ( i = 0; i < M; i++ ) { - B[ ob + ( i * sb1 ) ] = B[ ob + ( i * sb1 ) ] * tmp; + B[ ob + ( i * sb1 ) ] *= tmp; } } for ( j = k + 1; j < N; j++ ) { @@ -378,7 +378,7 @@ function dtrsm( side, uplo, transa, diag, M, N, alpha, A, strideA1, strideA2, of } if ( alpha !== 1.0 ) { for ( i = 0; i < M; i++ ) { - B[ ob + ( i * sb1 ) ] = B[ ob + ( i * sb1 ) ] * alpha; + B[ ob + ( i * sb1 ) ] *= alpha; } } } From e8606d98bddc14458ea7da3ebac23abce0bdb20e Mon Sep 17 00:00:00 2001 From: ShabiShett07 Date: Sun, 15 Jun 2025 20:52:01 +0530 Subject: [PATCH 9/9] chore: clean-up --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: passed - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../@stdlib/blas/base/dtrsm/docs/repl.txt | 12 +++++----- .../blas/base/dtrsm/docs/types/index.d.ts | 10 ++++---- .../@stdlib/blas/base/dtrsm/lib/base.js | 24 +++++++++---------- .../@stdlib/blas/base/dtrsm/lib/dtrsm.js | 2 +- .../@stdlib/blas/base/dtrsm/lib/index.js | 2 +- .../@stdlib/blas/base/dtrsm/lib/ndarray.js | 4 ++-- 6 files changed, 27 insertions(+), 27 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/docs/repl.txt b/lib/node_modules/@stdlib/blas/base/dtrsm/docs/repl.txt index 2538b27240bf..cc0b25ff4248 100644 --- a/lib/node_modules/@stdlib/blas/base/dtrsm/docs/repl.txt +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/docs/repl.txt @@ -19,14 +19,14 @@ either 'row-major' or 'column-major'. side: string - Specifies whether `op( A )` multiplies `B` from the left or right. + Specifies whether `op( A )` appears on the left or right of `X`. uplo: string Specifies whether `A` is an upper or lower triangular matrix. transa: string - Specifies whether `A` should be transposed, conjugate-transposed, or - not transposed. + Specifies whether `op( A )` should be transposed, conjugate-transposed, + or not transposed. diag: string Specifies whether `A` has a unit diagonal. @@ -86,14 +86,14 @@ Parameters ---------- side: string - Specifies whether `op( A )` multiplies `B` from the left or right. + Specifies whether `op( A )` appears on the left or right of `X`. uplo: string Specifies whether `A` is an upper or lower triangular matrix. transa: string - Specifies whether `A` should be transposed, conjugate-transposed, or - not transposed. + Specifies whether `op( A )` should be transposed, conjugate-transposed, + or not transposed. diag: string Specifies whether `A` has a unit diagonal. diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/base/dtrsm/docs/types/index.d.ts index a31935324f40..0ae59ba3ff36 100644 --- a/lib/node_modules/@stdlib/blas/base/dtrsm/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/docs/types/index.d.ts @@ -32,7 +32,7 @@ interface Routine { * @param order - storage layout of `A` and `B` * @param side - specifies whether `op( A )` appears on the left or right of `X` * @param uplo - specifies whether the upper or lower triangular part of the matrix `A` is supplied - * @param transa - specifies the form of `op( A )` to be used in matrix multiplication + * @param transa - specifies whether `op( A )` should be transposed, conjugate-transposed, or not transposed * @param diag - specifies whether or not `A` is unit triangular * @param M - number of rows in `B` * @param N - number of columns in `B` @@ -59,7 +59,7 @@ interface Routine { * * @param side - specifies whether `op( A )` appears on the left or right of `X` * @param uplo - specifies whether the upper or lower triangular part of the matrix `A` is supplied - * @param transa - specifies the form of `op( A )` to be used in matrix multiplication + * @param transa - specifies whether `op( A )` should be transposed, conjugate-transposed, or not transposed * @param diag - specifies whether or not `A` is unit triangular * @param M - number of rows in `B` * @param N - number of columns in `B` @@ -80,7 +80,7 @@ interface Routine { * var A = new Float64Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); * var B = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); * - * dtrsm.ndarray( left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 ); + * dtrsm.ndarray( 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 ); * // B => [ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ]` */ ndarray( side: OperationSide, uplo: MatrixTriangle, transa: TransposeOperation, diag: DiagonalType, M: number, N: number, alpha: number, A: Float64Array, strideA1: number, strideA2: number, offsetA: number, B: Float64Array, strideB1: number, strideB2: number, offsetB: number ): Float64Array; @@ -92,7 +92,7 @@ interface Routine { * @param order - storage layout of `A` and `B` * @param side - specifies whether `op( A )` appears on the left or right of `X` * @param uplo - specifies whether the upper or lower triangular part of the matrix `A` is supplied -* @param transa - specifies the form of `op( A )` to be used in matrix multiplication +* @param transa - specifies whether `op( A )` should be transposed, conjugate-transposed, or not transposed * @param diag - specifies whether or not `A` is unit triangular * @param M - number of rows in `B` * @param N - number of columns in `B` @@ -118,7 +118,7 @@ interface Routine { * var A = new Float64Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); * var B = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); * -* dtrsm.ndarray( left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 ); +* dtrsm.ndarray( 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 ); * // B => [ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ] */ declare var dtrsm: Routine; diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/lib/base.js b/lib/node_modules/@stdlib/blas/base/dtrsm/lib/base.js index 831bea0ff25a..fb022fb86970 100644 --- a/lib/node_modules/@stdlib/blas/base/dtrsm/lib/base.js +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/lib/base.js @@ -97,7 +97,7 @@ function zeros( M, N, X, strideX1, strideX2, offsetX ) { // TODO: consider movin * @private * @param {string} side - specifies whether `op( A )` appears on the left or right of `X` * @param {string} uplo - specifies whether the upper or lower triangular part of the matrix `A` is supplied -* @param {string} transa - specifies the form of `op( A )` to be used in matrix multiplication +* @param {string} transa - specifies whether `op( A )` should be transposed, conjugate-transposed, or not transposed * @param {string} diag - specifies whether or not `A` is unit triangular * @param {NonNegativeInteger} M - number of rows in `B` * @param {NonNegativeInteger} N - number of columns in `B` @@ -118,7 +118,7 @@ function zeros( M, N, X, strideX1, strideX2, offsetX ) { // TODO: consider movin * var A = new Float64Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); * var B = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); * -* dtrsm( left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 ); +* dtrsm( 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 ); * // B => [ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ] */ function dtrsm( side, uplo, transa, diag, M, N, alpha, A, strideA1, strideA2, offsetA, B, strideB1, strideB2, offsetB ) { // eslint-disable-line max-params @@ -172,7 +172,7 @@ function dtrsm( side, uplo, transa, diag, M, N, alpha, A, strideA1, strideA2, of tmp = 1.0 / A[ oa2 ]; for ( i = 0; i < M; i++ ) { ob2 = offsetB + ( i * sb0 ) + ( k * sb1 ); - B[ ob2 ] = B[ ob2 ] * tmp; + B[ ob2 ] *= tmp; } } for ( j = 0; j < k; j++ ) { @@ -187,7 +187,7 @@ function dtrsm( side, uplo, transa, diag, M, N, alpha, A, strideA1, strideA2, of if ( alpha !== 1.0 ) { for ( i = 0; i < M; i++ ) { ob2 = offsetB + ( i * sb0 ) + ( k * sb1 ); - B[ ob2 ] = B[ ob2 ] * alpha; + B[ ob2 ] *= alpha; } } } @@ -209,7 +209,7 @@ function dtrsm( side, uplo, transa, diag, M, N, alpha, A, strideA1, strideA2, of ob2 = ob + ( k * sb1 ); if ( B[ ob2 ] !== 0.0 ) { if ( nonunit ) { - B[ ob2 ] = B[ ob2 ] / A[ oa2 ]; + B[ ob2 ] /= A[ oa2 ]; } for ( i = k + 1; i < M; i++ ) { oa2 = offsetA + ( i * sa1 ) + ( k * sa0 ); @@ -228,7 +228,7 @@ function dtrsm( side, uplo, transa, diag, M, N, alpha, A, strideA1, strideA2, of for ( i = 0; i < M; i++ ) { ob2 = offsetB + ( i * sb0 ) + ( j * sb1 ); if ( alpha !== 1.0 ) { - B[ ob2 ] = B[ ob2 ] * alpha; + B[ ob2 ] *= alpha; } } for ( k = 0; k < j; k++ ) { @@ -245,7 +245,7 @@ function dtrsm( side, uplo, transa, diag, M, N, alpha, A, strideA1, strideA2, of tmp = 1.0 / A[ oa2 ]; for ( i = 0; i < M; i++ ) { ob2 = offsetB + ( i * sb0 ) + ( j * sb1 ); - B[ ob2 ] = B[ ob2 ] * tmp; + B[ ob2 ] *= tmp; } } } @@ -270,7 +270,7 @@ function dtrsm( side, uplo, transa, diag, M, N, alpha, A, strideA1, strideA2, of } if ( nonunit ) { oa2 = offsetA + ( i * sa0 ) + ( i * sa1 ); - B[ ob2 ] = B[ ob2 ] / A[ oa2 ]; + B[ ob2 ] /= A[ oa2 ]; } B[ ob + ( i * sb1 ) ] = B[ ob2 ]; } @@ -291,7 +291,7 @@ function dtrsm( side, uplo, transa, diag, M, N, alpha, A, strideA1, strideA2, of tmp -= A[ oa + ( i * sa0 ) ] * B[ ob + ( k * sb0 ) ]; } if ( nonunit ) { - tmp = tmp / A[ oa2 ]; + tmp /= A[ oa2 ]; } B[ ob + ( i * sb0 ) ] = tmp; } @@ -306,7 +306,7 @@ function dtrsm( side, uplo, transa, diag, M, N, alpha, A, strideA1, strideA2, of for ( i = 0; i < M; i++ ) { ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); if ( alpha !== 1.0 ) { - B[ ob2 ] = B[ ob2 ] * alpha; + B[ ob2 ] *= alpha; } } for ( k = j + 1; k < N; k++ ) { @@ -323,7 +323,7 @@ function dtrsm( side, uplo, transa, diag, M, N, alpha, A, strideA1, strideA2, of tmp = 1.0 / A[ oa2 ]; for ( i = 0; i < M; i++ ) { ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); - B[ ob2 ] = B[ ob2 ] * tmp; + B[ ob2 ] *= tmp; } } } @@ -345,7 +345,7 @@ function dtrsm( side, uplo, transa, diag, M, N, alpha, A, strideA1, strideA2, of ob2 = ob + ( k * sb0 ); if ( B[ ob2 ] !== 0.0 ) { if ( nonunit ) { - B[ ob2 ] = B[ ob2 ] / A[ oa2 ]; + B[ ob2 ] /= A[ oa2 ]; } for ( i= 0; i < k; i++ ) { oa = offsetA + ( i * sa1 ) + ( k * sa0 ); diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/lib/dtrsm.js b/lib/node_modules/@stdlib/blas/base/dtrsm/lib/dtrsm.js index 97387ce0df73..125f5899b06a 100644 --- a/lib/node_modules/@stdlib/blas/base/dtrsm/lib/dtrsm.js +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/lib/dtrsm.js @@ -40,7 +40,7 @@ var base = require( './base.js' ); * @param {string} order - storage layout of `A` and `B` * @param {string} side - specifies whether `op( A )` appears on the left or right of `X` * @param {string} uplo - specifies whether the upper or lower triangular part of the matrix `A` is supplied -* @param {string} transa - specifies the form of `op( A )` to be used in matrix multiplication +* @param {string} transa - specifies whether `op( A )` should be transposed, conjugate-transposed, or not transposed * @param {string} diag - specifies whether or not `A` is unit triangular * @param {NonNegativeInteger} M - number of rows in `B` * @param {NonNegativeInteger} N - number of columns in `B` diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/lib/index.js b/lib/node_modules/@stdlib/blas/base/dtrsm/lib/index.js index c7e7a061c114..dd758aa9ca3a 100644 --- a/lib/node_modules/@stdlib/blas/base/dtrsm/lib/index.js +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/lib/index.js @@ -40,7 +40,7 @@ * var A = new Float64Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); * var B = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); * -* dtrsm.ndarray( left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 ); +* dtrsm.ndarray( 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 ); * // B => [ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ] */ diff --git a/lib/node_modules/@stdlib/blas/base/dtrsm/lib/ndarray.js b/lib/node_modules/@stdlib/blas/base/dtrsm/lib/ndarray.js index ca56a4b33b82..0c88536b08c3 100644 --- a/lib/node_modules/@stdlib/blas/base/dtrsm/lib/ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/dtrsm/lib/ndarray.js @@ -35,7 +35,7 @@ var base = require( './base.js' ); * * @param {string} side - specifies whether `op( A )` appears on the left or right of `X` * @param {string} uplo - specifies whether the upper or lower triangular part of the matrix `A` is supplied -* @param {string} transa - specifies the form of `op( A )` to be used in matrix multiplication +* @param {string} transa - specifies whether `op( A )` should be transposed, conjugate-transposed, or not transposed * @param {string} diag - specifies whether or not `A` is unit triangular * @param {NonNegativeInteger} M - number of rows in `B` * @param {NonNegativeInteger} N - number of columns in `B` @@ -64,7 +64,7 @@ var base = require( './base.js' ); * var A = new Float64Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); * var B = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); * -* dtrsm( left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 ); +* dtrsm( 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 ); * // B => [ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ] */ function dtrsm( side, uplo, transa, diag, M, N, alpha, A, strideA1, strideA2, offsetA, B, strideB1, strideB2, offsetB ) { // eslint-disable-line max-len, max-params