From c247a67acb7b6ba3fc5b1096b203f36f095818d2 Mon Sep 17 00:00:00 2001 From: ShabiShett07 Date: Tue, 17 Jun 2025 10:01:45 +0530 Subject: [PATCH 01/11] feat: add blas/base/dsymm --- 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: passed - task: lint_package_json status: passed - task: lint_repl_help status: passed - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: passed - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: passed - 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: passed - task: lint_license_headers status: passed --- --- .../@stdlib/blas/base/dsymm/README.md | 259 +++ .../blas/base/dsymm/benchmark/benchmark.js | 105 ++ .../base/dsymm/benchmark/benchmark.ndarray.js | 105 ++ .../@stdlib/blas/base/dsymm/docs/repl.txt | 158 ++ .../blas/base/dsymm/docs/types/index.d.ts | 138 ++ .../blas/base/dsymm/docs/types/test.ts | 585 +++++++ .../@stdlib/blas/base/dsymm/examples/index.js | 39 + .../@stdlib/blas/base/dsymm/lib/base.js | 328 ++++ .../@stdlib/blas/base/dsymm/lib/dsymm.js | 140 ++ .../@stdlib/blas/base/dsymm/lib/index.js | 72 + .../@stdlib/blas/base/dsymm/lib/main.js | 35 + .../@stdlib/blas/base/dsymm/lib/ndarray.js | 95 ++ .../@stdlib/blas/base/dsymm/package.json | 68 + .../dsymm/test/fixtures/ca_cb_cc_l_l.json | 36 + .../dsymm/test/fixtures/ca_cb_cc_l_u.json | 36 + .../dsymm/test/fixtures/ca_cb_cc_r_l.json | 37 + .../dsymm/test/fixtures/ca_cb_cc_r_u.json | 37 + .../dsymm/test/fixtures/ca_cb_rc_l_l.json | 36 + .../dsymm/test/fixtures/ca_cb_rc_l_u.json | 36 + .../dsymm/test/fixtures/ca_cb_rc_r_l.json | 37 + .../dsymm/test/fixtures/ca_cb_rc_r_u.json | 37 + .../dsymm/test/fixtures/ca_rb_cc_l_l.json | 36 + .../dsymm/test/fixtures/ca_rb_cc_l_u.json | 36 + .../dsymm/test/fixtures/ca_rb_cc_r_l.json | 36 + .../dsymm/test/fixtures/ca_rb_cc_r_u.json | 36 + .../dsymm/test/fixtures/ca_rb_rc_l_l.json | 36 + .../dsymm/test/fixtures/ca_rb_rc_l_u.json | 36 + .../dsymm/test/fixtures/ca_rb_rc_r_l.json | 36 + .../dsymm/test/fixtures/ca_rb_rc_r_u.json | 36 + .../dsymm/test/fixtures/column_major_l_l.json | 31 + .../dsymm/test/fixtures/column_major_l_u.json | 31 + .../dsymm/test/fixtures/column_major_r_l.json | 31 + .../dsymm/test/fixtures/column_major_r_u.json | 31 + .../dsymm/test/fixtures/ra_cb_cc_l_l.json | 36 + .../dsymm/test/fixtures/ra_cb_cc_l_u.json | 36 + .../dsymm/test/fixtures/ra_cb_cc_r_l.json | 37 + .../dsymm/test/fixtures/ra_cb_cc_r_u.json | 37 + .../dsymm/test/fixtures/ra_cb_rc_l_l.json | 36 + .../dsymm/test/fixtures/ra_cb_rc_l_u.json | 36 + .../dsymm/test/fixtures/ra_cb_rc_r_l.json | 37 + .../dsymm/test/fixtures/ra_cb_rc_r_u.json | 37 + .../dsymm/test/fixtures/ra_rb_cc_l_l.json | 36 + .../dsymm/test/fixtures/ra_rb_cc_l_u.json | 36 + .../dsymm/test/fixtures/ra_rb_cc_r_l.json | 36 + .../dsymm/test/fixtures/ra_rb_cc_r_u.json | 36 + .../dsymm/test/fixtures/ra_rb_rc_l_l.json | 36 + .../ra_rb_rc_l_l_complex_access_pattern.json | 36 + .../dsymm/test/fixtures/ra_rb_rc_l_l_oa.json | 36 + .../dsymm/test/fixtures/ra_rb_rc_l_l_ob.json | 36 + .../dsymm/test/fixtures/ra_rb_rc_l_l_oc.json | 36 + .../test/fixtures/ra_rb_rc_l_l_sa1_sa2.json | 36 + .../test/fixtures/ra_rb_rc_l_l_sa1_sa2n.json | 36 + .../test/fixtures/ra_rb_rc_l_l_sa1n_sa2.json | 36 + .../test/fixtures/ra_rb_rc_l_l_sa1n_sa2n.json | 36 + .../test/fixtures/ra_rb_rc_l_l_sb1_sb2.json | 36 + .../test/fixtures/ra_rb_rc_l_l_sb1_sb2n.json | 36 + .../test/fixtures/ra_rb_rc_l_l_sb1n_sb2.json | 36 + .../test/fixtures/ra_rb_rc_l_l_sb1n_sb2n.json | 36 + .../dsymm/test/fixtures/ra_rb_rc_l_u.json | 36 + .../test/fixtures/ra_rb_rc_l_u_sc1_sc2.json | 36 + .../test/fixtures/ra_rb_rc_l_u_sc1_sc2n.json | 36 + .../test/fixtures/ra_rb_rc_l_u_sc1n_sc2.json | 36 + .../test/fixtures/ra_rb_rc_l_u_sc1n_sc2n.json | 36 + .../dsymm/test/fixtures/ra_rb_rc_r_l.json | 36 + .../dsymm/test/fixtures/ra_rb_rc_r_u.json | 36 + .../dsymm/test/fixtures/row_major_l_l.json | 31 + .../dsymm/test/fixtures/row_major_l_u.json | 31 + .../dsymm/test/fixtures/row_major_r_l.json | 31 + .../dsymm/test/fixtures/row_major_r_u.json | 31 + .../blas/base/dsymm/test/test.dsymm.js | 671 ++++++++ .../@stdlib/blas/base/dsymm/test/test.js | 82 + .../blas/base/dsymm/test/test.ndarray.js | 1460 +++++++++++++++++ 72 files changed, 6324 insertions(+) create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/README.md create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/benchmark/benchmark.ndarray.js create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/examples/index.js create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/lib/base.js create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/lib/dsymm.js create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/lib/index.js create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/lib/main.js create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/lib/ndarray.js create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/package.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_cc_l_l.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_cc_l_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_cc_r_l.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_cc_r_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_rc_l_l.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_rc_l_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_rc_r_l.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_rc_r_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_cc_l_l.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_cc_l_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_cc_r_l.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_cc_r_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_rc_l_l.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_rc_l_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_rc_r_l.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_rc_r_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/column_major_l_l.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/column_major_l_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/column_major_r_l.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/column_major_r_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_cc_l_l.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_cc_l_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_cc_r_l.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_cc_r_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_rc_l_l.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_rc_l_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_rc_r_l.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_rc_r_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_cc_l_l.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_cc_l_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_cc_r_l.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_cc_r_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_complex_access_pattern.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_oa.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_ob.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_oc.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sa1_sa2.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sa1_sa2n.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sa1n_sa2.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sa1n_sa2n.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sb1_sb2.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sb1_sb2n.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sb1n_sb2.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sb1n_sb2n.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_u_sc1_sc2.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_u_sc1_sc2n.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_u_sc1n_sc2.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_u_sc1n_sc2n.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_r_l.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_r_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/row_major_l_l.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/row_major_l_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/row_major_r_l.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/row_major_r_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/test.dsymm.js create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/test.js create mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/test.ndarray.js diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/README.md b/lib/node_modules/@stdlib/blas/base/dsymm/README.md new file mode 100644 index 000000000000..06d0c5a6377e --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/README.md @@ -0,0 +1,259 @@ + + +# dsymm + +> Perform the matrix-matrix operation `C = α*A*B + β*C` or `C = α*B*A + β*C` where `α` and `β` are scalars, `A` is a symmetric matrix and `B` and `C` are `M` by `N` matrices. + +
+ +## Usage + +```javascript +var dsymm = require( '@stdlib/blas/base/dsymm' ); +``` + +#### dsymm( ord, side, uplo, M, N, α, A, lda, B, ldb, β, C, ldc ) + +Performs the matrix-matrix operation `C = α*A*B + β*C` or `C = α*B*A + β*C` where `α` and `β` are scalars, `A` is a symmetric matrix and `B` and `C` are `M` by `N` matrices. + +```javascript +var Float64Array = require( '@stdlib/array/float64' ); + +var A = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ] ); +var B = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); +var C = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); + +dsymm( 'row-major', 'left', 'lower', 3, 3, 1.0, A, 3, B, 3, 1.0, C, 3 ); +// C => [ 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0 ] +``` + +The function has the following parameters: + +- **ord**: storage layout. +- **side**: specifies whether `A` appears on the left or right of `B`. +- **uplo**: specifies whether the upper or lower triangular part of the symmetric matrix `A` is supplied. +- **M**: number of rows in the matrix `op(A)` and in the matrix `C`. +- **N**: number of columns in the matrix `op(B)` and in the matrix `C`. +- **α**: scalar constant. +- **A**: first input matrix stored in linear memory as a [`Float64Array`][mdn-float64array]. +- **lda**: stride of the first dimension of `A` (leading dimension of `A`). +- **B**: second input matrix stored in linear memory as a [`Float64Array`][mdn-float64array]. +- **ldb**: stride of the first dimension of `B` (leading dimension of `B`). +- **β**: scalar constant +- **C**: third input matrix stored in linear memory as a [`Float64Array`][mdn-float64array]. +- **ldc**: stride of the first dimension of `C` (leading dimension of `C`). + +The stride parameters determine how elements in the input arrays are accessed at runtime. For example, to perform matrix multiplication of two subarrays + + + +```javascript +var Float64Array = require( '@stdlib/array/float64' ); + +var A = new Float64Array( [ 1.0, 1.0, 1.0, 0.0, 0.0, 0.0, 1.0, 2.0, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 3.0, 0.0, 0.0, 0.0 ] ); +var B = new Float64Array( [ 1.0, 1.0, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.0 ] ); +var C = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); + +dsymm( 'row-major', 'left', 'lower', 3, 3, 1.0, A, 6, B, 6, 1.0, C, 3 ); +// C => [ 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0 ] +``` + + + +#### dsymm.ndarray( side, uplo, M, N, α, A, sa1, sa2, oa, B, sb1, sb2, ob, β, C, sc1, sc2, oc ) + +Performs the matrix-matrix operation `C = α*A*B + β*C` or `C = α*B*A + β*C` using alternative indexing semantics and where `α` and `β` are scalars, `A` is a symmetric matrix and `B` and `C` are `M` by `N` matrices. + +```javascript +var Float64Array = require( '@stdlib/array/float64' ); + +var A = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ] ); +var B = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); +var C = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); + +dsymm( 'left', 'lower', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0, 1.0, C, 3, 1, 0 ); +// C => [ 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0 ] +``` + +The function has the following additional parameters: + +- **sa1**: stride of the first dimension of `A`. +- **sa2**: stride of the second dimension of `A`. +- **oa**: starting index for `A`. +- **sb1**: stride of the first dimension of `B`. +- **sb2**: stride of the second dimension of `B`. +- **ob**: starting index for `B`. +- **sc1**: stride of the first dimension of `C`. +- **sc2**: stride of the second dimension of `C`. +- **oc**: starting index for `C`. + +While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying buffer, the offset parameters support indexing semantics based on starting indices. For example, + +```javascript +var Float64Array = require( '@stdlib/array/float64' ); + +var A = new Float64Array( [ 0.0, 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ] ); +var B = new Float64Array( [ 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); +var C = new Float64Array( [ 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); + +dsymm( 'left', 'lower', 3, 3, 1.0, A, 3, 1, 1, B, 3, 1, 2, 1.0, C, 3, 1, 3 ); +// C => [ 0.0, 0.0, 0.0, 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0 ] +``` + +
+ + + +
+ +## Notes + +- `dsymm()` corresponds to the [BLAS][blas] level 3 function [`dsymm`][blas-dsymm]. + +
+ + + +
+ +## Examples + + + +```javascript +var discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); +var dsymm = require( '@stdlib/blas/base/dsymm' ); + +var opts = { + 'dtype': 'float64' +}; + +var M = 3; +var N = 3; + +var A = discreteUniform( M*N, 0, 10, opts ); +var B = discreteUniform( M*N, 0, 10, opts ); +var C = discreteUniform( M*N, 0, 10, opts ); + +dsymm( 'row-major', 'left', 'lower', M, N, 1.0, A, M, B, N, 1.0, C, N ); +console.log( C ); + +dsymm.ndarray( 'left', 'lower', M, N, 1.0, A, M, 1, 0, B, N, 1, 0, 1.0, C, N, 1, 0 ); +console.log( C ); +``` + +
+ + + + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/blas/base/dsymm.h" +``` + +#### TODO + +TODO. + +```c +TODO +``` + +TODO + +```c +TODO +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +TODO +``` + +
+ + + +
+ + + + + + + + + + + + + + diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/dsymm/benchmark/benchmark.js new file mode 100644 index 000000000000..4c4b6448c68e --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/benchmark/benchmark.js @@ -0,0 +1,105 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var bench = require( '@stdlib/bench' ); +var uniform = require( '@stdlib/random/array/uniform' ); +var isnan = require( '@stdlib/math/base/assert/is-nan' ); +var pow = require( '@stdlib/math/base/special/pow' ); +var floor = require( '@stdlib/math/base/special/floor' ); +var pkg = require( './../package.json' ).name; +var dsymm = require( './../lib/dsymm.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 = uniform( N*N, -10.0, 10.0, options ); + var C = uniform( N*N, -10.0, 10.0, options ); + 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 = dsymm( 'row-major', 'left', 'lower', N, N, 1.0, A, N, B, N, 1.0, C, 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 = 5; // 10^max + + for ( i = min; i <= max; i++ ) { + len = floor( pow( pow( 10, i ), 1.0/2.0 ) ); + f = createBenchmark( len ); + bench( pkg+':order(A)=row-major,order(B)=row-major,order(C)=row-major,trans(A)=false,trans(B)=false,size='+(len*len), f ); + } +} + +main(); diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/dsymm/benchmark/benchmark.ndarray.js new file mode 100644 index 000000000000..7a37d3a5b2f5 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/benchmark/benchmark.ndarray.js @@ -0,0 +1,105 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var bench = require( '@stdlib/bench' ); +var uniform = require( '@stdlib/random/array/uniform' ); +var isnan = require( '@stdlib/math/base/assert/is-nan' ); +var pow = require( '@stdlib/math/base/special/pow' ); +var floor = require( '@stdlib/math/base/special/floor' ); +var pkg = require( './../package.json' ).name; +var dsymm = 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 = uniform( N*N, -10.0, 10.0, options ); + var C = uniform( N*N, -10.0, 10.0, options ); + 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 = dsymm( 'left', 'lower', N, N, 1.0, A, N, 1, 0, B, N, 1, 0, 1.0, C, N, 1, 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 = 5; // 10^max + + for ( i = min; i <= max; i++ ) { + len = floor( pow( pow( 10, i ), 1.0/2.0 ) ); + f = createBenchmark( len ); + bench( pkg+':ndarray:order(A)=row-major,order(B)=row-major,order(C)=row-major,trans(A)=false,trans(B)=false,size='+(len*len), f ); + } +} + +main(); diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/docs/repl.txt b/lib/node_modules/@stdlib/blas/base/dsymm/docs/repl.txt new file mode 100644 index 000000000000..d07e8109de3c --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/docs/repl.txt @@ -0,0 +1,158 @@ + +{{alias}}( ord, side, uplo, M, N, α, A, lda, B, ldb, β, C, ldc ) + Performs the matrix-matrix operation `C = α*A*B + β*C` or `C = α*B*A + β*C` + where `α` and `β` are scalars, `A` is a symmetric matrix and `B` and `C` are + `M` by `N` matrices. + + 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 `C` unchanged. + + If `α` equals `0` and `β` equals `1`, the function returns `C` unchanged. + + 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 `A` multiplies `B` from the left or right. + + uplo: string + Specifies whether `A` is an upper or lower triangular matrix. + + M: integer + Number of rows in the matrix `C`. + + N: integer + Number of rows in the matrix `C`. + + α: number + Scalar constant. + + A: Float64Array + First 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`). + + β: number + Scalar constant. + + C: Float64Array + Third matrix. + + ldc: integer + Stride of the first dimension of `C` (a.k.a., leading dimension of the + matrix `C`). + + Returns + ------- + C: Float64Array + Third matrix. + + Examples + -------- + // Standard usage: + > var A = new {{alias:@stdlib/array/float64}}( [ 1.0, 1.0, 1.0, 2.0 ] ); + > var B = new {{alias:@stdlib/array/float64}}( [ 1.0, 1.0, 1.0, 1.0 ] ); + > var C = new {{alias:@stdlib/array/float64}}( [ 1.0, 1.0, 1.0, 1.0 ] ); + > var ord = 'row-major'; + > var side = 'left'; + > var uplo = 'lower'; + > {{alias}}( ord, side, uplo, 2, 2, 1.0, A, 2, B, 2, 1.0, C, 2 ) + [ 3.0, 3.0, 4.0, 4.0 ] + + +{{alias}}.ndarray(side,uplo,M,N,α,A,sa1,sa2,oa,B,sb1,sb2,ob,β,C,sc1,sc2,oc) + Performs the matrix-matrix operation `C = α*A*B + β*C` or `C = α*B*A + β*C` + using alternative indexing semantics and where `α` and `β` are scalars, `A` + is a symmetric matrix and `B` and `C` are `M` by `N` matrices. + + 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 `A` multiplies `B` from the left or right. + + uplo: string + Specifies whether `A` is an upper or lower triangular matrix. + + M: integer + Number of rows in the matrix `C`. + + N: integer + Number of rows in the matrix `C`. + + α: number + Scalar constant. + + A: Float64Array + First 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`. + + β: number + Scalar constant. + + C: Float64Array + Third matrix. + + sc1: integer + Stride of the first dimension of `C`. + + sc2: integer + Stride of the second dimension of `C`. + + oc: integer + Starting index for `C`. + + Returns + ------- + C: Float64Array + Third matrix. + + Examples + -------- + > var A = new {{alias:@stdlib/array/float64}}( [ 1.0, 1.0, 1.0, 2.0 ] ); + > var B = new {{alias:@stdlib/array/float64}}( [ 1.0, 1.0, 1.0, 1.0 ] ); + > var C = new {{alias:@stdlib/array/float64}}( [ 1.0, 1.0, 1.0, 1.0 ] ); + > var side = 'left'; + > var uplo = 'lower'; + > {{alias}}.ndarray(side,uplo,2,2,1.0,A,2,1,0,B,2,1,0,1.0,C,2,1,0) + [ 3.0, 3.0, 4.0, 4.0 ] + + See Also + -------- diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/base/dsymm/docs/types/index.d.ts new file mode 100644 index 000000000000..956c4d6deb7c --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/docs/types/index.d.ts @@ -0,0 +1,138 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2024 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, OperationSide } from '@stdlib/types/blas'; + +/** +* Interface describing `dsymm`. +*/ +interface Routine { + /** + * Performs the matrix-matrix operation `C = α*A*B + β*C` or `C = α*B*A + β*C` where `α` and `β` are scalars, `A` is a symmetric matrix and `B` and `C` are `M` by `N` matrices. + * + * @param order - storage layout + * @param side - specifies whether `A` appears on the left or right of `B` + * @param uplo - specifies whether the upper or lower triangular part of the symmetric matrix `A` is supplied + * @param M - number of rows in the matrix `C` + * @param N - number of columns in the matrix `C` + * @param alpha - scalar constant + * @param A - first matrix + * @param LDA - stride of the first dimension of `A` (a.k.a., leading dimension of the matrix `A`) + * @param B - second matrix + * @param LDB - stride of the first dimension of `B` (a.k.a., leading dimension of the matrix `B`) + * @param beta - scalar constant + * @param C - third matrix + * @param LDC - stride of the first dimension of `C` (a.k.a., leading dimension of the matrix `C`) + * @returns `C` + * + * @example + * var Float64Array = require( '@stdlib/array/float64' ); + * + * var A = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ] ); + * var B = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); + * var C = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); + * + * dsymm( 'row-major', 'left', 'lower', 3, 3, 1.0, A, 3, B, 3, 1.0, C, 3 ); + * // C => [ 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0 ] + */ + ( order: Layout, side: OperationSide, uplo: MatrixTriangle, M: number, N: number, alpha: number, A: Float64Array, LDA: number, B: Float64Array, LDB: number, beta: number, C: Float64Array, LDC: number ): Float64Array; + + /** + * Performs the matrix-matrix operation `C = α*A*B + β*C` or `C = α*B*A + β*C` using alternative indexing semantics and where `α` and `β` are scalars, `A` is a symmetric matrix and `B` and `C` are `M` by `N` matrices. + * + * @param side - specifies whether `A` appears on the left or right of `B` + * @param uplo - specifies whether the upper or lower triangular part of the symmetric matrix `A` is supplied + * @param M - number of rows in the matrix `C` + * @param N - number of columns in the matrix `C` + * @param alpha - scalar constant + * @param A - first matrix + * @param strideA1 - stride of the first dimension of `A` + * @param strideA2 - stride of the second dimension of `A` + * @param offsetA - starting index for `A` + * @param B - second matrix + * @param strideB1 - stride of the first dimension of `B` + * @param strideB2 - stride of the second dimension of `B` + * @param offsetB - starting index for `B` + * @param beta - scalar constant + * @param C - third matrix + * @param strideC1 - stride of the first dimension of `C` + * @param strideC2 - stride of the second dimension of `C` + * @param offsetC - starting index for `C` + * @returns `C` + * + * @example + * var Float64Array = require( '@stdlib/array/float64' ); + * + * var A = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ] ); + * var B = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); + * var C = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); + * + * dsymm.ndarray( 'left', 'lower', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0, 1.0, C, 3, 1, 0 ); + * // C => [ 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0 ] + */ + ndarray( side: OperationSide, uplo: MatrixTriangle, M: number, N: number, alpha: number, A: Float64Array, strideA1: number, strideA2: number, offsetA: number, B: Float64Array, strideB1: number, strideB2: number, offsetB: number, beta: number, C: Float64Array, strideC1: number, strideC2: number, offsetC: number ): Float64Array; +} + +/** +* Performs the matrix-matrix operation `C = α*A*B + β*C` or `C = α*B*A + β*C` where `α` and `β` are scalars, `A` is a symmetric matrix and `B` and `C` are `M` by `N` matrices. +* +* @param order - storage layout +* @param side - specifies whether `A` appears on the left or right of `B` +* @param uplo - specifies whether the upper or lower triangular part of the symmetric matrix `A` is supplied +* @param M - number of rows in the matrix `C` +* @param N - number of columns in the matrix `C` +* @param alpha - scalar constant +* @param A - first matrix +* @param LDA - stride of the first dimension of `A` (a.k.a., leading dimension of the matrix `A`) +* @param B - second matrix +* @param LDB - stride of the first dimension of `B` (a.k.a., leading dimension of the matrix `B`) +* @param beta - scalar constant +* @param C - third matrix +* @param LDC - stride of the first dimension of `C` (a.k.a., leading dimension of the matrix `C`) +* @returns `C` +* +* @example +* var Float64Array = require( '@stdlib/array/float64' ); +* +* var A = new Float64Array( [ 1.0, 3.0, 2.0, 4.0 ] ); +* var B = new Float64Array( [ 1.0, 0.0, 1.0, 1.0 ] ); +* var C = new Float64Array( [ 1.0, 3.0, 2.0, 4.0 ] ); +* +* dsymm( 'row-major', 'left', 'lower', 3, 3, 1.0, A, 3, B, 3, 1.0, C, 3 ); +* // C => [ 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0 ] +* +* @example +* var Float64Array = require( '@stdlib/array/float64' ); +* +* var A = new Float64Array( [ 1.0, 3.0, 2.0, 4.0 ] ); +* var B = new Float64Array( [ 1.0, 0.0, 1.0, 1.0 ] ); +* var C = new Float64Array( [ 1.0, 3.0, 2.0, 4.0 ] ); +* +* dsymm.ndarray( 'left', 'lower', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0, 1.0, C, 3, 1, 0 ); +* // C => [ 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0 ] +*/ +declare var dsymm: Routine; + + +// EXPORTS // + +export = dsymm; diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/docs/types/test.ts b/lib/node_modules/@stdlib/blas/base/dsymm/docs/types/test.ts new file mode 100644 index 000000000000..a67b098427f2 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/docs/types/test.ts @@ -0,0 +1,585 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2024 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 dsymm = require( './index' ); + + +// TESTS // + +// The function returns a Float64Array... +{ + const A = new Float64Array( 25 ); + const B = new Float64Array( 25 ); + const C = new Float64Array( 25 ); + + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectType Float64Array +} + +// The compiler throws an error if the function is provided a first argument which is not a string... +{ + const A = new Float64Array( 25 ); + const B = new Float64Array( 25 ); + const C = new Float64Array( 25 ); + + dsymm( 10, 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( true, 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( false, 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( null, 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( undefined, 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( [], 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( {}, 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( ( A: number ): number => A, 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a second argument which is not a string... +{ + const A = new Float64Array( 25 ); + const B = new Float64Array( 25 ); + const C = new Float64Array( 25 ); + + dsymm( 'row-major', 10, 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', true, 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', false, 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', null, 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', undefined, 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', [ '1' ], 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', {}, 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', ( A: number ): number => A, 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a third argument which is not a string... +{ + const A = new Float64Array( 25 ); + const B = new Float64Array( 25 ); + const C = new Float64Array( 25 ); + + dsymm( 'row-major', 'left', 10, 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', true, 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', false, 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', null, 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', undefined, 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', [ '1' ], 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', {}, 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', ( A: number ): number => A, 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a fourth argument which is not a number... +{ + const A = new Float64Array( 25 ); + const B = new Float64Array( 25 ); + const C = new Float64Array( 25 ); + + dsymm( 'row-major', 'left', 'lower', '10', 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', true, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', false, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', null, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', undefined, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', [], 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', {}, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', ( A: number ): number => A, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a fifth argument which is not a number... +{ + const A = new Float64Array( 25 ); + const B = new Float64Array( 25 ); + const C = new Float64Array( 25 ); + + dsymm( 'row-major', 'left', 'lower', 5, '10', 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, true, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, false, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, null, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, undefined, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, [], 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, {}, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, ( A: number ): number => A, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a sixth argument which is not a number... +{ + const A = new Float64Array( 25 ); + const B = new Float64Array( 25 ); + const C = new Float64Array( 25 ); + + dsymm( 'row-major', 'left', 'lower', 5, 5, '10', A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, true, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, false, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, null, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, undefined, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, [], A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, {}, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, ( A: number ): number => A, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError +} + +// The compiler throws an error if the function is provided an seventh argument which is not a Float64Array... +{ + const B = new Float64Array( 25 ); + const C = new Float64Array( 25 ); + + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, 10, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, '10', 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, true, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, false, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, null, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, undefined, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, [ '1' ], 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, {}, 5, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, ( A: number ): number => A, 5, B, 5, 1.0, C, 5 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a eighth argument which is not a number... +{ + const A = new Float64Array( 25 ); + const B = new Float64Array( 25 ); + const C = new Float64Array( 25 ); + + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, '10', B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, true, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, false, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, null, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, undefined, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, [], B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, {}, B, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, ( A: number ): number => A, B, 5, 1.0, C, 5 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a ninth argument which is not a Float64Array... +{ + const A = new Float64Array( 25 ); + const C = new Float64Array( 25 ); + + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, 10, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, '10', 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, true, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, false, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, null, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, undefined, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, [ '1' ], 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, {}, 5, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, ( A: number ): number => A, 5, 1.0, C, 5 ); // $ExpectError +} + +// The compiler throws an error if the function is provided an tenth argument which is not a number... +{ + const A = new Float64Array( 25 ); + const B = new Float64Array( 25 ); + const C = new Float64Array( 25 ); + + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, '10', 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, true, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, false, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, null, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, undefined, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, [], 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, {}, 1.0, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, ( A: number ): number => A, 1.0, C, 5 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a eleventh argument which is not a number... +{ + const A = new Float64Array( 25 ); + const B = new Float64Array( 25 ); + const C = new Float64Array( 25 ); + + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, '10', C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, true, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, false, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, null, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, undefined, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, [], C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, {}, C, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, ( A: number ): number => A, C, 5 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a twelfth argument which is not a Float64Array... +{ + const A = new Float64Array( 25 ); + const B = new Float64Array( 25 ); + + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, 10, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, '10', 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, true, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, false, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, null, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, undefined, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, [ '1' ], 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, {}, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, ( A: number ): number => A, 5 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a thirteenth argument which is not a number... +{ + const A = new Float64Array( 25 ); + const B = new Float64Array( 25 ); + const C = new Float64Array( 25 ); + + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, '10' ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, true ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, false ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, null ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, undefined ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, [] ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, {} ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, ( A: number ): number => A ); // $ExpectError +} + +// The compiler throws an error if the function is provided an unsupported number of arguments... +{ + const A = new Float64Array( 25 ); + const B = new Float64Array( 25 ); + const C = new Float64Array( 25 ); + + dsymm(); // $ExpectError + dsymm( 'row-major' ); // $ExpectError + dsymm( 'row-major', 'left' ); // $ExpectError + dsymm( 'row-major', 'left', 'lower' ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0 ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C ); // $ExpectError + dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5, 10 ); // $ExpectError +} + +// Attached to main export is an `ndarray` method which returns a Float64Array... +{ + const A = new Float64Array( 25 ); + const B = new Float64Array( 25 ); + const C = new Float64Array( 25 ); + + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 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( 25 ); + const B = new Float64Array( 25 ); + const C = new Float64Array( 25 ); + + dsymm.ndarray( 10, 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( true, 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( false, 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( null, 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( undefined, 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( [ '1' ], 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( {}, 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( ( A: number ): number => A, 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 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( 25 ); + const B = new Float64Array( 25 ); + const C = new Float64Array( 25 ); + + dsymm.ndarray( 'left', 10, 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', true, 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', false, 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', null, 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', undefined, 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', [ '1' ], 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', {}, 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', ( A: number ): number => A, 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a third argument which is not a number... +{ + const A = new Float64Array( 25 ); + const B = new Float64Array( 25 ); + const C = new Float64Array( 25 ); + + dsymm.ndarray( 'left', 'lower', '10', 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', true, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', false, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', null, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', undefined, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', [], 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', {}, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', ( A: number ): number => A, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a fourth argument which is not a number... +{ + const A = new Float64Array( 25 ); + const B = new Float64Array( 25 ); + const C = new Float64Array( 25 ); + + dsymm.ndarray( 'left', 'lower', 5, '10', 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, true, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, false, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, null, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, undefined, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, [], 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, {}, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, ( A: number ): number => A, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 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( 25 ); + const B = new Float64Array( 25 ); + const C = new Float64Array( 25 ); + + dsymm.ndarray( 'left', 'lower', 5, '10', 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, true, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, false, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, null, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, undefined, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, [], 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, {}, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, ( A: number ): number => A, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a sixth argument which is not a number... +{ + const B = new Float64Array( 25 ); + const C = new Float64Array( 25 ); + + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, 10, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, '10', 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, true, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, false, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, null, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, undefined, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, [ '1' ], 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, {}, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, ( A: number ): number => A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided an seventh argument which is not a number... +{ + const A = new Float64Array( 25 ); + const B = new Float64Array( 25 ); + const C = new Float64Array( 25 ); + + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, '10', 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, true, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, false, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, null, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, undefined, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, [], 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, {}, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, ( A: number ): number => A, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a eighth argument which is not a number... +{ + const A = new Float64Array( 25 ); + const B = new Float64Array( 25 ); + const C = new Float64Array( 25 ); + + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, '10', 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, true, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, false, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, null, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, undefined, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, [], 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, {}, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, ( A: number ): number => A, 0, B, 5, 1, 0, 1.0, C, 5, 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( 25 ); + const B = new Float64Array( 25 ); + const C = new Float64Array( 25 ); + + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, '10', B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, true, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, false, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, null, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, undefined, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, [], B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, {}, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, ( A: number ): number => A, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided an tenth argument which is not a Float64Array... +{ + const A = new Float64Array( 25 ); + const C = new Float64Array( 25 ); + + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, 10, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, '10', 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, true, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, false, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, null, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, undefined, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, [ '1' ], 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, {}, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, ( A: number ): number => A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a eleventh argument which is not a number... +{ + const A = new Float64Array( 25 ); + const B = new Float64Array( 25 ); + const C = new Float64Array( 25 ); + + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, '10', 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, true, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, false, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, null, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, undefined, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, [], 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, {}, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, ( A: number ): number => A, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a twelfth argument which is not a number... +{ + const A = new Float64Array( 25 ); + const B = new Float64Array( 25 ); + const C = new Float64Array( 25 ); + + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, '10', 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, true, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, false, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, null, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, undefined, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, [], 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, {}, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, ( A: number ): number => A, 0, 1.0, C, 5, 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( 25 ); + const B = new Float64Array( 25 ); + const C = new Float64Array( 25 ); + + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, '10', 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, true, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, false, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, null, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, undefined, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, [], 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, {}, 1.0, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, ( A: number ): number => A, 1.0, C, 5, 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( 25 ); + const B = new Float64Array( 25 ); + const C = new Float64Array( 25 ); + + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, '10', C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, true, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, false, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, null, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, undefined, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, [], C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, {}, C, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, ( A: number ): number => A, C, 5, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a fifteenth argument which is not a Float64Array... +{ + const A = new Float64Array( 25 ); + const B = new Float64Array( 25 ); + + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, 10, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, '10', 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, true, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, false, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, null, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, undefined, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, [ '1' ], 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, {}, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, ( A: number ): number => A, 5, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a sixteenth argument which is not a number... +{ + const A = new Float64Array( 25 ); + const B = new Float64Array( 25 ); + const C = new Float64Array( 25 ); + + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, '10', 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, true, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, false, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, null, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, undefined, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, [], 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, {}, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, ( A: number ): number => A, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided an seventeenth argument which is not a number... +{ + const A = new Float64Array( 25 ); + const B = new Float64Array( 25 ); + const C = new Float64Array( 25 ); + + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, '10', 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, true, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, false, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, null, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, undefined, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, [], 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, {}, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, ( A: number ): number => A, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a eighteenth argument which is not a number... +{ + const A = new Float64Array( 25 ); + const B = new Float64Array( 25 ); + const C = new Float64Array( 25 ); + + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, '10' ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, true ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, false ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, null ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, undefined ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, [] ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, {} ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, ( A: number ): number => A ); // $ExpectError +} + +// The compiler throws an error if the `ndarray` method is provided an unsupported number of arguments... +{ + const A = new Float64Array( 25 ); + const B = new Float64Array( 25 ); + const C = new Float64Array( 25 ); + + dsymm.ndarray(); // $ExpectError + dsymm.ndarray( 'left' ); // $ExpectError + dsymm.ndarray( 'left', 'lower' ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 5 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1 ); // $ExpectError + dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0, 10 ); // $ExpectError +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/examples/index.js b/lib/node_modules/@stdlib/blas/base/dsymm/examples/index.js new file mode 100644 index 000000000000..90c8f044ecb4 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/examples/index.js @@ -0,0 +1,39 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 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 dsymm = require( './../lib' ); + +var opts = { + 'dtype': 'float64' +}; + +var M = 3; +var N = 3; + +var A = discreteUniform( M*N, 0, 10, opts ); +var B = discreteUniform( M*N, 0, 10, opts ); +var C = discreteUniform( M*N, 0, 10, opts ); + +dsymm( 'row-major', 'left', 'lower', M, N, 1.0, A, M, B, N, 1.0, C, N ); +console.log( C ); + +dsymm.ndarray( 'left', 'lower', M, N, 1.0, A, M, 1, 0, B, N, 1, 0, 1.0, C, N, 1, 0 ); +console.log( C ); diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/lib/base.js b/lib/node_modules/@stdlib/blas/base/dsymm/lib/base.js new file mode 100644 index 000000000000..106488acffed --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/lib/base.js @@ -0,0 +1,328 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 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-params */ + +'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; +} + +/** +* Scales each element in a matrix by a scalar `β`. +* +* @private +* @param {NonNegativeInteger} M - number of rows +* @param {NonNegativeInteger} N - number of columns +* @param {number} beta - scalar +* @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 ] ); +* +* scal( 2, 3, 5.0, X, 3, 1, 0 ); +* // X => [ 5.0, 10.0, 15.0, 20.0, 25.0, 30.0 ] +* +* @example +* var Float64Array = require( '@stdlib/array/float64' ); +* +* var X = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); +* +* scal( 2, 3, 5.0, X, 1, 2, 0 ); +* // X => [ 5.0, 10.0, 15.0, 20.0, 25.0, 30.0 ] +*/ +function scal( M, N, beta, 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 ] *= beta; + ix += dx0; + } + ix += dx1; + } + return X; +} + + +// MAIN // + +/** +* Performs the matrix-matrix operation `C = α*A*B + β*C` or `C = α*B*A + β*C` where `α` and `β` are scalars, `A` is a symmetric matrix and B and C are `M` by `N` matrices. +* +* @private +* @param {string} side - specifies whether `A` appears on the left or right of `B` +* @param {string} uplo - specifies whether the upper or lower triangular part of the symmetric matrix `A` is supplied +* @param {NonNegativeInteger} M - number of rows in the matrix `C` +* @param {NonNegativeInteger} N - number of columns in the matrix `C` +* @param {number} alpha - scalar constant +* @param {Float64Array} A - first matrix +* @param {integer} strideA1 - stride of the first dimension of `A` +* @param {integer} strideA2 - stride of the second dimension of `A` +* @param {NonNegativeInteger} offsetA - starting index for `A` +* @param {Float64Array} B - second matrix +* @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` +* @param {number} beta - scalar constant +* @param {Float64Array} C - third matrix +* @param {integer} strideC1 - stride of the first dimension of `C` +* @param {integer} strideC2 - stride of the second dimension of `C` +* @param {NonNegativeInteger} offsetC - starting index for `C` +* @returns {Float64Array} `C` +* +* @example +* var Float64Array = require( '@stdlib/array/float64' ); +* +* var A = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ] ); +* var B = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); +* var C = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); +* +* dsymm( 'left', 'lower', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0, 1.0, C, 3, 1, 0 ); +* // C => [ 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0 ] +*/ +function dsymm( side, uplo, M, N, alpha, A, strideA1, strideA2, offsetA, B, strideB1, strideB2, offsetB, beta, C, strideC1, strideC2, offsetC ) { + var isrma; + var tmp; + var sa0; + var sa1; + var sb0; + var sb1; + var sc0; + var sc1; + var oa2; + var idx; + 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 ] ); + + // Check whether we can early return... + if ( M === 0 || N === 0 || ( ( beta === 1.0 ) && ( alpha === 0.0 ) ) ) { + return C; + } + 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; + sc0 = strideC2; + sc1 = strideC1; + } 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; + sc0 = strideC1; + sc1 = strideC2; + } + if ( beta === 0.0 ) { + C = zeros( M, N, C, strideC1, strideC2, offsetC ); + } else if ( beta !== 1.0 ) { + C = scal( M, N, beta, C, strideC1, strideC2, offsetC ); + } + // Check whether we can early return... + if ( alpha === 0.0 ) { + return C; + } + oa = offsetA; + ob = offsetB; + if ( + ( isrma && side === 'left' && uplo === 'upper' ) || + ( !isrma && side === 'right' && uplo === 'lower' ) + ) { + for ( i = 0; i < M; i++ ) { + for ( j = 0; j < N; j++ ) { + tmp = 0.0; + for ( k = 0; k < i; k++ ) { + oa2 = A[ oa + ( k * sa1 ) + ( i * sa0 ) ]; + tmp += oa2 * B[ ob + ( k * sb1 ) + ( j * sb0 ) ]; + } + for ( k = i; k < M; k++ ) { + oa2 = A[ oa + ( i * sa1 ) + ( k * sa0 ) ]; + tmp += oa2 * B[ ob + ( k * sb1 ) + ( j * sb0 ) ]; + } + idx = offsetC + ( i * sc1 ) + ( j * sc0 ); + C[ idx ] += alpha * tmp; + } + } + return C; + } + if ( + ( isrma && side === 'left' && uplo === 'lower' ) || + ( !isrma && side === 'right' && uplo === 'upper' ) + ) { + for ( i = 0; i < M; i++ ) { + for ( j = 0; j < N; j++ ) { + tmp = 0.0; + for ( k = 0; k < i; k++ ) { + oa2 = A[ oa + ( i * sa1 ) + ( k * sa0 ) ]; + tmp += oa2 * B[ ob + ( k * sb1 ) + ( j * sb0 ) ]; + } + for ( k = i; k < M; k++ ) { + oa2 = A[ oa + ( k * sa1 ) + ( i * sa0 ) ]; + tmp += oa2 * B[ ob + ( k * sb1 ) + ( j * sb0 ) ]; + } + idx = offsetC + ( i * sc1 ) + ( j * sc0 ); + C[ idx ] += alpha * tmp; + } + } + return C; + } + if ( + ( isrma && side === 'right' && uplo === 'upper' ) || + ( !isrma && side === 'left' && uplo === 'lower' ) + ) { + for ( i = 0; i < M; i++ ) { + for ( j = 0; j < N; j++ ) { + tmp = 0.0; + for ( k = 0; k < j; k++ ) { + oa2 = A[ oa + ( k * sa1 ) + ( j * sa0 ) ]; + tmp += B[ ob + ( i * sb1 ) + ( k * sb0 ) ] * oa2; + } + for ( k = j; k < N; k++ ) { + oa2 = A[ oa + ( j * sa1 ) + ( k * sa0 ) ]; + tmp += B[ ob + ( i * sb1 ) + ( k * sb0 ) ] * oa2; + } + idx = offsetC + ( i * sc1 ) + ( j * sc0 ); + C[ idx ] += alpha * tmp; + } + } + return C; + } + // ( isrma && side === 'right' && uplo === 'lower' ) || ( !isrma && side === 'left' && uplo === 'upper' ) + for ( i = 0; i < M; i++ ) { + for ( j = 0; j < N; j++ ) { + tmp = 0.0; + for ( k = 0; k < j; k++ ) { + oa2 = A[ oa + ( j * sa1 ) + ( k * sa0 ) ]; + tmp += B[ ob + ( i * sb1 ) + ( k * sb0 ) ] * oa2; + } + for ( k = j; k < N; k++ ) { + oa2 = A[ oa + ( k * sa1 ) + ( j * sa0 ) ]; + tmp += B[ ob + ( i * sb1 ) + ( k * sb0 ) ] * oa2; + } + idx = offsetC + ( i * sc1 ) + ( j * sc0 ); + C[ idx ] += alpha * tmp; + } + } + return C; +} + + +// EXPORTS // + +module.exports = dsymm; diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/lib/dsymm.js b/lib/node_modules/@stdlib/blas/base/dsymm/lib/dsymm.js new file mode 100644 index 000000000000..b954ad6a6360 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/lib/dsymm.js @@ -0,0 +1,140 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 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 isRowMajor = require( '@stdlib/ndarray/base/assert/is-row-major-string' ); +var isColumnMajor = require( '@stdlib/ndarray/base/assert/is-column-major-string' ); +var format = require( '@stdlib/string/format' ); +var base = require( './base.js' ); + + +// MAIN // + +/** +* Performs the matrix-matrix operation `C = α*A*B + β*C` or `C = α*B*A + β*C` where `α` and `β` are scalars, `A` is a symmetric matrix and `B` and `C` are `M` by `N` matrices. +* +* @param {string} order - storage layout +* @param {string} side - specifies whether `A` appears on the left or right of `B` +* @param {string} uplo - specifies whether the upper or lower triangular part of the symmetric matrix `A` is supplied +* @param {NonNegativeInteger} M - number of rows in the matrix `op(A)` and in the matrix `C` +* @param {NonNegativeInteger} N - number of columns in the matrix `op(B)` and in the matrix `C` +* @param {number} alpha - scalar constant +* @param {Float64Array} A - first matrix +* @param {PositiveInteger} LDA - stride of the first dimension of `A` (a.k.a., leading dimension of the matrix `A`) +* @param {Float64Array} B - second matrix +* @param {PositiveInteger} LDB - stride of the first dimension of `B` (a.k.a., leading dimension of the matrix `B`) +* @param {number} beta - scalar constant +* @param {Float64Array} C - third matrix +* @param {PositiveInteger} LDC - stride of the first dimension of `C` (a.k.a., leading dimension of the matrix `C`) +* @throws {TypeError} first argument must be a valid order +* @throws {TypeError} second argument must be a valid transpose operation +* @throws {TypeError} third argument must be a valid transpose operation +* @throws {RangeError} fourth argument must be a nonnegative integer +* @throws {RangeError} fifth argument must be a nonnegative integer +* @throws {RangeError} eighth argument must be greater than or equal to max(1,M) when `A` is on the left of `B` and max(1,N) otherwise +* @throws {RangeError} tenth argument must be greater than or equal to max(1,M) +* @throws {RangeError} thirteenth argument must be greater than or equal to max(1,M) +* @returns {Float64Array} `C` +* +* @example +* var Float64Array = require( '@stdlib/array/float64' ); +* +* var A = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ] ); +* var B = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); +* var C = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); +* +* dsymm( 'row-major', 'left', 'lower', 3, 3, 1.0, A, 3, B, 3, 1.0, C, 3 ); +* // C => [ 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0 ] +*/ +function dsymm( order, side, uplo, M, N, alpha, A, LDA, B, LDB, beta, C, LDC ) { // eslint-disable-line max-params + var nrowsa; + var isrm; + var iscm; + var val; + var sa1; + var sa2; + var sb1; + var sb2; + var sc1; + var sc2; + + if ( !isLayout( order ) ) { + throw new TypeError( format( 'invalid argument. First argument must be a valid order. Value: `%s`.', order ) ); + } + if ( !isOperationSide( side ) ) { + throw new TypeError( format( 'invalid argument. Second argument must be a valid side. Value: `%s`.', side ) ); + } + if ( !isMatrixTriangle( uplo ) ) { + throw new TypeError( format( 'invalid argument. Third argument must specify whether the lower or upper triangular matrix is supplied. Value: `%s`.', uplo ) ); + } + if ( M < 0 ) { + throw new RangeError( format( 'invalid argument. Fourth argument must be a nonnegative integer. Value: `%d`.', M ) ); + } + if ( N < 0 ) { + throw new RangeError( format( 'invalid argument. Fifth argument must be a nonnegative integer. Value: `%d`.', M ) ); + } + if ( side === 'right' ) { + nrowsa = N; + } else { + nrowsa = M; + } + if ( LDA < max( 1, nrowsa ) ) { + throw new RangeError( format( 'invalid argument. Eighth argument must be greater than or equal to max(1,%d). Value: `%d`.', nrowsa, LDA ) ); + } + if ( isrm ) { + val = N; + } else { + val = M; + } + if ( LDB < max( 1, val ) ) { + throw new RangeError( format( 'invalid argument. Tenth argument must be greater than or equal to max(1,%d). Value: `%d`.', val, LDB ) ); + } + if ( LDC < max( 1, val ) ) { + throw new RangeError( format( 'invalid argument. Thirteenth argument must be greater than or equal to max(1,%d). Value: `%d`.', val, LDC ) ); + } + isrm = isRowMajor( order ); + iscm = isColumnMajor( order ); + if ( iscm ) { + sa1 = 1; + sa2 = LDA; + sb1 = 1; + sb2 = LDB; + sc1 = 1; + sc2 = LDC; + } else { // order === 'row-major' + sa1 = LDA; + sa2 = 1; + sb1 = LDB; + sb2 = 1; + sc1 = LDC; + sc2 = 1; + } + return base( side, uplo, M, N, alpha, A, sa1, sa2, 0, B, sb1, sb2, 0, beta, C, sc1, sc2, 0 ); // eslint-disable-line max-len +} + + +// EXPORTS // + +module.exports = dsymm; diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/lib/index.js b/lib/node_modules/@stdlib/blas/base/dsymm/lib/index.js new file mode 100644 index 000000000000..78b8999f2ff6 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/lib/index.js @@ -0,0 +1,72 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 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 level 3 routine to perform the matrix-matrix operation `C = α*A*B + β*C` or `C = α*B*A + β*C` where `α` and `β` are scalars, `A` is a symmetric matrix and `B` and `C` are `M` by `N` matrices. +* +* @module @stdlib/blas/base/dsymm +* +* @example +* var Float64Array = require( '@stdlib/array/float64' ); +* var dsymm = require( '@stdlib/blas/base/dsymm' ); +* +* var A = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ] ); +* var B = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); +* var C = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); +* +* dsymm( 'row-major', 'left', 'lower', 3, 3, 1.0, A, 3, B, 3, 1.0, C, 3 ); +* // C => [ 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0 ] +* +* @example +* var Float64Array = require( '@stdlib/array/float64' ); +* var dsymm = require( '@stdlib/blas/base/dsymm' ); +* +* var A = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ] ); +* var B = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); +* var C = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); +* +* dsymm.ndarray( 'left', 'lower', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0, 1.0, C, 3, 1, 0 ); +* // C => [ 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.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 dsymm; +var tmp = tryRequire( join( __dirname, './native.js' ) ); +if ( isError( tmp ) ) { + dsymm = main; +} else { + dsymm = tmp; +} + + +// EXPORTS // + +module.exports = dsymm; + +// exports: { "ndarray": "dsymm.ndarray" } diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/lib/main.js b/lib/node_modules/@stdlib/blas/base/dsymm/lib/main.js new file mode 100644 index 000000000000..290f1de6c336 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/lib/main.js @@ -0,0 +1,35 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 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 dsymm = require( './dsymm.js' ); +var ndarray = require( './ndarray.js' ); + + +// MAIN // + +setReadOnly( dsymm, 'ndarray', ndarray ); + + +// EXPORTS // + +module.exports = dsymm; diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/lib/ndarray.js b/lib/node_modules/@stdlib/blas/base/dsymm/lib/ndarray.js new file mode 100644 index 000000000000..687c1c2bd87c --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/lib/ndarray.js @@ -0,0 +1,95 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 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 format = require( '@stdlib/string/format' ); +var base = require( './base.js' ); + + +// MAIN // + +/** +* Performs the matrix-matrix operation `C = α*A*B + β*C` or `C = α*B*A + β*C` where `α` and `β` are scalars, `A` is a symmetric matrix and `B` and `C` are `M` by `N` matrices. +* +* @param {string} side - specifies whether `A` appears on the left or right of `B` +* @param {string} uplo - specifies whether the upper or lower triangular part of the symmetric matrix `A` is supplied +* @param {NonNegativeInteger} M - number of rows in the matrix `C` +* @param {NonNegativeInteger} N - number of columns in the matrix `C` +* @param {number} alpha - scalar constant +* @param {Float64Array} A - first matrix +* @param {integer} strideA1 - stride of the first dimension of `A` +* @param {integer} strideA2 - stride of the second dimension of `A` +* @param {NonNegativeInteger} offsetA - starting index for `A` +* @param {Float64Array} B - second matrix +* @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` +* @param {number} beta - scalar constant +* @param {Float64Array} C - third matrix +* @param {integer} strideC1 - stride of the first dimension of `C` +* @param {integer} strideC2 - stride of the second dimension of `C` +* @param {NonNegativeInteger} offsetC - starting index for `C` +* @throws {TypeError} first argument must be a valid transpose operation +* @throws {TypeError} second argument must be a valid transpose operation +* @throws {RangeError} third argument must be a nonnegative integer +* @throws {RangeError} fourth argument must be a nonnegative integer +* @throws {RangeError} sixteenth argument must be non-zero +* @throws {RangeError} seventeenth argument must be non-zero +* @returns {Float64Array} `C` +* +* @example +* var Float64Array = require( '@stdlib/array/float64' ); +* +* var A = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ] ); +* var B = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); +* var C = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); +* +* dsymm( 'left', 'lower', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0, 1.0, C, 3, 1, 0 ); +* // C => [ 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0 ] +*/ +function dsymm( side, uplo, M, N, alpha, A, strideA1, strideA2, offsetA, B, strideB1, strideB2, offsetB, beta, C, strideC1, strideC2, offsetC ) { // eslint-disable-line max-params, max-len + 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 ( M < 0 ) { + throw new RangeError( format( 'invalid argument. Third argument must be a nonnegative integer. Value: `%d`.', M ) ); + } + if ( N < 0 ) { + throw new RangeError( format( 'invalid argument. Fourth argument must be a nonnegative integer. Value: `%d`.', M ) ); + } + if ( strideC1 === 0 ) { + throw new RangeError( format( 'invalid argument. Sixteenth argument must be non-zero. Value: `%d`.', strideC1 ) ); + } + if ( strideC2 === 0 ) { + throw new RangeError( format( 'invalid argument. Seventeenth argument must be non-zero. Value: `%d`.', strideC2 ) ); + } + return base( side, uplo, M, N, alpha, A, strideA1, strideA2, offsetA, B, strideB1, strideB2, offsetB, beta, C, strideC1, strideC2, offsetC ); // eslint-disable-line max-len +} + + +// EXPORTS // + +module.exports = dsymm; diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/package.json b/lib/node_modules/@stdlib/blas/base/dsymm/package.json new file mode 100644 index 000000000000..f0ada41e2428 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/package.json @@ -0,0 +1,68 @@ +{ + "name": "@stdlib/blas/base/dsymm", + "version": "0.0.0", + "description": "Perform the matrix-matrix operation `C = α*A*B + β*C` or `C = α*B*A + β*C` where `α` and `β` are scalars, `A` is a symmetric matrix and B and C are `M` by `N` matrices", + "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", + "dsymm", + "linear", + "algebra", + "subroutines", + "array", + "ndarray", + "float64", + "double", + "float64array" + ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_cc_l_l.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_cc_l_l.json new file mode 100644 index 000000000000..e5f6040cdf8d --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_cc_l_l.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 1, + "strideC2": 3, + "offsetC": 0, + "C_out": [ 45.0, 43.0, 64.0, 53.0, 52.0, 79.0, 61.0, 61.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_cc_l_u.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_cc_l_u.json new file mode 100644 index 000000000000..23e2cf01c19e --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_cc_l_u.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 1, + "strideC2": 3, + "offsetC": 0, + "C_out": [ 45.0, 43.0, 64.0, 53.0, 52.0, 79.0, 61.0, 61.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_cc_r_l.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_cc_r_l.json new file mode 100644 index 000000000000..965513a1e1e5 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_cc_r_l.json @@ -0,0 +1,37 @@ +{ + "order": "column-major", + "side": "right", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 1, + "strideC2": 3, + "offsetC": 0, + "C_out": [ 21.0, 45.0, 69.0, 21.0, 48.0, 75.0, 32.0, 77.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_cc_r_u.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_cc_r_u.json new file mode 100644 index 000000000000..861245296cbd --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_cc_r_u.json @@ -0,0 +1,37 @@ +{ + "order": "column-major", + "side": "right", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 1, + "strideC2": 3, + "offsetC": 0, + "C_out": [ 21.0, 45.0, 69.0, 21.0, 48.0, 75.0, 32.0, 77.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_rc_l_l.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_rc_l_l.json new file mode 100644 index 000000000000..ae91928f65d7 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_rc_l_l.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_rc_l_u.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_rc_l_u.json new file mode 100644 index 000000000000..ceaaf4c11e93 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_rc_l_u.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_rc_r_l.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_rc_r_l.json new file mode 100644 index 000000000000..451ba8dd764d --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_rc_r_l.json @@ -0,0 +1,37 @@ +{ + "order": "column-major", + "side": "right", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 21.0, 21.0, 32.0, 45.0, 48.0, 77.0, 69.0, 75.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_rc_r_u.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_rc_r_u.json new file mode 100644 index 000000000000..bc099dc8dd45 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_rc_r_u.json @@ -0,0 +1,37 @@ +{ + "order": "column-major", + "side": "right", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 21.0, 21.0, 32.0, 45.0, 48.0, 77.0, 69.0, 75.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_cc_l_l.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_cc_l_l.json new file mode 100644 index 000000000000..d277cc660a01 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_cc_l_l.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 1, + "strideC2": 3, + "offsetC": 0, + "C_out": [ 45.0, 43.0, 64.0, 53.0, 52.0, 79.0, 61.0, 61.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_cc_l_u.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_cc_l_u.json new file mode 100644 index 000000000000..44c901560918 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_cc_l_u.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 1, + "strideC2": 3, + "offsetC": 0, + "C_out": [ 45.0, 43.0, 64.0, 53.0, 52.0, 79.0, 61.0, 61.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_cc_r_l.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_cc_r_l.json new file mode 100644 index 000000000000..92e37990b3b6 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_cc_r_l.json @@ -0,0 +1,36 @@ +{ + "side": "right", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 1, + "strideC2": 3, + "offsetC": 0, + "C_out": [ 21.0, 45.0, 69.0, 21.0, 48.0, 75.0, 32.0, 77.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_cc_r_u.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_cc_r_u.json new file mode 100644 index 000000000000..224e9bea0ade --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_cc_r_u.json @@ -0,0 +1,36 @@ +{ + "side": "right", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 1, + "strideC2": 3, + "offsetC": 0, + "C_out": [ 21.0, 45.0, 69.0, 21.0, 48.0, 75.0, 32.0, 77.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_rc_l_l.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_rc_l_l.json new file mode 100644 index 000000000000..e84511a83e61 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_rc_l_l.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_rc_l_u.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_rc_l_u.json new file mode 100644 index 000000000000..48cf5184ee80 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_rc_l_u.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_rc_r_l.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_rc_r_l.json new file mode 100644 index 000000000000..d7febed88ff6 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_rc_r_l.json @@ -0,0 +1,36 @@ +{ + "side": "right", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 21.0, 21.0, 32.0, 45.0, 48.0, 77.0, 69.0, 75.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_rc_r_u.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_rc_r_u.json new file mode 100644 index 000000000000..411d52798ea7 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_rc_r_u.json @@ -0,0 +1,36 @@ +{ + "side": "right", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 21.0, 21.0, 32.0, 45.0, 48.0, 77.0, 69.0, 75.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/column_major_l_l.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/column_major_l_l.json new file mode 100644 index 000000000000..b600475da4f8 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/column_major_l_l.json @@ -0,0 +1,31 @@ +{ + "order": "column-major", + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "ldc": 3, + "C_out": [ 45.0, 43.0, 64.0, 53.0, 52.0, 79.0, 61.0, 61.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/column_major_l_u.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/column_major_l_u.json new file mode 100644 index 000000000000..8350b3feca5a --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/column_major_l_u.json @@ -0,0 +1,31 @@ +{ + "order": "column-major", + "side": "left", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "ldc": 3, + "C_out": [ 45.0, 43.0, 64.0, 53.0, 52.0, 79.0, 61.0, 61.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/column_major_r_l.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/column_major_r_l.json new file mode 100644 index 000000000000..992dd5774054 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/column_major_r_l.json @@ -0,0 +1,31 @@ +{ + "order": "column-major", + "side": "right", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "ldc": 3, + "C_out": [ 21.0, 45.0, 69.0, 21.0, 48.0, 75.0, 32.0, 77.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/column_major_r_u.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/column_major_r_u.json new file mode 100644 index 000000000000..5a61d27da02d --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/column_major_r_u.json @@ -0,0 +1,31 @@ +{ + "order": "column-major", + "side": "right", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "ldc": 3, + "C_out": [ 21.0, 45.0, 69.0, 21.0, 48.0, 75.0, 32.0, 77.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_cc_l_l.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_cc_l_l.json new file mode 100644 index 000000000000..f193a3b3af40 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_cc_l_l.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 1, + "strideC2": 3, + "offsetC": 0, + "C_out": [ 45.0, 43.0, 64.0, 53.0, 52.0, 79.0, 61.0, 61.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_cc_l_u.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_cc_l_u.json new file mode 100644 index 000000000000..2148277af13d --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_cc_l_u.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 1, + "strideC2": 3, + "offsetC": 0, + "C_out": [ 45.0, 43.0, 64.0, 53.0, 52.0, 79.0, 61.0, 61.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_cc_r_l.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_cc_r_l.json new file mode 100644 index 000000000000..abd3a831dd96 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_cc_r_l.json @@ -0,0 +1,37 @@ +{ + "order": "column-major", + "side": "right", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 1, + "strideC2": 3, + "offsetC": 0, + "C_out": [ 21.0, 45.0, 69.0, 21.0, 48.0, 75.0, 32.0, 77.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_cc_r_u.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_cc_r_u.json new file mode 100644 index 000000000000..eef67bf8a70f --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_cc_r_u.json @@ -0,0 +1,37 @@ +{ + "order": "column-major", + "side": "right", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 1, + "strideC2": 3, + "offsetC": 0, + "C_out": [ 21.0, 45.0, 69.0, 21.0, 48.0, 75.0, 32.0, 77.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_rc_l_l.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_rc_l_l.json new file mode 100644 index 000000000000..b1acbe3779c4 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_rc_l_l.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_rc_l_u.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_rc_l_u.json new file mode 100644 index 000000000000..21a331d7fc85 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_rc_l_u.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_rc_r_l.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_rc_r_l.json new file mode 100644 index 000000000000..a39ff5871f0d --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_rc_r_l.json @@ -0,0 +1,37 @@ +{ + "order": "column-major", + "side": "right", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 21.0, 21.0, 32.0, 45.0, 48.0, 77.0, 69.0, 75.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_rc_r_u.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_rc_r_u.json new file mode 100644 index 000000000000..f8dbdc497e7c --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_rc_r_u.json @@ -0,0 +1,37 @@ +{ + "order": "column-major", + "side": "right", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 21.0, 21.0, 32.0, 45.0, 48.0, 77.0, 69.0, 75.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_cc_l_l.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_cc_l_l.json new file mode 100644 index 000000000000..7d5ec5bb1492 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_cc_l_l.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 1, + "strideC2": 3, + "offsetC": 0, + "C_out": [ 45.0, 43.0, 64.0, 53.0, 52.0, 79.0, 61.0, 61.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_cc_l_u.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_cc_l_u.json new file mode 100644 index 000000000000..7d5ec5bb1492 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_cc_l_u.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 1, + "strideC2": 3, + "offsetC": 0, + "C_out": [ 45.0, 43.0, 64.0, 53.0, 52.0, 79.0, 61.0, 61.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_cc_r_l.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_cc_r_l.json new file mode 100644 index 000000000000..9109eb584c0e --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_cc_r_l.json @@ -0,0 +1,36 @@ +{ + "side": "right", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 1, + "strideC2": 3, + "offsetC": 0, + "C_out": [ 21.0, 45.0, 69.0, 21.0, 48.0, 75.0, 32.0, 77.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_cc_r_u.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_cc_r_u.json new file mode 100644 index 000000000000..8f2a028f9af9 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_cc_r_u.json @@ -0,0 +1,36 @@ +{ + "side": "right", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 1, + "strideC2": 3, + "offsetC": 0, + "C_out": [ 21.0, 45.0, 69.0, 21.0, 48.0, 75.0, 32.0, 77.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l.json new file mode 100644 index 000000000000..e629df102111 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_complex_access_pattern.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_complex_access_pattern.json new file mode 100644 index 000000000000..46eb410a75b0 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_complex_access_pattern.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 999.0, 1.0, 999.0, 2.0, 999.0, 5.0, 999.0, 2.0, 999.0, 3.0, 999.0, 4.0, 999.0, 5.0, 999.0, 4.0, 999.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.0, 6.0 ] + ], + "strideA1": 6, + "strideA2": 2, + "offsetA": 1, + "B": [ 999.0, 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": 2, + "beta": 1.0, + "C": [ 999.0, 999.0, 999.0, 1.0, 999.0, 999.0, 999.0, 1.0, 999.0, 999.0, 999.0, 1.0, 999.0, 999.0, 999.0, 1.0, 999.0, 999.0, 999.0, 1.0, 999.0, 999.0, 999.0, 1.0, 999.0, 999.0, 999.0, 1.0, 999.0, 999.0, 999.0, 1.0, 999.0, 999.0, 999.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 12, + "strideC2": 4, + "offsetC": 3, + "C_out": [ 999.0, 999.0, 999.0, 45.0, 999.0, 999.0, 999.0, 53.0, 999.0, 999.0, 999.0, 61.0, 999.0, 999.0, 999.0, 43.0, 999.0, 999.0, 999.0, 52.0, 999.0, 999.0, 999.0, 61.0, 999.0, 999.0, 999.0, 64.0, 999.0, 999.0, 999.0, 79.0, 999.0, 999.0, 999.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_oa.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_oa.json new file mode 100644 index 000000000000..3975d12ff3d8 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_oa.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 0.0, 0.0, 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_ob.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_ob.json new file mode 100644 index 000000000000..35c3fd1cd637 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_ob.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_oc.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_oc.json new file mode 100644 index 000000000000..5620da4d6ff4 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_oc.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 2, + "C_out": [ 0.0, 0.0, 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sa1_sa2.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sa1_sa2.json new file mode 100644 index 000000000000..07504ebf4c84 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sa1_sa2.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 999.0, 2.0, 999.0, 5.0, 999.0, 2.0, 999.0, 3.0, 999.0, 4.0, 999.0, 5.0, 999.0, 4.0, 999.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sa1_sa2n.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sa1_sa2n.json new file mode 100644 index 000000000000..6f921ddbf08a --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sa1_sa2n.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 5.0, 2.0, 1.0, 999.0, 999.0, 999.0, 4.0, 3.0, 2.0, 999.0, 999.0, 999.0, 6.0, 4.0, 5.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sa1n_sa2.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sa1n_sa2.json new file mode 100644 index 000000000000..17eac4104a53 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sa1n_sa2.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 5.0, 4.0, 6.0, 999.0, 999.0, 999.0, 2.0, 3.0, 4.0, 999.0, 999.0, 999.0, 1.0, 2.0, 5.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sa1n_sa2n.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sa1n_sa2n.json new file mode 100644 index 000000000000..651b775c3ae7 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sa1n_sa2n.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 6.0, 4.0, 5.0, 4.0, 3.0, 2.0, 5.0, 2.0, 1.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sb1_sb2.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sb1_sb2.json new file mode 100644 index 000000000000..216aef723b13 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sb1_sb2.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sb1_sb2n.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sb1_sb2n.json new file mode 100644 index 000000000000..29a5d79cf68d --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sb1_sb2n.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sb1n_sb2.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sb1n_sb2.json new file mode 100644 index 000000000000..81f63e6ecf37 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sb1n_sb2.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.0, 6.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 7.0, 8.0, 9.0, 999.0, 999.0, 999.0, 4.0, 5.0, 6.0, 999.0, 999.0, 999.0, 1.0, 2.0, 3.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": -6, + "strideB2": 1, + "offsetB": 12, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sb1n_sb2n.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sb1n_sb2n.json new file mode 100644 index 000000000000..b3068d7ff377 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sb1n_sb2n.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_u.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_u.json new file mode 100644 index 000000000000..2603599eeaa9 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_u.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_u_sc1_sc2.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_u_sc1_sc2.json new file mode 100644 index 000000000000..7fe96b1d4a15 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_u_sc1_sc2.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 999.0, 1.0, 999.0, 1.0, 999.0, 1.0, 999.0, 1.0, 999.0, 1.0, 999.0, 1.0, 999.0, 1.0, 999.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 6, + "strideC2": 2, + "offsetC": 0, + "C_out": [ 45.0, 999.0, 53.0, 999.0, 61.0, 999.0, 43.0, 999.0, 52.0, 999.0, 61.0, 999.0, 64.0, 999.0, 79.0, 999.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_u_sc1_sc2n.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_u_sc1_sc2n.json new file mode 100644 index 000000000000..a8b708fbc0b1 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_u_sc1_sc2n.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 999.0, 999.0, 999.0, 1.0, 1.0, 1.0, 999.0, 999.0, 999.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 6, + "strideC2": -1, + "offsetC": 2, + "C_out": [ 61.0, 53.0, 45.0, 999.0, 999.0, 999.0, 61.0, 52.0, 43.0, 999.0, 999.0, 999.0, 94.0, 79.0, 64.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_u_sc1n_sc2.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_u_sc1n_sc2.json new file mode 100644 index 000000000000..24e3cd1f1958 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_u_sc1n_sc2.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 999.0, 999.0, 999.0, 1.0, 1.0, 1.0, 999.0, 999.0, 999.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": -6, + "strideC2": 1, + "offsetC": 12, + "C_out": [ 64.0, 79.0, 94.0, 999.0, 999.0, 999.0, 43.0, 52.0, 61.0, 999.0, 999.0, 999.0, 45.0, 53.0, 61.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_u_sc1n_sc2n.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_u_sc1n_sc2n.json new file mode 100644 index 000000000000..b21c487adfe0 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_u_sc1n_sc2n.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": -3, + "strideC2": -1, + "offsetC": 8, + "C_out": [ 94.0, 79.0, 64.0, 61.0, 52.0, 43.0, 61.0, 53.0, 45.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_r_l.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_r_l.json new file mode 100644 index 000000000000..bf3ca506c9bc --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_r_l.json @@ -0,0 +1,36 @@ +{ + "side": "right", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 21.0, 21.0, 32.0, 45.0, 48.0, 77.0, 69.0, 75.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_r_u.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_r_u.json new file mode 100644 index 000000000000..721e218d2e5d --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_r_u.json @@ -0,0 +1,36 @@ +{ + "side": "right", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 21.0, 21.0, 32.0, 45.0, 48.0, 77.0, 69.0, 75.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/row_major_l_l.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/row_major_l_l.json new file mode 100644 index 000000000000..6fee95f732b0 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/row_major_l_l.json @@ -0,0 +1,31 @@ +{ + "order": "row-major", + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "ldc": 3, + "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/row_major_l_u.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/row_major_l_u.json new file mode 100644 index 000000000000..3fa3a86fc077 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/row_major_l_u.json @@ -0,0 +1,31 @@ +{ + "order": "row-major", + "side": "left", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "ldc": 3, + "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/row_major_r_l.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/row_major_r_l.json new file mode 100644 index 000000000000..7213422b0a3f --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/row_major_r_l.json @@ -0,0 +1,31 @@ +{ + "order": "row-major", + "side": "right", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "ldc": 3, + "C_out": [ 21.0, 21.0, 32.0, 45.0, 48.0, 77.0, 69.0, 75.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/row_major_r_u.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/row_major_r_u.json new file mode 100644 index 000000000000..2586eb683971 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/row_major_r_u.json @@ -0,0 +1,31 @@ +{ + "order": "row-major", + "side": "right", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.0, 6.0 ] + ], + "lda": 3, + "beta": 1.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 ] + ], + "ldb": 3, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "ldc": 3, + "C_out": [ 21.0, 21.0, 32.0, 45.0, 48.0, 77.0, 69.0, 75.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/test.dsymm.js b/lib/node_modules/@stdlib/blas/base/dsymm/test/test.dsymm.js new file mode 100644 index 000000000000..99eb6ecafe81 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/test.dsymm.js @@ -0,0 +1,671 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 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 dscal = require( '@stdlib/blas/base/dscal' ); +var dsymm = require( './../lib/dsymm.js' ); + + +// FIXTURES // + +var cll = require( './fixtures/column_major_l_l.json' ); +var clu = require( './fixtures/column_major_l_u.json' ); +var crl = require( './fixtures/column_major_r_l.json' ); +var cru = require( './fixtures/column_major_r_u.json' ); + +var rll = require( './fixtures/row_major_l_l.json' ); +var rlu = require( './fixtures/row_major_l_u.json' ); +var rrl = require( './fixtures/row_major_r_l.json' ); +var rru = require( './fixtures/row_major_r_u.json' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof dsymm, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function has an arity of 13', function test( t ) { + t.strictEqual( dsymm.length, 13, '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 = rll; + + 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() { + dsymm( value, data.side, data.uplo, data.M, data.N, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), data.ldb, data.beta, new Float64Array( data.C ), data.ldc ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid second argument', function test( t ) { + var values; + var data; + var i; + + data = rll; + + 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() { + dsymm( data.order, value, data.uplo, data.M, data.N, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), data.ldb, data.beta, new Float64Array( data.C ), data.ldc ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid third argument', function test( t ) { + var values; + var data; + var i; + + data = rll; + + 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() { + dsymm( data.order, data.side, value, data.M, data.N, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), data.ldb, data.beta, new Float64Array( data.C ), data.ldc ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid fourth argument', function test( t ) { + var values; + var data; + var i; + + data = rll; + + 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() { + dsymm( data.order, data.side, data.uplo, value, data.N, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), data.ldb, data.beta, new Float64Array( data.C ), data.ldc ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid fifth argument', function test( t ) { + var values; + var data; + var i; + + data = rll; + + 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() { + dsymm( data.order, data.side, data.uplo, data.M, value, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), data.ldb, data.beta, new Float64Array( data.C ), data.ldc ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid eighth argument', function test( t ) { + var values; + var data; + var i; + + data = rll; + + values = [ + 2, + 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() { + dsymm( data.order, data.side, data.uplo, data.M, data.N, data.alpha, new Float64Array( data.A ), value, new Float64Array( data.B ), data.ldb, data.beta, new Float64Array( data.C ), data.ldc ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid tenth argument', function test( t ) { + var values; + var data; + var i; + + data = rll; + + values = [ + 2, + 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() { + dsymm( data.order, data.side, data.uplo, data.M, data.N, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), value, data.beta, new Float64Array( data.C ), data.ldc ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid thirteenth argument', function test( t ) { + var values; + var data; + var i; + + data = rll; + + values = [ + 2, + 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() { + dsymm( data.order, data.side, data.uplo, data.M, data.N, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), data.ldb, data.beta, new Float64Array( data.C ), value ); + }; + } +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (row-major, left, lower)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rll; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.order, data.side, data.uplo, data.M, data.N, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (column-major, left, lower)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = cll; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.order, data.side, data.uplo, data.M, data.N, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (row-major, left, upper)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rlu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.order, data.side, data.uplo, data.M, data.N, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (column-major, left, upper)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = clu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.order, data.side, data.uplo, data.M, data.N, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (row-major, right, lower)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rrl; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.order, data.side, data.uplo, data.M, data.N, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (column-major, right, lower)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = crl; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.order, data.side, data.uplo, data.M, data.N, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (row-major, right, upper)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rru; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.order, data.side, data.uplo, data.M, data.N, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (column-major, right, upper)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = cru; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.order, data.side, data.uplo, data.M, data.N, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns a reference to the third input matrix (row-major)', function test( t ) { + var data; + var out; + var a; + var b; + var c; + + data = rru; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + out = dsymm( data.order, data.side, data.uplo, data.M, data.N, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns a reference to the third input matrix (column-major)', function test( t ) { + var data; + var out; + var a; + var b; + var c; + + data = cru; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + out = dsymm( data.order, data.side, data.uplo, data.M, data.N, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.end(); +}); + +tape( 'if either `M` or `N` is `0`, the function returns the third input matrix unchanged (row-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rru; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C ); + + out = dsymm( data.order, data.side, data.uplo, 0, data.N, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + out = dsymm( data.order, data.side, data.uplo, data.M, 0, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'if either `M` or `N` is `0`, the function returns the third input matrix unchanged (column-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = cru; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C ); + + out = dsymm( data.order, data.side, data.uplo, 0, data.N, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + out = dsymm( data.order, data.side, data.uplo, data.M, 0, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'if `α` is `0` and `β` is `1`, the function returns the third input matrix unchanged (row-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rru; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C ); + + out = dsymm( data.order, data.side, data.uplo, data.M, data.N, 0.0, a, data.lda, b, data.ldb, 1.0, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'if `α` is `0` and `β` is `1`, the function returns the third input matrix unchanged (column-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = cru; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C ); + + out = dsymm( data.order, data.side, data.uplo, data.M, data.N, 0.0, a, data.lda, b, data.ldb, 1.0, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'if `α` is `0` and `β` is `0`, the function returns the third input matrix filled with zeros (row-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rru; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( c.length ); + + out = dsymm( data.order, data.side, data.uplo, data.M, data.N, 0.0, a, data.lda, b, data.ldb, 0.0, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'if `α` is `0` and `β` is `0`, the function returns the third input matrix filled with zeros (column-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = cru; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( c.length ); + + out = dsymm( data.order, data.side, data.uplo, data.M, data.N, 0.0, a, data.lda, b, data.ldb, 0.0, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'if `α` is `0` and `β` is neither `0` nor `1`, the function returns the third input matrix scaled by `β` (row-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rru; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = dscal( c.length, 10.0, new Float64Array( c ), 1 ); + + out = dsymm( data.order, data.side, data.uplo, data.M, data.N, 0.0, a, data.lda, b, data.ldb, 10.0, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'if `α` is `0` and `β` is neither `0` nor `1`, the function returns the third input matrix scaled by `β` (column-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = cru; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = dscal( c.length, 10.0, new Float64Array( c ), 1 ); + + out = dsymm( data.order, data.side, data.uplo, data.M, data.N, 0.0, a, data.lda, b, data.ldb, 10.0, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/test.js b/lib/node_modules/@stdlib/blas/base/dsymm/test/test.js new file mode 100644 index 000000000000..a007a030e51f --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/test.js @@ -0,0 +1,82 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 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 dsymm = 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 dsymm, '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 dsymm.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 dsymm = proxyquire( './../lib', { + '@stdlib/utils/try-require': tryRequire + }); + + t.strictEqual( dsymm, 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 dsymm; + var main; + + main = require( './../lib/dsymm.js' ); + + dsymm = proxyquire( './../lib', { + '@stdlib/utils/try-require': tryRequire + }); + + t.strictEqual( dsymm, main, 'returns expected value' ); + t.end(); + + function tryRequire() { + return new Error( 'Cannot find module' ); + } +}); diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/test.ndarray.js b/lib/node_modules/@stdlib/blas/base/dsymm/test/test.ndarray.js new file mode 100644 index 000000000000..f29f64d7d356 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/test.ndarray.js @@ -0,0 +1,1460 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 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 ones = require( '@stdlib/array/ones' ); +var filled = require( '@stdlib/array/filled' ); +var dscal = require( '@stdlib/blas/base/dscal' ); +var dsymm = require( './../lib/ndarray.js' ); + + +// FIXTURES // + +var cacbccll = require( './fixtures/ca_cb_cc_l_l.json' ); +var cacbcclu = require( './fixtures/ca_cb_cc_l_u.json' ); +var cacbccrl = require( './fixtures/ca_cb_cc_r_l.json' ); +var cacbccru = require( './fixtures/ca_cb_cc_r_u.json' ); +var cacbrcll = require( './fixtures/ca_cb_rc_l_l.json' ); +var cacbrclu = require( './fixtures/ca_cb_rc_l_u.json' ); +var cacbrcrl = require( './fixtures/ca_cb_rc_r_l.json' ); +var cacbrcru = require( './fixtures/ca_cb_rc_r_u.json' ); +var carbccll = require( './fixtures/ca_rb_cc_l_l.json' ); +var carbcclu = require( './fixtures/ca_rb_cc_l_u.json' ); +var carbccrl = require( './fixtures/ca_rb_cc_r_l.json' ); +var carbccru = require( './fixtures/ca_rb_cc_r_u.json' ); +var carbrcll = require( './fixtures/ca_rb_rc_l_l.json' ); +var carbrclu = require( './fixtures/ca_rb_rc_l_u.json' ); +var carbrcrl = require( './fixtures/ca_rb_rc_r_l.json' ); +var carbrcru = require( './fixtures/ca_rb_rc_r_u.json' ); + +var racbccll = require( './fixtures/ra_cb_cc_l_l.json' ); +var racbcclu = require( './fixtures/ra_cb_cc_l_u.json' ); +var racbccrl = require( './fixtures/ra_cb_cc_r_l.json' ); +var racbccru = require( './fixtures/ra_cb_cc_r_u.json' ); +var racbrcll = require( './fixtures/ra_cb_rc_l_l.json' ); +var racbrclu = require( './fixtures/ra_cb_rc_l_u.json' ); +var racbrcrl = require( './fixtures/ra_cb_rc_r_l.json' ); +var racbrcru = require( './fixtures/ra_cb_rc_r_u.json' ); +var rarbccll = require( './fixtures/ra_rb_cc_l_l.json' ); +var rarbcclu = require( './fixtures/ra_rb_cc_l_u.json' ); +var rarbccrl = require( './fixtures/ra_rb_cc_r_l.json' ); +var rarbccru = require( './fixtures/ra_rb_cc_r_u.json' ); +var rarbrcll = require( './fixtures/ra_rb_rc_l_l.json' ); +var rarbrclu = require( './fixtures/ra_rb_rc_l_u.json' ); +var rarbrcrl = require( './fixtures/ra_rb_rc_r_l.json' ); +var rarbrcru = require( './fixtures/ra_rb_rc_r_u.json' ); + +var rarbrcllsa1sa2 = require( './fixtures/ra_rb_rc_l_l_sa1_sa2.json' ); +var rarbrcllsa1nsa2 = require( './fixtures/ra_rb_rc_l_l_sa1n_sa2.json' ); +var rarbrcllsa1sa2n = require( './fixtures/ra_rb_rc_l_l_sa1_sa2n.json' ); +var rarbrcllsa1nsa2n = require( './fixtures/ra_rb_rc_l_l_sa1n_sa2n.json' ); +var rarbrcllsb1sb2 = require( './fixtures/ra_rb_rc_l_l_sb1_sb2.json' ); +var rarbrcllsb1nsb2 = require( './fixtures/ra_rb_rc_l_l_sb1n_sb2.json' ); +var rarbrcllsb1sb2n = require( './fixtures/ra_rb_rc_l_l_sb1_sb2n.json' ); +var rarbrcllsb1nsb2n = require( './fixtures/ra_rb_rc_l_l_sb1n_sb2n.json' ); +var rarbrclusc1sc2 = require( './fixtures/ra_rb_rc_l_u_sc1_sc2.json' ); +var rarbrclusc1nsc2 = require( './fixtures/ra_rb_rc_l_u_sc1n_sc2.json' ); +var rarbrclusc1sc2n = require( './fixtures/ra_rb_rc_l_u_sc1_sc2n.json' ); +var rarbrclusc1nsc2n = require( './fixtures/ra_rb_rc_l_u_sc1n_sc2n.json' ); +var rarbrclloa = require( './fixtures/ra_rb_rc_l_l_oa.json' ); +var rarbrcllob = require( './fixtures/ra_rb_rc_l_l_ob.json' ); +var rarbrclloc = require( './fixtures/ra_rb_rc_l_l_oc.json' ); +var cap = require( './fixtures/ra_rb_rc_l_l_complex_access_pattern.json' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof dsymm, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function has an arity of 18', function test( t ) { + t.strictEqual( dsymm.length, 18, '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 = rarbrcll; + + 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() { + dsymm( value, data.uplo, 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, data.beta, new Float64Array( data.C ), data.strideC1, data.strideC2, data.offsetC ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid second argument', function test( t ) { + var values; + var data; + var i; + + data = rarbrcll; + + 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() { + dsymm( data.side, 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, data.beta, new Float64Array( data.C ), data.strideC1, data.strideC2, data.offsetC ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid third argument', function test( t ) { + var values; + var data; + var i; + + data = rarbrcll; + + 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() { + dsymm( data.side, data.uplo, 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, data.beta, new Float64Array( data.C ), data.strideC1, data.strideC2, data.offsetC ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid fourth argument', function test( t ) { + var values; + var data; + var i; + + data = rarbrcll; + + 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() { + dsymm( data.side, data.uplo, 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, data.beta, new Float64Array( data.C ), data.strideC1, data.strideC2, data.offsetC ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid seventeenth argument', function test( t ) { + var values; + var data; + var i; + + data = rarbrcll; + + values = [ + 0 + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + dsymm( data.side, data.uplo, 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, data.beta, new Float64Array( data.C ), value, data.strideC2, data.offsetC ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid eighteenth argument', function test( t ) { + var values; + var data; + var i; + + data = rarbrcll; + + values = [ + 0 + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + dsymm( data.side, data.uplo, 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, data.beta, new Float64Array( data.C ), data.strideC1, value, data.offsetC ); + }; + } +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (column_major, column_major, column_major, left, lower)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = cacbccll; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (column_major, column_major, column_major, right, lower)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = cacbccrl; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (column_major, column_major, column_major, left, upper)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = cacbcclu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (column_major, column_major, column_major, right, upper)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = cacbccru; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (column_major, column_major, row_major, left, lower)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = cacbrcll; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (column_major, column_major, row_major, right, lower)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = cacbrcrl; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (column_major, column_major, row_major, left, upper)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = cacbrclu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (column_major, column_major, row_major, right, upper)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = cacbrcru; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (column_major, row_major, column_major, left, lower)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = carbccll; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (column_major, row_major, column_major, right, lower)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = carbccrl; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (column_major, row_major, column_major, left, upper)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = carbcclu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (column_major, row_major, column_major, right, upper)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = carbccru; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (column_major, row_major, row_major, left, lower)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = carbrcll; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (column_major, row_major, row_major, right, lower)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = carbrcrl; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (column_major, row_major, row_major, left, upper)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = carbrclu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (column_major, row_major, row_major, right, upper)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = carbrcru; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (row_major, column_major, column_major, left, lower)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = racbccll; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (row_major, column_major, column_major, right, lower)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = racbccrl; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (row_major, column_major, column_major, left, upper)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = racbcclu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (row_major, column_major, column_major, right, upper)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = racbccru; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (row_major, column_major, row_major, left, lower)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = racbrcll; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (row_major, column_major, row_major, right, lower)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = racbrcrl; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (row_major, column_major, row_major, left, upper)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = racbrclu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (row_major, column_major, row_major, right, upper)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = racbrcru; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (row_major, row_major, column_major, left, lower)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rarbccll; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (row_major, row_major, column_major, right, lower)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rarbccrl; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (row_major, row_major, column_major, left, upper)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rarbcclu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (row_major, row_major, column_major, right, upper)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rarbccru; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (row_major, row_major, row_major, left, lower)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rarbrcll; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (row_major, row_major, row_major, right, lower)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rarbrcrl; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (row_major, row_major, row_major, left, upper)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rarbrclu; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (row_major, row_major, row_major, right, upper)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rarbrcru; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns a reference to the third input matrix', function test( t ) { + var data; + var out; + var a; + var b; + var c; + + data = rarbrcll; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.end(); +}); + +tape( 'if either `M` or `N` is `0`, the function returns the third input matrix unchanged', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rarbrcru; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C ); + + out = dsymm( data.side, data.uplo, 0, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + out = dsymm( data.side, data.uplo, data.M, 0, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'if `α` or `0` and `β` is `1`, the function returns the third input matrix unchanged', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rarbrcru; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C ); + + out = dsymm( data.side, data.uplo, data.M, data.N, 0.0, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, 1.0, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'if `α` is `0` and `β` is `0`, the function returns the third input matrix filled with zeros', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rarbrcru; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( c.length ); + + out = dsymm( data.side, data.uplo, data.M, data.N, 0.0, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, 0.0, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'if `α` is `0` and `β` is neither `0` nor `1`, the function returns the third input matrix scaled by `β`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rarbrcru; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = dscal( c.length, 10.0, new Float64Array( c ), 1 ); + + out = dsymm( data.side, data.uplo, data.M, data.N, 0.0, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, 10.0, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, '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; + var c; + + data = rarbrcllsa1sa2; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, '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; + var c; + + data = rarbrcllsa1nsa2; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, '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; + var c; + + data = rarbrcllsa1sa2n; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports negative strides for `A`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rarbrcllsa1nsa2n; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, '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; + var c; + + data = rarbrclloa; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, '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; + var c; + + data = rarbrcllsb1sb2; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, '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; + var c; + + data = rarbrcllsb1nsb2; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, '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; + var c; + + data = rarbrcllsb1sb2n; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports negative strides for `B`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rarbrcllsb1nsb2n; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, '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; + var c; + + data = rarbrcllob; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, '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 `C`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rarbrclusc1sc2; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports a negative stride for the first dimension of `C`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rarbrclusc1nsc2; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports a negative stride for the second dimension of `C`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rarbrclusc1sc2n; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports negative strides for `C`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rarbrclusc1nsc2n; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports specifying an offset parameter for `C`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rarbrclloc; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports complex access patterns', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = cap; + + a = new Float64Array( data.A ); + b = new Float64Array( data.B ); + c = new Float64Array( data.C ); + + expected = new Float64Array( data.C_out ); + + out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports computation over large arrays (row-major, row-major, row-major)', function test( t ) { + var expected; + var out; + var N; + var a; + var b; + var c; + + N = 100; + + a = ones( N*N, 'float64' ); + b = ones( a.length, 'float64' ); + c = new Float64Array( a.length ); + + expected = filled( N, a.length, 'float64' ); + + out = dsymm( 'left', 'lower', N, N, 1.0, a, N, 1, 0, b, N, 1, 0, 1.0, c, N, 1, 0 ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports computation over large arrays (column-major, column-major, column-major)', function test( t ) { + var expected; + var out; + var N; + var a; + var b; + var c; + + N = 100; + + a = ones( N*N, 'float64' ); + b = ones( a.length, 'float64' ); + c = new Float64Array( a.length ); + + expected = filled( N, a.length, 'float64' ); + + out = dsymm( 'left', 'lower', N, N, 1.0, a, 1, N, 0, b, 1, N, 0, 1.0, c, 1, N, 0 ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); From 0d5cbdf70f872fe5fd31d242f52be06a6c53f065 Mon Sep 17 00:00:00 2001 From: ShabiShett07 Date: Tue, 17 Jun 2025 11:04:43 +0530 Subject: [PATCH 02/11] 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: passed - 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 --- --- lib/node_modules/@stdlib/blas/base/dsymm/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/README.md b/lib/node_modules/@stdlib/blas/base/dsymm/README.md index 06d0c5a6377e..10d98afb5fd3 100644 --- a/lib/node_modules/@stdlib/blas/base/dsymm/README.md +++ b/lib/node_modules/@stdlib/blas/base/dsymm/README.md @@ -89,7 +89,7 @@ var A = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ] ); var B = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); var C = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); -dsymm( 'left', 'lower', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0, 1.0, C, 3, 1, 0 ); +dsymm.ndarray( 'left', 'lower', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0, 1.0, C, 3, 1, 0 ); // C => [ 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0 ] ``` @@ -114,7 +114,7 @@ var A = new Float64Array( [ 0.0, 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ] ) var B = new Float64Array( [ 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); var C = new Float64Array( [ 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); -dsymm( 'left', 'lower', 3, 3, 1.0, A, 3, 1, 1, B, 3, 1, 2, 1.0, C, 3, 1, 3 ); +dsymm.ndarray( 'left', 'lower', 3, 3, 1.0, A, 3, 1, 1, B, 3, 1, 2, 1.0, C, 3, 1, 3 ); // C => [ 0.0, 0.0, 0.0, 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0 ] ``` From 89751536b31497a4a6e1854b2b09355391237eef Mon Sep 17 00:00:00 2001 From: ShabiShett07 Date: Tue, 17 Jun 2025 11:07:16 +0530 Subject: [PATCH 03/11] 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: na - 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: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- lib/node_modules/@stdlib/blas/base/dsymm/lib/dsymm.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/lib/dsymm.js b/lib/node_modules/@stdlib/blas/base/dsymm/lib/dsymm.js index b954ad6a6360..d7949b11258a 100644 --- a/lib/node_modules/@stdlib/blas/base/dsymm/lib/dsymm.js +++ b/lib/node_modules/@stdlib/blas/base/dsymm/lib/dsymm.js @@ -103,6 +103,8 @@ function dsymm( order, side, uplo, M, N, alpha, A, LDA, B, LDB, beta, C, LDC ) { if ( LDA < max( 1, nrowsa ) ) { throw new RangeError( format( 'invalid argument. Eighth argument must be greater than or equal to max(1,%d). Value: `%d`.', nrowsa, LDA ) ); } + isrm = isRowMajor( order ); + iscm = isColumnMajor( order ); if ( isrm ) { val = N; } else { @@ -114,8 +116,6 @@ function dsymm( order, side, uplo, M, N, alpha, A, LDA, B, LDB, beta, C, LDC ) { if ( LDC < max( 1, val ) ) { throw new RangeError( format( 'invalid argument. Thirteenth argument must be greater than or equal to max(1,%d). Value: `%d`.', val, LDC ) ); } - isrm = isRowMajor( order ); - iscm = isColumnMajor( order ); if ( iscm ) { sa1 = 1; sa2 = LDA; From 45783cb28ec8baf6797751dde66b8baedce6651a Mon Sep 17 00:00:00 2001 From: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> Date: Tue, 17 Jun 2025 05:38:49 +0000 Subject: [PATCH 04/11] chore: update copyright years --- lib/node_modules/@stdlib/blas/base/dsymm/README.md | 2 +- lib/node_modules/@stdlib/blas/base/dsymm/benchmark/benchmark.js | 2 +- .../@stdlib/blas/base/dsymm/benchmark/benchmark.ndarray.js | 2 +- lib/node_modules/@stdlib/blas/base/dsymm/docs/types/index.d.ts | 2 +- lib/node_modules/@stdlib/blas/base/dsymm/docs/types/test.ts | 2 +- lib/node_modules/@stdlib/blas/base/dsymm/examples/index.js | 2 +- lib/node_modules/@stdlib/blas/base/dsymm/lib/base.js | 2 +- lib/node_modules/@stdlib/blas/base/dsymm/lib/dsymm.js | 2 +- lib/node_modules/@stdlib/blas/base/dsymm/lib/index.js | 2 +- lib/node_modules/@stdlib/blas/base/dsymm/lib/main.js | 2 +- lib/node_modules/@stdlib/blas/base/dsymm/lib/ndarray.js | 2 +- lib/node_modules/@stdlib/blas/base/dsymm/test/test.dsymm.js | 2 +- lib/node_modules/@stdlib/blas/base/dsymm/test/test.js | 2 +- lib/node_modules/@stdlib/blas/base/dsymm/test/test.ndarray.js | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/README.md b/lib/node_modules/@stdlib/blas/base/dsymm/README.md index 10d98afb5fd3..e090eefe0c49 100644 --- a/lib/node_modules/@stdlib/blas/base/dsymm/README.md +++ b/lib/node_modules/@stdlib/blas/base/dsymm/README.md @@ -2,7 +2,7 @@ @license Apache-2.0 -Copyright (c) 2024 The Stdlib Authors. +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. diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/dsymm/benchmark/benchmark.js index 4c4b6448c68e..47856633ea9e 100644 --- a/lib/node_modules/@stdlib/blas/base/dsymm/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/dsymm/benchmark/benchmark.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2024 The Stdlib Authors. +* 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. diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/dsymm/benchmark/benchmark.ndarray.js index 7a37d3a5b2f5..a298d9c12717 100644 --- a/lib/node_modules/@stdlib/blas/base/dsymm/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/dsymm/benchmark/benchmark.ndarray.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2024 The Stdlib Authors. +* 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. diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/base/dsymm/docs/types/index.d.ts index 956c4d6deb7c..75b954b17cae 100644 --- a/lib/node_modules/@stdlib/blas/base/dsymm/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/blas/base/dsymm/docs/types/index.d.ts @@ -1,7 +1,7 @@ /* * @license Apache-2.0 * -* Copyright (c) 2024 The Stdlib Authors. +* 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. diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/docs/types/test.ts b/lib/node_modules/@stdlib/blas/base/dsymm/docs/types/test.ts index a67b098427f2..56e54fda17ab 100644 --- a/lib/node_modules/@stdlib/blas/base/dsymm/docs/types/test.ts +++ b/lib/node_modules/@stdlib/blas/base/dsymm/docs/types/test.ts @@ -1,7 +1,7 @@ /* * @license Apache-2.0 * -* Copyright (c) 2024 The Stdlib Authors. +* 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. diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/examples/index.js b/lib/node_modules/@stdlib/blas/base/dsymm/examples/index.js index 90c8f044ecb4..75104fb3d919 100644 --- a/lib/node_modules/@stdlib/blas/base/dsymm/examples/index.js +++ b/lib/node_modules/@stdlib/blas/base/dsymm/examples/index.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2024 The Stdlib Authors. +* 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. diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/lib/base.js b/lib/node_modules/@stdlib/blas/base/dsymm/lib/base.js index 106488acffed..26b8aa463040 100644 --- a/lib/node_modules/@stdlib/blas/base/dsymm/lib/base.js +++ b/lib/node_modules/@stdlib/blas/base/dsymm/lib/base.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2024 The Stdlib Authors. +* 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. diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/lib/dsymm.js b/lib/node_modules/@stdlib/blas/base/dsymm/lib/dsymm.js index d7949b11258a..4aa68fb39e7f 100644 --- a/lib/node_modules/@stdlib/blas/base/dsymm/lib/dsymm.js +++ b/lib/node_modules/@stdlib/blas/base/dsymm/lib/dsymm.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2024 The Stdlib Authors. +* 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. diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/lib/index.js b/lib/node_modules/@stdlib/blas/base/dsymm/lib/index.js index 78b8999f2ff6..c8eef0e6bc96 100644 --- a/lib/node_modules/@stdlib/blas/base/dsymm/lib/index.js +++ b/lib/node_modules/@stdlib/blas/base/dsymm/lib/index.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2024 The Stdlib Authors. +* 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. diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/lib/main.js b/lib/node_modules/@stdlib/blas/base/dsymm/lib/main.js index 290f1de6c336..0ffc283d5386 100644 --- a/lib/node_modules/@stdlib/blas/base/dsymm/lib/main.js +++ b/lib/node_modules/@stdlib/blas/base/dsymm/lib/main.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2024 The Stdlib Authors. +* 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. diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/lib/ndarray.js b/lib/node_modules/@stdlib/blas/base/dsymm/lib/ndarray.js index 687c1c2bd87c..6b80dde75211 100644 --- a/lib/node_modules/@stdlib/blas/base/dsymm/lib/ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/dsymm/lib/ndarray.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2024 The Stdlib Authors. +* 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. diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/test.dsymm.js b/lib/node_modules/@stdlib/blas/base/dsymm/test/test.dsymm.js index 99eb6ecafe81..be4e3362b817 100644 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/test.dsymm.js +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/test.dsymm.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2024 The Stdlib Authors. +* 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. diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/test.js b/lib/node_modules/@stdlib/blas/base/dsymm/test/test.js index a007a030e51f..8b444a3dfc63 100644 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/test.js +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/test.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2024 The Stdlib Authors. +* 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. diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/test.ndarray.js b/lib/node_modules/@stdlib/blas/base/dsymm/test/test.ndarray.js index f29f64d7d356..09aa9185b205 100644 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/test.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/dsymm/test/test.ndarray.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2024 The Stdlib Authors. +* 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. From 7454ee8412fa03a25c7a076982bbe0762c52e890 Mon Sep 17 00:00:00 2001 From: ShabiShett07 Date: Tue, 17 Jun 2025 12:25:07 +0530 Subject: [PATCH 05/11] feat: add blas/base/ssymm --- 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: passed - task: lint_package_json status: passed - task: lint_repl_help status: passed - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: passed - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: passed - 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: passed - task: lint_license_headers status: passed --- --- .../@stdlib/blas/base/ssymm/README.md | 259 +++ .../blas/base/ssymm/benchmark/benchmark.js | 105 ++ .../base/ssymm/benchmark/benchmark.ndarray.js | 105 ++ .../@stdlib/blas/base/ssymm/docs/repl.txt | 158 ++ .../blas/base/ssymm/docs/types/index.d.ts | 138 ++ .../blas/base/ssymm/docs/types/test.ts | 585 +++++++ .../@stdlib/blas/base/ssymm/examples/index.js | 39 + .../@stdlib/blas/base/ssymm/lib/base.js | 329 ++++ .../@stdlib/blas/base/ssymm/lib/index.js | 73 + .../@stdlib/blas/base/ssymm/lib/main.js | 35 + .../@stdlib/blas/base/ssymm/lib/ndarray.js | 95 ++ .../@stdlib/blas/base/ssymm/lib/ssymm.js | 140 ++ .../@stdlib/blas/base/ssymm/package.json | 69 + .../ssymm/test/fixtures/ca_cb_cc_l_l.json | 36 + .../ssymm/test/fixtures/ca_cb_cc_l_u.json | 36 + .../ssymm/test/fixtures/ca_cb_cc_r_l.json | 36 + .../ssymm/test/fixtures/ca_cb_cc_r_u.json | 36 + .../ssymm/test/fixtures/ca_cb_rc_l_l.json | 36 + .../ssymm/test/fixtures/ca_cb_rc_l_u.json | 36 + .../ssymm/test/fixtures/ca_cb_rc_r_l.json | 36 + .../ssymm/test/fixtures/ca_cb_rc_r_u.json | 36 + .../ssymm/test/fixtures/ca_rb_cc_l_l.json | 36 + .../ssymm/test/fixtures/ca_rb_cc_l_u.json | 36 + .../ssymm/test/fixtures/ca_rb_cc_r_l.json | 36 + .../ssymm/test/fixtures/ca_rb_cc_r_u.json | 36 + .../ssymm/test/fixtures/ca_rb_rc_l_l.json | 36 + .../ssymm/test/fixtures/ca_rb_rc_l_u.json | 36 + .../ssymm/test/fixtures/ca_rb_rc_r_l.json | 36 + .../ssymm/test/fixtures/ca_rb_rc_r_u.json | 36 + .../ssymm/test/fixtures/column_major_l_l.json | 31 + .../ssymm/test/fixtures/column_major_l_u.json | 31 + .../ssymm/test/fixtures/column_major_r_l.json | 31 + .../ssymm/test/fixtures/column_major_r_u.json | 31 + .../ssymm/test/fixtures/ra_cb_cc_l_l.json | 36 + .../ssymm/test/fixtures/ra_cb_cc_l_u.json | 36 + .../ssymm/test/fixtures/ra_cb_cc_r_l.json | 36 + .../ssymm/test/fixtures/ra_cb_cc_r_u.json | 36 + .../ssymm/test/fixtures/ra_cb_rc_l_l.json | 36 + .../ssymm/test/fixtures/ra_cb_rc_l_u.json | 36 + .../ssymm/test/fixtures/ra_cb_rc_r_l.json | 36 + .../ssymm/test/fixtures/ra_cb_rc_r_u.json | 36 + .../ssymm/test/fixtures/ra_rb_cc_l_l.json | 36 + .../ssymm/test/fixtures/ra_rb_cc_l_u.json | 36 + .../ssymm/test/fixtures/ra_rb_cc_r_l.json | 36 + .../ssymm/test/fixtures/ra_rb_cc_r_u.json | 36 + .../ssymm/test/fixtures/ra_rb_rc_l_l.json | 36 + .../ra_rb_rc_l_l_complex_access_pattern.json | 36 + .../ssymm/test/fixtures/ra_rb_rc_l_l_oa.json | 36 + .../ssymm/test/fixtures/ra_rb_rc_l_l_ob.json | 36 + .../ssymm/test/fixtures/ra_rb_rc_l_l_oc.json | 36 + .../test/fixtures/ra_rb_rc_l_l_sa1_sa2.json | 36 + .../test/fixtures/ra_rb_rc_l_l_sa1_sa2n.json | 36 + .../test/fixtures/ra_rb_rc_l_l_sa1n_sa2.json | 36 + .../test/fixtures/ra_rb_rc_l_l_sa1n_sa2n.json | 36 + .../test/fixtures/ra_rb_rc_l_l_sb1_sb2.json | 36 + .../test/fixtures/ra_rb_rc_l_l_sb1_sb2n.json | 36 + .../test/fixtures/ra_rb_rc_l_l_sb1n_sb2.json | 36 + .../test/fixtures/ra_rb_rc_l_l_sb1n_sb2n.json | 36 + .../ssymm/test/fixtures/ra_rb_rc_l_u.json | 36 + .../test/fixtures/ra_rb_rc_l_u_sc1_sc2.json | 36 + .../test/fixtures/ra_rb_rc_l_u_sc1_sc2n.json | 36 + .../test/fixtures/ra_rb_rc_l_u_sc1n_sc2.json | 36 + .../test/fixtures/ra_rb_rc_l_u_sc1n_sc2n.json | 36 + .../ssymm/test/fixtures/ra_rb_rc_r_l.json | 36 + .../ssymm/test/fixtures/ra_rb_rc_r_u.json | 36 + .../ssymm/test/fixtures/row_major_l_l.json | 31 + .../ssymm/test/fixtures/row_major_l_u.json | 31 + .../ssymm/test/fixtures/row_major_r_l.json | 31 + .../ssymm/test/fixtures/row_major_r_u.json | 31 + .../@stdlib/blas/base/ssymm/test/test.js | 82 + .../blas/base/ssymm/test/test.ndarray.js | 1460 +++++++++++++++++ .../blas/base/ssymm/test/test.ssymm.js | 671 ++++++++ 72 files changed, 6319 insertions(+) create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/README.md create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/benchmark/benchmark.ndarray.js create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/examples/index.js create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/lib/base.js create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/lib/index.js create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/lib/main.js create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/lib/ndarray.js create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/lib/ssymm.js create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/package.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_cb_cc_l_l.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_cb_cc_l_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_cb_cc_r_l.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_cb_cc_r_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_cb_rc_l_l.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_cb_rc_l_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_cb_rc_r_l.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_cb_rc_r_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_rb_cc_l_l.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_rb_cc_l_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_rb_cc_r_l.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_rb_cc_r_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_rb_rc_l_l.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_rb_rc_l_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_rb_rc_r_l.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_rb_rc_r_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/column_major_l_l.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/column_major_l_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/column_major_r_l.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/column_major_r_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_cb_cc_l_l.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_cb_cc_l_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_cb_cc_r_l.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_cb_cc_r_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_cb_rc_l_l.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_cb_rc_l_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_cb_rc_r_l.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_cb_rc_r_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_cc_l_l.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_cc_l_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_cc_r_l.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_cc_r_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_complex_access_pattern.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_oa.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_ob.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_oc.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_sa1_sa2.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_sa1_sa2n.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_sa1n_sa2.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_sa1n_sa2n.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_sb1_sb2.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_sb1_sb2n.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_sb1n_sb2.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_sb1n_sb2n.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_u_sc1_sc2.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_u_sc1_sc2n.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_u_sc1n_sc2.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_u_sc1n_sc2n.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_r_l.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_r_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/row_major_l_l.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/row_major_l_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/row_major_r_l.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/row_major_r_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/test.js create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/test.ndarray.js create mode 100644 lib/node_modules/@stdlib/blas/base/ssymm/test/test.ssymm.js diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/README.md b/lib/node_modules/@stdlib/blas/base/ssymm/README.md new file mode 100644 index 000000000000..7f91134e5afd --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/README.md @@ -0,0 +1,259 @@ + + +# ssymm + +> Perform the matrix-matrix operation `C = α*A*B + β*C` or `C = α*B*A + β*C` where `α` and `β` are scalars, `A` is a symmetric matrix and `B` and `C` are `M` by `N` matrices. + +
+ +## Usage + +```javascript +var ssymm = require( '@stdlib/blas/base/ssymm' ); +``` + +#### ssymm( ord, side, uplo, M, N, α, A, lda, B, ldb, β, C, ldc ) + +Performs the matrix-matrix operation `C = α*A*B + β*C` or `C = α*B*A + β*C` where `α` and `β` are scalars, `A` is a symmetric matrix and `B` and `C` are `M` by `N` matrices. + +```javascript +var Float32Array = require( '@stdlib/array/float32' ); + +var A = new Float32Array( [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ] ); +var B = new Float32Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); +var C = new Float32Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); + +ssymm( 'row-major', 'left', 'lower', 3, 3, 1.0, A, 3, B, 3, 1.0, C, 3 ); +// C => [ 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0 ] +``` + +The function has the following parameters: + +- **ord**: storage layout. +- **side**: specifies whether `A` appears on the left or right of `B`. +- **uplo**: specifies whether the upper or lower triangular part of the symmetric matrix `A` is supplied. +- **M**: number of rows in the matrix `op(A)` and in the matrix `C`. +- **N**: number of columns in the matrix `op(B)` and in the matrix `C`. +- **α**: scalar constant. +- **A**: first input matrix stored in linear memory as a [`Float32Array`][mdn-float32array]. +- **lda**: stride of the first dimension of `A` (leading dimension of `A`). +- **B**: second input matrix stored in linear memory as a [`Float32Array`][mdn-float32array]. +- **ldb**: stride of the first dimension of `B` (leading dimension of `B`). +- **β**: scalar constant +- **C**: third input matrix stored in linear memory as a [`Float32Array`][mdn-float32array]. +- **ldc**: stride of the first dimension of `C` (leading dimension of `C`). + +The stride parameters determine how elements in the input arrays are accessed at runtime. For example, to perform matrix multiplication of two subarrays + + + +```javascript +var Float32Array = require( '@stdlib/array/float32' ); + +var A = new Float32Array( [ 1.0, 1.0, 1.0, 0.0, 0.0, 0.0, 1.0, 2.0, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 3.0, 0.0, 0.0, 0.0 ] ); +var B = new Float32Array( [ 1.0, 1.0, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.0 ] ); +var C = new Float32Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); + +ssymm( 'row-major', 'left', 'lower', 3, 3, 1.0, A, 6, B, 6, 1.0, C, 3 ); +// C => [ 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0 ] +``` + + + +#### ssymm.ndarray( side, uplo, M, N, α, A, sa1, sa2, oa, B, sb1, sb2, ob, β, C, sc1, sc2, oc ) + +Performs the matrix-matrix operation `C = α*A*B + β*C` or `C = α*B*A + β*C` using alternative indexing semantics and where `α` and `β` are scalars, `A` is a symmetric matrix and `B` and `C` are `M` by `N` matrices. + +```javascript +var Float32Array = require( '@stdlib/array/float32' ); + +var A = new Float32Array( [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ] ); +var B = new Float32Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); +var C = new Float32Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); + +ssymm.ndarray( 'left', 'lower', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0, 1.0, C, 3, 1, 0 ); +// C => [ 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0 ] +``` + +The function has the following additional parameters: + +- **sa1**: stride of the first dimension of `A`. +- **sa2**: stride of the second dimension of `A`. +- **oa**: starting index for `A`. +- **sb1**: stride of the first dimension of `B`. +- **sb2**: stride of the second dimension of `B`. +- **ob**: starting index for `B`. +- **sc1**: stride of the first dimension of `C`. +- **sc2**: stride of the second dimension of `C`. +- **oc**: starting index for `C`. + +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 Float32Array = require( '@stdlib/array/float32' ); + +var A = new Float32Array( [ 0.0, 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ] ); +var B = new Float32Array( [ 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); +var C = new Float32Array( [ 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); + +ssymm.ndarray( 'left', 'lower', 3, 3, 1.0, A, 3, 1, 1, B, 3, 1, 2, 1.0, C, 3, 1, 3 ); +// C => [ 0.0, 0.0, 0.0, 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0 ] +``` + +
+ + + +
+ +## Notes + +- `ssymm()` corresponds to the [BLAS][blas] level 3 function [`ssymm`][blas-ssymm]. + +
+ + + +
+ +## Examples + + + +```javascript +var discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); +var ssymm = require( '@stdlib/blas/base/ssymm' ); + +var opts = { + 'dtype': 'float32' +}; + +var M = 3; +var N = 3; + +var A = discreteUniform( M*N, 0, 10, opts ); +var B = discreteUniform( M*N, 0, 10, opts ); +var C = discreteUniform( M*N, 0, 10, opts ); + +ssymm( 'row-major', 'left', 'lower', M, N, 1.0, A, M, B, N, 1.0, C, N ); +console.log( C ); + +ssymm.ndarray( 'left', 'lower', M, N, 1.0, A, M, 1, 0, B, N, 1, 0, 1.0, C, N, 1, 0 ); +console.log( C ); +``` + +
+ + + + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/blas/base/ssymm.h" +``` + +#### TODO + +TODO. + +```c +TODO +``` + +TODO + +```c +TODO +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +TODO +``` + +
+ + + +
+ + + + + + + + + + + + + + diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/ssymm/benchmark/benchmark.js new file mode 100644 index 000000000000..2b79945e681d --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/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 isnanf = require( '@stdlib/math/base/assert/is-nanf' ); +var pow = require( '@stdlib/math/base/special/pow' ); +var floor = require( '@stdlib/math/base/special/floor' ); +var pkg = require( './../package.json' ).name; +var ssymm = require( './../lib/ssymm.js' ); + + +// VARIABLES // + +var options = { + 'dtype': 'float32' +}; + + +// 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 = uniform( N*N, -10.0, 10.0, options ); + var C = uniform( N*N, -10.0, 10.0, options ); + 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 = ssymm( 'row-major', 'left', 'lower', N, N, 1.0, A, N, B, N, 1.0, C, N ); + if ( isnanf( z[ i%z.length ] ) ) { + b.fail( 'should not return NaN' ); + } + } + b.toc(); + if ( isnanf( 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 = 5; // 10^max + + for ( i = min; i <= max; i++ ) { + len = floor( pow( pow( 10, i ), 1.0/2.0 ) ); + f = createBenchmark( len ); + bench( pkg+':order(A)=row-major,order(B)=row-major,order(C)=row-major,trans(A)=false,trans(B)=false,size='+(len*len), f ); + } +} + +main(); diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/ssymm/benchmark/benchmark.ndarray.js new file mode 100644 index 000000000000..db0424e9e9b9 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/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 isnanf = require( '@stdlib/math/base/assert/is-nanf' ); +var pow = require( '@stdlib/math/base/special/pow' ); +var floor = require( '@stdlib/math/base/special/floor' ); +var pkg = require( './../package.json' ).name; +var ssymm = require( './../lib/ndarray.js' ); + + +// VARIABLES // + +var options = { + 'dtype': 'float32' +}; + + +// 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 = uniform( N*N, -10.0, 10.0, options ); + var C = uniform( N*N, -10.0, 10.0, options ); + 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 = ssymm( 'left', 'lower', N, N, 1.0, A, N, 1, 0, B, N, 1, 0, 1.0, C, N, 1, 0 ); + if ( isnanf( z[ i%z.length ] ) ) { + b.fail( 'should not return NaN' ); + } + } + b.toc(); + if ( isnanf( 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 = 5; // 10^max + + for ( i = min; i <= max; i++ ) { + len = floor( pow( pow( 10, i ), 1.0/2.0 ) ); + f = createBenchmark( len ); + bench( pkg+':ndarray:order(A)=row-major,order(B)=row-major,order(C)=row-major,trans(A)=false,trans(B)=false,size='+(len*len), f ); + } +} + +main(); diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/docs/repl.txt b/lib/node_modules/@stdlib/blas/base/ssymm/docs/repl.txt new file mode 100644 index 000000000000..a4be25a84c21 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/docs/repl.txt @@ -0,0 +1,158 @@ + +{{alias}}( ord, side, uplo, M, N, α, A, lda, B, ldb, β, C, ldc ) + Performs the matrix-matrix operation `C = α*A*B + β*C` or `C = α*B*A + β*C` + where `α` and `β` are scalars, `A` is a symmetric matrix and `B` and `C` are + `M` by `N` matrices. + + 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 `C` unchanged. + + If `α` equals `0` and `β` equals `1`, the function returns `C` unchanged. + + 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 `A` multiplies `B` from the left or right. + + uplo: string + Specifies whether `A` is an upper or lower triangular matrix. + + M: integer + Number of rows in the matrix `C`. + + N: integer + Number of rows in the matrix `C`. + + α: number + Scalar constant. + + A: Float32Array + First matrix. + + lda: integer + Stride of the first dimension of `A` (a.k.a., leading dimension of the + matrix `A`). + + B: Float32Array + Second matrix. + + ldb: integer + Stride of the first dimension of `B` (a.k.a., leading dimension of the + matrix `B`). + + β: number + Scalar constant. + + C: Float32Array + Third matrix. + + ldc: integer + Stride of the first dimension of `C` (a.k.a., leading dimension of the + matrix `C`). + + Returns + ------- + C: Float32Array + Third matrix. + + Examples + -------- + // Standard usage: + > var A = new {{alias:@stdlib/array/float32}}( [ 1.0, 1.0, 1.0, 2.0 ] ); + > var B = new {{alias:@stdlib/array/float32}}( [ 1.0, 1.0, 1.0, 1.0 ] ); + > var C = new {{alias:@stdlib/array/float32}}( [ 1.0, 1.0, 1.0, 1.0 ] ); + > var ord = 'row-major'; + > var side = 'left'; + > var uplo = 'lower'; + > {{alias}}( ord, side, uplo, 2, 2, 1.0, A, 2, B, 2, 1.0, C, 2 ) + [ 3.0, 3.0, 4.0, 4.0 ] + + +{{alias}}.ndarray(side,uplo,M,N,α,A,sa1,sa2,oa,B,sb1,sb2,ob,β,C,sc1,sc2,oc) + Performs the matrix-matrix operation `C = α*A*B + β*C` or `C = α*B*A + β*C` + using alternative indexing semantics and where `α` and `β` are scalars, `A` + is a symmetric matrix and `B` and `C` are `M` by `N` matrices. + + 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 `A` multiplies `B` from the left or right. + + uplo: string + Specifies whether `A` is an upper or lower triangular matrix. + + M: integer + Number of rows in the matrix `C`. + + N: integer + Number of rows in the matrix `C`. + + α: number + Scalar constant. + + A: Float32Array + First 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: Float32Array + 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`. + + β: number + Scalar constant. + + C: Float32Array + Third matrix. + + sc1: integer + Stride of the first dimension of `C`. + + sc2: integer + Stride of the second dimension of `C`. + + oc: integer + Starting index for `C`. + + Returns + ------- + C: Float32Array + Third matrix. + + Examples + -------- + > var A = new {{alias:@stdlib/array/float32}}( [ 1.0, 1.0, 1.0, 2.0 ] ); + > var B = new {{alias:@stdlib/array/float32}}( [ 1.0, 1.0, 1.0, 1.0 ] ); + > var C = new {{alias:@stdlib/array/float32}}( [ 1.0, 1.0, 1.0, 1.0 ] ); + > var side = 'left'; + > var uplo = 'lower'; + > {{alias}}.ndarray(side,uplo,2,2,1.0,A,2,1,0,B,2,1,0,1.0,C,2,1,0) + [ 3.0, 3.0, 4.0, 4.0 ] + + See Also + -------- diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/base/ssymm/docs/types/index.d.ts new file mode 100644 index 000000000000..76e9e682a270 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/docs/types/index.d.ts @@ -0,0 +1,138 @@ +/* +* @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, OperationSide } from '@stdlib/types/blas'; + +/** +* Interface describing `ssymm`. +*/ +interface Routine { + /** + * Performs the matrix-matrix operation `C = α*A*B + β*C` or `C = α*B*A + β*C` where `α` and `β` are scalars, `A` is a symmetric matrix and `B` and `C` are `M` by `N` matrices. + * + * @param order - storage layout + * @param side - specifies whether `A` appears on the left or right of `B` + * @param uplo - specifies whether the upper or lower triangular part of the symmetric matrix `A` is supplied + * @param M - number of rows in the matrix `C` + * @param N - number of columns in the matrix `C` + * @param alpha - scalar constant + * @param A - first matrix + * @param LDA - stride of the first dimension of `A` (a.k.a., leading dimension of the matrix `A`) + * @param B - second matrix + * @param LDB - stride of the first dimension of `B` (a.k.a., leading dimension of the matrix `B`) + * @param beta - scalar constant + * @param C - third matrix + * @param LDC - stride of the first dimension of `C` (a.k.a., leading dimension of the matrix `C`) + * @returns `C` + * + * @example + * var Float32Array = require( '@stdlib/array/float32' ); + * + * var A = new Float32Array( [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ] ); + * var B = new Float32Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); + * var C = new Float32Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); + * + * ssymm( 'row-major', 'left', 'lower', 3, 3, 1.0, A, 3, B, 3, 1.0, C, 3 ); + * // C => [ 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0 ] + */ + ( order: Layout, side: OperationSide, uplo: MatrixTriangle, M: number, N: number, alpha: number, A: Float32Array, LDA: number, B: Float32Array, LDB: number, beta: number, C: Float32Array, LDC: number ): Float32Array; + + /** + * Performs the matrix-matrix operation `C = α*A*B + β*C` or `C = α*B*A + β*C` using alternative indexing semantics and where `α` and `β` are scalars, `A` is a symmetric matrix and `B` and `C` are `M` by `N` matrices. + * + * @param side - specifies whether `A` appears on the left or right of `B` + * @param uplo - specifies whether the upper or lower triangular part of the symmetric matrix `A` is supplied + * @param M - number of rows in the matrix `C` + * @param N - number of columns in the matrix `C` + * @param alpha - scalar constant + * @param A - first matrix + * @param strideA1 - stride of the first dimension of `A` + * @param strideA2 - stride of the second dimension of `A` + * @param offsetA - starting index for `A` + * @param B - second matrix + * @param strideB1 - stride of the first dimension of `B` + * @param strideB2 - stride of the second dimension of `B` + * @param offsetB - starting index for `B` + * @param beta - scalar constant + * @param C - third matrix + * @param strideC1 - stride of the first dimension of `C` + * @param strideC2 - stride of the second dimension of `C` + * @param offsetC - starting index for `C` + * @returns `C` + * + * @example + * var Float32Array = require( '@stdlib/array/float32' ); + * + * var A = new Float32Array( [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ] ); + * var B = new Float32Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); + * var C = new Float32Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); + * + * ssymm.ndarray( 'left', 'lower', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0, 1.0, C, 3, 1, 0 ); + * // C => [ 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0 ] + */ + ndarray( side: OperationSide, uplo: MatrixTriangle, M: number, N: number, alpha: number, A: Float32Array, strideA1: number, strideA2: number, offsetA: number, B: Float32Array, strideB1: number, strideB2: number, offsetB: number, beta: number, C: Float32Array, strideC1: number, strideC2: number, offsetC: number ): Float32Array; +} + +/** +* Performs the matrix-matrix operation `C = α*A*B + β*C` or `C = α*B*A + β*C` where `α` and `β` are scalars, `A` is a symmetric matrix and `B` and `C` are `M` by `N` matrices. +* +* @param order - storage layout +* @param side - specifies whether `A` appears on the left or right of `B` +* @param uplo - specifies whether the upper or lower triangular part of the symmetric matrix `A` is supplied +* @param M - number of rows in the matrix `C` +* @param N - number of columns in the matrix `C` +* @param alpha - scalar constant +* @param A - first matrix +* @param LDA - stride of the first dimension of `A` (a.k.a., leading dimension of the matrix `A`) +* @param B - second matrix +* @param LDB - stride of the first dimension of `B` (a.k.a., leading dimension of the matrix `B`) +* @param beta - scalar constant +* @param C - third matrix +* @param LDC - stride of the first dimension of `C` (a.k.a., leading dimension of the matrix `C`) +* @returns `C` +* +* @example +* var Float32Array = require( '@stdlib/array/float32' ); +* +* var A = new Float32Array( [ 1.0, 3.0, 2.0, 4.0 ] ); +* var B = new Float32Array( [ 1.0, 0.0, 1.0, 1.0 ] ); +* var C = new Float32Array( [ 1.0, 3.0, 2.0, 4.0 ] ); +* +* ssymm( 'row-major', 'left', 'lower', 3, 3, 1.0, A, 3, B, 3, 1.0, C, 3 ); +* // C => [ 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0 ] +* +* @example +* var Float32Array = require( '@stdlib/array/float32' ); +* +* var A = new Float32Array( [ 1.0, 3.0, 2.0, 4.0 ] ); +* var B = new Float32Array( [ 1.0, 0.0, 1.0, 1.0 ] ); +* var C = new Float32Array( [ 1.0, 3.0, 2.0, 4.0 ] ); +* +* ssymm.ndarray( 'left', 'lower', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0, 1.0, C, 3, 1, 0 ); +* // C => [ 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0 ] +*/ +declare var ssymm: Routine; + + +// EXPORTS // + +export = ssymm; diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/docs/types/test.ts b/lib/node_modules/@stdlib/blas/base/ssymm/docs/types/test.ts new file mode 100644 index 000000000000..9046a8013cd6 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/docs/types/test.ts @@ -0,0 +1,585 @@ +/* +* @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 ssymm = require( './index' ); + + +// TESTS // + +// The function returns a Float32Array... +{ + const A = new Float32Array( 25 ); + const B = new Float32Array( 25 ); + const C = new Float32Array( 25 ); + + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectType Float32Array +} + +// The compiler throws an error if the function is provided a first argument which is not a string... +{ + const A = new Float32Array( 25 ); + const B = new Float32Array( 25 ); + const C = new Float32Array( 25 ); + + ssymm( 10, 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( true, 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( false, 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( null, 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( undefined, 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( [], 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( {}, 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( ( A: number ): number => A, 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a second argument which is not a string... +{ + const A = new Float32Array( 25 ); + const B = new Float32Array( 25 ); + const C = new Float32Array( 25 ); + + ssymm( 'row-major', 10, 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', true, 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', false, 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', null, 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', undefined, 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', [ '1' ], 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', {}, 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', ( A: number ): number => A, 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a third argument which is not a string... +{ + const A = new Float32Array( 25 ); + const B = new Float32Array( 25 ); + const C = new Float32Array( 25 ); + + ssymm( 'row-major', 'left', 10, 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', true, 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', false, 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', null, 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', undefined, 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', [ '1' ], 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', {}, 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', ( A: number ): number => A, 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a fourth argument which is not a number... +{ + const A = new Float32Array( 25 ); + const B = new Float32Array( 25 ); + const C = new Float32Array( 25 ); + + ssymm( 'row-major', 'left', 'lower', '10', 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', true, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', false, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', null, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', undefined, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', [], 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', {}, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', ( A: number ): number => A, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a fifth argument which is not a number... +{ + const A = new Float32Array( 25 ); + const B = new Float32Array( 25 ); + const C = new Float32Array( 25 ); + + ssymm( 'row-major', 'left', 'lower', 5, '10', 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, true, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, false, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, null, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, undefined, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, [], 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, {}, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, ( A: number ): number => A, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a sixth argument which is not a number... +{ + const A = new Float32Array( 25 ); + const B = new Float32Array( 25 ); + const C = new Float32Array( 25 ); + + ssymm( 'row-major', 'left', 'lower', 5, 5, '10', A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, true, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, false, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, null, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, undefined, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, [], A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, {}, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, ( A: number ): number => A, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError +} + +// The compiler throws an error if the function is provided an seventh argument which is not a Float32Array... +{ + const B = new Float32Array( 25 ); + const C = new Float32Array( 25 ); + + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, 10, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, '10', 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, true, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, false, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, null, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, undefined, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, [ '1' ], 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, {}, 5, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, ( A: number ): number => A, 5, B, 5, 1.0, C, 5 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a eighth argument which is not a number... +{ + const A = new Float32Array( 25 ); + const B = new Float32Array( 25 ); + const C = new Float32Array( 25 ); + + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, '10', B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, true, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, false, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, null, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, undefined, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, [], B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, {}, B, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, ( A: number ): number => A, B, 5, 1.0, C, 5 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a ninth argument which is not a Float32Array... +{ + const A = new Float32Array( 25 ); + const C = new Float32Array( 25 ); + + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, 10, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, '10', 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, true, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, false, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, null, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, undefined, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, [ '1' ], 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, {}, 5, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, ( A: number ): number => A, 5, 1.0, C, 5 ); // $ExpectError +} + +// The compiler throws an error if the function is provided an tenth argument which is not a number... +{ + const A = new Float32Array( 25 ); + const B = new Float32Array( 25 ); + const C = new Float32Array( 25 ); + + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, '10', 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, true, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, false, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, null, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, undefined, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, [], 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, {}, 1.0, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, ( A: number ): number => A, 1.0, C, 5 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a eleventh argument which is not a number... +{ + const A = new Float32Array( 25 ); + const B = new Float32Array( 25 ); + const C = new Float32Array( 25 ); + + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, '10', C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, true, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, false, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, null, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, undefined, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, [], C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, {}, C, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, ( A: number ): number => A, C, 5 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a twelfth argument which is not a Float32Array... +{ + const A = new Float32Array( 25 ); + const B = new Float32Array( 25 ); + + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, 10, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, '10', 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, true, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, false, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, null, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, undefined, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, [ '1' ], 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, {}, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, ( A: number ): number => A, 5 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a thirteenth argument which is not a number... +{ + const A = new Float32Array( 25 ); + const B = new Float32Array( 25 ); + const C = new Float32Array( 25 ); + + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, '10' ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, true ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, false ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, null ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, undefined ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, [] ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, {} ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, ( A: number ): number => A ); // $ExpectError +} + +// The compiler throws an error if the function is provided an unsupported number of arguments... +{ + const A = new Float32Array( 25 ); + const B = new Float32Array( 25 ); + const C = new Float32Array( 25 ); + + ssymm(); // $ExpectError + ssymm( 'row-major' ); // $ExpectError + ssymm( 'row-major', 'left' ); // $ExpectError + ssymm( 'row-major', 'left', 'lower' ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0 ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C ); // $ExpectError + ssymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5, 10 ); // $ExpectError +} + +// Attached to main export is an `ndarray` method which returns a Float32Array... +{ + const A = new Float32Array( 25 ); + const B = new Float32Array( 25 ); + const C = new Float32Array( 25 ); + + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectType Float32Array +} + +// The compiler throws an error if the function is provided a first argument which is not a string... +{ + const A = new Float32Array( 25 ); + const B = new Float32Array( 25 ); + const C = new Float32Array( 25 ); + + ssymm.ndarray( 10, 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( true, 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( false, 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( null, 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( undefined, 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( [ '1' ], 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( {}, 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( ( A: number ): number => A, 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a second argument which is not a string... +{ + const A = new Float32Array( 25 ); + const B = new Float32Array( 25 ); + const C = new Float32Array( 25 ); + + ssymm.ndarray( 'left', 10, 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', true, 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', false, 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', null, 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', undefined, 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', [ '1' ], 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', {}, 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', ( A: number ): number => A, 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a third argument which is not a number... +{ + const A = new Float32Array( 25 ); + const B = new Float32Array( 25 ); + const C = new Float32Array( 25 ); + + ssymm.ndarray( 'left', 'lower', '10', 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', true, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', false, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', null, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', undefined, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', [], 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', {}, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', ( A: number ): number => A, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a fourth argument which is not a number... +{ + const A = new Float32Array( 25 ); + const B = new Float32Array( 25 ); + const C = new Float32Array( 25 ); + + ssymm.ndarray( 'left', 'lower', 5, '10', 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, true, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, false, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, null, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, undefined, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, [], 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, {}, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, ( A: number ): number => A, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a fifth argument which is not a number... +{ + const A = new Float32Array( 25 ); + const B = new Float32Array( 25 ); + const C = new Float32Array( 25 ); + + ssymm.ndarray( 'left', 'lower', 5, '10', 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, true, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, false, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, null, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, undefined, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, [], 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, {}, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, ( A: number ): number => A, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a sixth argument which is not a number... +{ + const B = new Float32Array( 25 ); + const C = new Float32Array( 25 ); + + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, 10, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, '10', 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, true, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, false, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, null, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, undefined, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, [ '1' ], 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, {}, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, ( A: number ): number => A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided an seventh argument which is not a number... +{ + const A = new Float32Array( 25 ); + const B = new Float32Array( 25 ); + const C = new Float32Array( 25 ); + + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, '10', 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, true, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, false, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, null, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, undefined, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, [], 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, {}, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, ( A: number ): number => A, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a eighth argument which is not a number... +{ + const A = new Float32Array( 25 ); + const B = new Float32Array( 25 ); + const C = new Float32Array( 25 ); + + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, '10', 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, true, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, false, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, null, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, undefined, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, [], 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, {}, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, ( A: number ): number => A, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a ninth argument which is not a number... +{ + const A = new Float32Array( 25 ); + const B = new Float32Array( 25 ); + const C = new Float32Array( 25 ); + + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, '10', B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, true, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, false, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, null, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, undefined, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, [], B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, {}, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, ( A: number ): number => A, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided an tenth argument which is not a Float32Array... +{ + const A = new Float32Array( 25 ); + const C = new Float32Array( 25 ); + + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, 10, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, '10', 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, true, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, false, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, null, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, undefined, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, [ '1' ], 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, {}, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, ( A: number ): number => A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a eleventh argument which is not a number... +{ + const A = new Float32Array( 25 ); + const B = new Float32Array( 25 ); + const C = new Float32Array( 25 ); + + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, '10', 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, true, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, false, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, null, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, undefined, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, [], 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, {}, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, ( A: number ): number => A, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a twelfth argument which is not a number... +{ + const A = new Float32Array( 25 ); + const B = new Float32Array( 25 ); + const C = new Float32Array( 25 ); + + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, '10', 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, true, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, false, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, null, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, undefined, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, [], 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, {}, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, ( A: number ): number => A, 0, 1.0, C, 5, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a thirteenth argument which is not a number... +{ + const A = new Float32Array( 25 ); + const B = new Float32Array( 25 ); + const C = new Float32Array( 25 ); + + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, '10', 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, true, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, false, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, null, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, undefined, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, [], 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, {}, 1.0, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, ( A: number ): number => A, 1.0, C, 5, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a fourteenth argument which is not a number... +{ + const A = new Float32Array( 25 ); + const B = new Float32Array( 25 ); + const C = new Float32Array( 25 ); + + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, '10', C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, true, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, false, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, null, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, undefined, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, [], C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, {}, C, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, ( A: number ): number => A, C, 5, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a fifteenth argument which is not a Float32Array... +{ + const A = new Float32Array( 25 ); + const B = new Float32Array( 25 ); + + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, 10, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, '10', 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, true, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, false, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, null, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, undefined, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, [ '1' ], 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, {}, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, ( A: number ): number => A, 5, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a sixteenth argument which is not a number... +{ + const A = new Float32Array( 25 ); + const B = new Float32Array( 25 ); + const C = new Float32Array( 25 ); + + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, '10', 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, true, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, false, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, null, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, undefined, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, [], 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, {}, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, ( A: number ): number => A, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided an seventeenth argument which is not a number... +{ + const A = new Float32Array( 25 ); + const B = new Float32Array( 25 ); + const C = new Float32Array( 25 ); + + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, '10', 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, true, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, false, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, null, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, undefined, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, [], 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, {}, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, ( A: number ): number => A, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a eighteenth argument which is not a number... +{ + const A = new Float32Array( 25 ); + const B = new Float32Array( 25 ); + const C = new Float32Array( 25 ); + + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, '10' ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, true ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, false ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, null ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, undefined ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, [] ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, {} ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, ( A: number ): number => A ); // $ExpectError +} + +// The compiler throws an error if the `ndarray` method is provided an unsupported number of arguments... +{ + const A = new Float32Array( 25 ); + const B = new Float32Array( 25 ); + const C = new Float32Array( 25 ); + + ssymm.ndarray(); // $ExpectError + ssymm.ndarray( 'left' ); // $ExpectError + ssymm.ndarray( 'left', 'lower' ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 5 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1 ); // $ExpectError + ssymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0, 10 ); // $ExpectError +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/examples/index.js b/lib/node_modules/@stdlib/blas/base/ssymm/examples/index.js new file mode 100644 index 000000000000..9fda5d35e82b --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/examples/index.js @@ -0,0 +1,39 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +var discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); +var ssymm = require( './../lib' ); + +var opts = { + 'dtype': 'float32' +}; + +var M = 3; +var N = 3; + +var A = discreteUniform( M*N, 0, 10, opts ); +var B = discreteUniform( M*N, 0, 10, opts ); +var C = discreteUniform( M*N, 0, 10, opts ); + +ssymm( 'row-major', 'left', 'lower', M, N, 1.0, A, M, B, N, 1.0, C, N ); +console.log( C ); + +ssymm.ndarray( 'left', 'lower', M, N, 1.0, A, M, 1, 0, B, N, 1, 0, 1.0, C, N, 1, 0 ); +console.log( C ); diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/lib/base.js b/lib/node_modules/@stdlib/blas/base/ssymm/lib/base.js new file mode 100644 index 000000000000..5aaec83eaa1e --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/lib/base.js @@ -0,0 +1,329 @@ +/** +* @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-params */ + +'use strict'; + +// MODULES // + +var isRowMajor = require( '@stdlib/ndarray/base/assert/is-row-major' ); +var f32 = require( '@stdlib/number/float64/base/to-float32' ); + + +// FUNCTIONS // + +/** +* Fills a matrix with zeros. +* +* @private +* @param {NonNegativeInteger} M - number of rows +* @param {NonNegativeInteger} N - number of columns +* @param {Float32Array} 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 {Float32Array} input matrix +* +* @example +* var Float32Array = require( '@stdlib/array/float32' ); +* +* var X = new Float32Array( [ 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 Float32Array = require( '@stdlib/array/float32' ); +* +* var X = new Float32Array( [ 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; +} + +/** +* Scales each element in a matrix by a scalar `β`. +* +* @private +* @param {NonNegativeInteger} M - number of rows +* @param {NonNegativeInteger} N - number of columns +* @param {number} beta - scalar +* @param {Float32Array} 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 {Float32Array} input matrix +* +* @example +* var Float32Array = require( '@stdlib/array/float32' ); +* +* var X = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); +* +* scal( 2, 3, 5.0, X, 3, 1, 0 ); +* // X => [ 5.0, 10.0, 15.0, 20.0, 25.0, 30.0 ] +* +* @example +* var Float32Array = require( '@stdlib/array/float32' ); +* +* var X = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); +* +* scal( 2, 3, 5.0, X, 1, 2, 0 ); +* // X => [ 5.0, 10.0, 15.0, 20.0, 25.0, 30.0 ] +*/ +function scal( M, N, beta, 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 ] *= beta; + ix += dx0; + } + ix += dx1; + } + return X; +} + + +// MAIN // + +/** +* Performs the matrix-matrix operation `C = α*A*B + β*C` or `C = α*B*A + β*C` where `α` and `β` are scalars, `A` is a symmetric matrix and B and C are `M` by `N` matrices. +* +* @private +* @param {string} side - specifies whether `A` appears on the left or right of `B` +* @param {string} uplo - specifies whether the upper or lower triangular part of the symmetric matrix `A` is supplied +* @param {NonNegativeInteger} M - number of rows in the matrix `C` +* @param {NonNegativeInteger} N - number of columns in the matrix `C` +* @param {number} alpha - scalar constant +* @param {Float32Array} A - first matrix +* @param {integer} strideA1 - stride of the first dimension of `A` +* @param {integer} strideA2 - stride of the second dimension of `A` +* @param {NonNegativeInteger} offsetA - starting index for `A` +* @param {Float32Array} B - second matrix +* @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` +* @param {number} beta - scalar constant +* @param {Float32Array} C - third matrix +* @param {integer} strideC1 - stride of the first dimension of `C` +* @param {integer} strideC2 - stride of the second dimension of `C` +* @param {NonNegativeInteger} offsetC - starting index for `C` +* @returns {Float32Array} `C` +* +* @example +* var Float32Array = require( '@stdlib/array/float32' ); +* +* var A = new Float32Array( [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ] ); +* var B = new Float32Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); +* var C = new Float32Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); +* +* ssymm( 'left', 'lower', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0, 1.0, C, 3, 1, 0 ); +* // C => [ 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0 ] +*/ +function ssymm( side, uplo, M, N, alpha, A, strideA1, strideA2, offsetA, B, strideB1, strideB2, offsetB, beta, C, strideC1, strideC2, offsetC ) { + var isrma; + var tmp; + var sa0; + var sa1; + var sb0; + var sb1; + var sc0; + var sc1; + var oa2; + var idx; + 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 ] ); + + // Check whether we can early return... + if ( M === 0 || N === 0 || ( ( beta === 1.0 ) && ( alpha === 0.0 ) ) ) { + return C; + } + 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; + sc0 = strideC2; + sc1 = strideC1; + } 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; + sc0 = strideC1; + sc1 = strideC2; + } + if ( beta === 0.0 ) { + C = zeros( M, N, C, strideC1, strideC2, offsetC ); + } else if ( beta !== 1.0 ) { + C = scal( M, N, beta, C, strideC1, strideC2, offsetC ); + } + // Check whether we can early return... + if ( alpha === 0.0 ) { + return C; + } + oa = offsetA; + ob = offsetB; + if ( + ( isrma && side === 'left' && uplo === 'upper' ) || + ( !isrma && side === 'right' && uplo === 'lower' ) + ) { + for ( i = 0; i < M; i++ ) { + for ( j = 0; j < N; j++ ) { + tmp = 0.0; + for ( k = 0; k < i; k++ ) { + oa2 = A[ oa + ( k * sa1 ) + ( i * sa0 ) ]; + tmp = f32( tmp + f32( oa2 * B[ ob + ( k * sb1 ) + ( j * sb0 ) ] ) ); + } + for ( k = i; k < M; k++ ) { + oa2 = A[ oa + ( i * sa1 ) + ( k * sa0 ) ]; + tmp = f32( tmp + f32( oa2 * B[ ob + ( k * sb1 ) + ( j * sb0 ) ] ) ); + } + idx = offsetC + ( i * sc1 ) + ( j * sc0 ); + C[ idx ] = f32( C[ idx ] + f32( alpha * tmp ) ); + } + } + return C; + } + if ( + ( isrma && side === 'left' && uplo === 'lower' ) || + ( !isrma && side === 'right' && uplo === 'upper' ) + ) { + for ( i = 0; i < M; i++ ) { + for ( j = 0; j < N; j++ ) { + tmp = 0.0; + for ( k = 0; k < i; k++ ) { + oa2 = A[ oa + ( i * sa1 ) + ( k * sa0 ) ]; + tmp = f32( tmp + f32( oa2 * B[ ob + ( k * sb1 ) + ( j * sb0 ) ] ) ); + } + for ( k = i; k < M; k++ ) { + oa2 = A[ oa + ( k * sa1 ) + ( i * sa0 ) ]; + tmp = f32( tmp + f32( oa2 * B[ ob + ( k * sb1 ) + ( j * sb0 ) ] ) ); + } + idx = offsetC + ( i * sc1 ) + ( j * sc0 ); + C[ idx ] = f32( C[ idx ] + f32( alpha * tmp ) ); + } + } + return C; + } + if ( + ( isrma && side === 'right' && uplo === 'upper' ) || + ( !isrma && side === 'left' && uplo === 'lower' ) + ) { + for ( i = 0; i < M; i++ ) { + for ( j = 0; j < N; j++ ) { + tmp = 0.0; + for ( k = 0; k < j; k++ ) { + oa2 = A[ oa + ( k * sa1 ) + ( j * sa0 ) ]; + tmp = f32( tmp + f32( B[ ob + ( i * sb1 ) + ( k * sb0 ) ] * oa2 ) ); + } + for ( k = j; k < N; k++ ) { + oa2 = A[ oa + ( j * sa1 ) + ( k * sa0 ) ]; + tmp = f32( tmp + ( B[ ob + ( i * sb1 ) + ( k * sb0 ) ] * oa2 ) ); + } + idx = offsetC + ( i * sc1 ) + ( j * sc0 ); + C[ idx ] = f32( C[ idx ] + ( alpha * tmp ) ); + } + } + return C; + } + // ( isrma && side === 'right' && uplo === 'lower' ) || ( !isrma && side === 'left' && uplo === 'upper' ) + for ( i = 0; i < M; i++ ) { + for ( j = 0; j < N; j++ ) { + tmp = 0.0; + for ( k = 0; k < j; k++ ) { + oa2 = A[ oa + ( j * sa1 ) + ( k * sa0 ) ]; + tmp = f32( tmp + f32( B[ ob + ( i * sb1 ) + ( k * sb0 ) ] * oa2 ) ); + } + for ( k = j; k < N; k++ ) { + oa2 = A[ oa + ( k * sa1 ) + ( j * sa0 ) ]; + tmp = f32( tmp + ( B[ ob + ( i * sb1 ) + ( k * sb0 ) ] * oa2 ) ); + } + idx = offsetC + ( i * sc1 ) + ( j * sc0 ); + C[ idx ] = f32( C[ idx ] + ( alpha * tmp ) ); + } + } + return C; +} + + +// EXPORTS // + +module.exports = ssymm; diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/lib/index.js b/lib/node_modules/@stdlib/blas/base/ssymm/lib/index.js new file mode 100644 index 000000000000..27368545f43f --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/lib/index.js @@ -0,0 +1,73 @@ + +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +/** +* BLAS level 3 routine to perform the matrix-matrix operation `C = α*A*B + β*C` or `C = α*B*A + β*C` where `α` and `β` are scalars, `A` is a symmetric matrix and `B` and `C` are `M` by `N` matrices. +* +* @module @stdlib/blas/base/ssymm +* +* @example +* var Float32Array = require( '@stdlib/array/float32' ); +* var ssymm = require( '@stdlib/blas/base/ssymm' ); +* +* var A = new Float32Array( [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ] ); +* var B = new Float32Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); +* var C = new Float32Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); +* +* ssymm( 'row-major', 'left', 'lower', 3, 3, 1.0, A, 3, B, 3, 1.0, C, 3 ); +* // C => [ 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0 ] +* +* @example +* var Float32Array = require( '@stdlib/array/float32' ); +* var ssymm = require( '@stdlib/blas/base/ssymm' ); +* +* var A = new Float32Array( [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ] ); +* var B = new Float32Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); +* var C = new Float32Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); +* +* ssymm.ndarray( 'left', 'lower', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0, 1.0, C, 3, 1, 0 ); +* // C => [ 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.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 ssymm; +var tmp = tryRequire( join( __dirname, './native.js' ) ); +if ( isError( tmp ) ) { + ssymm = main; +} else { + ssymm = tmp; +} + + +// EXPORTS // + +module.exports = ssymm; + +// exports: { "ndarray": "ssymm.ndarray" } diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/lib/main.js b/lib/node_modules/@stdlib/blas/base/ssymm/lib/main.js new file mode 100644 index 000000000000..642ad92480a2 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/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 ssymm = require( './ssymm.js' ); +var ndarray = require( './ndarray.js' ); + + +// MAIN // + +setReadOnly( ssymm, 'ndarray', ndarray ); + + +// EXPORTS // + +module.exports = ssymm; diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/lib/ndarray.js b/lib/node_modules/@stdlib/blas/base/ssymm/lib/ndarray.js new file mode 100644 index 000000000000..a8292f526c05 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/lib/ndarray.js @@ -0,0 +1,95 @@ +/** +* @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 format = require( '@stdlib/string/format' ); +var base = require( './base.js' ); + + +// MAIN // + +/** +* Performs the matrix-matrix operation `C = α*A*B + β*C` or `C = α*B*A + β*C` where `α` and `β` are scalars, `A` is a symmetric matrix and `B` and `C` are `M` by `N` matrices. +* +* @param {string} side - specifies whether `A` appears on the left or right of `B` +* @param {string} uplo - specifies whether the upper or lower triangular part of the symmetric matrix `A` is supplied +* @param {NonNegativeInteger} M - number of rows in the matrix `C` +* @param {NonNegativeInteger} N - number of columns in the matrix `C` +* @param {number} alpha - scalar constant +* @param {Float32Array} A - first matrix +* @param {integer} strideA1 - stride of the first dimension of `A` +* @param {integer} strideA2 - stride of the second dimension of `A` +* @param {NonNegativeInteger} offsetA - starting index for `A` +* @param {Float32Array} B - second matrix +* @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` +* @param {number} beta - scalar constant +* @param {Float32Array} C - third matrix +* @param {integer} strideC1 - stride of the first dimension of `C` +* @param {integer} strideC2 - stride of the second dimension of `C` +* @param {NonNegativeInteger} offsetC - starting index for `C` +* @throws {TypeError} first argument must be a valid transpose operation +* @throws {TypeError} second argument must be a valid transpose operation +* @throws {RangeError} third argument must be a nonnegative integer +* @throws {RangeError} fourth argument must be a nonnegative integer +* @throws {RangeError} sixteenth argument must be non-zero +* @throws {RangeError} seventeenth argument must be non-zero +* @returns {Float32Array} `C` +* +* @example +* var Float32Array = require( '@stdlib/array/float32' ); +* +* var A = new Float32Array( [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ] ); +* var B = new Float32Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); +* var C = new Float32Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); +* +* ssymm( 'left', 'lower', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0, 1.0, C, 3, 1, 0 ); +* // C => [ 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0 ] +*/ +function ssymm( side, uplo, M, N, alpha, A, strideA1, strideA2, offsetA, B, strideB1, strideB2, offsetB, beta, C, strideC1, strideC2, offsetC ) { // eslint-disable-line max-params, max-len + 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 ( M < 0 ) { + throw new RangeError( format( 'invalid argument. Third argument must be a nonnegative integer. Value: `%d`.', M ) ); + } + if ( N < 0 ) { + throw new RangeError( format( 'invalid argument. Fourth argument must be a nonnegative integer. Value: `%d`.', M ) ); + } + if ( strideC1 === 0 ) { + throw new RangeError( format( 'invalid argument. Sixteenth argument must be non-zero. Value: `%d`.', strideC1 ) ); + } + if ( strideC2 === 0 ) { + throw new RangeError( format( 'invalid argument. Seventeenth argument must be non-zero. Value: `%d`.', strideC2 ) ); + } + return base( side, uplo, M, N, alpha, A, strideA1, strideA2, offsetA, B, strideB1, strideB2, offsetB, beta, C, strideC1, strideC2, offsetC ); // eslint-disable-line max-len +} + + +// EXPORTS // + +module.exports = ssymm; diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/lib/ssymm.js b/lib/node_modules/@stdlib/blas/base/ssymm/lib/ssymm.js new file mode 100644 index 000000000000..b6abeb4abcf0 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/lib/ssymm.js @@ -0,0 +1,140 @@ +/** +* @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 isRowMajor = require( '@stdlib/ndarray/base/assert/is-row-major-string' ); +var isColumnMajor = require( '@stdlib/ndarray/base/assert/is-column-major-string' ); +var format = require( '@stdlib/string/format' ); +var base = require( './base.js' ); + + +// MAIN // + +/** +* Performs the matrix-matrix operation `C = α*A*B + β*C` or `C = α*B*A + β*C` where `α` and `β` are scalars, `A` is a symmetric matrix and `B` and `C` are `M` by `N` matrices. +* +* @param {string} order - storage layout +* @param {string} side - specifies whether `A` appears on the left or right of `B` +* @param {string} uplo - specifies whether the upper or lower triangular part of the symmetric matrix `A` is supplied +* @param {NonNegativeInteger} M - number of rows in the matrix `op(A)` and in the matrix `C` +* @param {NonNegativeInteger} N - number of columns in the matrix `op(B)` and in the matrix `C` +* @param {number} alpha - scalar constant +* @param {Float32Array} A - first matrix +* @param {PositiveInteger} LDA - stride of the first dimension of `A` (a.k.a., leading dimension of the matrix `A`) +* @param {Float32Array} B - second matrix +* @param {PositiveInteger} LDB - stride of the first dimension of `B` (a.k.a., leading dimension of the matrix `B`) +* @param {number} beta - scalar constant +* @param {Float32Array} C - third matrix +* @param {PositiveInteger} LDC - stride of the first dimension of `C` (a.k.a., leading dimension of the matrix `C`) +* @throws {TypeError} first argument must be a valid order +* @throws {TypeError} second argument must be a valid transpose operation +* @throws {TypeError} third argument must be a valid transpose operation +* @throws {RangeError} fourth argument must be a nonnegative integer +* @throws {RangeError} fifth argument must be a nonnegative integer +* @throws {RangeError} eighth argument must be greater than or equal to max(1,M) when `A` is on the left of `B` and max(1,N) otherwise +* @throws {RangeError} tenth argument must be greater than or equal to max(1,M) +* @throws {RangeError} thirteenth argument must be greater than or equal to max(1,M) +* @returns {Float32Array} `C` +* +* @example +* var Float32Array = require( '@stdlib/array/float32' ); +* +* var A = new Float32Array( [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ] ); +* var B = new Float32Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); +* var C = new Float32Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); +* +* ssymm( 'row-major', 'left', 'lower', 3, 3, 1.0, A, 3, B, 3, 1.0, C, 3 ); +* // C => [ 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0 ] +*/ +function ssymm( order, side, uplo, M, N, alpha, A, LDA, B, LDB, beta, C, LDC ) { // eslint-disable-line max-params + var nrowsa; + var isrm; + var iscm; + var val; + var sa1; + var sa2; + var sb1; + var sb2; + var sc1; + var sc2; + + if ( !isLayout( order ) ) { + throw new TypeError( format( 'invalid argument. First argument must be a valid order. Value: `%s`.', order ) ); + } + if ( !isOperationSide( side ) ) { + throw new TypeError( format( 'invalid argument. Second argument must be a valid side. Value: `%s`.', side ) ); + } + if ( !isMatrixTriangle( uplo ) ) { + throw new TypeError( format( 'invalid argument. Third argument must specify whether the lower or upper triangular matrix is supplied. Value: `%s`.', uplo ) ); + } + if ( M < 0 ) { + throw new RangeError( format( 'invalid argument. Fourth argument must be a nonnegative integer. Value: `%d`.', M ) ); + } + if ( N < 0 ) { + throw new RangeError( format( 'invalid argument. Fifth argument must be a nonnegative integer. Value: `%d`.', M ) ); + } + if ( side === 'right' ) { + nrowsa = N; + } else { + nrowsa = M; + } + if ( LDA < max( 1, nrowsa ) ) { + throw new RangeError( format( 'invalid argument. Eighth argument must be greater than or equal to max(1,%d). Value: `%d`.', nrowsa, LDA ) ); + } + isrm = isRowMajor( order ); + iscm = isColumnMajor( order ); + if ( isrm ) { + val = N; + } else { + val = M; + } + if ( LDB < max( 1, val ) ) { + throw new RangeError( format( 'invalid argument. Tenth argument must be greater than or equal to max(1,%d). Value: `%d`.', val, LDB ) ); + } + if ( LDC < max( 1, val ) ) { + throw new RangeError( format( 'invalid argument. Thirteenth argument must be greater than or equal to max(1,%d). Value: `%d`.', val, LDC ) ); + } + if ( iscm ) { + sa1 = 1; + sa2 = LDA; + sb1 = 1; + sb2 = LDB; + sc1 = 1; + sc2 = LDC; + } else { // order === 'row-major' + sa1 = LDA; + sa2 = 1; + sb1 = LDB; + sb2 = 1; + sc1 = LDC; + sc2 = 1; + } + return base( side, uplo, M, N, alpha, A, sa1, sa2, 0, B, sb1, sb2, 0, beta, C, sc1, sc2, 0 ); // eslint-disable-line max-len +} + + +// EXPORTS // + +module.exports = ssymm; diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/package.json b/lib/node_modules/@stdlib/blas/base/ssymm/package.json new file mode 100644 index 000000000000..3e0c263be984 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/package.json @@ -0,0 +1,69 @@ + +{ + "name": "@stdlib/blas/base/ssymm", + "version": "0.0.0", + "description": "Perform the matrix-matrix operation `C = α*A*B + β*C` or `C = α*B*A + β*C` where `α` and `β` are scalars, `A` is a symmetric matrix and B and C are `M` by `N` matrices", + "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", + "ssymm", + "linear", + "algebra", + "subroutines", + "array", + "ndarray", + "float32", + "double", + "float32array" + ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_cb_cc_l_l.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_cb_cc_l_l.json new file mode 100644 index 000000000000..e5f6040cdf8d --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_cb_cc_l_l.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 1, + "strideC2": 3, + "offsetC": 0, + "C_out": [ 45.0, 43.0, 64.0, 53.0, 52.0, 79.0, 61.0, 61.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_cb_cc_l_u.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_cb_cc_l_u.json new file mode 100644 index 000000000000..23e2cf01c19e --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_cb_cc_l_u.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 1, + "strideC2": 3, + "offsetC": 0, + "C_out": [ 45.0, 43.0, 64.0, 53.0, 52.0, 79.0, 61.0, 61.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_cb_cc_r_l.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_cb_cc_r_l.json new file mode 100644 index 000000000000..b203dcc24305 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_cb_cc_r_l.json @@ -0,0 +1,36 @@ +{ + "side": "right", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 1, + "strideC2": 3, + "offsetC": 0, + "C_out": [ 21.0, 45.0, 69.0, 21.0, 48.0, 75.0, 32.0, 77.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_cb_cc_r_u.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_cb_cc_r_u.json new file mode 100644 index 000000000000..39d6c27fdefb --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_cb_cc_r_u.json @@ -0,0 +1,36 @@ +{ + "side": "right", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 1, + "strideC2": 3, + "offsetC": 0, + "C_out": [ 21.0, 45.0, 69.0, 21.0, 48.0, 75.0, 32.0, 77.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_cb_rc_l_l.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_cb_rc_l_l.json new file mode 100644 index 000000000000..ae91928f65d7 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_cb_rc_l_l.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_cb_rc_l_u.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_cb_rc_l_u.json new file mode 100644 index 000000000000..ceaaf4c11e93 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_cb_rc_l_u.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_cb_rc_r_l.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_cb_rc_r_l.json new file mode 100644 index 000000000000..33c2ad36860f --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_cb_rc_r_l.json @@ -0,0 +1,36 @@ +{ + "side": "right", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 21.0, 21.0, 32.0, 45.0, 48.0, 77.0, 69.0, 75.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_cb_rc_r_u.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_cb_rc_r_u.json new file mode 100644 index 000000000000..adfdb7165e92 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_cb_rc_r_u.json @@ -0,0 +1,36 @@ +{ + "side": "right", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 21.0, 21.0, 32.0, 45.0, 48.0, 77.0, 69.0, 75.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_rb_cc_l_l.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_rb_cc_l_l.json new file mode 100644 index 000000000000..d277cc660a01 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_rb_cc_l_l.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 1, + "strideC2": 3, + "offsetC": 0, + "C_out": [ 45.0, 43.0, 64.0, 53.0, 52.0, 79.0, 61.0, 61.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_rb_cc_l_u.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_rb_cc_l_u.json new file mode 100644 index 000000000000..44c901560918 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_rb_cc_l_u.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 1, + "strideC2": 3, + "offsetC": 0, + "C_out": [ 45.0, 43.0, 64.0, 53.0, 52.0, 79.0, 61.0, 61.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_rb_cc_r_l.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_rb_cc_r_l.json new file mode 100644 index 000000000000..92e37990b3b6 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_rb_cc_r_l.json @@ -0,0 +1,36 @@ +{ + "side": "right", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 1, + "strideC2": 3, + "offsetC": 0, + "C_out": [ 21.0, 45.0, 69.0, 21.0, 48.0, 75.0, 32.0, 77.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_rb_cc_r_u.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_rb_cc_r_u.json new file mode 100644 index 000000000000..224e9bea0ade --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_rb_cc_r_u.json @@ -0,0 +1,36 @@ +{ + "side": "right", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 1, + "strideC2": 3, + "offsetC": 0, + "C_out": [ 21.0, 45.0, 69.0, 21.0, 48.0, 75.0, 32.0, 77.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_rb_rc_l_l.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_rb_rc_l_l.json new file mode 100644 index 000000000000..e84511a83e61 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_rb_rc_l_l.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_rb_rc_l_u.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_rb_rc_l_u.json new file mode 100644 index 000000000000..48cf5184ee80 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_rb_rc_l_u.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_rb_rc_r_l.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_rb_rc_r_l.json new file mode 100644 index 000000000000..d7febed88ff6 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_rb_rc_r_l.json @@ -0,0 +1,36 @@ +{ + "side": "right", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 21.0, 21.0, 32.0, 45.0, 48.0, 77.0, 69.0, 75.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_rb_rc_r_u.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_rb_rc_r_u.json new file mode 100644 index 000000000000..411d52798ea7 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ca_rb_rc_r_u.json @@ -0,0 +1,36 @@ +{ + "side": "right", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 21.0, 21.0, 32.0, 45.0, 48.0, 77.0, 69.0, 75.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/column_major_l_l.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/column_major_l_l.json new file mode 100644 index 000000000000..b600475da4f8 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/column_major_l_l.json @@ -0,0 +1,31 @@ +{ + "order": "column-major", + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "ldc": 3, + "C_out": [ 45.0, 43.0, 64.0, 53.0, 52.0, 79.0, 61.0, 61.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/column_major_l_u.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/column_major_l_u.json new file mode 100644 index 000000000000..8350b3feca5a --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/column_major_l_u.json @@ -0,0 +1,31 @@ +{ + "order": "column-major", + "side": "left", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "ldc": 3, + "C_out": [ 45.0, 43.0, 64.0, 53.0, 52.0, 79.0, 61.0, 61.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/column_major_r_l.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/column_major_r_l.json new file mode 100644 index 000000000000..992dd5774054 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/column_major_r_l.json @@ -0,0 +1,31 @@ +{ + "order": "column-major", + "side": "right", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "ldc": 3, + "C_out": [ 21.0, 45.0, 69.0, 21.0, 48.0, 75.0, 32.0, 77.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/column_major_r_u.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/column_major_r_u.json new file mode 100644 index 000000000000..5a61d27da02d --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/column_major_r_u.json @@ -0,0 +1,31 @@ +{ + "order": "column-major", + "side": "right", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "ldc": 3, + "C_out": [ 21.0, 45.0, 69.0, 21.0, 48.0, 75.0, 32.0, 77.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_cb_cc_l_l.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_cb_cc_l_l.json new file mode 100644 index 000000000000..f193a3b3af40 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_cb_cc_l_l.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 1, + "strideC2": 3, + "offsetC": 0, + "C_out": [ 45.0, 43.0, 64.0, 53.0, 52.0, 79.0, 61.0, 61.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_cb_cc_l_u.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_cb_cc_l_u.json new file mode 100644 index 000000000000..2148277af13d --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_cb_cc_l_u.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 1, + "strideC2": 3, + "offsetC": 0, + "C_out": [ 45.0, 43.0, 64.0, 53.0, 52.0, 79.0, 61.0, 61.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_cb_cc_r_l.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_cb_cc_r_l.json new file mode 100644 index 000000000000..3877d03f972c --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_cb_cc_r_l.json @@ -0,0 +1,36 @@ +{ + "side": "right", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 1, + "strideC2": 3, + "offsetC": 0, + "C_out": [ 21.0, 45.0, 69.0, 21.0, 48.0, 75.0, 32.0, 77.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_cb_cc_r_u.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_cb_cc_r_u.json new file mode 100644 index 000000000000..a5d5d4296cf7 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_cb_cc_r_u.json @@ -0,0 +1,36 @@ +{ + "side": "right", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 1, + "strideC2": 3, + "offsetC": 0, + "C_out": [ 21.0, 45.0, 69.0, 21.0, 48.0, 75.0, 32.0, 77.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_cb_rc_l_l.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_cb_rc_l_l.json new file mode 100644 index 000000000000..b1acbe3779c4 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_cb_rc_l_l.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_cb_rc_l_u.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_cb_rc_l_u.json new file mode 100644 index 000000000000..21a331d7fc85 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_cb_rc_l_u.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_cb_rc_r_l.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_cb_rc_r_l.json new file mode 100644 index 000000000000..75598c627793 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_cb_rc_r_l.json @@ -0,0 +1,36 @@ +{ + "side": "right", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 21.0, 21.0, 32.0, 45.0, 48.0, 77.0, 69.0, 75.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_cb_rc_r_u.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_cb_rc_r_u.json new file mode 100644 index 000000000000..a0c2a94a8beb --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_cb_rc_r_u.json @@ -0,0 +1,36 @@ +{ + "side": "right", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 21.0, 21.0, 32.0, 45.0, 48.0, 77.0, 69.0, 75.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_cc_l_l.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_cc_l_l.json new file mode 100644 index 000000000000..7d5ec5bb1492 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_cc_l_l.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 1, + "strideC2": 3, + "offsetC": 0, + "C_out": [ 45.0, 43.0, 64.0, 53.0, 52.0, 79.0, 61.0, 61.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_cc_l_u.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_cc_l_u.json new file mode 100644 index 000000000000..7d5ec5bb1492 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_cc_l_u.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 1, + "strideC2": 3, + "offsetC": 0, + "C_out": [ 45.0, 43.0, 64.0, 53.0, 52.0, 79.0, 61.0, 61.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_cc_r_l.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_cc_r_l.json new file mode 100644 index 000000000000..9109eb584c0e --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_cc_r_l.json @@ -0,0 +1,36 @@ +{ + "side": "right", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 1, + "strideC2": 3, + "offsetC": 0, + "C_out": [ 21.0, 45.0, 69.0, 21.0, 48.0, 75.0, 32.0, 77.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_cc_r_u.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_cc_r_u.json new file mode 100644 index 000000000000..8f2a028f9af9 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_cc_r_u.json @@ -0,0 +1,36 @@ +{ + "side": "right", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 1, + "strideC2": 3, + "offsetC": 0, + "C_out": [ 21.0, 45.0, 69.0, 21.0, 48.0, 75.0, 32.0, 77.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l.json new file mode 100644 index 000000000000..e629df102111 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_complex_access_pattern.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_complex_access_pattern.json new file mode 100644 index 000000000000..46eb410a75b0 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_complex_access_pattern.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 999.0, 1.0, 999.0, 2.0, 999.0, 5.0, 999.0, 2.0, 999.0, 3.0, 999.0, 4.0, 999.0, 5.0, 999.0, 4.0, 999.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.0, 6.0 ] + ], + "strideA1": 6, + "strideA2": 2, + "offsetA": 1, + "B": [ 999.0, 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": 2, + "beta": 1.0, + "C": [ 999.0, 999.0, 999.0, 1.0, 999.0, 999.0, 999.0, 1.0, 999.0, 999.0, 999.0, 1.0, 999.0, 999.0, 999.0, 1.0, 999.0, 999.0, 999.0, 1.0, 999.0, 999.0, 999.0, 1.0, 999.0, 999.0, 999.0, 1.0, 999.0, 999.0, 999.0, 1.0, 999.0, 999.0, 999.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 12, + "strideC2": 4, + "offsetC": 3, + "C_out": [ 999.0, 999.0, 999.0, 45.0, 999.0, 999.0, 999.0, 53.0, 999.0, 999.0, 999.0, 61.0, 999.0, 999.0, 999.0, 43.0, 999.0, 999.0, 999.0, 52.0, 999.0, 999.0, 999.0, 61.0, 999.0, 999.0, 999.0, 64.0, 999.0, 999.0, 999.0, 79.0, 999.0, 999.0, 999.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_oa.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_oa.json new file mode 100644 index 000000000000..3975d12ff3d8 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_oa.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 0.0, 0.0, 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_ob.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_ob.json new file mode 100644 index 000000000000..35c3fd1cd637 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_ob.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_oc.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_oc.json new file mode 100644 index 000000000000..5620da4d6ff4 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_oc.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 2, + "C_out": [ 0.0, 0.0, 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_sa1_sa2.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_sa1_sa2.json new file mode 100644 index 000000000000..07504ebf4c84 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_sa1_sa2.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 999.0, 2.0, 999.0, 5.0, 999.0, 2.0, 999.0, 3.0, 999.0, 4.0, 999.0, 5.0, 999.0, 4.0, 999.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_sa1_sa2n.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_sa1_sa2n.json new file mode 100644 index 000000000000..6f921ddbf08a --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_sa1_sa2n.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 5.0, 2.0, 1.0, 999.0, 999.0, 999.0, 4.0, 3.0, 2.0, 999.0, 999.0, 999.0, 6.0, 4.0, 5.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_sa1n_sa2.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_sa1n_sa2.json new file mode 100644 index 000000000000..17eac4104a53 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_sa1n_sa2.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 5.0, 4.0, 6.0, 999.0, 999.0, 999.0, 2.0, 3.0, 4.0, 999.0, 999.0, 999.0, 1.0, 2.0, 5.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_sa1n_sa2n.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_sa1n_sa2n.json new file mode 100644 index 000000000000..651b775c3ae7 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_sa1n_sa2n.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 6.0, 4.0, 5.0, 4.0, 3.0, 2.0, 5.0, 2.0, 1.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_sb1_sb2.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_sb1_sb2.json new file mode 100644 index 000000000000..216aef723b13 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_sb1_sb2.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_sb1_sb2n.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_sb1_sb2n.json new file mode 100644 index 000000000000..29a5d79cf68d --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_sb1_sb2n.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_sb1n_sb2.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_sb1n_sb2.json new file mode 100644 index 000000000000..81f63e6ecf37 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_sb1n_sb2.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.0, 6.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 7.0, 8.0, 9.0, 999.0, 999.0, 999.0, 4.0, 5.0, 6.0, 999.0, 999.0, 999.0, 1.0, 2.0, 3.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": -6, + "strideB2": 1, + "offsetB": 12, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_sb1n_sb2n.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_sb1n_sb2n.json new file mode 100644 index 000000000000..b3068d7ff377 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_l_sb1n_sb2n.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_u.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_u.json new file mode 100644 index 000000000000..2603599eeaa9 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_u.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_u_sc1_sc2.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_u_sc1_sc2.json new file mode 100644 index 000000000000..7fe96b1d4a15 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_u_sc1_sc2.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 999.0, 1.0, 999.0, 1.0, 999.0, 1.0, 999.0, 1.0, 999.0, 1.0, 999.0, 1.0, 999.0, 1.0, 999.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 6, + "strideC2": 2, + "offsetC": 0, + "C_out": [ 45.0, 999.0, 53.0, 999.0, 61.0, 999.0, 43.0, 999.0, 52.0, 999.0, 61.0, 999.0, 64.0, 999.0, 79.0, 999.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_u_sc1_sc2n.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_u_sc1_sc2n.json new file mode 100644 index 000000000000..a8b708fbc0b1 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_u_sc1_sc2n.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 999.0, 999.0, 999.0, 1.0, 1.0, 1.0, 999.0, 999.0, 999.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 6, + "strideC2": -1, + "offsetC": 2, + "C_out": [ 61.0, 53.0, 45.0, 999.0, 999.0, 999.0, 61.0, 52.0, 43.0, 999.0, 999.0, 999.0, 94.0, 79.0, 64.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_u_sc1n_sc2.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_u_sc1n_sc2.json new file mode 100644 index 000000000000..24e3cd1f1958 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_u_sc1n_sc2.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 999.0, 999.0, 999.0, 1.0, 1.0, 1.0, 999.0, 999.0, 999.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": -6, + "strideC2": 1, + "offsetC": 12, + "C_out": [ 64.0, 79.0, 94.0, 999.0, 999.0, 999.0, 43.0, 52.0, 61.0, 999.0, 999.0, 999.0, 45.0, 53.0, 61.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_u_sc1n_sc2n.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_u_sc1n_sc2n.json new file mode 100644 index 000000000000..b21c487adfe0 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_l_u_sc1n_sc2n.json @@ -0,0 +1,36 @@ +{ + "side": "left", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": -3, + "strideC2": -1, + "offsetC": 8, + "C_out": [ 94.0, 79.0, 64.0, 61.0, 52.0, 43.0, 61.0, 53.0, 45.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_r_l.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_r_l.json new file mode 100644 index 000000000000..bf3ca506c9bc --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_r_l.json @@ -0,0 +1,36 @@ +{ + "side": "right", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 21.0, 21.0, 32.0, 45.0, 48.0, 77.0, 69.0, 75.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_r_u.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_r_u.json new file mode 100644 index 000000000000..721e218d2e5d --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/ra_rb_rc_r_u.json @@ -0,0 +1,36 @@ +{ + "side": "right", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 21.0, 21.0, 32.0, 45.0, 48.0, 77.0, 69.0, 75.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/row_major_l_l.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/row_major_l_l.json new file mode 100644 index 000000000000..6fee95f732b0 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/row_major_l_l.json @@ -0,0 +1,31 @@ +{ + "order": "row-major", + "side": "left", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "ldc": 3, + "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/row_major_l_u.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/row_major_l_u.json new file mode 100644 index 000000000000..3fa3a86fc077 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/row_major_l_u.json @@ -0,0 +1,31 @@ +{ + "order": "row-major", + "side": "left", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "ldc": 3, + "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/row_major_r_l.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/row_major_r_l.json new file mode 100644 index 000000000000..7213422b0a3f --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/row_major_r_l.json @@ -0,0 +1,31 @@ +{ + "order": "row-major", + "side": "right", + "uplo": "lower", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.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, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "ldc": 3, + "C_out": [ 21.0, 21.0, 32.0, 45.0, 48.0, 77.0, 69.0, 75.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/row_major_r_u.json b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/row_major_r_u.json new file mode 100644 index 000000000000..2586eb683971 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/fixtures/row_major_r_u.json @@ -0,0 +1,31 @@ +{ + "order": "row-major", + "side": "right", + "uplo": "upper", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], + "A_mat": [ + [ 1.0, 2.0, 5.0 ], + [ 2.0, 3.0, 4.0 ], + [ 5.0, 4.0, 6.0 ] + ], + "lda": 3, + "beta": 1.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 ] + ], + "ldb": 3, + "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "ldc": 3, + "C_out": [ 21.0, 21.0, 32.0, 45.0, 48.0, 77.0, 69.0, 75.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/test.js b/lib/node_modules/@stdlib/blas/base/ssymm/test/test.js new file mode 100644 index 000000000000..15fc118c8501 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/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 ssymm = 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 ssymm, '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 ssymm.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 ssymm = proxyquire( './../lib', { + '@stdlib/utils/try-require': tryRequire + }); + + t.strictEqual( ssymm, 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 ssymm; + var main; + + main = require( './../lib/ssymm.js' ); + + ssymm = proxyquire( './../lib', { + '@stdlib/utils/try-require': tryRequire + }); + + t.strictEqual( ssymm, main, 'returns expected value' ); + t.end(); + + function tryRequire() { + return new Error( 'Cannot find module' ); + } +}); diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/test.ndarray.js b/lib/node_modules/@stdlib/blas/base/ssymm/test/test.ndarray.js new file mode 100644 index 000000000000..91263352bcdc --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/test.ndarray.js @@ -0,0 +1,1460 @@ +/** +* @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 Float32Array = require( '@stdlib/array/float32' ); +var ones = require( '@stdlib/array/ones' ); +var filled = require( '@stdlib/array/filled' ); +var sscal = require( '@stdlib/blas/base/sscal' ); +var ssymm = require( './../lib/ndarray.js' ); + + +// FIXTURES // + +var cacbccll = require( './fixtures/ca_cb_cc_l_l.json' ); +var cacbcclu = require( './fixtures/ca_cb_cc_l_u.json' ); +var cacbccrl = require( './fixtures/ca_cb_cc_r_l.json' ); +var cacbccru = require( './fixtures/ca_cb_cc_r_u.json' ); +var cacbrcll = require( './fixtures/ca_cb_rc_l_l.json' ); +var cacbrclu = require( './fixtures/ca_cb_rc_l_u.json' ); +var cacbrcrl = require( './fixtures/ca_cb_rc_r_l.json' ); +var cacbrcru = require( './fixtures/ca_cb_rc_r_u.json' ); +var carbccll = require( './fixtures/ca_rb_cc_l_l.json' ); +var carbcclu = require( './fixtures/ca_rb_cc_l_u.json' ); +var carbccrl = require( './fixtures/ca_rb_cc_r_l.json' ); +var carbccru = require( './fixtures/ca_rb_cc_r_u.json' ); +var carbrcll = require( './fixtures/ca_rb_rc_l_l.json' ); +var carbrclu = require( './fixtures/ca_rb_rc_l_u.json' ); +var carbrcrl = require( './fixtures/ca_rb_rc_r_l.json' ); +var carbrcru = require( './fixtures/ca_rb_rc_r_u.json' ); + +var racbccll = require( './fixtures/ra_cb_cc_l_l.json' ); +var racbcclu = require( './fixtures/ra_cb_cc_l_u.json' ); +var racbccrl = require( './fixtures/ra_cb_cc_r_l.json' ); +var racbccru = require( './fixtures/ra_cb_cc_r_u.json' ); +var racbrcll = require( './fixtures/ra_cb_rc_l_l.json' ); +var racbrclu = require( './fixtures/ra_cb_rc_l_u.json' ); +var racbrcrl = require( './fixtures/ra_cb_rc_r_l.json' ); +var racbrcru = require( './fixtures/ra_cb_rc_r_u.json' ); +var rarbccll = require( './fixtures/ra_rb_cc_l_l.json' ); +var rarbcclu = require( './fixtures/ra_rb_cc_l_u.json' ); +var rarbccrl = require( './fixtures/ra_rb_cc_r_l.json' ); +var rarbccru = require( './fixtures/ra_rb_cc_r_u.json' ); +var rarbrcll = require( './fixtures/ra_rb_rc_l_l.json' ); +var rarbrclu = require( './fixtures/ra_rb_rc_l_u.json' ); +var rarbrcrl = require( './fixtures/ra_rb_rc_r_l.json' ); +var rarbrcru = require( './fixtures/ra_rb_rc_r_u.json' ); + +var rarbrcllsa1sa2 = require( './fixtures/ra_rb_rc_l_l_sa1_sa2.json' ); +var rarbrcllsa1nsa2 = require( './fixtures/ra_rb_rc_l_l_sa1n_sa2.json' ); +var rarbrcllsa1sa2n = require( './fixtures/ra_rb_rc_l_l_sa1_sa2n.json' ); +var rarbrcllsa1nsa2n = require( './fixtures/ra_rb_rc_l_l_sa1n_sa2n.json' ); +var rarbrcllsb1sb2 = require( './fixtures/ra_rb_rc_l_l_sb1_sb2.json' ); +var rarbrcllsb1nsb2 = require( './fixtures/ra_rb_rc_l_l_sb1n_sb2.json' ); +var rarbrcllsb1sb2n = require( './fixtures/ra_rb_rc_l_l_sb1_sb2n.json' ); +var rarbrcllsb1nsb2n = require( './fixtures/ra_rb_rc_l_l_sb1n_sb2n.json' ); +var rarbrclusc1sc2 = require( './fixtures/ra_rb_rc_l_u_sc1_sc2.json' ); +var rarbrclusc1nsc2 = require( './fixtures/ra_rb_rc_l_u_sc1n_sc2.json' ); +var rarbrclusc1sc2n = require( './fixtures/ra_rb_rc_l_u_sc1_sc2n.json' ); +var rarbrclusc1nsc2n = require( './fixtures/ra_rb_rc_l_u_sc1n_sc2n.json' ); +var rarbrclloa = require( './fixtures/ra_rb_rc_l_l_oa.json' ); +var rarbrcllob = require( './fixtures/ra_rb_rc_l_l_ob.json' ); +var rarbrclloc = require( './fixtures/ra_rb_rc_l_l_oc.json' ); +var cap = require( './fixtures/ra_rb_rc_l_l_complex_access_pattern.json' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof ssymm, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function has an arity of 18', function test( t ) { + t.strictEqual( ssymm.length, 18, '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 = rarbrcll; + + 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() { + ssymm( value, data.uplo, 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, data.beta, new Float32Array( data.C ), data.strideC1, data.strideC2, data.offsetC ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid second argument', function test( t ) { + var values; + var data; + var i; + + data = rarbrcll; + + 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() { + ssymm( data.side, 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, data.beta, new Float32Array( data.C ), data.strideC1, data.strideC2, data.offsetC ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid third argument', function test( t ) { + var values; + var data; + var i; + + data = rarbrcll; + + 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() { + ssymm( data.side, data.uplo, 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, data.beta, new Float32Array( data.C ), data.strideC1, data.strideC2, data.offsetC ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid fourth argument', function test( t ) { + var values; + var data; + var i; + + data = rarbrcll; + + 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() { + ssymm( data.side, data.uplo, 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, data.beta, new Float32Array( data.C ), data.strideC1, data.strideC2, data.offsetC ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid seventeenth argument', function test( t ) { + var values; + var data; + var i; + + data = rarbrcll; + + values = [ + 0 + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + ssymm( data.side, data.uplo, 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, data.beta, new Float32Array( data.C ), value, data.strideC2, data.offsetC ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid eighteenth argument', function test( t ) { + var values; + var data; + var i; + + data = rarbrcll; + + values = [ + 0 + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + ssymm( data.side, data.uplo, 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, data.beta, new Float32Array( data.C ), data.strideC1, value, data.offsetC ); + }; + } +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (column_major, column_major, column_major, left, lower)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = cacbccll; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (column_major, column_major, column_major, right, lower)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = cacbccrl; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (column_major, column_major, column_major, left, upper)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = cacbcclu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (column_major, column_major, column_major, right, upper)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = cacbccru; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (column_major, column_major, row_major, left, lower)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = cacbrcll; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (column_major, column_major, row_major, right, lower)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = cacbrcrl; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (column_major, column_major, row_major, left, upper)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = cacbrclu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (column_major, column_major, row_major, right, upper)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = cacbrcru; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (column_major, row_major, column_major, left, lower)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = carbccll; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (column_major, row_major, column_major, right, lower)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = carbccrl; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (column_major, row_major, column_major, left, upper)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = carbcclu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (column_major, row_major, column_major, right, upper)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = carbccru; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (column_major, row_major, row_major, left, lower)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = carbrcll; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (column_major, row_major, row_major, right, lower)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = carbrcrl; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (column_major, row_major, row_major, left, upper)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = carbrclu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (column_major, row_major, row_major, right, upper)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = carbrcru; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (row_major, column_major, column_major, left, lower)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = racbccll; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (row_major, column_major, column_major, right, lower)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = racbccrl; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (row_major, column_major, column_major, left, upper)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = racbcclu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (row_major, column_major, column_major, right, upper)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = racbccru; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (row_major, column_major, row_major, left, lower)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = racbrcll; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (row_major, column_major, row_major, right, lower)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = racbrcrl; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (row_major, column_major, row_major, left, upper)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = racbrclu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (row_major, column_major, row_major, right, upper)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = racbrcru; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (row_major, row_major, column_major, left, lower)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rarbccll; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (row_major, row_major, column_major, right, lower)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rarbccrl; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (row_major, row_major, column_major, left, upper)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rarbcclu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (row_major, row_major, column_major, right, upper)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rarbccru; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (row_major, row_major, row_major, left, lower)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rarbrcll; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (row_major, row_major, row_major, right, lower)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rarbrcrl; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (row_major, row_major, row_major, left, upper)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rarbrclu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (row_major, row_major, row_major, right, upper)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rarbrcru; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns a reference to the third input matrix', function test( t ) { + var data; + var out; + var a; + var b; + var c; + + data = rarbrcll; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.end(); +}); + +tape( 'if either `M` or `N` is `0`, the function returns the third input matrix unchanged', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rarbrcru; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C ); + + out = ssymm( data.side, data.uplo, 0, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + out = ssymm( data.side, data.uplo, data.M, 0, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'if `α` or `0` and `β` is `1`, the function returns the third input matrix unchanged', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rarbrcru; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C ); + + out = ssymm( data.side, data.uplo, data.M, data.N, 0.0, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, 1.0, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'if `α` is `0` and `β` is `0`, the function returns the third input matrix filled with zeros', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rarbrcru; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( c.length ); + + out = ssymm( data.side, data.uplo, data.M, data.N, 0.0, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, 0.0, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'if `α` is `0` and `β` is neither `0` nor `1`, the function returns the third input matrix scaled by `β`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rarbrcru; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = sscal( c.length, 10.0, new Float32Array( c ), 1 ); + + out = ssymm( data.side, data.uplo, data.M, data.N, 0.0, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, 10.0, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, '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; + var c; + + data = rarbrcllsa1sa2; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, '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; + var c; + + data = rarbrcllsa1nsa2; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, '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; + var c; + + data = rarbrcllsa1sa2n; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports negative strides for `A`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rarbrcllsa1nsa2n; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, '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; + var c; + + data = rarbrclloa; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, '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; + var c; + + data = rarbrcllsb1sb2; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, '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; + var c; + + data = rarbrcllsb1nsb2; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, '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; + var c; + + data = rarbrcllsb1sb2n; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports negative strides for `B`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rarbrcllsb1nsb2n; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, '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; + var c; + + data = rarbrcllob; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, '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 `C`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rarbrclusc1sc2; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports a negative stride for the first dimension of `C`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rarbrclusc1nsc2; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports a negative stride for the second dimension of `C`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rarbrclusc1sc2n; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports negative strides for `C`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rarbrclusc1nsc2n; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports specifying an offset parameter for `C`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rarbrclloc; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports complex access patterns', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = cap; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports computation over large arrays (row-major, row-major, row-major)', function test( t ) { + var expected; + var out; + var N; + var a; + var b; + var c; + + N = 100; + + a = ones( N*N, 'float32' ); + b = ones( a.length, 'float32' ); + c = new Float32Array( a.length ); + + expected = filled( N, a.length, 'float32' ); + + out = ssymm( 'left', 'lower', N, N, 1.0, a, N, 1, 0, b, N, 1, 0, 1.0, c, N, 1, 0 ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports computation over large arrays (column-major, column-major, column-major)', function test( t ) { + var expected; + var out; + var N; + var a; + var b; + var c; + + N = 100; + + a = ones( N*N, 'float32' ); + b = ones( a.length, 'float32' ); + c = new Float32Array( a.length ); + + expected = filled( N, a.length, 'float32' ); + + out = ssymm( 'left', 'lower', N, N, 1.0, a, 1, N, 0, b, 1, N, 0, 1.0, c, 1, N, 0 ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/test/test.ssymm.js b/lib/node_modules/@stdlib/blas/base/ssymm/test/test.ssymm.js new file mode 100644 index 000000000000..49c48e12ef96 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssymm/test/test.ssymm.js @@ -0,0 +1,671 @@ +/** +* @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 Float32Array = require( '@stdlib/array/float32' ); +var sscal = require( '@stdlib/blas/base/sscal' ); +var ssymm = require( './../lib/ssymm.js' ); + + +// FIXTURES // + +var cll = require( './fixtures/column_major_l_l.json' ); +var clu = require( './fixtures/column_major_l_u.json' ); +var crl = require( './fixtures/column_major_r_l.json' ); +var cru = require( './fixtures/column_major_r_u.json' ); + +var rll = require( './fixtures/row_major_l_l.json' ); +var rlu = require( './fixtures/row_major_l_u.json' ); +var rrl = require( './fixtures/row_major_r_l.json' ); +var rru = require( './fixtures/row_major_r_u.json' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof ssymm, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function has an arity of 13', function test( t ) { + t.strictEqual( ssymm.length, 13, '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 = rll; + + 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() { + ssymm( value, data.side, data.uplo, data.M, data.N, data.alpha, new Float32Array( data.A ), data.lda, new Float32Array( data.B ), data.ldb, data.beta, new Float32Array( data.C ), data.ldc ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid second argument', function test( t ) { + var values; + var data; + var i; + + data = rll; + + 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() { + ssymm( data.order, value, data.uplo, data.M, data.N, data.alpha, new Float32Array( data.A ), data.lda, new Float32Array( data.B ), data.ldb, data.beta, new Float32Array( data.C ), data.ldc ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid third argument', function test( t ) { + var values; + var data; + var i; + + data = rll; + + 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() { + ssymm( data.order, data.side, value, data.M, data.N, data.alpha, new Float32Array( data.A ), data.lda, new Float32Array( data.B ), data.ldb, data.beta, new Float32Array( data.C ), data.ldc ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid fourth argument', function test( t ) { + var values; + var data; + var i; + + data = rll; + + 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() { + ssymm( data.order, data.side, data.uplo, value, data.N, data.alpha, new Float32Array( data.A ), data.lda, new Float32Array( data.B ), data.ldb, data.beta, new Float32Array( data.C ), data.ldc ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid fifth argument', function test( t ) { + var values; + var data; + var i; + + data = rll; + + 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() { + ssymm( data.order, data.side, data.uplo, data.M, value, data.alpha, new Float32Array( data.A ), data.lda, new Float32Array( data.B ), data.ldb, data.beta, new Float32Array( data.C ), data.ldc ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid eighth argument', function test( t ) { + var values; + var data; + var i; + + data = rll; + + values = [ + 2, + 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() { + ssymm( data.order, data.side, data.uplo, data.M, data.N, data.alpha, new Float32Array( data.A ), value, new Float32Array( data.B ), data.ldb, data.beta, new Float32Array( data.C ), data.ldc ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid tenth argument', function test( t ) { + var values; + var data; + var i; + + data = rll; + + values = [ + 2, + 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() { + ssymm( data.order, data.side, data.uplo, data.M, data.N, data.alpha, new Float32Array( data.A ), data.lda, new Float32Array( data.B ), value, data.beta, new Float32Array( data.C ), data.ldc ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid thirteenth argument', function test( t ) { + var values; + var data; + var i; + + data = rll; + + values = [ + 2, + 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() { + ssymm( data.order, data.side, data.uplo, data.M, data.N, data.alpha, new Float32Array( data.A ), data.lda, new Float32Array( data.B ), data.ldb, data.beta, new Float32Array( data.C ), value ); + }; + } +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (row-major, left, lower)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rll; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.order, data.side, data.uplo, data.M, data.N, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (column-major, left, lower)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = cll; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.order, data.side, data.uplo, data.M, data.N, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (row-major, left, upper)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rlu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.order, data.side, data.uplo, data.M, data.N, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (column-major, left, upper)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = clu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.order, data.side, data.uplo, data.M, data.N, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (row-major, right, lower)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rrl; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.order, data.side, data.uplo, data.M, data.N, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (column-major, right, lower)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = crl; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.order, data.side, data.uplo, data.M, data.N, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (row-major, right, upper)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rru; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.order, data.side, data.uplo, data.M, data.N, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (column-major, right, upper)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = cru; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssymm( data.order, data.side, data.uplo, data.M, data.N, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns a reference to the third input matrix (row-major)', function test( t ) { + var data; + var out; + var a; + var b; + var c; + + data = rru; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + out = ssymm( data.order, data.side, data.uplo, data.M, data.N, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns a reference to the third input matrix (column-major)', function test( t ) { + var data; + var out; + var a; + var b; + var c; + + data = cru; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + out = ssymm( data.order, data.side, data.uplo, data.M, data.N, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.end(); +}); + +tape( 'if either `M` or `N` is `0`, the function returns the third input matrix unchanged (row-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rru; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C ); + + out = ssymm( data.order, data.side, data.uplo, 0, data.N, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + out = ssymm( data.order, data.side, data.uplo, data.M, 0, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'if either `M` or `N` is `0`, the function returns the third input matrix unchanged (column-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = cru; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C ); + + out = ssymm( data.order, data.side, data.uplo, 0, data.N, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + out = ssymm( data.order, data.side, data.uplo, data.M, 0, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'if `α` is `0` and `β` is `1`, the function returns the third input matrix unchanged (row-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rru; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C ); + + out = ssymm( data.order, data.side, data.uplo, data.M, data.N, 0.0, a, data.lda, b, data.ldb, 1.0, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'if `α` is `0` and `β` is `1`, the function returns the third input matrix unchanged (column-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = cru; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C ); + + out = ssymm( data.order, data.side, data.uplo, data.M, data.N, 0.0, a, data.lda, b, data.ldb, 1.0, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'if `α` is `0` and `β` is `0`, the function returns the third input matrix filled with zeros (row-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rru; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( c.length ); + + out = ssymm( data.order, data.side, data.uplo, data.M, data.N, 0.0, a, data.lda, b, data.ldb, 0.0, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'if `α` is `0` and `β` is `0`, the function returns the third input matrix filled with zeros (column-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = cru; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = new Float32Array( c.length ); + + out = ssymm( data.order, data.side, data.uplo, data.M, data.N, 0.0, a, data.lda, b, data.ldb, 0.0, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'if `α` is `0` and `β` is neither `0` nor `1`, the function returns the third input matrix scaled by `β` (row-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = rru; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = sscal( c.length, 10.0, new Float32Array( c ), 1 ); + + out = ssymm( data.order, data.side, data.uplo, data.M, data.N, 0.0, a, data.lda, b, data.ldb, 10.0, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'if `α` is `0` and `β` is neither `0` nor `1`, the function returns the third input matrix scaled by `β` (column-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + var c; + + data = cru; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + c = new Float32Array( data.C ); + + expected = sscal( c.length, 10.0, new Float32Array( c ), 1 ); + + out = ssymm( data.order, data.side, data.uplo, data.M, data.N, 0.0, a, data.lda, b, data.ldb, 10.0, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); From 022a5b2e7a7987919eb88f67f8d93c872060f777 Mon Sep 17 00:00:00 2001 From: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> Date: Tue, 17 Jun 2025 12:58:18 +0530 Subject: [PATCH 06/11] chore: remove unrelated packages Signed-off-by: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> --- .../@stdlib/blas/base/dsymm/README.md | 259 --- .../blas/base/dsymm/benchmark/benchmark.js | 105 -- .../base/dsymm/benchmark/benchmark.ndarray.js | 105 -- .../@stdlib/blas/base/dsymm/docs/repl.txt | 158 -- .../blas/base/dsymm/docs/types/index.d.ts | 138 -- .../blas/base/dsymm/docs/types/test.ts | 585 ------- .../@stdlib/blas/base/dsymm/examples/index.js | 39 - .../@stdlib/blas/base/dsymm/lib/base.js | 328 ---- .../@stdlib/blas/base/dsymm/lib/dsymm.js | 140 -- .../@stdlib/blas/base/dsymm/lib/index.js | 72 - .../@stdlib/blas/base/dsymm/lib/main.js | 35 - .../@stdlib/blas/base/dsymm/lib/ndarray.js | 95 -- .../@stdlib/blas/base/dsymm/package.json | 68 - .../dsymm/test/fixtures/ca_cb_cc_l_l.json | 36 - .../dsymm/test/fixtures/ca_cb_cc_l_u.json | 36 - .../dsymm/test/fixtures/ca_cb_cc_r_l.json | 37 - .../dsymm/test/fixtures/ca_cb_cc_r_u.json | 37 - .../dsymm/test/fixtures/ca_cb_rc_l_l.json | 36 - .../dsymm/test/fixtures/ca_cb_rc_l_u.json | 36 - .../dsymm/test/fixtures/ca_cb_rc_r_l.json | 37 - .../dsymm/test/fixtures/ca_cb_rc_r_u.json | 37 - .../dsymm/test/fixtures/ca_rb_cc_l_l.json | 36 - .../dsymm/test/fixtures/ca_rb_cc_l_u.json | 36 - .../dsymm/test/fixtures/ca_rb_cc_r_l.json | 36 - .../dsymm/test/fixtures/ca_rb_cc_r_u.json | 36 - .../dsymm/test/fixtures/ca_rb_rc_l_l.json | 36 - .../dsymm/test/fixtures/ca_rb_rc_l_u.json | 36 - .../dsymm/test/fixtures/ca_rb_rc_r_l.json | 36 - .../dsymm/test/fixtures/ca_rb_rc_r_u.json | 36 - .../dsymm/test/fixtures/column_major_l_l.json | 31 - .../dsymm/test/fixtures/column_major_l_u.json | 31 - .../dsymm/test/fixtures/column_major_r_l.json | 31 - .../dsymm/test/fixtures/column_major_r_u.json | 31 - .../dsymm/test/fixtures/ra_cb_cc_l_l.json | 36 - .../dsymm/test/fixtures/ra_cb_cc_l_u.json | 36 - .../dsymm/test/fixtures/ra_cb_cc_r_l.json | 37 - .../dsymm/test/fixtures/ra_cb_cc_r_u.json | 37 - .../dsymm/test/fixtures/ra_cb_rc_l_l.json | 36 - .../dsymm/test/fixtures/ra_cb_rc_l_u.json | 36 - .../dsymm/test/fixtures/ra_cb_rc_r_l.json | 37 - .../dsymm/test/fixtures/ra_cb_rc_r_u.json | 37 - .../dsymm/test/fixtures/ra_rb_cc_l_l.json | 36 - .../dsymm/test/fixtures/ra_rb_cc_l_u.json | 36 - .../dsymm/test/fixtures/ra_rb_cc_r_l.json | 36 - .../dsymm/test/fixtures/ra_rb_cc_r_u.json | 36 - .../dsymm/test/fixtures/ra_rb_rc_l_l.json | 36 - .../ra_rb_rc_l_l_complex_access_pattern.json | 36 - .../dsymm/test/fixtures/ra_rb_rc_l_l_oa.json | 36 - .../dsymm/test/fixtures/ra_rb_rc_l_l_ob.json | 36 - .../dsymm/test/fixtures/ra_rb_rc_l_l_oc.json | 36 - .../test/fixtures/ra_rb_rc_l_l_sa1_sa2.json | 36 - .../test/fixtures/ra_rb_rc_l_l_sa1_sa2n.json | 36 - .../test/fixtures/ra_rb_rc_l_l_sa1n_sa2.json | 36 - .../test/fixtures/ra_rb_rc_l_l_sa1n_sa2n.json | 36 - .../test/fixtures/ra_rb_rc_l_l_sb1_sb2.json | 36 - .../test/fixtures/ra_rb_rc_l_l_sb1_sb2n.json | 36 - .../test/fixtures/ra_rb_rc_l_l_sb1n_sb2.json | 36 - .../test/fixtures/ra_rb_rc_l_l_sb1n_sb2n.json | 36 - .../dsymm/test/fixtures/ra_rb_rc_l_u.json | 36 - .../test/fixtures/ra_rb_rc_l_u_sc1_sc2.json | 36 - .../test/fixtures/ra_rb_rc_l_u_sc1_sc2n.json | 36 - .../test/fixtures/ra_rb_rc_l_u_sc1n_sc2.json | 36 - .../test/fixtures/ra_rb_rc_l_u_sc1n_sc2n.json | 36 - .../dsymm/test/fixtures/ra_rb_rc_r_l.json | 36 - .../dsymm/test/fixtures/ra_rb_rc_r_u.json | 36 - .../dsymm/test/fixtures/row_major_l_l.json | 31 - .../dsymm/test/fixtures/row_major_l_u.json | 31 - .../dsymm/test/fixtures/row_major_r_l.json | 31 - .../dsymm/test/fixtures/row_major_r_u.json | 31 - .../blas/base/dsymm/test/test.dsymm.js | 671 -------- .../@stdlib/blas/base/dsymm/test/test.js | 82 - .../blas/base/dsymm/test/test.ndarray.js | 1460 ----------------- 72 files changed, 6324 deletions(-) delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/README.md delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/benchmark/benchmark.js delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/benchmark/benchmark.ndarray.js delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/docs/repl.txt delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/docs/types/index.d.ts delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/docs/types/test.ts delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/examples/index.js delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/lib/base.js delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/lib/dsymm.js delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/lib/index.js delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/lib/main.js delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/lib/ndarray.js delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/package.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_cc_l_l.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_cc_l_u.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_cc_r_l.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_cc_r_u.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_rc_l_l.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_rc_l_u.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_rc_r_l.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_rc_r_u.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_cc_l_l.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_cc_l_u.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_cc_r_l.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_cc_r_u.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_rc_l_l.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_rc_l_u.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_rc_r_l.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_rc_r_u.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/column_major_l_l.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/column_major_l_u.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/column_major_r_l.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/column_major_r_u.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_cc_l_l.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_cc_l_u.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_cc_r_l.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_cc_r_u.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_rc_l_l.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_rc_l_u.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_rc_r_l.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_rc_r_u.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_cc_l_l.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_cc_l_u.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_cc_r_l.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_cc_r_u.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_complex_access_pattern.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_oa.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_ob.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_oc.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sa1_sa2.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sa1_sa2n.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sa1n_sa2.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sa1n_sa2n.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sb1_sb2.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sb1_sb2n.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sb1n_sb2.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sb1n_sb2n.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_u.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_u_sc1_sc2.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_u_sc1_sc2n.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_u_sc1n_sc2.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_u_sc1n_sc2n.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_r_l.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_r_u.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/row_major_l_l.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/row_major_l_u.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/row_major_r_l.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/row_major_r_u.json delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/test.dsymm.js delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/test.js delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/test/test.ndarray.js diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/README.md b/lib/node_modules/@stdlib/blas/base/dsymm/README.md deleted file mode 100644 index e090eefe0c49..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/README.md +++ /dev/null @@ -1,259 +0,0 @@ - - -# dsymm - -> Perform the matrix-matrix operation `C = α*A*B + β*C` or `C = α*B*A + β*C` where `α` and `β` are scalars, `A` is a symmetric matrix and `B` and `C` are `M` by `N` matrices. - -
- -## Usage - -```javascript -var dsymm = require( '@stdlib/blas/base/dsymm' ); -``` - -#### dsymm( ord, side, uplo, M, N, α, A, lda, B, ldb, β, C, ldc ) - -Performs the matrix-matrix operation `C = α*A*B + β*C` or `C = α*B*A + β*C` where `α` and `β` are scalars, `A` is a symmetric matrix and `B` and `C` are `M` by `N` matrices. - -```javascript -var Float64Array = require( '@stdlib/array/float64' ); - -var A = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ] ); -var B = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); -var C = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); - -dsymm( 'row-major', 'left', 'lower', 3, 3, 1.0, A, 3, B, 3, 1.0, C, 3 ); -// C => [ 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0 ] -``` - -The function has the following parameters: - -- **ord**: storage layout. -- **side**: specifies whether `A` appears on the left or right of `B`. -- **uplo**: specifies whether the upper or lower triangular part of the symmetric matrix `A` is supplied. -- **M**: number of rows in the matrix `op(A)` and in the matrix `C`. -- **N**: number of columns in the matrix `op(B)` and in the matrix `C`. -- **α**: scalar constant. -- **A**: first input matrix stored in linear memory as a [`Float64Array`][mdn-float64array]. -- **lda**: stride of the first dimension of `A` (leading dimension of `A`). -- **B**: second input matrix stored in linear memory as a [`Float64Array`][mdn-float64array]. -- **ldb**: stride of the first dimension of `B` (leading dimension of `B`). -- **β**: scalar constant -- **C**: third input matrix stored in linear memory as a [`Float64Array`][mdn-float64array]. -- **ldc**: stride of the first dimension of `C` (leading dimension of `C`). - -The stride parameters determine how elements in the input arrays are accessed at runtime. For example, to perform matrix multiplication of two subarrays - - - -```javascript -var Float64Array = require( '@stdlib/array/float64' ); - -var A = new Float64Array( [ 1.0, 1.0, 1.0, 0.0, 0.0, 0.0, 1.0, 2.0, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 3.0, 0.0, 0.0, 0.0 ] ); -var B = new Float64Array( [ 1.0, 1.0, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.0 ] ); -var C = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); - -dsymm( 'row-major', 'left', 'lower', 3, 3, 1.0, A, 6, B, 6, 1.0, C, 3 ); -// C => [ 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0 ] -``` - - - -#### dsymm.ndarray( side, uplo, M, N, α, A, sa1, sa2, oa, B, sb1, sb2, ob, β, C, sc1, sc2, oc ) - -Performs the matrix-matrix operation `C = α*A*B + β*C` or `C = α*B*A + β*C` using alternative indexing semantics and where `α` and `β` are scalars, `A` is a symmetric matrix and `B` and `C` are `M` by `N` matrices. - -```javascript -var Float64Array = require( '@stdlib/array/float64' ); - -var A = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ] ); -var B = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); -var C = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); - -dsymm.ndarray( 'left', 'lower', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0, 1.0, C, 3, 1, 0 ); -// C => [ 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0 ] -``` - -The function has the following additional parameters: - -- **sa1**: stride of the first dimension of `A`. -- **sa2**: stride of the second dimension of `A`. -- **oa**: starting index for `A`. -- **sb1**: stride of the first dimension of `B`. -- **sb2**: stride of the second dimension of `B`. -- **ob**: starting index for `B`. -- **sc1**: stride of the first dimension of `C`. -- **sc2**: stride of the second dimension of `C`. -- **oc**: starting index for `C`. - -While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying buffer, the offset parameters support indexing semantics based on starting indices. For example, - -```javascript -var Float64Array = require( '@stdlib/array/float64' ); - -var A = new Float64Array( [ 0.0, 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ] ); -var B = new Float64Array( [ 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); -var C = new Float64Array( [ 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); - -dsymm.ndarray( 'left', 'lower', 3, 3, 1.0, A, 3, 1, 1, B, 3, 1, 2, 1.0, C, 3, 1, 3 ); -// C => [ 0.0, 0.0, 0.0, 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0 ] -``` - -
- - - -
- -## Notes - -- `dsymm()` corresponds to the [BLAS][blas] level 3 function [`dsymm`][blas-dsymm]. - -
- - - -
- -## Examples - - - -```javascript -var discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); -var dsymm = require( '@stdlib/blas/base/dsymm' ); - -var opts = { - 'dtype': 'float64' -}; - -var M = 3; -var N = 3; - -var A = discreteUniform( M*N, 0, 10, opts ); -var B = discreteUniform( M*N, 0, 10, opts ); -var C = discreteUniform( M*N, 0, 10, opts ); - -dsymm( 'row-major', 'left', 'lower', M, N, 1.0, A, M, B, N, 1.0, C, N ); -console.log( C ); - -dsymm.ndarray( 'left', 'lower', M, N, 1.0, A, M, 1, 0, B, N, 1, 0, 1.0, C, N, 1, 0 ); -console.log( C ); -``` - -
- - - - - -* * * - -
- -## C APIs - - - -
- -
- - - - - -
- -### Usage - -```c -#include "stdlib/blas/base/dsymm.h" -``` - -#### TODO - -TODO. - -```c -TODO -``` - -TODO - -```c -TODO -``` - -
- - - - - -
- -
- - - - - -
- -### Examples - -```c -TODO -``` - -
- - - -
- - - - - - - - - - - - - - diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/dsymm/benchmark/benchmark.js deleted file mode 100644 index 47856633ea9e..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/benchmark/benchmark.js +++ /dev/null @@ -1,105 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2025 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/array/uniform' ); -var isnan = require( '@stdlib/math/base/assert/is-nan' ); -var pow = require( '@stdlib/math/base/special/pow' ); -var floor = require( '@stdlib/math/base/special/floor' ); -var pkg = require( './../package.json' ).name; -var dsymm = require( './../lib/dsymm.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 = uniform( N*N, -10.0, 10.0, options ); - var C = uniform( N*N, -10.0, 10.0, options ); - 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 = dsymm( 'row-major', 'left', 'lower', N, N, 1.0, A, N, B, N, 1.0, C, 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 = 5; // 10^max - - for ( i = min; i <= max; i++ ) { - len = floor( pow( pow( 10, i ), 1.0/2.0 ) ); - f = createBenchmark( len ); - bench( pkg+':order(A)=row-major,order(B)=row-major,order(C)=row-major,trans(A)=false,trans(B)=false,size='+(len*len), f ); - } -} - -main(); diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/dsymm/benchmark/benchmark.ndarray.js deleted file mode 100644 index a298d9c12717..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/benchmark/benchmark.ndarray.js +++ /dev/null @@ -1,105 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2025 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var bench = require( '@stdlib/bench' ); -var uniform = require( '@stdlib/random/array/uniform' ); -var isnan = require( '@stdlib/math/base/assert/is-nan' ); -var pow = require( '@stdlib/math/base/special/pow' ); -var floor = require( '@stdlib/math/base/special/floor' ); -var pkg = require( './../package.json' ).name; -var dsymm = 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 = uniform( N*N, -10.0, 10.0, options ); - var C = uniform( N*N, -10.0, 10.0, options ); - 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 = dsymm( 'left', 'lower', N, N, 1.0, A, N, 1, 0, B, N, 1, 0, 1.0, C, N, 1, 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 = 5; // 10^max - - for ( i = min; i <= max; i++ ) { - len = floor( pow( pow( 10, i ), 1.0/2.0 ) ); - f = createBenchmark( len ); - bench( pkg+':ndarray:order(A)=row-major,order(B)=row-major,order(C)=row-major,trans(A)=false,trans(B)=false,size='+(len*len), f ); - } -} - -main(); diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/docs/repl.txt b/lib/node_modules/@stdlib/blas/base/dsymm/docs/repl.txt deleted file mode 100644 index d07e8109de3c..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/docs/repl.txt +++ /dev/null @@ -1,158 +0,0 @@ - -{{alias}}( ord, side, uplo, M, N, α, A, lda, B, ldb, β, C, ldc ) - Performs the matrix-matrix operation `C = α*A*B + β*C` or `C = α*B*A + β*C` - where `α` and `β` are scalars, `A` is a symmetric matrix and `B` and `C` are - `M` by `N` matrices. - - 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 `C` unchanged. - - If `α` equals `0` and `β` equals `1`, the function returns `C` unchanged. - - 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 `A` multiplies `B` from the left or right. - - uplo: string - Specifies whether `A` is an upper or lower triangular matrix. - - M: integer - Number of rows in the matrix `C`. - - N: integer - Number of rows in the matrix `C`. - - α: number - Scalar constant. - - A: Float64Array - First 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`). - - β: number - Scalar constant. - - C: Float64Array - Third matrix. - - ldc: integer - Stride of the first dimension of `C` (a.k.a., leading dimension of the - matrix `C`). - - Returns - ------- - C: Float64Array - Third matrix. - - Examples - -------- - // Standard usage: - > var A = new {{alias:@stdlib/array/float64}}( [ 1.0, 1.0, 1.0, 2.0 ] ); - > var B = new {{alias:@stdlib/array/float64}}( [ 1.0, 1.0, 1.0, 1.0 ] ); - > var C = new {{alias:@stdlib/array/float64}}( [ 1.0, 1.0, 1.0, 1.0 ] ); - > var ord = 'row-major'; - > var side = 'left'; - > var uplo = 'lower'; - > {{alias}}( ord, side, uplo, 2, 2, 1.0, A, 2, B, 2, 1.0, C, 2 ) - [ 3.0, 3.0, 4.0, 4.0 ] - - -{{alias}}.ndarray(side,uplo,M,N,α,A,sa1,sa2,oa,B,sb1,sb2,ob,β,C,sc1,sc2,oc) - Performs the matrix-matrix operation `C = α*A*B + β*C` or `C = α*B*A + β*C` - using alternative indexing semantics and where `α` and `β` are scalars, `A` - is a symmetric matrix and `B` and `C` are `M` by `N` matrices. - - 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 `A` multiplies `B` from the left or right. - - uplo: string - Specifies whether `A` is an upper or lower triangular matrix. - - M: integer - Number of rows in the matrix `C`. - - N: integer - Number of rows in the matrix `C`. - - α: number - Scalar constant. - - A: Float64Array - First 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`. - - β: number - Scalar constant. - - C: Float64Array - Third matrix. - - sc1: integer - Stride of the first dimension of `C`. - - sc2: integer - Stride of the second dimension of `C`. - - oc: integer - Starting index for `C`. - - Returns - ------- - C: Float64Array - Third matrix. - - Examples - -------- - > var A = new {{alias:@stdlib/array/float64}}( [ 1.0, 1.0, 1.0, 2.0 ] ); - > var B = new {{alias:@stdlib/array/float64}}( [ 1.0, 1.0, 1.0, 1.0 ] ); - > var C = new {{alias:@stdlib/array/float64}}( [ 1.0, 1.0, 1.0, 1.0 ] ); - > var side = 'left'; - > var uplo = 'lower'; - > {{alias}}.ndarray(side,uplo,2,2,1.0,A,2,1,0,B,2,1,0,1.0,C,2,1,0) - [ 3.0, 3.0, 4.0, 4.0 ] - - See Also - -------- diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/base/dsymm/docs/types/index.d.ts deleted file mode 100644 index 75b954b17cae..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/docs/types/index.d.ts +++ /dev/null @@ -1,138 +0,0 @@ -/* -* @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, OperationSide } from '@stdlib/types/blas'; - -/** -* Interface describing `dsymm`. -*/ -interface Routine { - /** - * Performs the matrix-matrix operation `C = α*A*B + β*C` or `C = α*B*A + β*C` where `α` and `β` are scalars, `A` is a symmetric matrix and `B` and `C` are `M` by `N` matrices. - * - * @param order - storage layout - * @param side - specifies whether `A` appears on the left or right of `B` - * @param uplo - specifies whether the upper or lower triangular part of the symmetric matrix `A` is supplied - * @param M - number of rows in the matrix `C` - * @param N - number of columns in the matrix `C` - * @param alpha - scalar constant - * @param A - first matrix - * @param LDA - stride of the first dimension of `A` (a.k.a., leading dimension of the matrix `A`) - * @param B - second matrix - * @param LDB - stride of the first dimension of `B` (a.k.a., leading dimension of the matrix `B`) - * @param beta - scalar constant - * @param C - third matrix - * @param LDC - stride of the first dimension of `C` (a.k.a., leading dimension of the matrix `C`) - * @returns `C` - * - * @example - * var Float64Array = require( '@stdlib/array/float64' ); - * - * var A = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ] ); - * var B = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); - * var C = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); - * - * dsymm( 'row-major', 'left', 'lower', 3, 3, 1.0, A, 3, B, 3, 1.0, C, 3 ); - * // C => [ 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0 ] - */ - ( order: Layout, side: OperationSide, uplo: MatrixTriangle, M: number, N: number, alpha: number, A: Float64Array, LDA: number, B: Float64Array, LDB: number, beta: number, C: Float64Array, LDC: number ): Float64Array; - - /** - * Performs the matrix-matrix operation `C = α*A*B + β*C` or `C = α*B*A + β*C` using alternative indexing semantics and where `α` and `β` are scalars, `A` is a symmetric matrix and `B` and `C` are `M` by `N` matrices. - * - * @param side - specifies whether `A` appears on the left or right of `B` - * @param uplo - specifies whether the upper or lower triangular part of the symmetric matrix `A` is supplied - * @param M - number of rows in the matrix `C` - * @param N - number of columns in the matrix `C` - * @param alpha - scalar constant - * @param A - first matrix - * @param strideA1 - stride of the first dimension of `A` - * @param strideA2 - stride of the second dimension of `A` - * @param offsetA - starting index for `A` - * @param B - second matrix - * @param strideB1 - stride of the first dimension of `B` - * @param strideB2 - stride of the second dimension of `B` - * @param offsetB - starting index for `B` - * @param beta - scalar constant - * @param C - third matrix - * @param strideC1 - stride of the first dimension of `C` - * @param strideC2 - stride of the second dimension of `C` - * @param offsetC - starting index for `C` - * @returns `C` - * - * @example - * var Float64Array = require( '@stdlib/array/float64' ); - * - * var A = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ] ); - * var B = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); - * var C = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); - * - * dsymm.ndarray( 'left', 'lower', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0, 1.0, C, 3, 1, 0 ); - * // C => [ 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0 ] - */ - ndarray( side: OperationSide, uplo: MatrixTriangle, M: number, N: number, alpha: number, A: Float64Array, strideA1: number, strideA2: number, offsetA: number, B: Float64Array, strideB1: number, strideB2: number, offsetB: number, beta: number, C: Float64Array, strideC1: number, strideC2: number, offsetC: number ): Float64Array; -} - -/** -* Performs the matrix-matrix operation `C = α*A*B + β*C` or `C = α*B*A + β*C` where `α` and `β` are scalars, `A` is a symmetric matrix and `B` and `C` are `M` by `N` matrices. -* -* @param order - storage layout -* @param side - specifies whether `A` appears on the left or right of `B` -* @param uplo - specifies whether the upper or lower triangular part of the symmetric matrix `A` is supplied -* @param M - number of rows in the matrix `C` -* @param N - number of columns in the matrix `C` -* @param alpha - scalar constant -* @param A - first matrix -* @param LDA - stride of the first dimension of `A` (a.k.a., leading dimension of the matrix `A`) -* @param B - second matrix -* @param LDB - stride of the first dimension of `B` (a.k.a., leading dimension of the matrix `B`) -* @param beta - scalar constant -* @param C - third matrix -* @param LDC - stride of the first dimension of `C` (a.k.a., leading dimension of the matrix `C`) -* @returns `C` -* -* @example -* var Float64Array = require( '@stdlib/array/float64' ); -* -* var A = new Float64Array( [ 1.0, 3.0, 2.0, 4.0 ] ); -* var B = new Float64Array( [ 1.0, 0.0, 1.0, 1.0 ] ); -* var C = new Float64Array( [ 1.0, 3.0, 2.0, 4.0 ] ); -* -* dsymm( 'row-major', 'left', 'lower', 3, 3, 1.0, A, 3, B, 3, 1.0, C, 3 ); -* // C => [ 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0 ] -* -* @example -* var Float64Array = require( '@stdlib/array/float64' ); -* -* var A = new Float64Array( [ 1.0, 3.0, 2.0, 4.0 ] ); -* var B = new Float64Array( [ 1.0, 0.0, 1.0, 1.0 ] ); -* var C = new Float64Array( [ 1.0, 3.0, 2.0, 4.0 ] ); -* -* dsymm.ndarray( 'left', 'lower', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0, 1.0, C, 3, 1, 0 ); -* // C => [ 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0 ] -*/ -declare var dsymm: Routine; - - -// EXPORTS // - -export = dsymm; diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/docs/types/test.ts b/lib/node_modules/@stdlib/blas/base/dsymm/docs/types/test.ts deleted file mode 100644 index 56e54fda17ab..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/docs/types/test.ts +++ /dev/null @@ -1,585 +0,0 @@ -/* -* @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 dsymm = require( './index' ); - - -// TESTS // - -// The function returns a Float64Array... -{ - const A = new Float64Array( 25 ); - const B = new Float64Array( 25 ); - const C = new Float64Array( 25 ); - - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectType Float64Array -} - -// The compiler throws an error if the function is provided a first argument which is not a string... -{ - const A = new Float64Array( 25 ); - const B = new Float64Array( 25 ); - const C = new Float64Array( 25 ); - - dsymm( 10, 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( true, 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( false, 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( null, 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( undefined, 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( [], 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( {}, 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( ( A: number ): number => A, 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError -} - -// The compiler throws an error if the function is provided a second argument which is not a string... -{ - const A = new Float64Array( 25 ); - const B = new Float64Array( 25 ); - const C = new Float64Array( 25 ); - - dsymm( 'row-major', 10, 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', true, 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', false, 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', null, 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', undefined, 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', [ '1' ], 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', {}, 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', ( A: number ): number => A, 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError -} - -// The compiler throws an error if the function is provided a third argument which is not a string... -{ - const A = new Float64Array( 25 ); - const B = new Float64Array( 25 ); - const C = new Float64Array( 25 ); - - dsymm( 'row-major', 'left', 10, 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', true, 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', false, 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', null, 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', undefined, 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', [ '1' ], 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', {}, 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', ( A: number ): number => A, 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError -} - -// The compiler throws an error if the function is provided a fourth argument which is not a number... -{ - const A = new Float64Array( 25 ); - const B = new Float64Array( 25 ); - const C = new Float64Array( 25 ); - - dsymm( 'row-major', 'left', 'lower', '10', 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', true, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', false, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', null, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', undefined, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', [], 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', {}, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', ( A: number ): number => A, 5, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError -} - -// The compiler throws an error if the function is provided a fifth argument which is not a number... -{ - const A = new Float64Array( 25 ); - const B = new Float64Array( 25 ); - const C = new Float64Array( 25 ); - - dsymm( 'row-major', 'left', 'lower', 5, '10', 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, true, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, false, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, null, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, undefined, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, [], 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, {}, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, ( A: number ): number => A, 1.0, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError -} - -// The compiler throws an error if the function is provided a sixth argument which is not a number... -{ - const A = new Float64Array( 25 ); - const B = new Float64Array( 25 ); - const C = new Float64Array( 25 ); - - dsymm( 'row-major', 'left', 'lower', 5, 5, '10', A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, true, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, false, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, null, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, undefined, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, [], A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, {}, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, ( A: number ): number => A, A, 5, B, 5, 1.0, C, 5 ); // $ExpectError -} - -// The compiler throws an error if the function is provided an seventh argument which is not a Float64Array... -{ - const B = new Float64Array( 25 ); - const C = new Float64Array( 25 ); - - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, 10, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, '10', 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, true, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, false, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, null, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, undefined, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, [ '1' ], 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, {}, 5, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, ( A: number ): number => A, 5, B, 5, 1.0, C, 5 ); // $ExpectError -} - -// The compiler throws an error if the function is provided a eighth argument which is not a number... -{ - const A = new Float64Array( 25 ); - const B = new Float64Array( 25 ); - const C = new Float64Array( 25 ); - - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, '10', B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, true, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, false, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, null, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, undefined, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, [], B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, {}, B, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, ( A: number ): number => A, B, 5, 1.0, C, 5 ); // $ExpectError -} - -// The compiler throws an error if the function is provided a ninth argument which is not a Float64Array... -{ - const A = new Float64Array( 25 ); - const C = new Float64Array( 25 ); - - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, 10, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, '10', 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, true, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, false, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, null, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, undefined, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, [ '1' ], 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, {}, 5, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, ( A: number ): number => A, 5, 1.0, C, 5 ); // $ExpectError -} - -// The compiler throws an error if the function is provided an tenth argument which is not a number... -{ - const A = new Float64Array( 25 ); - const B = new Float64Array( 25 ); - const C = new Float64Array( 25 ); - - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, '10', 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, true, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, false, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, null, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, undefined, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, [], 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, {}, 1.0, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, ( A: number ): number => A, 1.0, C, 5 ); // $ExpectError -} - -// The compiler throws an error if the function is provided a eleventh argument which is not a number... -{ - const A = new Float64Array( 25 ); - const B = new Float64Array( 25 ); - const C = new Float64Array( 25 ); - - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, '10', C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, true, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, false, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, null, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, undefined, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, [], C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, {}, C, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, ( A: number ): number => A, C, 5 ); // $ExpectError -} - -// The compiler throws an error if the function is provided a twelfth argument which is not a Float64Array... -{ - const A = new Float64Array( 25 ); - const B = new Float64Array( 25 ); - - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, 10, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, '10', 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, true, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, false, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, null, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, undefined, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, [ '1' ], 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, {}, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, ( A: number ): number => A, 5 ); // $ExpectError -} - -// The compiler throws an error if the function is provided a thirteenth argument which is not a number... -{ - const A = new Float64Array( 25 ); - const B = new Float64Array( 25 ); - const C = new Float64Array( 25 ); - - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, '10' ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, true ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, false ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, null ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, undefined ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, [] ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, {} ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, ( A: number ): number => A ); // $ExpectError -} - -// The compiler throws an error if the function is provided an unsupported number of arguments... -{ - const A = new Float64Array( 25 ); - const B = new Float64Array( 25 ); - const C = new Float64Array( 25 ); - - dsymm(); // $ExpectError - dsymm( 'row-major' ); // $ExpectError - dsymm( 'row-major', 'left' ); // $ExpectError - dsymm( 'row-major', 'left', 'lower' ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0 ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C ); // $ExpectError - dsymm( 'row-major', 'left', 'lower', 5, 5, 1.0, A, 5, B, 5, 1.0, C, 5, 10 ); // $ExpectError -} - -// Attached to main export is an `ndarray` method which returns a Float64Array... -{ - const A = new Float64Array( 25 ); - const B = new Float64Array( 25 ); - const C = new Float64Array( 25 ); - - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 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( 25 ); - const B = new Float64Array( 25 ); - const C = new Float64Array( 25 ); - - dsymm.ndarray( 10, 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( true, 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( false, 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( null, 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( undefined, 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( [ '1' ], 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( {}, 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( ( A: number ): number => A, 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 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( 25 ); - const B = new Float64Array( 25 ); - const C = new Float64Array( 25 ); - - dsymm.ndarray( 'left', 10, 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', true, 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', false, 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', null, 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', undefined, 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', [ '1' ], 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', {}, 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', ( A: number ): number => A, 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError -} - -// The compiler throws an error if the function is provided a third argument which is not a number... -{ - const A = new Float64Array( 25 ); - const B = new Float64Array( 25 ); - const C = new Float64Array( 25 ); - - dsymm.ndarray( 'left', 'lower', '10', 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', true, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', false, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', null, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', undefined, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', [], 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', {}, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', ( A: number ): number => A, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError -} - -// The compiler throws an error if the function is provided a fourth argument which is not a number... -{ - const A = new Float64Array( 25 ); - const B = new Float64Array( 25 ); - const C = new Float64Array( 25 ); - - dsymm.ndarray( 'left', 'lower', 5, '10', 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, true, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, false, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, null, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, undefined, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, [], 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, {}, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, ( A: number ): number => A, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 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( 25 ); - const B = new Float64Array( 25 ); - const C = new Float64Array( 25 ); - - dsymm.ndarray( 'left', 'lower', 5, '10', 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, true, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, false, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, null, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, undefined, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, [], 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, {}, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, ( A: number ): number => A, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError -} - -// The compiler throws an error if the function is provided a sixth argument which is not a number... -{ - const B = new Float64Array( 25 ); - const C = new Float64Array( 25 ); - - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, 10, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, '10', 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, true, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, false, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, null, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, undefined, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, [ '1' ], 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, {}, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, ( A: number ): number => A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError -} - -// The compiler throws an error if the function is provided an seventh argument which is not a number... -{ - const A = new Float64Array( 25 ); - const B = new Float64Array( 25 ); - const C = new Float64Array( 25 ); - - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, '10', 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, true, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, false, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, null, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, undefined, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, [], 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, {}, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, ( A: number ): number => A, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError -} - -// The compiler throws an error if the function is provided a eighth argument which is not a number... -{ - const A = new Float64Array( 25 ); - const B = new Float64Array( 25 ); - const C = new Float64Array( 25 ); - - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, '10', 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, true, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, false, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, null, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, undefined, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, [], 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, {}, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, ( A: number ): number => A, 0, B, 5, 1, 0, 1.0, C, 5, 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( 25 ); - const B = new Float64Array( 25 ); - const C = new Float64Array( 25 ); - - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, '10', B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, true, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, false, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, null, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, undefined, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, [], B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, {}, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, ( A: number ): number => A, B, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError -} - -// The compiler throws an error if the function is provided an tenth argument which is not a Float64Array... -{ - const A = new Float64Array( 25 ); - const C = new Float64Array( 25 ); - - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, 10, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, '10', 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, true, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, false, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, null, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, undefined, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, [ '1' ], 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, {}, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, ( A: number ): number => A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError -} - -// The compiler throws an error if the function is provided a eleventh argument which is not a number... -{ - const A = new Float64Array( 25 ); - const B = new Float64Array( 25 ); - const C = new Float64Array( 25 ); - - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, '10', 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, true, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, false, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, null, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, undefined, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, [], 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, {}, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, ( A: number ): number => A, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError -} - -// The compiler throws an error if the function is provided a twelfth argument which is not a number... -{ - const A = new Float64Array( 25 ); - const B = new Float64Array( 25 ); - const C = new Float64Array( 25 ); - - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, '10', 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, true, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, false, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, null, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, undefined, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, [], 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, {}, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, ( A: number ): number => A, 0, 1.0, C, 5, 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( 25 ); - const B = new Float64Array( 25 ); - const C = new Float64Array( 25 ); - - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, '10', 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, true, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, false, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, null, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, undefined, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, [], 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, {}, 1.0, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, ( A: number ): number => A, 1.0, C, 5, 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( 25 ); - const B = new Float64Array( 25 ); - const C = new Float64Array( 25 ); - - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, '10', C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, true, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, false, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, null, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, undefined, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, [], C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, {}, C, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, ( A: number ): number => A, C, 5, 1, 0 ); // $ExpectError -} - -// The compiler throws an error if the function is provided a fifteenth argument which is not a Float64Array... -{ - const A = new Float64Array( 25 ); - const B = new Float64Array( 25 ); - - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, 10, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, '10', 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, true, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, false, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, null, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, undefined, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, [ '1' ], 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, {}, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, ( A: number ): number => A, 5, 1, 0 ); // $ExpectError -} - -// The compiler throws an error if the function is provided a sixteenth argument which is not a number... -{ - const A = new Float64Array( 25 ); - const B = new Float64Array( 25 ); - const C = new Float64Array( 25 ); - - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, '10', 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, true, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, false, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, null, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, undefined, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, [], 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, {}, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, ( A: number ): number => A, 1, 0 ); // $ExpectError -} - -// The compiler throws an error if the function is provided an seventeenth argument which is not a number... -{ - const A = new Float64Array( 25 ); - const B = new Float64Array( 25 ); - const C = new Float64Array( 25 ); - - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, '10', 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, true, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, false, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, null, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, undefined, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, [], 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, {}, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, ( A: number ): number => A, 0 ); // $ExpectError -} - -// The compiler throws an error if the function is provided a eighteenth argument which is not a number... -{ - const A = new Float64Array( 25 ); - const B = new Float64Array( 25 ); - const C = new Float64Array( 25 ); - - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, '10' ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, true ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, false ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, null ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, undefined ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, [] ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, {} ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, ( A: number ): number => A ); // $ExpectError -} - -// The compiler throws an error if the `ndarray` method is provided an unsupported number of arguments... -{ - const A = new Float64Array( 25 ); - const B = new Float64Array( 25 ); - const C = new Float64Array( 25 ); - - dsymm.ndarray(); // $ExpectError - dsymm.ndarray( 'left' ); // $ExpectError - dsymm.ndarray( 'left', 'lower' ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 5 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1 ); // $ExpectError - dsymm.ndarray( 'left', 'lower', 5, 5, 1.0, A, 5, 1, 0, B, 5, 1, 0, 1.0, C, 5, 1, 0, 10 ); // $ExpectError -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/examples/index.js b/lib/node_modules/@stdlib/blas/base/dsymm/examples/index.js deleted file mode 100644 index 75104fb3d919..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/examples/index.js +++ /dev/null @@ -1,39 +0,0 @@ -/** -* @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 dsymm = require( './../lib' ); - -var opts = { - 'dtype': 'float64' -}; - -var M = 3; -var N = 3; - -var A = discreteUniform( M*N, 0, 10, opts ); -var B = discreteUniform( M*N, 0, 10, opts ); -var C = discreteUniform( M*N, 0, 10, opts ); - -dsymm( 'row-major', 'left', 'lower', M, N, 1.0, A, M, B, N, 1.0, C, N ); -console.log( C ); - -dsymm.ndarray( 'left', 'lower', M, N, 1.0, A, M, 1, 0, B, N, 1, 0, 1.0, C, N, 1, 0 ); -console.log( C ); diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/lib/base.js b/lib/node_modules/@stdlib/blas/base/dsymm/lib/base.js deleted file mode 100644 index 26b8aa463040..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/lib/base.js +++ /dev/null @@ -1,328 +0,0 @@ -/** -* @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-params */ - -'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; -} - -/** -* Scales each element in a matrix by a scalar `β`. -* -* @private -* @param {NonNegativeInteger} M - number of rows -* @param {NonNegativeInteger} N - number of columns -* @param {number} beta - scalar -* @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 ] ); -* -* scal( 2, 3, 5.0, X, 3, 1, 0 ); -* // X => [ 5.0, 10.0, 15.0, 20.0, 25.0, 30.0 ] -* -* @example -* var Float64Array = require( '@stdlib/array/float64' ); -* -* var X = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); -* -* scal( 2, 3, 5.0, X, 1, 2, 0 ); -* // X => [ 5.0, 10.0, 15.0, 20.0, 25.0, 30.0 ] -*/ -function scal( M, N, beta, 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 ] *= beta; - ix += dx0; - } - ix += dx1; - } - return X; -} - - -// MAIN // - -/** -* Performs the matrix-matrix operation `C = α*A*B + β*C` or `C = α*B*A + β*C` where `α` and `β` are scalars, `A` is a symmetric matrix and B and C are `M` by `N` matrices. -* -* @private -* @param {string} side - specifies whether `A` appears on the left or right of `B` -* @param {string} uplo - specifies whether the upper or lower triangular part of the symmetric matrix `A` is supplied -* @param {NonNegativeInteger} M - number of rows in the matrix `C` -* @param {NonNegativeInteger} N - number of columns in the matrix `C` -* @param {number} alpha - scalar constant -* @param {Float64Array} A - first matrix -* @param {integer} strideA1 - stride of the first dimension of `A` -* @param {integer} strideA2 - stride of the second dimension of `A` -* @param {NonNegativeInteger} offsetA - starting index for `A` -* @param {Float64Array} B - second matrix -* @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` -* @param {number} beta - scalar constant -* @param {Float64Array} C - third matrix -* @param {integer} strideC1 - stride of the first dimension of `C` -* @param {integer} strideC2 - stride of the second dimension of `C` -* @param {NonNegativeInteger} offsetC - starting index for `C` -* @returns {Float64Array} `C` -* -* @example -* var Float64Array = require( '@stdlib/array/float64' ); -* -* var A = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ] ); -* var B = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); -* var C = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); -* -* dsymm( 'left', 'lower', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0, 1.0, C, 3, 1, 0 ); -* // C => [ 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0 ] -*/ -function dsymm( side, uplo, M, N, alpha, A, strideA1, strideA2, offsetA, B, strideB1, strideB2, offsetB, beta, C, strideC1, strideC2, offsetC ) { - var isrma; - var tmp; - var sa0; - var sa1; - var sb0; - var sb1; - var sc0; - var sc1; - var oa2; - var idx; - 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 ] ); - - // Check whether we can early return... - if ( M === 0 || N === 0 || ( ( beta === 1.0 ) && ( alpha === 0.0 ) ) ) { - return C; - } - 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; - sc0 = strideC2; - sc1 = strideC1; - } 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; - sc0 = strideC1; - sc1 = strideC2; - } - if ( beta === 0.0 ) { - C = zeros( M, N, C, strideC1, strideC2, offsetC ); - } else if ( beta !== 1.0 ) { - C = scal( M, N, beta, C, strideC1, strideC2, offsetC ); - } - // Check whether we can early return... - if ( alpha === 0.0 ) { - return C; - } - oa = offsetA; - ob = offsetB; - if ( - ( isrma && side === 'left' && uplo === 'upper' ) || - ( !isrma && side === 'right' && uplo === 'lower' ) - ) { - for ( i = 0; i < M; i++ ) { - for ( j = 0; j < N; j++ ) { - tmp = 0.0; - for ( k = 0; k < i; k++ ) { - oa2 = A[ oa + ( k * sa1 ) + ( i * sa0 ) ]; - tmp += oa2 * B[ ob + ( k * sb1 ) + ( j * sb0 ) ]; - } - for ( k = i; k < M; k++ ) { - oa2 = A[ oa + ( i * sa1 ) + ( k * sa0 ) ]; - tmp += oa2 * B[ ob + ( k * sb1 ) + ( j * sb0 ) ]; - } - idx = offsetC + ( i * sc1 ) + ( j * sc0 ); - C[ idx ] += alpha * tmp; - } - } - return C; - } - if ( - ( isrma && side === 'left' && uplo === 'lower' ) || - ( !isrma && side === 'right' && uplo === 'upper' ) - ) { - for ( i = 0; i < M; i++ ) { - for ( j = 0; j < N; j++ ) { - tmp = 0.0; - for ( k = 0; k < i; k++ ) { - oa2 = A[ oa + ( i * sa1 ) + ( k * sa0 ) ]; - tmp += oa2 * B[ ob + ( k * sb1 ) + ( j * sb0 ) ]; - } - for ( k = i; k < M; k++ ) { - oa2 = A[ oa + ( k * sa1 ) + ( i * sa0 ) ]; - tmp += oa2 * B[ ob + ( k * sb1 ) + ( j * sb0 ) ]; - } - idx = offsetC + ( i * sc1 ) + ( j * sc0 ); - C[ idx ] += alpha * tmp; - } - } - return C; - } - if ( - ( isrma && side === 'right' && uplo === 'upper' ) || - ( !isrma && side === 'left' && uplo === 'lower' ) - ) { - for ( i = 0; i < M; i++ ) { - for ( j = 0; j < N; j++ ) { - tmp = 0.0; - for ( k = 0; k < j; k++ ) { - oa2 = A[ oa + ( k * sa1 ) + ( j * sa0 ) ]; - tmp += B[ ob + ( i * sb1 ) + ( k * sb0 ) ] * oa2; - } - for ( k = j; k < N; k++ ) { - oa2 = A[ oa + ( j * sa1 ) + ( k * sa0 ) ]; - tmp += B[ ob + ( i * sb1 ) + ( k * sb0 ) ] * oa2; - } - idx = offsetC + ( i * sc1 ) + ( j * sc0 ); - C[ idx ] += alpha * tmp; - } - } - return C; - } - // ( isrma && side === 'right' && uplo === 'lower' ) || ( !isrma && side === 'left' && uplo === 'upper' ) - for ( i = 0; i < M; i++ ) { - for ( j = 0; j < N; j++ ) { - tmp = 0.0; - for ( k = 0; k < j; k++ ) { - oa2 = A[ oa + ( j * sa1 ) + ( k * sa0 ) ]; - tmp += B[ ob + ( i * sb1 ) + ( k * sb0 ) ] * oa2; - } - for ( k = j; k < N; k++ ) { - oa2 = A[ oa + ( k * sa1 ) + ( j * sa0 ) ]; - tmp += B[ ob + ( i * sb1 ) + ( k * sb0 ) ] * oa2; - } - idx = offsetC + ( i * sc1 ) + ( j * sc0 ); - C[ idx ] += alpha * tmp; - } - } - return C; -} - - -// EXPORTS // - -module.exports = dsymm; diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/lib/dsymm.js b/lib/node_modules/@stdlib/blas/base/dsymm/lib/dsymm.js deleted file mode 100644 index 4aa68fb39e7f..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/lib/dsymm.js +++ /dev/null @@ -1,140 +0,0 @@ -/** -* @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 isRowMajor = require( '@stdlib/ndarray/base/assert/is-row-major-string' ); -var isColumnMajor = require( '@stdlib/ndarray/base/assert/is-column-major-string' ); -var format = require( '@stdlib/string/format' ); -var base = require( './base.js' ); - - -// MAIN // - -/** -* Performs the matrix-matrix operation `C = α*A*B + β*C` or `C = α*B*A + β*C` where `α` and `β` are scalars, `A` is a symmetric matrix and `B` and `C` are `M` by `N` matrices. -* -* @param {string} order - storage layout -* @param {string} side - specifies whether `A` appears on the left or right of `B` -* @param {string} uplo - specifies whether the upper or lower triangular part of the symmetric matrix `A` is supplied -* @param {NonNegativeInteger} M - number of rows in the matrix `op(A)` and in the matrix `C` -* @param {NonNegativeInteger} N - number of columns in the matrix `op(B)` and in the matrix `C` -* @param {number} alpha - scalar constant -* @param {Float64Array} A - first matrix -* @param {PositiveInteger} LDA - stride of the first dimension of `A` (a.k.a., leading dimension of the matrix `A`) -* @param {Float64Array} B - second matrix -* @param {PositiveInteger} LDB - stride of the first dimension of `B` (a.k.a., leading dimension of the matrix `B`) -* @param {number} beta - scalar constant -* @param {Float64Array} C - third matrix -* @param {PositiveInteger} LDC - stride of the first dimension of `C` (a.k.a., leading dimension of the matrix `C`) -* @throws {TypeError} first argument must be a valid order -* @throws {TypeError} second argument must be a valid transpose operation -* @throws {TypeError} third argument must be a valid transpose operation -* @throws {RangeError} fourth argument must be a nonnegative integer -* @throws {RangeError} fifth argument must be a nonnegative integer -* @throws {RangeError} eighth argument must be greater than or equal to max(1,M) when `A` is on the left of `B` and max(1,N) otherwise -* @throws {RangeError} tenth argument must be greater than or equal to max(1,M) -* @throws {RangeError} thirteenth argument must be greater than or equal to max(1,M) -* @returns {Float64Array} `C` -* -* @example -* var Float64Array = require( '@stdlib/array/float64' ); -* -* var A = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ] ); -* var B = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); -* var C = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); -* -* dsymm( 'row-major', 'left', 'lower', 3, 3, 1.0, A, 3, B, 3, 1.0, C, 3 ); -* // C => [ 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0 ] -*/ -function dsymm( order, side, uplo, M, N, alpha, A, LDA, B, LDB, beta, C, LDC ) { // eslint-disable-line max-params - var nrowsa; - var isrm; - var iscm; - var val; - var sa1; - var sa2; - var sb1; - var sb2; - var sc1; - var sc2; - - if ( !isLayout( order ) ) { - throw new TypeError( format( 'invalid argument. First argument must be a valid order. Value: `%s`.', order ) ); - } - if ( !isOperationSide( side ) ) { - throw new TypeError( format( 'invalid argument. Second argument must be a valid side. Value: `%s`.', side ) ); - } - if ( !isMatrixTriangle( uplo ) ) { - throw new TypeError( format( 'invalid argument. Third argument must specify whether the lower or upper triangular matrix is supplied. Value: `%s`.', uplo ) ); - } - if ( M < 0 ) { - throw new RangeError( format( 'invalid argument. Fourth argument must be a nonnegative integer. Value: `%d`.', M ) ); - } - if ( N < 0 ) { - throw new RangeError( format( 'invalid argument. Fifth argument must be a nonnegative integer. Value: `%d`.', M ) ); - } - if ( side === 'right' ) { - nrowsa = N; - } else { - nrowsa = M; - } - if ( LDA < max( 1, nrowsa ) ) { - throw new RangeError( format( 'invalid argument. Eighth argument must be greater than or equal to max(1,%d). Value: `%d`.', nrowsa, LDA ) ); - } - isrm = isRowMajor( order ); - iscm = isColumnMajor( order ); - if ( isrm ) { - val = N; - } else { - val = M; - } - if ( LDB < max( 1, val ) ) { - throw new RangeError( format( 'invalid argument. Tenth argument must be greater than or equal to max(1,%d). Value: `%d`.', val, LDB ) ); - } - if ( LDC < max( 1, val ) ) { - throw new RangeError( format( 'invalid argument. Thirteenth argument must be greater than or equal to max(1,%d). Value: `%d`.', val, LDC ) ); - } - if ( iscm ) { - sa1 = 1; - sa2 = LDA; - sb1 = 1; - sb2 = LDB; - sc1 = 1; - sc2 = LDC; - } else { // order === 'row-major' - sa1 = LDA; - sa2 = 1; - sb1 = LDB; - sb2 = 1; - sc1 = LDC; - sc2 = 1; - } - return base( side, uplo, M, N, alpha, A, sa1, sa2, 0, B, sb1, sb2, 0, beta, C, sc1, sc2, 0 ); // eslint-disable-line max-len -} - - -// EXPORTS // - -module.exports = dsymm; diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/lib/index.js b/lib/node_modules/@stdlib/blas/base/dsymm/lib/index.js deleted file mode 100644 index c8eef0e6bc96..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/lib/index.js +++ /dev/null @@ -1,72 +0,0 @@ -/** -* @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 level 3 routine to perform the matrix-matrix operation `C = α*A*B + β*C` or `C = α*B*A + β*C` where `α` and `β` are scalars, `A` is a symmetric matrix and `B` and `C` are `M` by `N` matrices. -* -* @module @stdlib/blas/base/dsymm -* -* @example -* var Float64Array = require( '@stdlib/array/float64' ); -* var dsymm = require( '@stdlib/blas/base/dsymm' ); -* -* var A = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ] ); -* var B = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); -* var C = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); -* -* dsymm( 'row-major', 'left', 'lower', 3, 3, 1.0, A, 3, B, 3, 1.0, C, 3 ); -* // C => [ 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0 ] -* -* @example -* var Float64Array = require( '@stdlib/array/float64' ); -* var dsymm = require( '@stdlib/blas/base/dsymm' ); -* -* var A = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ] ); -* var B = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); -* var C = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); -* -* dsymm.ndarray( 'left', 'lower', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0, 1.0, C, 3, 1, 0 ); -* // C => [ 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.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 dsymm; -var tmp = tryRequire( join( __dirname, './native.js' ) ); -if ( isError( tmp ) ) { - dsymm = main; -} else { - dsymm = tmp; -} - - -// EXPORTS // - -module.exports = dsymm; - -// exports: { "ndarray": "dsymm.ndarray" } diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/lib/main.js b/lib/node_modules/@stdlib/blas/base/dsymm/lib/main.js deleted file mode 100644 index 0ffc283d5386..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/lib/main.js +++ /dev/null @@ -1,35 +0,0 @@ -/** -* @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 dsymm = require( './dsymm.js' ); -var ndarray = require( './ndarray.js' ); - - -// MAIN // - -setReadOnly( dsymm, 'ndarray', ndarray ); - - -// EXPORTS // - -module.exports = dsymm; diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/lib/ndarray.js b/lib/node_modules/@stdlib/blas/base/dsymm/lib/ndarray.js deleted file mode 100644 index 6b80dde75211..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/lib/ndarray.js +++ /dev/null @@ -1,95 +0,0 @@ -/** -* @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 format = require( '@stdlib/string/format' ); -var base = require( './base.js' ); - - -// MAIN // - -/** -* Performs the matrix-matrix operation `C = α*A*B + β*C` or `C = α*B*A + β*C` where `α` and `β` are scalars, `A` is a symmetric matrix and `B` and `C` are `M` by `N` matrices. -* -* @param {string} side - specifies whether `A` appears on the left or right of `B` -* @param {string} uplo - specifies whether the upper or lower triangular part of the symmetric matrix `A` is supplied -* @param {NonNegativeInteger} M - number of rows in the matrix `C` -* @param {NonNegativeInteger} N - number of columns in the matrix `C` -* @param {number} alpha - scalar constant -* @param {Float64Array} A - first matrix -* @param {integer} strideA1 - stride of the first dimension of `A` -* @param {integer} strideA2 - stride of the second dimension of `A` -* @param {NonNegativeInteger} offsetA - starting index for `A` -* @param {Float64Array} B - second matrix -* @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` -* @param {number} beta - scalar constant -* @param {Float64Array} C - third matrix -* @param {integer} strideC1 - stride of the first dimension of `C` -* @param {integer} strideC2 - stride of the second dimension of `C` -* @param {NonNegativeInteger} offsetC - starting index for `C` -* @throws {TypeError} first argument must be a valid transpose operation -* @throws {TypeError} second argument must be a valid transpose operation -* @throws {RangeError} third argument must be a nonnegative integer -* @throws {RangeError} fourth argument must be a nonnegative integer -* @throws {RangeError} sixteenth argument must be non-zero -* @throws {RangeError} seventeenth argument must be non-zero -* @returns {Float64Array} `C` -* -* @example -* var Float64Array = require( '@stdlib/array/float64' ); -* -* var A = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 2.0, 1.0, 1.0, 1.0, 3.0 ] ); -* var B = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); -* var C = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] ); -* -* dsymm( 'left', 'lower', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0, 1.0, C, 3, 1, 0 ); -* // C => [ 4.0, 4.0, 4.0, 5.0, 5.0, 5.0, 6.0, 6.0, 6.0 ] -*/ -function dsymm( side, uplo, M, N, alpha, A, strideA1, strideA2, offsetA, B, strideB1, strideB2, offsetB, beta, C, strideC1, strideC2, offsetC ) { // eslint-disable-line max-params, max-len - 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 ( M < 0 ) { - throw new RangeError( format( 'invalid argument. Third argument must be a nonnegative integer. Value: `%d`.', M ) ); - } - if ( N < 0 ) { - throw new RangeError( format( 'invalid argument. Fourth argument must be a nonnegative integer. Value: `%d`.', M ) ); - } - if ( strideC1 === 0 ) { - throw new RangeError( format( 'invalid argument. Sixteenth argument must be non-zero. Value: `%d`.', strideC1 ) ); - } - if ( strideC2 === 0 ) { - throw new RangeError( format( 'invalid argument. Seventeenth argument must be non-zero. Value: `%d`.', strideC2 ) ); - } - return base( side, uplo, M, N, alpha, A, strideA1, strideA2, offsetA, B, strideB1, strideB2, offsetB, beta, C, strideC1, strideC2, offsetC ); // eslint-disable-line max-len -} - - -// EXPORTS // - -module.exports = dsymm; diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/package.json b/lib/node_modules/@stdlib/blas/base/dsymm/package.json deleted file mode 100644 index f0ada41e2428..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/package.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "name": "@stdlib/blas/base/dsymm", - "version": "0.0.0", - "description": "Perform the matrix-matrix operation `C = α*A*B + β*C` or `C = α*B*A + β*C` where `α` and `β` are scalars, `A` is a symmetric matrix and B and C are `M` by `N` matrices", - "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", - "dsymm", - "linear", - "algebra", - "subroutines", - "array", - "ndarray", - "float64", - "double", - "float64array" - ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_cc_l_l.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_cc_l_l.json deleted file mode 100644 index e5f6040cdf8d..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_cc_l_l.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "side": "left", - "uplo": "lower", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 1, - "strideC2": 3, - "offsetC": 0, - "C_out": [ 45.0, 43.0, 64.0, 53.0, 52.0, 79.0, 61.0, 61.0, 94.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_cc_l_u.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_cc_l_u.json deleted file mode 100644 index 23e2cf01c19e..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_cc_l_u.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "side": "left", - "uplo": "upper", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 1, - "strideC2": 3, - "offsetC": 0, - "C_out": [ 45.0, 43.0, 64.0, 53.0, 52.0, 79.0, 61.0, 61.0, 94.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_cc_r_l.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_cc_r_l.json deleted file mode 100644 index 965513a1e1e5..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_cc_r_l.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "order": "column-major", - "side": "right", - "uplo": "lower", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 1, - "strideC2": 3, - "offsetC": 0, - "C_out": [ 21.0, 45.0, 69.0, 21.0, 48.0, 75.0, 32.0, 77.0, 122.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_cc_r_u.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_cc_r_u.json deleted file mode 100644 index 861245296cbd..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_cc_r_u.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "order": "column-major", - "side": "right", - "uplo": "upper", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 1, - "strideC2": 3, - "offsetC": 0, - "C_out": [ 21.0, 45.0, 69.0, 21.0, 48.0, 75.0, 32.0, 77.0, 122.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_rc_l_l.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_rc_l_l.json deleted file mode 100644 index ae91928f65d7..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_rc_l_l.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "side": "left", - "uplo": "lower", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 3, - "strideC2": 1, - "offsetC": 0, - "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_rc_l_u.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_rc_l_u.json deleted file mode 100644 index ceaaf4c11e93..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_rc_l_u.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "side": "left", - "uplo": "upper", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 3, - "strideC2": 1, - "offsetC": 0, - "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_rc_r_l.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_rc_r_l.json deleted file mode 100644 index 451ba8dd764d..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_rc_r_l.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "order": "column-major", - "side": "right", - "uplo": "lower", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 3, - "strideC2": 1, - "offsetC": 0, - "C_out": [ 21.0, 21.0, 32.0, 45.0, 48.0, 77.0, 69.0, 75.0, 122.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_rc_r_u.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_rc_r_u.json deleted file mode 100644 index bc099dc8dd45..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_cb_rc_r_u.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "order": "column-major", - "side": "right", - "uplo": "upper", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 3, - "strideC2": 1, - "offsetC": 0, - "C_out": [ 21.0, 21.0, 32.0, 45.0, 48.0, 77.0, 69.0, 75.0, 122.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_cc_l_l.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_cc_l_l.json deleted file mode 100644 index d277cc660a01..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_cc_l_l.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "side": "left", - "uplo": "lower", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 1, - "strideC2": 3, - "offsetC": 0, - "C_out": [ 45.0, 43.0, 64.0, 53.0, 52.0, 79.0, 61.0, 61.0, 94.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_cc_l_u.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_cc_l_u.json deleted file mode 100644 index 44c901560918..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_cc_l_u.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "side": "left", - "uplo": "upper", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 1, - "strideC2": 3, - "offsetC": 0, - "C_out": [ 45.0, 43.0, 64.0, 53.0, 52.0, 79.0, 61.0, 61.0, 94.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_cc_r_l.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_cc_r_l.json deleted file mode 100644 index 92e37990b3b6..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_cc_r_l.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "side": "right", - "uplo": "lower", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 1, - "strideC2": 3, - "offsetC": 0, - "C_out": [ 21.0, 45.0, 69.0, 21.0, 48.0, 75.0, 32.0, 77.0, 122.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_cc_r_u.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_cc_r_u.json deleted file mode 100644 index 224e9bea0ade..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_cc_r_u.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "side": "right", - "uplo": "upper", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 1, - "strideC2": 3, - "offsetC": 0, - "C_out": [ 21.0, 45.0, 69.0, 21.0, 48.0, 75.0, 32.0, 77.0, 122.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_rc_l_l.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_rc_l_l.json deleted file mode 100644 index e84511a83e61..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_rc_l_l.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "side": "left", - "uplo": "lower", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 3, - "strideC2": 1, - "offsetC": 0, - "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_rc_l_u.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_rc_l_u.json deleted file mode 100644 index 48cf5184ee80..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_rc_l_u.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "side": "left", - "uplo": "upper", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 3, - "strideC2": 1, - "offsetC": 0, - "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_rc_r_l.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_rc_r_l.json deleted file mode 100644 index d7febed88ff6..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_rc_r_l.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "side": "right", - "uplo": "lower", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 3, - "strideC2": 1, - "offsetC": 0, - "C_out": [ 21.0, 21.0, 32.0, 45.0, 48.0, 77.0, 69.0, 75.0, 122.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_rc_r_u.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_rc_r_u.json deleted file mode 100644 index 411d52798ea7..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ca_rb_rc_r_u.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "side": "right", - "uplo": "upper", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 3, - "strideC2": 1, - "offsetC": 0, - "C_out": [ 21.0, 21.0, 32.0, 45.0, 48.0, 77.0, 69.0, 75.0, 122.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/column_major_l_l.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/column_major_l_l.json deleted file mode 100644 index b600475da4f8..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/column_major_l_l.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "order": "column-major", - "side": "left", - "uplo": "lower", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "ldc": 3, - "C_out": [ 45.0, 43.0, 64.0, 53.0, 52.0, 79.0, 61.0, 61.0, 94.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/column_major_l_u.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/column_major_l_u.json deleted file mode 100644 index 8350b3feca5a..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/column_major_l_u.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "order": "column-major", - "side": "left", - "uplo": "upper", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "ldc": 3, - "C_out": [ 45.0, 43.0, 64.0, 53.0, 52.0, 79.0, 61.0, 61.0, 94.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/column_major_r_l.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/column_major_r_l.json deleted file mode 100644 index 992dd5774054..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/column_major_r_l.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "order": "column-major", - "side": "right", - "uplo": "lower", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "ldc": 3, - "C_out": [ 21.0, 45.0, 69.0, 21.0, 48.0, 75.0, 32.0, 77.0, 122.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/column_major_r_u.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/column_major_r_u.json deleted file mode 100644 index 5a61d27da02d..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/column_major_r_u.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "order": "column-major", - "side": "right", - "uplo": "upper", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "ldc": 3, - "C_out": [ 21.0, 45.0, 69.0, 21.0, 48.0, 75.0, 32.0, 77.0, 122.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_cc_l_l.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_cc_l_l.json deleted file mode 100644 index f193a3b3af40..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_cc_l_l.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "side": "left", - "uplo": "lower", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 1, - "strideC2": 3, - "offsetC": 0, - "C_out": [ 45.0, 43.0, 64.0, 53.0, 52.0, 79.0, 61.0, 61.0, 94.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_cc_l_u.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_cc_l_u.json deleted file mode 100644 index 2148277af13d..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_cc_l_u.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "side": "left", - "uplo": "upper", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 1, - "strideC2": 3, - "offsetC": 0, - "C_out": [ 45.0, 43.0, 64.0, 53.0, 52.0, 79.0, 61.0, 61.0, 94.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_cc_r_l.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_cc_r_l.json deleted file mode 100644 index abd3a831dd96..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_cc_r_l.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "order": "column-major", - "side": "right", - "uplo": "lower", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 1, - "strideC2": 3, - "offsetC": 0, - "C_out": [ 21.0, 45.0, 69.0, 21.0, 48.0, 75.0, 32.0, 77.0, 122.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_cc_r_u.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_cc_r_u.json deleted file mode 100644 index eef67bf8a70f..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_cc_r_u.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "order": "column-major", - "side": "right", - "uplo": "upper", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 1, - "strideC2": 3, - "offsetC": 0, - "C_out": [ 21.0, 45.0, 69.0, 21.0, 48.0, 75.0, 32.0, 77.0, 122.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_rc_l_l.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_rc_l_l.json deleted file mode 100644 index b1acbe3779c4..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_rc_l_l.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "side": "left", - "uplo": "lower", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 3, - "strideC2": 1, - "offsetC": 0, - "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_rc_l_u.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_rc_l_u.json deleted file mode 100644 index 21a331d7fc85..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_rc_l_u.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "side": "left", - "uplo": "upper", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 3, - "strideC2": 1, - "offsetC": 0, - "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_rc_r_l.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_rc_r_l.json deleted file mode 100644 index a39ff5871f0d..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_rc_r_l.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "order": "column-major", - "side": "right", - "uplo": "lower", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 3, - "strideC2": 1, - "offsetC": 0, - "C_out": [ 21.0, 21.0, 32.0, 45.0, 48.0, 77.0, 69.0, 75.0, 122.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_rc_r_u.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_rc_r_u.json deleted file mode 100644 index f8dbdc497e7c..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_cb_rc_r_u.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "order": "column-major", - "side": "right", - "uplo": "upper", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 3, - "strideC2": 1, - "offsetC": 0, - "C_out": [ 21.0, 21.0, 32.0, 45.0, 48.0, 77.0, 69.0, 75.0, 122.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_cc_l_l.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_cc_l_l.json deleted file mode 100644 index 7d5ec5bb1492..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_cc_l_l.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "side": "left", - "uplo": "lower", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 1, - "strideC2": 3, - "offsetC": 0, - "C_out": [ 45.0, 43.0, 64.0, 53.0, 52.0, 79.0, 61.0, 61.0, 94.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_cc_l_u.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_cc_l_u.json deleted file mode 100644 index 7d5ec5bb1492..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_cc_l_u.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "side": "left", - "uplo": "lower", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 1, - "strideC2": 3, - "offsetC": 0, - "C_out": [ 45.0, 43.0, 64.0, 53.0, 52.0, 79.0, 61.0, 61.0, 94.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_cc_r_l.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_cc_r_l.json deleted file mode 100644 index 9109eb584c0e..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_cc_r_l.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "side": "right", - "uplo": "lower", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 1, - "strideC2": 3, - "offsetC": 0, - "C_out": [ 21.0, 45.0, 69.0, 21.0, 48.0, 75.0, 32.0, 77.0, 122.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_cc_r_u.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_cc_r_u.json deleted file mode 100644 index 8f2a028f9af9..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_cc_r_u.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "side": "right", - "uplo": "upper", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 1, - "strideC2": 3, - "offsetC": 0, - "C_out": [ 21.0, 45.0, 69.0, 21.0, 48.0, 75.0, 32.0, 77.0, 122.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l.json deleted file mode 100644 index e629df102111..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "side": "left", - "uplo": "lower", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 3, - "strideC2": 1, - "offsetC": 0, - "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_complex_access_pattern.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_complex_access_pattern.json deleted file mode 100644 index 46eb410a75b0..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_complex_access_pattern.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "side": "left", - "uplo": "lower", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 999.0, 1.0, 999.0, 2.0, 999.0, 5.0, 999.0, 2.0, 999.0, 3.0, 999.0, 4.0, 999.0, 5.0, 999.0, 4.0, 999.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.0, 6.0 ] - ], - "strideA1": 6, - "strideA2": 2, - "offsetA": 1, - "B": [ 999.0, 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": 2, - "beta": 1.0, - "C": [ 999.0, 999.0, 999.0, 1.0, 999.0, 999.0, 999.0, 1.0, 999.0, 999.0, 999.0, 1.0, 999.0, 999.0, 999.0, 1.0, 999.0, 999.0, 999.0, 1.0, 999.0, 999.0, 999.0, 1.0, 999.0, 999.0, 999.0, 1.0, 999.0, 999.0, 999.0, 1.0, 999.0, 999.0, 999.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 12, - "strideC2": 4, - "offsetC": 3, - "C_out": [ 999.0, 999.0, 999.0, 45.0, 999.0, 999.0, 999.0, 53.0, 999.0, 999.0, 999.0, 61.0, 999.0, 999.0, 999.0, 43.0, 999.0, 999.0, 999.0, 52.0, 999.0, 999.0, 999.0, 61.0, 999.0, 999.0, 999.0, 64.0, 999.0, 999.0, 999.0, 79.0, 999.0, 999.0, 999.0, 94.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_oa.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_oa.json deleted file mode 100644 index 3975d12ff3d8..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_oa.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "side": "left", - "uplo": "lower", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 0.0, 0.0, 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 3, - "strideC2": 1, - "offsetC": 0, - "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_ob.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_ob.json deleted file mode 100644 index 35c3fd1cd637..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_ob.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "side": "left", - "uplo": "lower", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 3, - "strideC2": 1, - "offsetC": 0, - "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_oc.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_oc.json deleted file mode 100644 index 5620da4d6ff4..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_oc.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "side": "left", - "uplo": "lower", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 3, - "strideC2": 1, - "offsetC": 2, - "C_out": [ 0.0, 0.0, 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sa1_sa2.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sa1_sa2.json deleted file mode 100644 index 07504ebf4c84..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sa1_sa2.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "side": "left", - "uplo": "lower", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 999.0, 2.0, 999.0, 5.0, 999.0, 2.0, 999.0, 3.0, 999.0, 4.0, 999.0, 5.0, 999.0, 4.0, 999.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 3, - "strideC2": 1, - "offsetC": 0, - "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sa1_sa2n.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sa1_sa2n.json deleted file mode 100644 index 6f921ddbf08a..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sa1_sa2n.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "side": "left", - "uplo": "lower", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 5.0, 2.0, 1.0, 999.0, 999.0, 999.0, 4.0, 3.0, 2.0, 999.0, 999.0, 999.0, 6.0, 4.0, 5.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 3, - "strideC2": 1, - "offsetC": 0, - "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sa1n_sa2.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sa1n_sa2.json deleted file mode 100644 index 17eac4104a53..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sa1n_sa2.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "side": "left", - "uplo": "lower", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 5.0, 4.0, 6.0, 999.0, 999.0, 999.0, 2.0, 3.0, 4.0, 999.0, 999.0, 999.0, 1.0, 2.0, 5.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 3, - "strideC2": 1, - "offsetC": 0, - "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sa1n_sa2n.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sa1n_sa2n.json deleted file mode 100644 index 651b775c3ae7..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sa1n_sa2n.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "side": "left", - "uplo": "lower", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 6.0, 4.0, 5.0, 4.0, 3.0, 2.0, 5.0, 2.0, 1.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 3, - "strideC2": 1, - "offsetC": 0, - "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sb1_sb2.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sb1_sb2.json deleted file mode 100644 index 216aef723b13..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sb1_sb2.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "side": "left", - "uplo": "lower", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 3, - "strideC2": 1, - "offsetC": 0, - "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sb1_sb2n.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sb1_sb2n.json deleted file mode 100644 index 29a5d79cf68d..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sb1_sb2n.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "side": "left", - "uplo": "lower", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 3, - "strideC2": 1, - "offsetC": 0, - "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sb1n_sb2.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sb1n_sb2.json deleted file mode 100644 index 81f63e6ecf37..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sb1n_sb2.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "side": "left", - "uplo": "lower", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.0, 6.0 ] - ], - "strideA1": 3, - "strideA2": 1, - "offsetA": 0, - "B": [ 7.0, 8.0, 9.0, 999.0, 999.0, 999.0, 4.0, 5.0, 6.0, 999.0, 999.0, 999.0, 1.0, 2.0, 3.0 ], - "B_mat": [ - [ 1.0, 2.0, 3.0 ], - [ 4.0, 5.0, 6.0 ], - [ 7.0, 8.0, 9.0 ] - ], - "strideB1": -6, - "strideB2": 1, - "offsetB": 12, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 3, - "strideC2": 1, - "offsetC": 0, - "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sb1n_sb2n.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sb1n_sb2n.json deleted file mode 100644 index b3068d7ff377..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_l_sb1n_sb2n.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "side": "left", - "uplo": "lower", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 3, - "strideC2": 1, - "offsetC": 0, - "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_u.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_u.json deleted file mode 100644 index 2603599eeaa9..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_u.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "side": "left", - "uplo": "upper", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 3, - "strideC2": 1, - "offsetC": 0, - "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_u_sc1_sc2.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_u_sc1_sc2.json deleted file mode 100644 index 7fe96b1d4a15..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_u_sc1_sc2.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "side": "left", - "uplo": "upper", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 999.0, 1.0, 999.0, 1.0, 999.0, 1.0, 999.0, 1.0, 999.0, 1.0, 999.0, 1.0, 999.0, 1.0, 999.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 6, - "strideC2": 2, - "offsetC": 0, - "C_out": [ 45.0, 999.0, 53.0, 999.0, 61.0, 999.0, 43.0, 999.0, 52.0, 999.0, 61.0, 999.0, 64.0, 999.0, 79.0, 999.0, 94.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_u_sc1_sc2n.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_u_sc1_sc2n.json deleted file mode 100644 index a8b708fbc0b1..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_u_sc1_sc2n.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "side": "left", - "uplo": "upper", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 999.0, 999.0, 999.0, 1.0, 1.0, 1.0, 999.0, 999.0, 999.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 6, - "strideC2": -1, - "offsetC": 2, - "C_out": [ 61.0, 53.0, 45.0, 999.0, 999.0, 999.0, 61.0, 52.0, 43.0, 999.0, 999.0, 999.0, 94.0, 79.0, 64.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_u_sc1n_sc2.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_u_sc1n_sc2.json deleted file mode 100644 index 24e3cd1f1958..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_u_sc1n_sc2.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "side": "left", - "uplo": "upper", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 999.0, 999.0, 999.0, 1.0, 1.0, 1.0, 999.0, 999.0, 999.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": -6, - "strideC2": 1, - "offsetC": 12, - "C_out": [ 64.0, 79.0, 94.0, 999.0, 999.0, 999.0, 43.0, 52.0, 61.0, 999.0, 999.0, 999.0, 45.0, 53.0, 61.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_u_sc1n_sc2n.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_u_sc1n_sc2n.json deleted file mode 100644 index b21c487adfe0..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_l_u_sc1n_sc2n.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "side": "left", - "uplo": "upper", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": -3, - "strideC2": -1, - "offsetC": 8, - "C_out": [ 94.0, 79.0, 64.0, 61.0, 52.0, 43.0, 61.0, 53.0, 45.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_r_l.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_r_l.json deleted file mode 100644 index bf3ca506c9bc..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_r_l.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "side": "right", - "uplo": "lower", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 3, - "strideC2": 1, - "offsetC": 0, - "C_out": [ 21.0, 21.0, 32.0, 45.0, 48.0, 77.0, 69.0, 75.0, 122.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_r_u.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_r_u.json deleted file mode 100644 index 721e218d2e5d..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/ra_rb_rc_r_u.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "side": "right", - "uplo": "upper", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "strideC1": 3, - "strideC2": 1, - "offsetC": 0, - "C_out": [ 21.0, 21.0, 32.0, 45.0, 48.0, 77.0, 69.0, 75.0, 122.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/row_major_l_l.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/row_major_l_l.json deleted file mode 100644 index 6fee95f732b0..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/row_major_l_l.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "order": "row-major", - "side": "left", - "uplo": "lower", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "ldc": 3, - "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/row_major_l_u.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/row_major_l_u.json deleted file mode 100644 index 3fa3a86fc077..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/row_major_l_u.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "order": "row-major", - "side": "left", - "uplo": "upper", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "ldc": 3, - "C_out": [ 45.0, 53.0, 61.0, 43.0, 52.0, 61.0, 64.0, 79.0, 94.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/row_major_r_l.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/row_major_r_l.json deleted file mode 100644 index 7213422b0a3f..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/row_major_r_l.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "order": "row-major", - "side": "right", - "uplo": "lower", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.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, - "beta": 1.0, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "ldc": 3, - "C_out": [ 21.0, 21.0, 32.0, 45.0, 48.0, 77.0, 69.0, 75.0, 122.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/row_major_r_u.json b/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/row_major_r_u.json deleted file mode 100644 index 2586eb683971..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/fixtures/row_major_r_u.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "order": "row-major", - "side": "right", - "uplo": "upper", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 2.0, 5.0, 2.0, 3.0, 4.0, 5.0, 4.0, 6.0 ], - "A_mat": [ - [ 1.0, 2.0, 5.0 ], - [ 2.0, 3.0, 4.0 ], - [ 5.0, 4.0, 6.0 ] - ], - "lda": 3, - "beta": 1.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 ] - ], - "ldb": 3, - "C": [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ], - "C_mat": [ - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ], - [ 1.0, 1.0, 1.0 ] - ], - "ldc": 3, - "C_out": [ 21.0, 21.0, 32.0, 45.0, 48.0, 77.0, 69.0, 75.0, 122.0 ] -} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/test.dsymm.js b/lib/node_modules/@stdlib/blas/base/dsymm/test/test.dsymm.js deleted file mode 100644 index be4e3362b817..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/test.dsymm.js +++ /dev/null @@ -1,671 +0,0 @@ -/** -* @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 dscal = require( '@stdlib/blas/base/dscal' ); -var dsymm = require( './../lib/dsymm.js' ); - - -// FIXTURES // - -var cll = require( './fixtures/column_major_l_l.json' ); -var clu = require( './fixtures/column_major_l_u.json' ); -var crl = require( './fixtures/column_major_r_l.json' ); -var cru = require( './fixtures/column_major_r_u.json' ); - -var rll = require( './fixtures/row_major_l_l.json' ); -var rlu = require( './fixtures/row_major_l_u.json' ); -var rrl = require( './fixtures/row_major_r_l.json' ); -var rru = require( './fixtures/row_major_r_u.json' ); - - -// TESTS // - -tape( 'main export is a function', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof dsymm, 'function', 'main export is a function' ); - t.end(); -}); - -tape( 'the function has an arity of 13', function test( t ) { - t.strictEqual( dsymm.length, 13, '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 = rll; - - 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() { - dsymm( value, data.side, data.uplo, data.M, data.N, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), data.ldb, data.beta, new Float64Array( data.C ), data.ldc ); - }; - } -}); - -tape( 'the function throws an error if provided an invalid second argument', function test( t ) { - var values; - var data; - var i; - - data = rll; - - 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() { - dsymm( data.order, value, data.uplo, data.M, data.N, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), data.ldb, data.beta, new Float64Array( data.C ), data.ldc ); - }; - } -}); - -tape( 'the function throws an error if provided an invalid third argument', function test( t ) { - var values; - var data; - var i; - - data = rll; - - 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() { - dsymm( data.order, data.side, value, data.M, data.N, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), data.ldb, data.beta, new Float64Array( data.C ), data.ldc ); - }; - } -}); - -tape( 'the function throws an error if provided an invalid fourth argument', function test( t ) { - var values; - var data; - var i; - - data = rll; - - 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() { - dsymm( data.order, data.side, data.uplo, value, data.N, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), data.ldb, data.beta, new Float64Array( data.C ), data.ldc ); - }; - } -}); - -tape( 'the function throws an error if provided an invalid fifth argument', function test( t ) { - var values; - var data; - var i; - - data = rll; - - 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() { - dsymm( data.order, data.side, data.uplo, data.M, value, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), data.ldb, data.beta, new Float64Array( data.C ), data.ldc ); - }; - } -}); - -tape( 'the function throws an error if provided an invalid eighth argument', function test( t ) { - var values; - var data; - var i; - - data = rll; - - values = [ - 2, - 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() { - dsymm( data.order, data.side, data.uplo, data.M, data.N, data.alpha, new Float64Array( data.A ), value, new Float64Array( data.B ), data.ldb, data.beta, new Float64Array( data.C ), data.ldc ); - }; - } -}); - -tape( 'the function throws an error if provided an invalid tenth argument', function test( t ) { - var values; - var data; - var i; - - data = rll; - - values = [ - 2, - 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() { - dsymm( data.order, data.side, data.uplo, data.M, data.N, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), value, data.beta, new Float64Array( data.C ), data.ldc ); - }; - } -}); - -tape( 'the function throws an error if provided an invalid thirteenth argument', function test( t ) { - var values; - var data; - var i; - - data = rll; - - values = [ - 2, - 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() { - dsymm( data.order, data.side, data.uplo, data.M, data.N, data.alpha, new Float64Array( data.A ), data.lda, new Float64Array( data.B ), data.ldb, data.beta, new Float64Array( data.C ), value ); - }; - } -}); - -tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (row-major, left, lower)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = rll; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.order, data.side, data.uplo, data.M, data.N, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (column-major, left, lower)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = cll; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.order, data.side, data.uplo, data.M, data.N, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (row-major, left, upper)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = rlu; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.order, data.side, data.uplo, data.M, data.N, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (column-major, left, upper)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = clu; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.order, data.side, data.uplo, data.M, data.N, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (row-major, right, lower)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = rrl; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.order, data.side, data.uplo, data.M, data.N, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (column-major, right, lower)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = crl; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.order, data.side, data.uplo, data.M, data.N, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (row-major, right, upper)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = rru; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.order, data.side, data.uplo, data.M, data.N, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (column-major, right, upper)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = cru; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.order, data.side, data.uplo, data.M, data.N, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function returns a reference to the third input matrix (row-major)', function test( t ) { - var data; - var out; - var a; - var b; - var c; - - data = rru; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - out = dsymm( data.order, data.side, data.uplo, data.M, data.N, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); - t.strictEqual( out, c, 'returns expected value' ); - t.end(); -}); - -tape( 'the function returns a reference to the third input matrix (column-major)', function test( t ) { - var data; - var out; - var a; - var b; - var c; - - data = cru; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - out = dsymm( data.order, data.side, data.uplo, data.M, data.N, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); - t.strictEqual( out, c, 'returns expected value' ); - t.end(); -}); - -tape( 'if either `M` or `N` is `0`, the function returns the third input matrix unchanged (row-major)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = rru; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C ); - - out = dsymm( data.order, data.side, data.uplo, 0, data.N, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - - out = dsymm( data.order, data.side, data.uplo, data.M, 0, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - - t.end(); -}); - -tape( 'if either `M` or `N` is `0`, the function returns the third input matrix unchanged (column-major)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = cru; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C ); - - out = dsymm( data.order, data.side, data.uplo, 0, data.N, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - - out = dsymm( data.order, data.side, data.uplo, data.M, 0, data.alpha, a, data.lda, b, data.ldb, data.beta, c, data.ldc ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - - t.end(); -}); - -tape( 'if `α` is `0` and `β` is `1`, the function returns the third input matrix unchanged (row-major)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = rru; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C ); - - out = dsymm( data.order, data.side, data.uplo, data.M, data.N, 0.0, a, data.lda, b, data.ldb, 1.0, c, data.ldc ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - - t.end(); -}); - -tape( 'if `α` is `0` and `β` is `1`, the function returns the third input matrix unchanged (column-major)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = cru; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C ); - - out = dsymm( data.order, data.side, data.uplo, data.M, data.N, 0.0, a, data.lda, b, data.ldb, 1.0, c, data.ldc ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - - t.end(); -}); - -tape( 'if `α` is `0` and `β` is `0`, the function returns the third input matrix filled with zeros (row-major)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = rru; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( c.length ); - - out = dsymm( data.order, data.side, data.uplo, data.M, data.N, 0.0, a, data.lda, b, data.ldb, 0.0, c, data.ldc ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - - t.end(); -}); - -tape( 'if `α` is `0` and `β` is `0`, the function returns the third input matrix filled with zeros (column-major)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = cru; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( c.length ); - - out = dsymm( data.order, data.side, data.uplo, data.M, data.N, 0.0, a, data.lda, b, data.ldb, 0.0, c, data.ldc ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - - t.end(); -}); - -tape( 'if `α` is `0` and `β` is neither `0` nor `1`, the function returns the third input matrix scaled by `β` (row-major)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = rru; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = dscal( c.length, 10.0, new Float64Array( c ), 1 ); - - out = dsymm( data.order, data.side, data.uplo, data.M, data.N, 0.0, a, data.lda, b, data.ldb, 10.0, c, data.ldc ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - - t.end(); -}); - -tape( 'if `α` is `0` and `β` is neither `0` nor `1`, the function returns the third input matrix scaled by `β` (column-major)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = cru; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = dscal( c.length, 10.0, new Float64Array( c ), 1 ); - - out = dsymm( data.order, data.side, data.uplo, data.M, data.N, 0.0, a, data.lda, b, data.ldb, 10.0, c, data.ldc ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - - t.end(); -}); diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/test.js b/lib/node_modules/@stdlib/blas/base/dsymm/test/test.js deleted file mode 100644 index 8b444a3dfc63..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/test.js +++ /dev/null @@ -1,82 +0,0 @@ -/** -* @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 dsymm = 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 dsymm, '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 dsymm.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 dsymm = proxyquire( './../lib', { - '@stdlib/utils/try-require': tryRequire - }); - - t.strictEqual( dsymm, 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 dsymm; - var main; - - main = require( './../lib/dsymm.js' ); - - dsymm = proxyquire( './../lib', { - '@stdlib/utils/try-require': tryRequire - }); - - t.strictEqual( dsymm, main, 'returns expected value' ); - t.end(); - - function tryRequire() { - return new Error( 'Cannot find module' ); - } -}); diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/test.ndarray.js b/lib/node_modules/@stdlib/blas/base/dsymm/test/test.ndarray.js deleted file mode 100644 index 09aa9185b205..000000000000 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/test.ndarray.js +++ /dev/null @@ -1,1460 +0,0 @@ -/** -* @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 ones = require( '@stdlib/array/ones' ); -var filled = require( '@stdlib/array/filled' ); -var dscal = require( '@stdlib/blas/base/dscal' ); -var dsymm = require( './../lib/ndarray.js' ); - - -// FIXTURES // - -var cacbccll = require( './fixtures/ca_cb_cc_l_l.json' ); -var cacbcclu = require( './fixtures/ca_cb_cc_l_u.json' ); -var cacbccrl = require( './fixtures/ca_cb_cc_r_l.json' ); -var cacbccru = require( './fixtures/ca_cb_cc_r_u.json' ); -var cacbrcll = require( './fixtures/ca_cb_rc_l_l.json' ); -var cacbrclu = require( './fixtures/ca_cb_rc_l_u.json' ); -var cacbrcrl = require( './fixtures/ca_cb_rc_r_l.json' ); -var cacbrcru = require( './fixtures/ca_cb_rc_r_u.json' ); -var carbccll = require( './fixtures/ca_rb_cc_l_l.json' ); -var carbcclu = require( './fixtures/ca_rb_cc_l_u.json' ); -var carbccrl = require( './fixtures/ca_rb_cc_r_l.json' ); -var carbccru = require( './fixtures/ca_rb_cc_r_u.json' ); -var carbrcll = require( './fixtures/ca_rb_rc_l_l.json' ); -var carbrclu = require( './fixtures/ca_rb_rc_l_u.json' ); -var carbrcrl = require( './fixtures/ca_rb_rc_r_l.json' ); -var carbrcru = require( './fixtures/ca_rb_rc_r_u.json' ); - -var racbccll = require( './fixtures/ra_cb_cc_l_l.json' ); -var racbcclu = require( './fixtures/ra_cb_cc_l_u.json' ); -var racbccrl = require( './fixtures/ra_cb_cc_r_l.json' ); -var racbccru = require( './fixtures/ra_cb_cc_r_u.json' ); -var racbrcll = require( './fixtures/ra_cb_rc_l_l.json' ); -var racbrclu = require( './fixtures/ra_cb_rc_l_u.json' ); -var racbrcrl = require( './fixtures/ra_cb_rc_r_l.json' ); -var racbrcru = require( './fixtures/ra_cb_rc_r_u.json' ); -var rarbccll = require( './fixtures/ra_rb_cc_l_l.json' ); -var rarbcclu = require( './fixtures/ra_rb_cc_l_u.json' ); -var rarbccrl = require( './fixtures/ra_rb_cc_r_l.json' ); -var rarbccru = require( './fixtures/ra_rb_cc_r_u.json' ); -var rarbrcll = require( './fixtures/ra_rb_rc_l_l.json' ); -var rarbrclu = require( './fixtures/ra_rb_rc_l_u.json' ); -var rarbrcrl = require( './fixtures/ra_rb_rc_r_l.json' ); -var rarbrcru = require( './fixtures/ra_rb_rc_r_u.json' ); - -var rarbrcllsa1sa2 = require( './fixtures/ra_rb_rc_l_l_sa1_sa2.json' ); -var rarbrcllsa1nsa2 = require( './fixtures/ra_rb_rc_l_l_sa1n_sa2.json' ); -var rarbrcllsa1sa2n = require( './fixtures/ra_rb_rc_l_l_sa1_sa2n.json' ); -var rarbrcllsa1nsa2n = require( './fixtures/ra_rb_rc_l_l_sa1n_sa2n.json' ); -var rarbrcllsb1sb2 = require( './fixtures/ra_rb_rc_l_l_sb1_sb2.json' ); -var rarbrcllsb1nsb2 = require( './fixtures/ra_rb_rc_l_l_sb1n_sb2.json' ); -var rarbrcllsb1sb2n = require( './fixtures/ra_rb_rc_l_l_sb1_sb2n.json' ); -var rarbrcllsb1nsb2n = require( './fixtures/ra_rb_rc_l_l_sb1n_sb2n.json' ); -var rarbrclusc1sc2 = require( './fixtures/ra_rb_rc_l_u_sc1_sc2.json' ); -var rarbrclusc1nsc2 = require( './fixtures/ra_rb_rc_l_u_sc1n_sc2.json' ); -var rarbrclusc1sc2n = require( './fixtures/ra_rb_rc_l_u_sc1_sc2n.json' ); -var rarbrclusc1nsc2n = require( './fixtures/ra_rb_rc_l_u_sc1n_sc2n.json' ); -var rarbrclloa = require( './fixtures/ra_rb_rc_l_l_oa.json' ); -var rarbrcllob = require( './fixtures/ra_rb_rc_l_l_ob.json' ); -var rarbrclloc = require( './fixtures/ra_rb_rc_l_l_oc.json' ); -var cap = require( './fixtures/ra_rb_rc_l_l_complex_access_pattern.json' ); - - -// TESTS // - -tape( 'main export is a function', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof dsymm, 'function', 'main export is a function' ); - t.end(); -}); - -tape( 'the function has an arity of 18', function test( t ) { - t.strictEqual( dsymm.length, 18, '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 = rarbrcll; - - 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() { - dsymm( value, data.uplo, 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, data.beta, new Float64Array( data.C ), data.strideC1, data.strideC2, data.offsetC ); - }; - } -}); - -tape( 'the function throws an error if provided an invalid second argument', function test( t ) { - var values; - var data; - var i; - - data = rarbrcll; - - 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() { - dsymm( data.side, 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, data.beta, new Float64Array( data.C ), data.strideC1, data.strideC2, data.offsetC ); - }; - } -}); - -tape( 'the function throws an error if provided an invalid third argument', function test( t ) { - var values; - var data; - var i; - - data = rarbrcll; - - 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() { - dsymm( data.side, data.uplo, 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, data.beta, new Float64Array( data.C ), data.strideC1, data.strideC2, data.offsetC ); - }; - } -}); - -tape( 'the function throws an error if provided an invalid fourth argument', function test( t ) { - var values; - var data; - var i; - - data = rarbrcll; - - 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() { - dsymm( data.side, data.uplo, 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, data.beta, new Float64Array( data.C ), data.strideC1, data.strideC2, data.offsetC ); - }; - } -}); - -tape( 'the function throws an error if provided an invalid seventeenth argument', function test( t ) { - var values; - var data; - var i; - - data = rarbrcll; - - values = [ - 0 - ]; - - for ( i = 0; i < values.length; i++ ) { - t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] ); - } - t.end(); - - function badValue( value ) { - return function badValue() { - dsymm( data.side, data.uplo, 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, data.beta, new Float64Array( data.C ), value, data.strideC2, data.offsetC ); - }; - } -}); - -tape( 'the function throws an error if provided an invalid eighteenth argument', function test( t ) { - var values; - var data; - var i; - - data = rarbrcll; - - values = [ - 0 - ]; - - for ( i = 0; i < values.length; i++ ) { - t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] ); - } - t.end(); - - function badValue( value ) { - return function badValue() { - dsymm( data.side, data.uplo, 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, data.beta, new Float64Array( data.C ), data.strideC1, value, data.offsetC ); - }; - } -}); - -tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (column_major, column_major, column_major, left, lower)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = cacbccll; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (column_major, column_major, column_major, right, lower)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = cacbccrl; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (column_major, column_major, column_major, left, upper)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = cacbcclu; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (column_major, column_major, column_major, right, upper)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = cacbccru; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (column_major, column_major, row_major, left, lower)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = cacbrcll; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (column_major, column_major, row_major, right, lower)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = cacbrcrl; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (column_major, column_major, row_major, left, upper)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = cacbrclu; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (column_major, column_major, row_major, right, upper)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = cacbrcru; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (column_major, row_major, column_major, left, lower)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = carbccll; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (column_major, row_major, column_major, right, lower)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = carbccrl; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (column_major, row_major, column_major, left, upper)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = carbcclu; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (column_major, row_major, column_major, right, upper)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = carbccru; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (column_major, row_major, row_major, left, lower)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = carbrcll; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (column_major, row_major, row_major, right, lower)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = carbrcrl; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (column_major, row_major, row_major, left, upper)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = carbrclu; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (column_major, row_major, row_major, right, upper)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = carbrcru; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (row_major, column_major, column_major, left, lower)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = racbccll; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (row_major, column_major, column_major, right, lower)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = racbccrl; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (row_major, column_major, column_major, left, upper)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = racbcclu; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (row_major, column_major, column_major, right, upper)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = racbccru; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (row_major, column_major, row_major, left, lower)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = racbrcll; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (row_major, column_major, row_major, right, lower)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = racbrcrl; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (row_major, column_major, row_major, left, upper)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = racbrclu; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (row_major, column_major, row_major, right, upper)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = racbrcru; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (row_major, row_major, column_major, left, lower)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = rarbccll; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (row_major, row_major, column_major, right, lower)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = rarbccrl; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (row_major, row_major, column_major, left, upper)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = rarbcclu; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (row_major, row_major, column_major, right, upper)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = rarbccru; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (row_major, row_major, row_major, left, lower)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = rarbrcll; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (row_major, row_major, row_major, right, lower)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = rarbrcrl; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function performs the matrix-matrix operation `C = α*A*B + β*C` (row_major, row_major, row_major, left, upper)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = rarbrclu; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function performs the matrix-matrix operation `C = α*B*A + β*C` (row_major, row_major, row_major, right, upper)', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = rarbrcru; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function returns a reference to the third input matrix', function test( t ) { - var data; - var out; - var a; - var b; - var c; - - data = rarbrcll; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.end(); -}); - -tape( 'if either `M` or `N` is `0`, the function returns the third input matrix unchanged', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = rarbrcru; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C ); - - out = dsymm( data.side, data.uplo, 0, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - - out = dsymm( data.side, data.uplo, data.M, 0, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - - t.end(); -}); - -tape( 'if `α` or `0` and `β` is `1`, the function returns the third input matrix unchanged', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = rarbrcru; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C ); - - out = dsymm( data.side, data.uplo, data.M, data.N, 0.0, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, 1.0, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - - t.end(); -}); - -tape( 'if `α` is `0` and `β` is `0`, the function returns the third input matrix filled with zeros', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = rarbrcru; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( c.length ); - - out = dsymm( data.side, data.uplo, data.M, data.N, 0.0, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, 0.0, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - - t.end(); -}); - -tape( 'if `α` is `0` and `β` is neither `0` nor `1`, the function returns the third input matrix scaled by `β`', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = rarbrcru; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = dscal( c.length, 10.0, new Float64Array( c ), 1 ); - - out = dsymm( data.side, data.uplo, data.M, data.N, 0.0, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, 10.0, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, '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; - var c; - - data = rarbrcllsa1sa2; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, '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; - var c; - - data = rarbrcllsa1nsa2; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, '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; - var c; - - data = rarbrcllsa1sa2n; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function supports negative strides for `A`', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = rarbrcllsa1nsa2n; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, '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; - var c; - - data = rarbrclloa; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, '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; - var c; - - data = rarbrcllsb1sb2; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, '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; - var c; - - data = rarbrcllsb1nsb2; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, '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; - var c; - - data = rarbrcllsb1sb2n; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function supports negative strides for `B`', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = rarbrcllsb1nsb2n; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, '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; - var c; - - data = rarbrcllob; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, '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 `C`', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = rarbrclusc1sc2; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function supports a negative stride for the first dimension of `C`', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = rarbrclusc1nsc2; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function supports a negative stride for the second dimension of `C`', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = rarbrclusc1sc2n; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function supports negative strides for `C`', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = rarbrclusc1nsc2n; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function supports specifying an offset parameter for `C`', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = rarbrclloc; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function supports complex access patterns', function test( t ) { - var expected; - var data; - var out; - var a; - var b; - var c; - - data = cap; - - a = new Float64Array( data.A ); - b = new Float64Array( data.B ); - c = new Float64Array( data.C ); - - expected = new Float64Array( data.C_out ); - - out = dsymm( data.side, data.uplo, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function supports computation over large arrays (row-major, row-major, row-major)', function test( t ) { - var expected; - var out; - var N; - var a; - var b; - var c; - - N = 100; - - a = ones( N*N, 'float64' ); - b = ones( a.length, 'float64' ); - c = new Float64Array( a.length ); - - expected = filled( N, a.length, 'float64' ); - - out = dsymm( 'left', 'lower', N, N, 1.0, a, N, 1, 0, b, N, 1, 0, 1.0, c, N, 1, 0 ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); - -tape( 'the function supports computation over large arrays (column-major, column-major, column-major)', function test( t ) { - var expected; - var out; - var N; - var a; - var b; - var c; - - N = 100; - - a = ones( N*N, 'float64' ); - b = ones( a.length, 'float64' ); - c = new Float64Array( a.length ); - - expected = filled( N, a.length, 'float64' ); - - out = dsymm( 'left', 'lower', N, N, 1.0, a, 1, N, 0, b, 1, N, 0, 1.0, c, 1, N, 0 ); - t.strictEqual( out, c, 'returns expected value' ); - t.deepEqual( out, expected, 'returns expected value' ); - t.end(); -}); From 27282aecfa1cebb71d125d4686705d48a43343de Mon Sep 17 00:00:00 2001 From: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> Date: Wed, 18 Jun 2025 00:09:27 +0530 Subject: [PATCH 07/11] chore: minor clean-up Signed-off-by: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> --- lib/node_modules/@stdlib/blas/base/ssymm/package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/package.json b/lib/node_modules/@stdlib/blas/base/ssymm/package.json index 3e0c263be984..1f8e14108d59 100644 --- a/lib/node_modules/@stdlib/blas/base/ssymm/package.json +++ b/lib/node_modules/@stdlib/blas/base/ssymm/package.json @@ -1,4 +1,3 @@ - { "name": "@stdlib/blas/base/ssymm", "version": "0.0.0", From 00879f3246e4f153b10f312d3604fa181eb87028 Mon Sep 17 00:00:00 2001 From: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> Date: Wed, 18 Jun 2025 21:11:49 +0530 Subject: [PATCH 08/11] chore: minor clean-up Signed-off-by: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> --- lib/node_modules/@stdlib/blas/base/ssymm/lib/ndarray.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/lib/ndarray.js b/lib/node_modules/@stdlib/blas/base/ssymm/lib/ndarray.js index a8292f526c05..5b0ca7b39d80 100644 --- a/lib/node_modules/@stdlib/blas/base/ssymm/lib/ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/ssymm/lib/ndarray.js @@ -49,8 +49,8 @@ var base = require( './base.js' ); * @param {integer} strideC1 - stride of the first dimension of `C` * @param {integer} strideC2 - stride of the second dimension of `C` * @param {NonNegativeInteger} offsetC - starting index for `C` -* @throws {TypeError} first argument must be a valid transpose operation -* @throws {TypeError} second argument must be a valid transpose operation +* @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 {RangeError} third argument must be a nonnegative integer * @throws {RangeError} fourth argument must be a nonnegative integer * @throws {RangeError} sixteenth argument must be non-zero From 4113844f6240ad7286eb05f63555f6ce79b84fdd Mon Sep 17 00:00:00 2001 From: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> Date: Wed, 18 Jun 2025 21:14:11 +0530 Subject: [PATCH 09/11] chore: minor clean-up Signed-off-by: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> --- lib/node_modules/@stdlib/blas/base/ssymm/lib/ssymm.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/lib/ssymm.js b/lib/node_modules/@stdlib/blas/base/ssymm/lib/ssymm.js index b6abeb4abcf0..888bb984d607 100644 --- a/lib/node_modules/@stdlib/blas/base/ssymm/lib/ssymm.js +++ b/lib/node_modules/@stdlib/blas/base/ssymm/lib/ssymm.js @@ -49,8 +49,8 @@ var base = require( './base.js' ); * @param {Float32Array} C - third matrix * @param {PositiveInteger} LDC - stride of the first dimension of `C` (a.k.a., leading dimension of the matrix `C`) * @throws {TypeError} first argument must be a valid order -* @throws {TypeError} second argument must be a valid transpose operation -* @throws {TypeError} third argument must be a valid transpose operation +* @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 {RangeError} fourth argument must be a nonnegative integer * @throws {RangeError} fifth argument must be a nonnegative integer * @throws {RangeError} eighth argument must be greater than or equal to max(1,M) when `A` is on the left of `B` and max(1,N) otherwise From cb21fe58d702b3f7a02579aa2dbf1fe488d8f2fc Mon Sep 17 00:00:00 2001 From: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> Date: Thu, 19 Jun 2025 10:16:56 +0530 Subject: [PATCH 10/11] chore: minor clean-up Signed-off-by: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> --- lib/node_modules/@stdlib/blas/base/ssymm/benchmark/benchmark.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/ssymm/benchmark/benchmark.js index 2b79945e681d..7b0ca3dfb744 100644 --- a/lib/node_modules/@stdlib/blas/base/ssymm/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/ssymm/benchmark/benchmark.js @@ -98,7 +98,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = floor( pow( pow( 10, i ), 1.0/2.0 ) ); f = createBenchmark( len ); - bench( pkg+':order(A)=row-major,order(B)=row-major,order(C)=row-major,trans(A)=false,trans(B)=false,size='+(len*len), f ); + bench( pkg+':size='+(len*len), f ); } } From 468a2ee8152d0f629b3210ed15d036c77860edb2 Mon Sep 17 00:00:00 2001 From: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> Date: Thu, 19 Jun 2025 10:17:27 +0530 Subject: [PATCH 11/11] chore: minor clean-up Signed-off-by: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> --- .../@stdlib/blas/base/ssymm/benchmark/benchmark.ndarray.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/blas/base/ssymm/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/ssymm/benchmark/benchmark.ndarray.js index db0424e9e9b9..2e205ac60cdc 100644 --- a/lib/node_modules/@stdlib/blas/base/ssymm/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/ssymm/benchmark/benchmark.ndarray.js @@ -98,7 +98,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = floor( pow( pow( 10, i ), 1.0/2.0 ) ); f = createBenchmark( len ); - bench( pkg+':ndarray:order(A)=row-major,order(B)=row-major,order(C)=row-major,trans(A)=false,trans(B)=false,size='+(len*len), f ); + bench( pkg+':ndarray:size='+(len*len), f ); } }