From c247a67acb7b6ba3fc5b1096b203f36f095818d2 Mon Sep 17 00:00:00 2001 From: ShabiShett07 Date: Tue, 17 Jun 2025 10:01:45 +0530 Subject: [PATCH 01/17] 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/17] 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/17] 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/17] 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 00d97f6f53a830f4af276214b9b8b9bd6e02bb3f Mon Sep 17 00:00:00 2001 From: ShabiShett07 Date: Thu, 19 Jun 2025 17:09:50 +0530 Subject: [PATCH 05/17] feat: add blas/base/ssyrk --- 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 --- .../@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/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/ndarray.js | 95 -- .../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 -------- .../blas/base/dsymm/test/test.ndarray.js | 1460 ----------------- .../@stdlib/blas/base/ssyrk/README.md | 249 +++ .../{dsymm => ssyrk}/benchmark/benchmark.js | 19 +- .../benchmark/benchmark.ndarray.js | 19 +- .../@stdlib/blas/base/ssyrk/docs/repl.txt | 142 ++ .../blas/base/ssyrk/docs/types/index.d.ts | 127 ++ .../blas/base/ssyrk/docs/types/test.ts | 499 ++++++ .../base/{dsymm => ssyrk}/examples/index.js | 19 +- .../@stdlib/blas/base/ssyrk/lib/base.js | 313 ++++ .../@stdlib/blas/base/ssyrk/lib/index.js | 70 + .../blas/base/{dsymm => ssyrk}/lib/main.js | 8 +- .../@stdlib/blas/base/ssyrk/lib/ndarray.js | 90 + .../@stdlib/blas/base/ssyrk/lib/ssyrk.js | 118 ++ .../blas/base/{dsymm => ssyrk}/package.json | 6 +- .../base/ssyrk/test/fixtures/ca_cc_l_nt.json | 27 + .../base/ssyrk/test/fixtures/ca_cc_l_t.json | 27 + .../base/ssyrk/test/fixtures/ca_cc_u_nt.json | 27 + .../base/ssyrk/test/fixtures/ca_cc_u_t.json | 27 + .../base/ssyrk/test/fixtures/ca_rc_l_nt.json | 27 + .../base/ssyrk/test/fixtures/ca_rc_l_t.json | 27 + .../base/ssyrk/test/fixtures/ca_rc_u_nt.json | 27 + .../base/ssyrk/test/fixtures/ca_rc_u_t.json | 27 + .../test/fixtures/column_major_l_nt.json | 24 + .../ssyrk/test/fixtures/column_major_l_t.json | 24 + .../test/fixtures/column_major_u_nt.json | 24 + .../ssyrk/test/fixtures/column_major_u_t.json | 24 + .../base/ssyrk/test/fixtures/ra_cc_l_nt.json | 27 + .../base/ssyrk/test/fixtures/ra_cc_l_t.json | 27 + .../base/ssyrk/test/fixtures/ra_cc_u_nt.json | 27 + .../base/ssyrk/test/fixtures/ra_cc_u_t.json | 27 + .../base/ssyrk/test/fixtures/ra_rc_l_nt.json | 27 + .../ra_rc_l_nt_complex_access_pattern.json | 27 + .../ssyrk/test/fixtures/ra_rc_l_nt_oa.json | 27 + .../ssyrk/test/fixtures/ra_rc_l_nt_oc.json | 27 + .../base/ssyrk/test/fixtures/ra_rc_l_t.json | 27 + .../test/fixtures/ra_rc_l_t_sc1_sc2.json | 27 + .../test/fixtures/ra_rc_l_t_sc1_sc2n.json | 27 + .../test/fixtures/ra_rc_l_t_sc1n_sc2.json | 27 + .../test/fixtures/ra_rc_l_t_sc1n_sc2n.json | 27 + .../base/ssyrk/test/fixtures/ra_rc_u_nt.json | 27 + .../test/fixtures/ra_rc_u_nt_sa1_sa2.json | 27 + .../test/fixtures/ra_rc_u_nt_sa1_sa2n.json | 27 + .../test/fixtures/ra_rc_u_nt_sa1n_sa2.json | 27 + .../test/fixtures/ra_rc_u_nt_sa1n_sa2n.json | 27 + .../base/ssyrk/test/fixtures/ra_rc_u_t.json | 27 + .../ssyrk/test/fixtures/row_major_l_nt.json | 24 + .../ssyrk/test/fixtures/row_major_l_t.json | 24 + .../ssyrk/test/fixtures/row_major_u_nt.json | 24 + .../ssyrk/test/fixtures/row_major_u_t.json | 24 + .../blas/base/{dsymm => ssyrk}/test/test.js | 20 +- .../blas/base/ssyrk/test/test.ndarray.js | 867 ++++++++++ .../blas/base/ssyrk/test/test.ssyrk.js | 607 +++++++ 117 files changed, 4047 insertions(+), 5937 deletions(-) delete mode 100644 lib/node_modules/@stdlib/blas/base/dsymm/README.md 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/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/ndarray.js 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.ndarray.js create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/README.md rename lib/node_modules/@stdlib/blas/base/{dsymm => ssyrk}/benchmark/benchmark.js (78%) rename lib/node_modules/@stdlib/blas/base/{dsymm => ssyrk}/benchmark/benchmark.ndarray.js (77%) create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/docs/types/test.ts rename lib/node_modules/@stdlib/blas/base/{dsymm => ssyrk}/examples/index.js (63%) create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/lib/base.js create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/lib/index.js rename lib/node_modules/@stdlib/blas/base/{dsymm => ssyrk}/lib/main.js (84%) create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/lib/ndarray.js create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/lib/ssyrk.js rename lib/node_modules/@stdlib/blas/base/{dsymm => ssyrk}/package.json (77%) create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ca_cc_l_nt.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ca_cc_l_t.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ca_cc_u_nt.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ca_cc_u_t.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ca_rc_l_nt.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ca_rc_l_t.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ca_rc_u_nt.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ca_rc_u_t.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/column_major_l_nt.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/column_major_l_t.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/column_major_u_nt.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/column_major_u_t.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_cc_l_nt.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_cc_l_t.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_cc_u_nt.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_cc_u_t.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_l_nt.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_l_nt_complex_access_pattern.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_l_nt_oa.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_l_nt_oc.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_l_t.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_l_t_sc1_sc2.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_l_t_sc1_sc2n.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_l_t_sc1n_sc2.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_l_t_sc1n_sc2n.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_u_nt.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_u_nt_sa1_sa2.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_u_nt_sa1_sa2n.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_u_nt_sa1n_sa2.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_u_nt_sa1n_sa2n.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_u_t.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/row_major_l_nt.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/row_major_l_t.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/row_major_u_nt.json create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/row_major_u_t.json rename lib/node_modules/@stdlib/blas/base/{dsymm => ssyrk}/test/test.js (78%) create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/test/test.ndarray.js create mode 100644 lib/node_modules/@stdlib/blas/base/ssyrk/test/test.ssyrk.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/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/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/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/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.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(); -}); diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/README.md b/lib/node_modules/@stdlib/blas/base/ssyrk/README.md new file mode 100644 index 000000000000..6ba8ac0d0ee8 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/README.md @@ -0,0 +1,249 @@ + + +# ssyrk + +> Perform one of the symmetric rank `K` operations `C = α*A*A**T + β*C` or `C = α*A**T*A + β*C` where `α` and `β` are scalars, `C` is an `N` by `N` symmetric matrix and `A` is an `N` by `K` matrix in the first case and a `K` by `N` matrix in the second case. + +
+ +## Usage + +```javascript +var ssyrk = require( '@stdlib/blas/base/ssyrk' ); +``` + +#### ssyrk( ord, uplo, trans, N, K, α, A, lda, β, C, ldc ) + +Performs the matrix-matrix operation `C = α*op(A)*op(B) + β*C` where `op(X)` is either `op(X) = X` or `op(X) = X^T`, `α` and `β` are scalars, `A`, `B`, and `C` are matrices, with `op(A)` an `M` by `K` matrix, `op(B)` a `K` by `N` matrix, and `C` an `M` by `N` matrix. + +```javascript +var Float32Array = require( '@stdlib/array/float32' ); + +var A = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); +var C = new Float32Array( [ 1.0, 2.0, 3.0, 0.0, 4.0, 5.0, 0.0, 0.0, 6.0 ] ); + +ssyrk( 'row-major', 'upper', 'no-transpose', 3, 3, 1.0, A, 3, 1.0, C, 3 ); +// C => [ 15.0, 34.0, 53.0, 0.0, 81.0, 127.0, 0.0, 0.0, 200.0 ] +``` + +The function has the following parameters: + +- **ord**: storage layout. +- **uplo**: specifies whether the upper or lower triangular part of the symmetric matrix `C` is supplied. +- **trans**: specifies whether `C` should be transposed, conjugate-transposed, or not transposed. +- **N**: order of the matrix `C`. +- **K**: number of columns or number of rows of the matrix `A`. +- **α**: 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`). +- **β**: scalar constant. +- **C**: second 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, 2.0, 3.0, 0.0, 0.0, 0.0, 4.0, 5.0, 6.0, 0.0, 0.0, 0.0, 7.0, 8.0, 9.0 ] ); +var C = new Float32Array( [ 1.0, 2.0, 3.0, 0.0, 4.0, 5.0, 0.0, 0.0, 6.0 ] ); + +ssyrk( 'row-major', 'upper', 'no-transpose', 3, 3, 1.0, A, 6, 1.0, C, 3 ); +// C => [ 15.0, 34.0, 53.0, 0.0, 81.0, 127.0, 0.0, 0.0, 200.0 ] +``` + + + +#### ssyrk.ndarray( uplo, trans, N, K, α, A, sa1, sa2, oa, β, C, sc1, sc2, oc ) + +Performs the matrix-matrix operation `C = α*op(A)*op(B) + β*C`, using alternative indexing semantics and where `op(X)` is either `op(X) = X` or `op(X) = X^T`, `α` and `β` are scalars, `A`, `B`, and `C` are matrices, with `op(A)` an `M` by `K` matrix, `op(B)` a `K` by `N` matrix, and `C` an `M` by `N` matrix. + +```javascript +var Float32Array = require( '@stdlib/array/float32' ); + +var A = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); +var C = new Float32Array( [ 1.0, 2.0, 3.0, 0.0, 4.0, 5.0, 0.0, 0.0, 6.0 ] ); + +ssyrk.ndarray( 'upper', 'no-transpose', 3, 3, 1.0, A, 3, 1, 0, 1.0, C, 3, 1, 0 ); +// C => [ 15.0, 34.0, 53.0, 0.0, 81.0, 127.0, 0.0, 0.0, 200.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`. +- **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, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); +var C = new Float32Array( [ 0.0, 0.0, 1.0, 2.0, 3.0, 0.0, 4.0, 5.0, 0.0, 0.0, 6.0 ] ); + +ssyrk.ndarray( 'upper', 'no-transpose', 3, 3, 1.0, A, 3, 1, 1, 1.0, C, 3, 1, 2 ); +// C => [ 0.0, 0.0, 15.0, 34.0, 53.0, 0.0, 81.0, 127.0, 0.0, 0.0, 200.0 ] +``` + +
+ + + +
+ +## Notes + +- `ssyrk()` corresponds to the [BLAS][blas] level 3 function [`ssyrk`][blas-ssyrk]. + +
+ + + +
+ +## Examples + + + +```javascript +var discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); +var ssyrk = require( '@stdlib/blas/base/ssyrk' ); + +var opts = { + 'dtype': 'float32' +}; + +var N = 4; +var K = 3; + +var A = discreteUniform( N*N, 0, 10, opts ); // 4x4 +var C = discreteUniform( N*K, 0, 10, opts ); // 4x3 + +ssyrk( 'row-major', 'lower', 'no-transpose', N, K, 1.0, A, N, 1.0, C, N ); +console.log( C ); + +ssyrk.ndarray( 'lower', 'no-transpose', N, K, 1.0, A, N, 1, 0, 1.0, C, N, 1, 0 ); +console.log( C ); +``` + +
+ + + + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/blas/base/ssyrk.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/ssyrk/benchmark/benchmark.js similarity index 78% rename from lib/node_modules/@stdlib/blas/base/dsymm/benchmark/benchmark.js rename to lib/node_modules/@stdlib/blas/base/ssyrk/benchmark/benchmark.js index 47856633ea9e..bd97d49b03a5 100644 --- a/lib/node_modules/@stdlib/blas/base/dsymm/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/benchmark/benchmark.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2025 The Stdlib Authors. +* 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. @@ -22,17 +22,17 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/array/uniform' ); -var isnan = require( '@stdlib/math/base/assert/is-nan' ); +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 dsymm = require( './../lib/dsymm.js' ); +var ssyrk = require( './../lib/ssyrk.js' ); // VARIABLES // var options = { - 'dtype': 'float64' + 'dtype': 'float32' }; @@ -47,7 +47,6 @@ var options = { */ 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; @@ -63,13 +62,13 @@ function createBenchmark( N ) { 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 ] ) ) { + z = ssyrk( 'row-major', 'lower', 'no-transpose', N, N, 1.0, A, N, 1.0, C, N ); + if ( isnanf( z[ i%z.length ] ) ) { b.fail( 'should not return NaN' ); } } b.toc(); - if ( isnan( z[ i%z.length ] ) ) { + if ( isnanf( z[ i%z.length ] ) ) { b.fail( 'should not return NaN' ); } b.pass( 'benchmark finished' ); @@ -93,12 +92,12 @@ function main() { var i; min = 1; // 10^min - max = 5; // 10^max + max = 4; // 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 ); + bench( pkg+':size='+(len*len), f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/ssyrk/benchmark/benchmark.ndarray.js similarity index 77% rename from lib/node_modules/@stdlib/blas/base/dsymm/benchmark/benchmark.ndarray.js rename to lib/node_modules/@stdlib/blas/base/ssyrk/benchmark/benchmark.ndarray.js index a298d9c12717..e9f5f6a305b7 100644 --- a/lib/node_modules/@stdlib/blas/base/dsymm/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/benchmark/benchmark.ndarray.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2025 The Stdlib Authors. +* 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. @@ -22,17 +22,17 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/array/uniform' ); -var isnan = require( '@stdlib/math/base/assert/is-nan' ); +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 dsymm = require( './../lib/ndarray.js' ); +var ssyrk = require( './../lib/ndarray.js' ); // VARIABLES // var options = { - 'dtype': 'float64' + 'dtype': 'float32' }; @@ -47,7 +47,6 @@ var options = { */ 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; @@ -63,13 +62,13 @@ function createBenchmark( N ) { 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 ] ) ) { + z = ssyrk( 'lower', 'no-transpose', N, N, 1.0, A, N, 1, 0, 1.0, C, N, 1, 0 ); + if ( isnanf( z[ i%z.length ] ) ) { b.fail( 'should not return NaN' ); } } b.toc(); - if ( isnan( z[ i%z.length ] ) ) { + if ( isnanf( z[ i%z.length ] ) ) { b.fail( 'should not return NaN' ); } b.pass( 'benchmark finished' ); @@ -93,12 +92,12 @@ function main() { var i; min = 1; // 10^min - max = 5; // 10^max + max = 4; // 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 ); + bench( pkg+':ndarray:size='+(len*len), f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/docs/repl.txt b/lib/node_modules/@stdlib/blas/base/ssyrk/docs/repl.txt new file mode 100644 index 000000000000..4fd6c96260e3 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/docs/repl.txt @@ -0,0 +1,142 @@ + +{{alias}}( ord, uplo, trans, N, K, α, A, lda, β, C, ldc ) + Performs one of the symmetric rank `K` operations `C = α*A*A**T + β*C` or + `C = α*A**T*A + β*C` where `α` and `β` are scalars, `C` is an `N` by `N` + symmetric matrix and `A` is an `N` by `K` matrix in the first case and a + `K` by `N` matrix in the second case. + + Indexing is relative to the first index. To introduce an offset, use typed + array views. + + If `N` is equal to `0`, the function returns `C` unchanged. + + If `α` or `K` equals `0` and `β` equals `1`, the function returns `C` + unchanged. + + Parameters + ---------- + ord: string + Row-major (C-style) or column-major (Fortran-style) order. + + uplo: string + Specifies whether `A` is an upper or lower triangular matrix. + + trans: string + Specifies whether `C` should be transposed, conjugate-transposed, or not + transposed. + + N: integer + Number of elements along each dimension of `C`. + + K: integer + Number of columns or number of rows of the matrix `A`. + + α: 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`). + + β: number + Scalar constant. + + C: Float32Array + Second matrix. + + ldc: integer + Stride of the first dimension of `C` (a.k.a., leading dimension of the + matrix `C`). + + Returns + ------- + C: Float32Array + Second matrix. + + Examples + -------- + // Standard usage: + > var A = new {{alias:@stdlib/array/float32}}( [ 1.0, 2.0, 3.0, 4.0 ] ); + > var C = new {{alias:@stdlib/array/float32}}( [ 1.0, 2.0, 0.0, 4.0 ] ); + > var ord = 'row-major'; + > var uplo = 'upper'; + > var trans = 'no-transpose'; + > {{alias}}( ord, uplo, trans, 2, 2, 1.0, A, 2, 1.0, C, 2 ) + [ 6.0, 13.0, 0.0, 29.0 ] + + +{{alias}}.ndarray( uplo, trans, N, K, α, A, sa1, sa2, oa, β, C, sc1, sc2, oc ) + Performs one of the symmetric rank `K` operations `C = α*A*A**T + β*C` or + `C = α*A**T*A + β*C`, using alternative indexing semantics and where `α` + and `β` are scalars, `C` is an `N` by `N` symmetric matrix and `A` is an + `N` by `K` matrix in the first case and a `K` by `N` matrix in the second + case. + + While typed array views mandate a view offset based on the underlying + buffer, the offset parameters support indexing semantics based on starting + indices. + + Parameters + ---------- + uplo: string + Specifies whether `A` is an upper or lower triangular matrix. + + trans: string + Specifies whether `C` should be transposed, conjugate-transposed, or not + transposed. + + N: integer + Number of elements along each dimension of `C`. + + K: integer + Number of columns or number of rows of the matrix `A`. + + α: 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`. + + β: number + Scalar constant. + + C: Float32Array + Second 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 + Second matrix. + + Examples + -------- + > var A = new {{alias:@stdlib/array/float32}}( [ 1.0, 2.0, 3.0, 4.0 ] ); + > var C = new {{alias:@stdlib/array/float32}}( [ 1.0, 2.0, 0.0, 4.0 ] ); + > var uplo = 'upper'; + > var trans = 'no-transpose'; + > {{alias}}.ndarray( uplo, trans, 2, 2, 1.0, A, 2, 1, 0, 1.0, C, 2, 1, 0 ) + [ 6.0, 13.0, 0.0, 29.0 ] + + See Also + -------- diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/base/ssyrk/docs/types/index.d.ts new file mode 100644 index 000000000000..3ce136d3eadb --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/docs/types/index.d.ts @@ -0,0 +1,127 @@ +/* +* @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, TransposeOperation } from '@stdlib/types/blas'; + +/** +* Interface describing `ssyrk`. +*/ +interface Routine { + /** + * Performs one of the symmetric rank `K` operations `C = α*A*A**T + β*C` or `C = α*A**T*A + β*C` where `α` and `β` are scalars, `C` is an `N` by `N` symmetric matrix and `A` is an `N` by `K` matrix in the first case and a `K` by `N` matrix in the second case. + * + * @param order - storage layout + * @param uplo - specifies whether the upper or lower triangular part of the symmetric matrix `C` is supplied + * @param trans - specifies whether `A` should be transposed, conjugate-transposed, or not transposed + * @param N - order of the matrix `C` + * @param K - number of columns or number of rows of the matrix `A` + * @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 beta - scalar constant + * @param C - second 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, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); + * var C = new Float32Array( [ 1.0, 2.0, 3.0, 0.0, 4.0, 5.0, 0.0, 0.0, 6.0 ] ); + * + * ssyrk( 'row-major', 'upper', 'no-transpose', 3, 3, 1.0, A, 3, 1, 0, 1.0, C, 3, 1, 0 ); + * // C => [ 15.0, 34.0, 53.0, 0.0, 81.0, 127.0, 0.0, 0.0, 200.0 ] + */ + ( order: Layout, uplo: MatrixTriangle, trans: TransposeOperation, N: number, K: number, alpha: number, A: Float32Array, LDA: number, beta: number, C: Float32Array, LDC: number ): Float32Array; + + /** + * Performs one of the symmetric rank `K` operations `C = α*A*A**T + β*C` or `C = α*A**T*A + β*C`, using alternative indexing semantics and where `α` and `β` are scalars, `C` is an `N` by `N` symmetric matrix and `A` is an `N` by `K` matrix in the first case and a `K` by `N` matrix in the second case. + * + * @param order - storage layout + * @param uplo - specifies whether the upper or lower triangular part of the symmetric matrix `C` is supplied + * @param trans - specifies whether `A` should be transposed, conjugate-transposed, or not transposed + * @param N - order of the matrix `C` + * @param K - number of columns or number of rows of the matrix `A` + * @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 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, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); + * var C = new Float32Array( [ 1.0, 2.0, 3.0, 0.0, 4.0, 5.0, 0.0, 0.0, 6.0 ] ); + * + * ssyrk( 'upper', 'no-transpose', 3, 3, 1.0, A, 3, 1, 0, 1.0, C, 3, 1, 0 ); + * // C => [ 15.0, 34.0, 53.0, 0.0, 81.0, 127.0, 0.0, 0.0, 200.0 ] + */ + ndarray( uplo: MatrixTriangle, trans: TransposeOperation, N: number, K: number, alpha: number, A: Float32Array, strideA1: number, strideA2: number, offsetA: number, beta: number, C: Float32Array, strideC1: number, strideC2: number, offsetC: number ): Float32Array; +} + +/** +* Performs one of the symmetric rank `K` operations `C = α*A*A**T + β*C` or `C = α*A**T*A + β*C` where `α` and `β` are scalars, `C` is an `N` by `N` symmetric matrix and `A` is an `N` by `K` matrix in the first case and a `K` by `N` matrix in the second case. +* +* @param order - storage layout +* @param uplo - specifies whether the upper or lower triangular part of the symmetric matrix `C` is supplied +* @param trans - specifies whether `A` should be transposed, conjugate-transposed, or not transposed +* @param N - order of the matrix `C` +* @param K - number of columns or number of rows of the matrix `A` +* @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 beta - scalar constant +* @param C - second 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, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); +* var C = new Float32Array( [ 1.0, 2.0, 3.0, 0.0, 4.0, 5.0, 0.0, 0.0, 6.0 ] ); +* +* ssyrk( 'row-major', 'upper', 'no-transpose', 3, 3, 1.0, A, 3, 1, 0, 1.0, C, 3, 1, 0 ); +* // C => [ 15.0, 34.0, 53.0, 0.0, 81.0, 127.0, 0.0, 0.0, 200.0 ] +* +* @example +* var Float32Array = require( '@stdlib/array/float32' ); +* +* var A = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); +* var C = new Float32Array( [ 1.0, 2.0, 3.0, 0.0, 4.0, 5.0, 0.0, 0.0, 6.0 ] ); +* +* ssyrk.ndarray( 'upper', 'no-transpose', 3, 3, 1.0, A, 3, 1, 0, 1.0, C, 3, 1, 0 ); +* // C => [ 15.0, 34.0, 53.0, 0.0, 81.0, 127.0, 0.0, 0.0, 200.0 ] +*/ +declare var ssyrk: Routine; + + +// EXPORTS // + +export = ssyrk; diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/docs/types/test.ts b/lib/node_modules/@stdlib/blas/base/ssyrk/docs/types/test.ts new file mode 100644 index 000000000000..18b10f820707 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/docs/types/test.ts @@ -0,0 +1,499 @@ +/* +* @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 ssyrk = require( './index' ); + + +// TESTS // + +// The function returns a Float32Array... +{ + const A = new Float32Array( 25 ); + const C = new Float32Array( 25 ); + + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 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 C = new Float32Array( 25 ); + + ssyrk( 10, 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( true, 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( false, 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( null, 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( undefined, 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( [], 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( {}, 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( ( A: number ): number => A, 'lower', 'no-transpose', 5, 5, 1.0, A, 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 C = new Float32Array( 25 ); + + ssyrk( 'row-major', 10, 'no-transpose', 5, 5, 1.0, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', true, 'no-transpose', 5, 5, 1.0, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', false, 'no-transpose', 5, 5, 1.0, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', null, 'no-transpose', 5, 5, 1.0, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', undefined, 'no-transpose', 5, 5, 1.0, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', [ '1' ], 'no-transpose', 5, 5, 1.0, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', {}, 'no-transpose', 5, 5, 1.0, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', ( A: number ): number => A, 'no-transpose', 5, 5, 1.0, A, 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 C = new Float32Array( 25 ); + + ssyrk( 'row-major', 'lower', 10, 5, 5, 1.0, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', true, 5, 5, 1.0, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', false, 5, 5, 1.0, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', null, 5, 5, 1.0, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', undefined, 5, 5, 1.0, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', [ '1' ], 5, 5, 1.0, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', {}, 5, 5, 1.0, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', ( A: number ): number => A, 5, 5, 1.0, A, 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 C = new Float32Array( 25 ); + + ssyrk( 'row-major', 'lower', 'no-transpose', '10', 5, 1.0, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', true, 5, 1.0, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', false, 5, 1.0, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', null, 5, 1.0, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', undefined, 5, 1.0, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', [], 5, 1.0, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', {}, 5, 1.0, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', ( A: number ): number => A, 5, 1.0, A, 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 C = new Float32Array( 25 ); + + ssyrk( 'row-major', 'lower', 'no-transpose', 5, '10', 5, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, true, 5, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, false, 5, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, null, 5, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, undefined, 5, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, [], 5, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, {}, 5, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, ( A: number ): number => A, 5, A, 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 C = new Float32Array( 25 ); + + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, '10', A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, true, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, false, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, null, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, undefined, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, [], A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, {}, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, ( A: number ): number => A, A, 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 C = new Float32Array( 25 ); + + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, 10, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, '10', 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, true, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, false, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, null, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, undefined, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, [ '1' ], 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, {}, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, ( A: number ): number => A, 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 C = new Float32Array( 25 ); + + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, '10', 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, true, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, false, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, null, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, undefined, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, [], 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, {}, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, ( A: number ): number => A, 1.0, C, 5 ); // $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 C = new Float32Array( 25 ); + + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, '10', C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, true, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, false, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, null, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, undefined, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, [], C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, {}, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, ( A: number ): number => A, C, 5 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a tenth argument which is not a Float32Array... +{ + const A = new Float32Array( 25 ); + + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, 10, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, '10', 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, true, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, false, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, null, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, undefined, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, [ '1' ], 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, {}, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, ( A: number ): number => A, 5 ); // $ExpectError +} + +// The compiler throws an error if the function is provided an eleventh argument which is not a number... +{ + const A = new Float32Array( 25 ); + const C = new Float32Array( 25 ); + + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, C, '10' ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, C, true ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, C, false ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, C, null ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, C, undefined ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, C, [] ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, C, {} ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, C, ( A: number ): number => A ); // $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 C = new Float32Array( 25 ); + + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, '10', C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, true, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, false, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, null, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, undefined, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, [], C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, {}, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, ( A: number ): number => A, C, 5 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a thirteenth argument which is not a Float32Array... +{ + const A = new Float32Array( 25 ); + + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, 10, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, '10', 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, true, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, false, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, null, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, undefined, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, [ '1' ], 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, {}, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, ( A: number ): number => A, 5 ); // $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 C = new Float32Array( 25 ); + + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, C, '10' ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, C, true ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, C, false ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, C, null ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, C, undefined ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, C, [] ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, C, {} ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 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 C = new Float32Array( 25 ); + + ssyrk(); // $ExpectError + ssyrk( 'row-major' ); // $ExpectError + ssyrk( 'row-major', 'lower' ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose' ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, C ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 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 C = new Float32Array( 25 ); + + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 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 C = new Float32Array( 25 ); + + ssyrk.ndarray( 10, 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( true, 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( false, 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( null, 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( undefined, 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( [ '1' ], 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( {}, 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( ( A: number ): number => A, 'no-transpose', 5, 5, 1.0, A, 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 C = new Float32Array( 25 ); + + ssyrk.ndarray( 'lower', 10, 5, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', true, 5, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', false, 5, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', null, 5, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', undefined, 5, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', [ '1' ], 5, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', {}, 5, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', ( A: number ): number => A, 5, 5, 1.0, A, 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 C = new Float32Array( 25 ); + + ssyrk.ndarray( 'lower', 'no-transpose', '10', 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', true, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', false, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', null, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', undefined, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', [], 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', {}, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', ( A: number ): number => A, 5, 1.0, A, 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 C = new Float32Array( 25 ); + + ssyrk.ndarray( 'lower', 'no-transpose', 5, '10', 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, true, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, false, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, null, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, undefined, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, [], 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, {}, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, ( A: number ): number => A, 5, 1.0, A, 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 C = new Float32Array( 25 ); + + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, '10', 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, true, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, false, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, null, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, undefined, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, [], 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, {}, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, ( A: number ): number => A, 1.0, A, 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 Float32Array... +{ + const C = new Float32Array( 25 ); + + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, 10, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, '10', 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, true, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, false, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, null, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, undefined, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, [ '1' ], 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, {}, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 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 an seventh argument which is not a number... +{ + const A = new Float32Array( 25 ); + const C = new Float32Array( 25 ); + + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, '10', 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, true, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, false, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, null, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, undefined, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, [], 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, {}, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, ( A: number ): number => A, 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 C = new Float32Array( 25 ); + + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, '10', 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, true, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, false, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, null, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, undefined, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, [], 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, {}, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, ( A: number ): number => A, 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 C = new Float32Array( 25 ); + + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, '10', 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, true, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, false, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, null, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, undefined, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, [], 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, {}, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, ( A: number ): number => A, 1.0, C, 5, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a tenth argument which is not a number... +{ + const A = new Float32Array( 25 ); + const C = new Float32Array( 25 ); + + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, '10', C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, true, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, false, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, null, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, undefined, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, [], C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, {}, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, ( A: number ): number => A, C, 5, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided an eleventh argument which is not a Float32Array... +{ + const A = new Float32Array( 25 ); + + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, 10, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, '10', 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, true, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, false, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, null, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, undefined, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, [ '1' ], 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, {}, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, ( A: number ): number => A, 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 C = new Float32Array( 25 ); + + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, C, '10', 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, C, true, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, C, false, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, C, null, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, C, undefined, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, C, [], 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, C, {}, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, C, ( A: number ): number => A, 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 C = new Float32Array( 25 ); + + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, '10', 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, true, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, false, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, null, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, undefined, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, [], 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, {}, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, ( A: number ): number => A, 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 C = new Float32Array( 25 ); + + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, '10' ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, true ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, false ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, null ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, undefined ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, [] ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, {} ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 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 C = new Float32Array( 25 ); + + ssyrk.ndarray(); // $ExpectError + ssyrk.ndarray( 'lower' ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose' ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, C ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, C, 5 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, 1.0, A, 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/ssyrk/examples/index.js similarity index 63% rename from lib/node_modules/@stdlib/blas/base/dsymm/examples/index.js rename to lib/node_modules/@stdlib/blas/base/ssyrk/examples/index.js index 75104fb3d919..be2a8c763597 100644 --- a/lib/node_modules/@stdlib/blas/base/dsymm/examples/index.js +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/examples/index.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2025 The Stdlib Authors. +* 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. @@ -19,21 +19,20 @@ 'use strict'; var discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); -var dsymm = require( './../lib' ); +var ssyrk = require( './../lib' ); var opts = { - 'dtype': 'float64' + 'dtype': 'float32' }; -var M = 3; -var N = 3; +var N = 4; +var K = 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 ); +var A = discreteUniform( N*N, 0, 10, opts ); // 4x4 +var C = discreteUniform( N*K, 0, 10, opts ); // 4x3 -dsymm( 'row-major', 'left', 'lower', M, N, 1.0, A, M, B, N, 1.0, C, N ); +ssyrk( 'row-major', 'lower', 'no-transpose', N, K, 1.0, A, 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 ); +ssyrk.ndarray( 'lower', 'no-transpose', N, K, 1.0, A, N, 1, 0, 1.0, C, N, 1, 0 ); console.log( C ); diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/lib/base.js b/lib/node_modules/@stdlib/blas/base/ssyrk/lib/base.js new file mode 100644 index 000000000000..6478930749a1 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/lib/base.js @@ -0,0 +1,313 @@ +/** +* @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' ); +var f32 = require( '@stdlib/number/float64/base/to-float32' ); + + +// FUNCTIONS // + +/** +* Fills a upper or lower triangular part of a matrix with zeros. +* +* @private +* @param {string} uplo - specifies whether the upper or lower triangular part of the matrix should be referenced +* @param {NonNegativeInteger} N - order of the matrix +* @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, 7.0, 8.0, 9.0 ] ); +* +* zeros( 'lower', 3, X, 3, 1, 0 ); +* // X => [ 0.0, 2.0, 3.0, 0.0, 0.0, 6.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, 7.0, 8.0, 9.0 ] ); +* +* zeros( 'lower', 3, X, 1, 3, 0 ); +* // X => [ 0.0, 0.0, 0.0, 4.0, 0.0, 0.0, 7.0, 8.0, 0.0 ] +*/ +function zeros( uplo, N, X, strideX1, strideX2, offsetX ) { // TODO: consider moving to a separate package + var isrm; + var idx; + var x0; + var x1; + var i1; + var i0; + + isrm = isRowMajor( [ strideX1, strideX2 ] ); + + if ( isrm ) { + x0 = strideX2; // stride for innermost loop + x1 = strideX1; // stride for outermost loop + } else { // column-major + x0 = strideX1; // stride for innermost loop + x1 = strideX2; // stride for outermost loop + } + if ( + ( isrm && uplo === 'upper' ) || ( !isrm && uplo === 'lower' ) + ) { + for ( i1 = 0; i1 < N; i1++ ) { + for ( i0 = i1; i0 < N; i0++ ) { + idx = offsetX + ( i1 * x1 ) + ( i0 * x0 ); + X[ idx ] = 0.0; + } + } + return X; + } + // ( isrm && uplo === 'lower' ) || ( !isrm && uplo === 'upper' ) + for ( i1 = 0; i1 < N; i1++ ) { + for ( i0 = 0; i0 <= i1; i0++ ) { + idx = offsetX + ( i1 * x1 ) + ( i0 * x0 ); + X[ idx ] = 0.0; + } + } + return X; +} + +/** +* Scales each element in a the upper or lower triangular part of matrix by a scalar `β`. +* +* @private +* @param {string} uplo - specifies whether the upper or lower triangular part of the symmetric matrix should be referenced +* @param {NonNegativeInteger} N - order of the matrix +* @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, 7.0, 8.0, 9.0 ] ); +* +* scal( 'lower', 3, 5.0, X, 3, 1, 0 ); +* // X => [ 5.0, 2.0, 3.0, 20.0, 25.0, 6.0, 35.0, 40.0, 45.0 ] +* +* @example +* var Float32Array = require( '@stdlib/array/float32' ); +* +* var X = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); +* +* scal( 'lower', 3, 5.0, X, 1, 2, 0 ); +* // X => [ 5.0, 10.0, 15.0, 20.0, 25.0, 6.0, 35.0, 8.0, 9.0 ] +*/ +function scal( uplo, N, beta, X, strideX1, strideX2, offsetX ) { // TODO: consider moving to a separate package + var isrm; + var idx; + var x0; + var x1; + var i1; + var i0; + + isrm = isRowMajor( [ strideX1, strideX2 ] ); + + if ( isrm ) { + x0 = strideX2; // stride for innermost loop + x1 = strideX1; // stride for outermost loop + } else { + x0 = strideX1; // stride for innermost loop + x1 = strideX2; // stride for outermost loop + } + if ( + ( isrm && uplo === 'upper' ) || ( !isrm && uplo === 'lower' ) + ) { + for ( i1 = 0; i1 < N; i1++ ) { + for ( i0 = i1; i0 < N; i0++ ) { + idx = offsetX + ( i1 * x1 ) + ( i0 * x0 ); + X[ idx ] = f32( X[ idx ] * beta ); + } + } + return X; + } + // ( isrm && uplo === 'lower' ) || ( !isrm && uplo === 'upper' ) + for ( i1 = 0; i1 < N; i1++ ) { + for ( i0 = 0; i0 <= i1; i0++ ) { + idx = offsetX + ( i1 * x1 ) + ( i0 * x0 ); + X[ idx ] = f32( X[ idx ] * beta ); + } + } + return X; +} + + +// MAIN // + +/** +* Performs one of the symmetric rank `K` operations `C = α*A*A**T + β*C` or `C = α*A**T*A + β*C` where `α` and `β` are scalars, `C` is an `N` by `N` symmetric matrix and `A` is an `N` by `K` matrix in the first case and a `K` by `N` matrix in the second case. +* +* @private +* @param {string} uplo - specifies whether the upper or lower triangular part of the symmetric matrix `C` is supplied +* @param {string} trans - specifies whether `A` should be transposed, conjugate-transposed, or not transposed +* @param {NonNegativeInteger} N - order of the matrix `C` +* @param {NonNegativeInteger} K - number of columns or number of rows of the matrix `A` +* @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 {number} beta - scalar constant +* @param {Float32Array} C - second 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, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); +* var C = new Float32Array( [ 1.0, 2.0, 3.0, 0.0, 4.0, 5.0, 0.0, 0.0, 6.0 ] ); +* +* ssyrk( 'upper', 'no-transpose', 3, 3, 1.0, A, 3, 1, 0, 1.0, C, 3, 1, 0 ); +* // C => [ 15.0, 34.0, 53.0, 0.0, 81.0, 127.0, 0.0, 0.0, 200.0 ] +*/ +function ssyrk( uplo, trans, N, K, alpha, A, strideA1, strideA2, offsetA, beta, C, strideC1, strideC2, offsetC ) { + var isrma; + var sa0; + var sa1; + var sc0; + var sc1; + var oa1; + var oa2; + var idx; + var tmp; + var oa; + var i2; + var i1; + var i0; + + isrma = isRowMajor( [ strideA1, strideA2 ] ); + + // Check whether we can early return... + if ( N === 0 || ( ( beta === 1.0 ) && ( ( alpha === 0.0 ) || ( K === 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 + 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 + sc0 = strideC1; + sc1 = strideC2; + } + if ( beta === 0.0 ) { + zeros( uplo, N, C, strideC1, strideC2, offsetC ); + } else if ( beta !== 1.0 ) { + scal( uplo, N, beta, C, strideC1, strideC2, offsetC ); + } + // Check whether we can early return... + if ( alpha === 0.0 ) { + return C; + } + oa = offsetA; + if ( + ( isrma && trans === 'no-transpose' && uplo === 'upper' ) || + ( !isrma && trans !== 'no-transpose' && uplo === 'lower' ) + ) { + for ( i2 = 0; i2 < N; i2++ ) { + for ( i1 = i2; i1 < N; i1++ ) { + tmp = 0.0; + for ( i0 = 0; i0 < K; i0++ ) { + oa1 = oa + (i2 * sa1) + (i0 * sa0); + oa2 = oa + (i1 * sa1) + (i0 * sa0); + tmp = f32( tmp + f32( A[ oa1 ] * A[ oa2 ] ) ); + } + idx = offsetC + (i2 * sc1) + (i1 * sc0); + C[ idx ] = f32( C[ idx ] + f32( alpha * tmp ) ); + } + } + return C; + } + if ( + ( isrma && trans === 'no-transpose' && uplo === 'lower' ) || + ( !isrma && trans !== 'no-transpose' && uplo === 'upper' ) + ) { + for ( i2 = 0; i2 < N; i2++ ) { + for ( i1 = 0; i1 <= i2; i1++ ) { + tmp = 0.0; + for ( i0 = 0; i0 < K; i0++ ) { + oa1 = oa + (i2 * sa1) + (i0 * sa0); + oa2 = oa + (i1 * sa1) + (i0 * sa0); + tmp = f32( tmp + f32( A[ oa1 ] * A[ oa2 ] ) ); + } + idx = offsetC + (i2 * sc1) + (i1 * sc0); + C[ idx ] = f32( C[ idx ] + f32( alpha * tmp ) ); + } + } + return C; + } + if ( + ( isrma && trans !== 'no-transpose' && uplo === 'upper' ) || + ( !isrma && trans === 'no-transpose' && uplo === 'lower' ) + ) { + for ( i2 = 0; i2 < N; i2++ ) { + for ( i1 = i2; i1 < N; i1++ ) { + tmp = 0.0; + for ( i0 = 0; i0 < K; i0++ ) { + oa1 = oa + (i0 * sa1) + (i2 * sa0); + oa2 = oa + (i0 * sa1) + (i1 * sa0); + tmp = f32( tmp + f32( A[ oa1 ] * A[ oa2 ] ) ); + } + idx = offsetC + (i2 * sc1) + (i1 * sc0); + C[ idx ] = f32( C[ idx ] + f32( alpha * tmp ) ); + } + } + return C; + } + // ( isrma && trans !== 'no-transpose' && uplo === 'lower' ) || ( !isrma && trans === 'no-transpose' && uplo === 'upper' ) + for ( i2 = 0; i2 < N; i2++ ) { + for ( i1 = 0; i1 <= i2; i1++ ) { + tmp = 0.0; + for ( i0 = 0; i0 < K; i0++ ) { + oa1 = oa + (i0 * sa1) + (i2 * sa0); + oa2 = oa + (i0 * sa1) + (i1 * sa0); + tmp = f32( tmp + f32( A[ oa1 ] * A[ oa2 ] ) ); + } + idx = offsetC + (i2 * sc1) + (i1 * sc0); + C[ idx ] = f32( C[ idx ] + f32( alpha * tmp ) ); + } + } + return C; +} + + +// EXPORTS // + +module.exports = ssyrk; diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/lib/index.js b/lib/node_modules/@stdlib/blas/base/ssyrk/lib/index.js new file mode 100644 index 000000000000..a033b9f56898 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/lib/index.js @@ -0,0 +1,70 @@ +/** +* @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 one of the symmetric rank `K` operations `C = α*A*A**T + β*C` or `C = α*A**T*A + β*C` where `α` and `β` are scalars, `C` is an `N` by `N` symmetric matrix and `A` is an `N` by `K` matrix in the first case and a `K` by `N` matrix in the second case. +* +* @module @stdlib/blas/base/ssyrk +* +* @example +* var Float32Array = require( '@stdlib/array/float32' ); +* var ssyrk = require( '@stdlib/blas/base/ssyrk' ); +* +* var A = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); +* var C = new Float32Array( [ 1.0, 2.0, 3.0, 0.0, 4.0, 5.0, 0.0, 0.0, 6.0 ] ); +* +* ssyrk( 'upper', 'no-transpose', 3, 3, 1.0, A, 3, 1.0, C, 3 ); +* // C => [ 15.0, 34.0, 53.0, 0.0, 81.0, 127.0, 0.0, 0.0, 200.0 ] +* +* @example +* var Float32Array = require( '@stdlib/array/float32' ); +* var ssyrk = require( '@stdlib/blas/base/ssyrk' ); +* +* var A = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); +* var C = new Float32Array( [ 1.0, 2.0, 3.0, 0.0, 4.0, 5.0, 0.0, 0.0, 6.0 ] ); +* +* ssyrk.ndarray( 'upper', 'no-transpose', 3, 3, 1.0, A, 3, 1, 0, 1.0, C, 3, 1, 0 ); +* // C => [ 15.0, 34.0, 53.0, 0.0, 81.0, 127.0, 0.0, 0.0, 200.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 ssyrk; +var tmp = tryRequire( join( __dirname, './native.js' ) ); +if ( isError( tmp ) ) { + ssyrk = main; +} else { + ssyrk = tmp; +} + + +// EXPORTS // + +module.exports = ssyrk; + +// exports: { "ndarray": "ssyrk.ndarray" } diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/lib/main.js b/lib/node_modules/@stdlib/blas/base/ssyrk/lib/main.js similarity index 84% rename from lib/node_modules/@stdlib/blas/base/dsymm/lib/main.js rename to lib/node_modules/@stdlib/blas/base/ssyrk/lib/main.js index 0ffc283d5386..0d3d27208c93 100644 --- a/lib/node_modules/@stdlib/blas/base/dsymm/lib/main.js +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/lib/main.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2025 The Stdlib Authors. +* 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. @@ -21,15 +21,15 @@ // MODULES // var setReadOnly = require( '@stdlib/utils/define-nonenumerable-read-only-property' ); -var dsymm = require( './dsymm.js' ); +var ssyrk = require( './ssyrk.js' ); var ndarray = require( './ndarray.js' ); // MAIN // -setReadOnly( dsymm, 'ndarray', ndarray ); +setReadOnly( ssyrk, 'ndarray', ndarray ); // EXPORTS // -module.exports = dsymm; +module.exports = ssyrk; diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/lib/ndarray.js b/lib/node_modules/@stdlib/blas/base/ssyrk/lib/ndarray.js new file mode 100644 index 000000000000..1ae9aa38800f --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/lib/ndarray.js @@ -0,0 +1,90 @@ +/** +* @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 isMatrixTranspose = require( '@stdlib/blas/base/assert/is-transpose-operation' ); +var format = require( '@stdlib/string/format' ); +var base = require( './base.js' ); + + +// MAIN // + +/** +* Performs one of the symmetric rank `K` operations `C = α*A*A**T + β*C` or `C = α*A**T*A + β*C` where `α` and `β` are scalars, `C` is an `N` by `N` symmetric matrix and `A` is an `N` by `K` matrix in the first case and a `K` by `N` matrix in the second case. +* +* @param {string} uplo - specifies whether the upper or lower triangular part of the symmetric matrix `C` is supplied +* @param {string} trans - specifies whether `A` should be transposed, conjugate-transposed, or not transposed +* @param {NonNegativeInteger} N - order of the matrix `C` +* @param {NonNegativeInteger} K - number of columns or number of rows of the matrix `A` +* @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 {number} beta - scalar constant +* @param {Float32Array} C - second 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 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} twelfth argument must be non-zero +* @throws {RangeError} thirteenth argument must be non-zero +* @returns {Float32Array} `C` +* +* @example +* var Float32Array = require( '@stdlib/array/float32' ); +* +* var A = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); +* var C = new Float32Array( [ 1.0, 2.0, 3.0, 0.0, 4.0, 5.0, 0.0, 0.0, 6.0 ] ); +* +* ssyrk( 'upper', 'no-transpose', 3, 3, 1.0, A, 3, 1, 0, 1.0, C, 3, 1, 0 ); +* // C => [ 15.0, 34.0, 53.0, 0.0, 81.0, 127.0, 0.0, 0.0, 200.0 ] +*/ +function ssyrk( uplo, trans, N, K, alpha, A, strideA1, strideA2, offsetA, beta, C, strideC1, strideC2, offsetC ) { // eslint-disable-line max-params, max-len + if ( !isMatrixTriangle( uplo ) ) { + throw new TypeError( format( 'invalid argument. First argument must specify whether the lower or upper triangular matrix is supplied. Value: `%s`.', uplo ) ); + } + if ( !isMatrixTranspose( trans ) ) { + throw new TypeError( format( 'invalid argument. Second argument must be a valid transpose operation. Value: `%s`.', trans ) ); + } + if ( N < 0 ) { + throw new RangeError( format( 'invalid argument. Third argument must be a nonnegative integer. Value: `%d`.', N ) ); + } + if ( K < 0 ) { + throw new RangeError( format( 'invalid argument. Fourth argument must be a nonnegative integer. Value: `%d`.', K ) ); + } + if ( strideC1 === 0 ) { + throw new RangeError( format( 'invalid argument. Twelfth argument must be non-zero. Value: `%d`.', strideC1 ) ); + } + if ( strideC2 === 0 ) { + throw new RangeError( format( 'invalid argument. Thirteenth argument must be non-zero. Value: `%d`.', strideC2 ) ); + } + return base( uplo, trans, N, K, alpha, A, strideA1, strideA2, offsetA, beta, C, strideC1, strideC2, offsetC ); // eslint-disable-line max-len +} + + +// EXPORTS // + +module.exports = ssyrk; diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/lib/ssyrk.js b/lib/node_modules/@stdlib/blas/base/ssyrk/lib/ssyrk.js new file mode 100644 index 000000000000..d2aa0ca4ed6e --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/lib/ssyrk.js @@ -0,0 +1,118 @@ +/** +* @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 isMatrixTranspose = require( '@stdlib/blas/base/assert/is-transpose-operation' ); +var isColumnMajor = require( '@stdlib/ndarray/base/assert/is-column-major-string' ); +var format = require( '@stdlib/string/format' ); +var base = require( './base.js' ); + + +// MAIN // + +/** +* Performs one of the symmetric rank `K` operations `C = α*A*A**T + β*C` or `C = α*A**T*A + β*C` where `α` and `β` are scalars, `C` is an `N` by `N` symmetric matrix and `A` is an `N` by `K` matrix in the first case and a `K` by `N` matrix in the second case. +* +* @param {string} order - storage layout +* @param {string} uplo - specifies whether the upper or lower triangular part of the symmetric matrix `C` is supplied +* @param {string} trans - specifies whether `A` should be transposed, conjugate-transposed, or not transposed +* @param {NonNegativeInteger} N - order of the matrix `C` +* @param {NonNegativeInteger} K - number of columns or number of rows of the matrix `A` +* @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 {number} beta - scalar constant +* @param {Float32Array} C - second 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 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,N) when `A` is not transposed and max(1,K) otherwise +* @throws {RangeError} eleventh argument must be greater than or equal to max(1,N) +* @returns {Float32Array} `C` +* +* @example +* var Float32Array = require( '@stdlib/array/float32' ); +* +* var A = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); +* var C = new Float32Array( [ 1.0, 2.0, 3.0, 0.0, 4.0, 5.0, 0.0, 0.0, 6.0 ] ); +* +* ssyrk( 'row-major', 'upper', 'no-transpose', 3, 3, 1.0, A, 3, 1.0, C, 3 ); +* // C => [ 15.0, 34.0, 53.0, 0.0, 81.0, 127.0, 0.0, 0.0, 200.0 ] +*/ +function ssyrk( order, uplo, trans, N, K, alpha, A, LDA, beta, C, LDC ) { // eslint-disable-line max-params + var nrowsa; + var iscm; + var sa1; + var sa2; + var sc1; + var sc2; + + if ( !isLayout( order ) ) { + throw new TypeError( format( 'invalid argument. First argument must be a valid order. Value: `%s`.', order ) ); + } + 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 ( !isMatrixTranspose( trans ) ) { + throw new TypeError( format( 'invalid argument. Third argument must be a valid transpose operation. Value: `%s`.', trans ) ); + } + if ( N < 0 ) { + throw new RangeError( format( 'invalid argument. Fourth argument must be a nonnegative integer. Value: `%d`.', N ) ); + } + if ( K < 0 ) { + throw new RangeError( format( 'invalid argument. Fifth argument must be a nonnegative integer. Value: `%d`.', K ) ); + } + if ( trans === 'no-transpose' ) { + nrowsa = N; + } else { + nrowsa = K; + } + 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 ( LDC < max( 1, N ) ) { + throw new RangeError( format( 'invalid argument. Eleventh argument must be greater than or equal to max(1,%d). Value: `%d`.', N, LDC ) ); + } + iscm = isColumnMajor( order ); + if ( iscm ) { + sa1 = 1; + sa2 = LDA; + sc1 = 1; + sc2 = LDC; + } else { // order === 'row-major' + sa1 = LDA; + sa2 = 1; + sc1 = LDC; + sc2 = 1; + } + return base( uplo, trans, N, K, alpha, A, sa1, sa2, 0, beta, C, sc1, sc2, 0 ); // eslint-disable-line max-len +} + + +// EXPORTS // + +module.exports = ssyrk; diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/package.json b/lib/node_modules/@stdlib/blas/base/ssyrk/package.json similarity index 77% rename from lib/node_modules/@stdlib/blas/base/dsymm/package.json rename to lib/node_modules/@stdlib/blas/base/ssyrk/package.json index f0ada41e2428..479149d89165 100644 --- a/lib/node_modules/@stdlib/blas/base/dsymm/package.json +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/package.json @@ -1,7 +1,7 @@ { - "name": "@stdlib/blas/base/dsymm", + "name": "@stdlib/blas/base/ssyrk", "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", + "description": "Solve matrix equation `op(A) * X = α * B` or `X * op(A) = α * B` where `α` is a scalar, `X` and `B` are `M` by `N` matrices, `A` is a unit, or non-unit, upper or lower triangular matrix and `op(A)` is one of `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B`.", "license": "Apache-2.0", "author": { "name": "The Stdlib Authors", @@ -55,7 +55,7 @@ "math", "blas", "level 3", - "dsymm", + "ssyrk", "linear", "algebra", "subroutines", diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ca_cc_l_nt.json b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ca_cc_l_nt.json new file mode 100644 index 000000000000..039760866ba9 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ca_cc_l_nt.json @@ -0,0 +1,27 @@ +{ + "uplo": "lower", + "trans": "no-transpose", + "N": 3, + "K": 3, + "alpha": 1.0, + "A": [ 1.0, 4.0, 7.0, 2.0, 5.0, 8.0, 3.0, 6.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "C_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 1, + "strideC2": 3, + "offsetC": 0, + "C_out": [ 15.0, 33.0, 51.0, 0.0, 78.0, 123.0, 0.0, 0.0, 195.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ca_cc_l_t.json b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ca_cc_l_t.json new file mode 100644 index 000000000000..c984ff52679c --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ca_cc_l_t.json @@ -0,0 +1,27 @@ +{ + "uplo": "lower", + "trans": "transpose", + "N": 3, + "K": 3, + "alpha": 1.0, + "A": [ 1.0, 4.0, 7.0, 2.0, 5.0, 8.0, 3.0, 6.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "C_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 1, + "strideC2": 3, + "offsetC": 0, + "C_out": [ 67.0, 79.0, 91.0, 0.0, 94.0, 109.0, 0.0, 0.0, 127.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ca_cc_u_nt.json b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ca_cc_u_nt.json new file mode 100644 index 000000000000..93014fab749b --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ca_cc_u_nt.json @@ -0,0 +1,27 @@ +{ + "uplo": "upper", + "trans": "no-transpose", + "N": 3, + "K": 3, + "alpha": 1.0, + "A": [ 1.0, 4.0, 7.0, 2.0, 5.0, 8.0, 3.0, 6.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "beta": 1.0, + "C": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideC1": 1, + "strideC2": 3, + "offsetC": 0, + "C_out": [ 15.0, 0.0, 0.0, 33.0, 78.0, 0.0, 51.0, 123.0, 195.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ca_cc_u_t.json b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ca_cc_u_t.json new file mode 100644 index 000000000000..7e97bd706ca1 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ca_cc_u_t.json @@ -0,0 +1,27 @@ +{ + "uplo": "upper", + "trans": "transpose", + "N": 3, + "K": 3, + "alpha": 1.0, + "A": [ 1.0, 4.0, 7.0, 2.0, 5.0, 8.0, 3.0, 6.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "beta": 1.0, + "C": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideC1": 1, + "strideC2": 3, + "offsetC": 0, + "C_out": [ 67.0, 0.0, 0.0, 79.0, 94.0, 0.0, 91.0, 109.0, 127.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ca_rc_l_nt.json b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ca_rc_l_nt.json new file mode 100644 index 000000000000..a4db6c3c6276 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ca_rc_l_nt.json @@ -0,0 +1,27 @@ +{ + "uplo": "lower", + "trans": "no-transpose", + "N": 3, + "K": 3, + "alpha": 1.0, + "A": [ 1.0, 4.0, 7.0, 2.0, 5.0, 8.0, 3.0, 6.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "beta": 1.0, + "C": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 15.0, 0.0, 0.0, 33.0, 78.0, 0.0, 51.0, 123.0, 195.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ca_rc_l_t.json b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ca_rc_l_t.json new file mode 100644 index 000000000000..331934f48dad --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ca_rc_l_t.json @@ -0,0 +1,27 @@ +{ + "uplo": "lower", + "trans": "transpose", + "N": 3, + "K": 3, + "alpha": 1.0, + "A": [ 1.0, 4.0, 7.0, 2.0, 5.0, 8.0, 3.0, 6.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "beta": 1.0, + "C": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 67.0, 0.0, 0.0, 79.0, 94.0, 0.0, 91.0, 109.0, 127.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ca_rc_u_nt.json b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ca_rc_u_nt.json new file mode 100644 index 000000000000..12f2627cb114 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ca_rc_u_nt.json @@ -0,0 +1,27 @@ +{ + "uplo": "upper", + "trans": "no-transpose", + "N": 3, + "K": 3, + "alpha": 1.0, + "A": [ 1.0, 4.0, 7.0, 2.0, 5.0, 8.0, 3.0, 6.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 15.0, 33.0, 51.0, 0.0, 78.0, 123.0, 0.0, 0.0, 195.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ca_rc_u_t.json b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ca_rc_u_t.json new file mode 100644 index 000000000000..946871b396ab --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ca_rc_u_t.json @@ -0,0 +1,27 @@ +{ + "uplo": "upper", + "trans": "transpose", + "N": 3, + "K": 3, + "alpha": 1.0, + "A": [ 1.0, 4.0, 7.0, 2.0, 5.0, 8.0, 3.0, 6.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 67.0, 79.0, 91.0, 0.0, 94.0, 109.0, 0.0, 0.0, 127.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/column_major_l_nt.json b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/column_major_l_nt.json new file mode 100644 index 000000000000..3de3af521987 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/column_major_l_nt.json @@ -0,0 +1,24 @@ +{ + "order": "column-major", + "uplo": "lower", + "trans": "no-transpose", + "N": 3, + "K": 3, + "alpha": 1.0, + "A": [ 1.0, 4.0, 7.0, 2.0, 5.0, 8.0, 3.0, 6.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "lda": 3, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "C_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "ldc": 3, + "C_out": [ 15.0, 33.0, 51.0, 0.0, 78.0, 123.0, 0.0, 0.0, 195.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/column_major_l_t.json b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/column_major_l_t.json new file mode 100644 index 000000000000..7c70299bc737 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/column_major_l_t.json @@ -0,0 +1,24 @@ +{ + "order": "column-major", + "uplo": "lower", + "trans": "transpose", + "N": 3, + "K": 3, + "alpha": 1.0, + "A": [ 1.0, 4.0, 7.0, 2.0, 5.0, 8.0, 3.0, 6.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "lda": 3, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "C_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "ldc": 3, + "C_out": [ 67.0, 79.0, 91.0, 0.0, 94.0, 109.0, 0.0, 0.0, 127.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/column_major_u_nt.json b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/column_major_u_nt.json new file mode 100644 index 000000000000..92245fb958db --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/column_major_u_nt.json @@ -0,0 +1,24 @@ +{ + "order": "column-major", + "uplo": "upper", + "trans": "no-transpose", + "N": 3, + "K": 3, + "alpha": 1.0, + "A": [ 1.0, 4.0, 7.0, 2.0, 5.0, 8.0, 3.0, 6.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "lda": 3, + "beta": 1.0, + "C": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "ldc": 3, + "C_out": [ 15.0, 0.0, 0.0, 33.0, 78.0, 0.0, 51.0, 123.0, 195.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/column_major_u_t.json b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/column_major_u_t.json new file mode 100644 index 000000000000..1ec9f039a803 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/column_major_u_t.json @@ -0,0 +1,24 @@ +{ + "order": "column-major", + "uplo": "upper", + "trans": "transpose", + "N": 3, + "K": 3, + "alpha": 1.0, + "A": [ 1.0, 4.0, 7.0, 2.0, 5.0, 8.0, 3.0, 6.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "lda": 3, + "beta": 1.0, + "C": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "ldc": 3, + "C_out": [ 67.0, 0.0, 0.0, 79.0, 94.0, 0.0, 91.0, 109.0, 127.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_cc_l_nt.json b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_cc_l_nt.json new file mode 100644 index 000000000000..27a1d1b06d0d --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_cc_l_nt.json @@ -0,0 +1,27 @@ +{ + "uplo": "lower", + "trans": "no-transpose", + "N": 3, + "K": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "C_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 1, + "strideC2": 3, + "offsetC": 0, + "C_out": [ 15.0, 33.0, 51.0, 0.0, 78.0, 123.0, 0.0, 0.0, 195.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_cc_l_t.json b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_cc_l_t.json new file mode 100644 index 000000000000..89479aebd5d2 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_cc_l_t.json @@ -0,0 +1,27 @@ +{ + "uplo": "lower", + "trans": "transpose", + "N": 3, + "K": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "C_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 1, + "strideC2": 3, + "offsetC": 0, + "C_out": [ 67.0, 79.0, 91.0, 0.0, 94.0, 109.0, 0.0, 0.0, 127.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_cc_u_nt.json b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_cc_u_nt.json new file mode 100644 index 000000000000..5b1653e2b84a --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_cc_u_nt.json @@ -0,0 +1,27 @@ +{ + "uplo": "upper", + "trans": "no-transpose", + "N": 3, + "K": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "beta": 1.0, + "C": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideC1": 1, + "strideC2": 3, + "offsetC": 0, + "C_out": [ 15.0, 0.0, 0.0, 33.0, 78.0, 0.0, 51.0, 123.0, 195.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_cc_u_t.json b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_cc_u_t.json new file mode 100644 index 000000000000..45072fa980eb --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_cc_u_t.json @@ -0,0 +1,27 @@ +{ + "uplo": "upper", + "trans": "transpose", + "N": 3, + "K": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "beta": 1.0, + "C": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideC1": 1, + "strideC2": 3, + "offsetC": 0, + "C_out": [ 67.0, 0.0, 0.0, 79.0, 94.0, 0.0, 91.0, 109.0, 127.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_l_nt.json b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_l_nt.json new file mode 100644 index 000000000000..89ce11c11c92 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_l_nt.json @@ -0,0 +1,27 @@ +{ + "uplo": "lower", + "trans": "no-transpose", + "N": 3, + "K": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "beta": 1.0, + "C": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 15.0, 0.0, 0.0, 33.0, 78.0, 0.0, 51.0, 123.0, 195.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_l_nt_complex_access_pattern.json b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_l_nt_complex_access_pattern.json new file mode 100644 index 000000000000..8faec65427eb --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_l_nt_complex_access_pattern.json @@ -0,0 +1,27 @@ +{ + "uplo": "lower", + "trans": "no-transpose", + "N": 3, + "K": 3, + "alpha": 1.0, + "A": [ 999.0, 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 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 6, + "strideA2": 2, + "offsetA": 1, + "beta": 1.0, + "C": [ 999.0, 999.0, 1.0, 999.0, 999.0, 0.0, 999.0, 999.0, 0.0, 999.0, 999.0, 1.0, 999.0, 999.0, 1.0, 999.0, 999.0, 0.0, 999.0, 999.0, 1.0, 999.0, 999.0, 1.0, 999.0, 999.0, 1.0 ], + "C_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 9, + "strideC2": 3, + "offsetC": 2, + "C_out": [ 999.0, 999.0, 15.0, 999.0, 999.0, 0.0, 999.0, 999.0, 0.0, 999.0, 999.0, 33.0, 999.0, 999.0, 78.0, 999.0, 999.0, 0.0, 999.0, 999.0, 51.0, 999.0, 999.0, 123.0, 999.0, 999.0, 195.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_l_nt_oa.json b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_l_nt_oa.json new file mode 100644 index 000000000000..83a61a849086 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_l_nt_oa.json @@ -0,0 +1,27 @@ +{ + "uplo": "lower", + "trans": "no-transpose", + "N": 3, + "K": 3, + "alpha": 1.0, + "A": [ 0.0, 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 2, + "beta": 1.0, + "C": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 15.0, 0.0, 0.0, 33.0, 78.0, 0.0, 51.0, 123.0, 195.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_l_nt_oc.json b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_l_nt_oc.json new file mode 100644 index 000000000000..dccf08a23375 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_l_nt_oc.json @@ -0,0 +1,27 @@ +{ + "uplo": "lower", + "trans": "no-transpose", + "N": 3, + "K": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "beta": 1.0, + "C": [ 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 2, + "C_out": [ 0.0, 0.0, 15.0, 0.0, 0.0, 33.0, 78.0, 0.0, 51.0, 123.0, 195.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_l_t.json b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_l_t.json new file mode 100644 index 000000000000..37bdd5f22e3b --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_l_t.json @@ -0,0 +1,27 @@ +{ + "uplo": "lower", + "trans": "transpose", + "N": 3, + "K": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "beta": 1.0, + "C": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 67.0, 0.0, 0.0, 79.0, 94.0, 0.0, 91.0, 109.0, 127.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_l_t_sc1_sc2.json b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_l_t_sc1_sc2.json new file mode 100644 index 000000000000..626edf3312fd --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_l_t_sc1_sc2.json @@ -0,0 +1,27 @@ +{ + "uplo": "lower", + "trans": "transpose", + "N": 3, + "K": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "beta": 1.0, + "C": [ 1.0, 999.0, 0.0, 999.0, 0.0, 999.0, 1.0, 999.0, 1.0, 999.0, 0.0, 999.0, 1.0, 999.0, 1.0, 999.0, 1.0 ], + "C_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 6, + "strideC2": 2, + "offsetC": 0, + "C_out": [ 67.0, 999.0, 0.0, 999.0, 0.0, 999.0, 79.0, 999.0, 94.0, 999.0, 0.0, 999.0, 91.0, 999.0, 109.0, 999.0, 127.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_l_t_sc1_sc2n.json b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_l_t_sc1_sc2n.json new file mode 100644 index 000000000000..eb59fc6ba32e --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_l_t_sc1_sc2n.json @@ -0,0 +1,27 @@ +{ + "uplo": "lower", + "trans": "transpose", + "N": 3, + "K": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "beta": 1.0, + "C": [ 0.0, 0.0, 1.0, 999.0, 999.0, 999.0, 0.0, 1.0, 1.0, 999.0, 999.0, 999.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": 6, + "strideC2": -1, + "offsetC": 2, + "C_out": [ 0.0, 0.0, 67.0, 999.0, 999.0, 999.0, 0.0, 94.0, 79.0, 999.0, 999.0, 999.0, 127.0, 109.0, 91.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_l_t_sc1n_sc2.json b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_l_t_sc1n_sc2.json new file mode 100644 index 000000000000..2341911a5dd1 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_l_t_sc1n_sc2.json @@ -0,0 +1,27 @@ +{ + "uplo": "lower", + "trans": "transpose", + "N": 3, + "K": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 999.0, 999.0, 999.0, 1.0, 1.0, 0.0, 999.0, 999.0, 999.0, 1.0, 0.0, 0.0 ], + "C_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": -6, + "strideC2": 1, + "offsetC": 12, + "C_out": [ 91.0, 109.0, 127.0, 999.0, 999.0, 999.0, 79.0, 94.0, 0.0, 999.0, 999.0, 999.0, 67.0, 0.0, 0.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_l_t_sc1n_sc2n.json b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_l_t_sc1n_sc2n.json new file mode 100644 index 000000000000..432e1947eba8 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_l_t_sc1n_sc2n.json @@ -0,0 +1,27 @@ +{ + "uplo": "lower", + "trans": "transpose", + "N": 3, + "K": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "C_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "strideC1": -3, + "strideC2": -1, + "offsetC": 8, + "C_out": [ 127.0, 109.0, 91.0, 0.0, 94.0, 79.0, 0.0, 0.0, 67.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_u_nt.json b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_u_nt.json new file mode 100644 index 000000000000..579ef6466e71 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_u_nt.json @@ -0,0 +1,27 @@ +{ + "uplo": "upper", + "trans": "no-transpose", + "N": 3, + "K": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 15.0, 33.0, 51.0, 0.0, 78.0, 123.0, 0.0, 0.0, 195.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_u_nt_sa1_sa2.json b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_u_nt_sa1_sa2.json new file mode 100644 index 000000000000..3f93e1b57892 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_u_nt_sa1_sa2.json @@ -0,0 +1,27 @@ +{ + "uplo": "upper", + "trans": "no-transpose", + "N": 3, + "K": 3, + "alpha": 1.0, + "A": [ 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 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 6, + "strideA2": 2, + "offsetA": 0, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 15.0, 33.0, 51.0, 0.0, 78.0, 123.0, 0.0, 0.0, 195.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_u_nt_sa1_sa2n.json b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_u_nt_sa1_sa2n.json new file mode 100644 index 000000000000..6f248d48357b --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_u_nt_sa1_sa2n.json @@ -0,0 +1,27 @@ +{ + "uplo": "upper", + "trans": "no-transpose", + "N": 3, + "K": 3, + "alpha": 1.0, + "A": [ 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 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 6, + "strideA2": -1, + "offsetA": 2, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 15.0, 33.0, 51.0, 0.0, 78.0, 123.0, 0.0, 0.0, 195.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_u_nt_sa1n_sa2.json b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_u_nt_sa1n_sa2.json new file mode 100644 index 000000000000..e95985534077 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_u_nt_sa1n_sa2.json @@ -0,0 +1,27 @@ +{ + "uplo": "upper", + "trans": "no-transpose", + "N": 3, + "K": 3, + "alpha": 1.0, + "A": [ 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 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": -6, + "strideA2": 1, + "offsetA": 12, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 15.0, 33.0, 51.0, 0.0, 78.0, 123.0, 0.0, 0.0, 195.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_u_nt_sa1n_sa2n.json b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_u_nt_sa1n_sa2n.json new file mode 100644 index 000000000000..f56c2d47ba46 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_u_nt_sa1n_sa2n.json @@ -0,0 +1,27 @@ +{ + "uplo": "upper", + "trans": "no-transpose", + "N": 3, + "K": 3, + "alpha": 1.0, + "A": [ 9.0, 8.0, 7.0, 6.0, 5.0, 4.0, 3.0, 2.0, 1.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": -3, + "strideA2": -1, + "offsetA": 8, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 15.0, 33.0, 51.0, 0.0, 78.0, 123.0, 0.0, 0.0, 195.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_u_t.json b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_u_t.json new file mode 100644 index 000000000000..0bd870c5441a --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/ra_rc_u_t.json @@ -0,0 +1,27 @@ +{ + "uplo": "upper", + "trans": "transpose", + "N": 3, + "K": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "strideC1": 3, + "strideC2": 1, + "offsetC": 0, + "C_out": [ 67.0, 79.0, 91.0, 0.0, 94.0, 109.0, 0.0, 0.0, 127.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/row_major_l_nt.json b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/row_major_l_nt.json new file mode 100644 index 000000000000..f19804b0e550 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/row_major_l_nt.json @@ -0,0 +1,24 @@ +{ + "order": "row-major", + "uplo": "lower", + "trans": "no-transpose", + "N": 3, + "K": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "lda": 3, + "beta": 1.0, + "C": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "ldc": 3, + "C_out": [ 15.0, 0.0, 0.0, 33.0, 78.0, 0.0, 51.0, 123.0, 195.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/row_major_l_t.json b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/row_major_l_t.json new file mode 100644 index 000000000000..d6906eaffe22 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/row_major_l_t.json @@ -0,0 +1,24 @@ +{ + "order": "row-major", + "uplo": "lower", + "trans": "transpose", + "N": 3, + "K": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "lda": 3, + "beta": 1.0, + "C": [ 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0 ], + "C_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 1.0, 1.0, 0.0 ], + [ 1.0, 1.0, 1.0 ] + ], + "ldc": 3, + "C_out": [ 67.0, 0.0, 0.0, 79.0, 94.0, 0.0, 91.0, 109.0, 127.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/row_major_u_nt.json b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/row_major_u_nt.json new file mode 100644 index 000000000000..afa8423ea676 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/row_major_u_nt.json @@ -0,0 +1,24 @@ +{ + "order": "row-major", + "uplo": "upper", + "trans": "no-transpose", + "N": 3, + "K": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "lda": 3, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "ldc": 3, + "C_out": [ 15.0, 33.0, 51.0, 0.0, 78.0, 123.0, 0.0, 0.0, 195.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/row_major_u_t.json b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/row_major_u_t.json new file mode 100644 index 000000000000..cfb00b9d4a54 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/test/fixtures/row_major_u_t.json @@ -0,0 +1,24 @@ +{ + "order": "row-major", + "uplo": "upper", + "trans": "transpose", + "N": 3, + "K": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "lda": 3, + "beta": 1.0, + "C": [ 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0 ], + "C_mat": [ + [ 1.0, 1.0, 1.0 ], + [ 0.0, 1.0, 1.0 ], + [ 0.0, 0.0, 1.0 ] + ], + "ldc": 3, + "C_out": [ 67.0, 79.0, 91.0, 0.0, 94.0, 109.0, 0.0, 0.0, 127.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/dsymm/test/test.js b/lib/node_modules/@stdlib/blas/base/ssyrk/test/test.js similarity index 78% rename from lib/node_modules/@stdlib/blas/base/dsymm/test/test.js rename to lib/node_modules/@stdlib/blas/base/ssyrk/test/test.js index 8b444a3dfc63..3ff785ceddcc 100644 --- a/lib/node_modules/@stdlib/blas/base/dsymm/test/test.js +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/test/test.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2025 The Stdlib Authors. +* 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. @@ -23,7 +23,7 @@ var tape = require( 'tape' ); var proxyquire = require( 'proxyquire' ); var IS_BROWSER = require( '@stdlib/assert/is-browser' ); -var dsymm = require( './../lib' ); +var ssyrk = require( './../lib' ); // VARIABLES // @@ -37,21 +37,21 @@ var opts = { tape( 'main export is a function', function test( t ) { t.ok( true, __filename ); - t.strictEqual( typeof dsymm, 'function', 'main export is a function' ); + t.strictEqual( typeof ssyrk, '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.strictEqual( typeof ssyrk.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', { + var ssyrk = proxyquire( './../lib', { '@stdlib/utils/try-require': tryRequire }); - t.strictEqual( dsymm, mock, 'returns expected value' ); + t.strictEqual( ssyrk, mock, 'returns expected value' ); t.end(); function tryRequire() { @@ -64,16 +64,16 @@ tape( 'if a native implementation is available, the main export is the native im }); tape( 'if a native implementation is not available, the main export is a JavaScript implementation', opts, function test( t ) { - var dsymm; + var ssyrk; var main; - main = require( './../lib/dsymm.js' ); + main = require( './../lib/ssyrk.js' ); - dsymm = proxyquire( './../lib', { + ssyrk = proxyquire( './../lib', { '@stdlib/utils/try-require': tryRequire }); - t.strictEqual( dsymm, main, 'returns expected value' ); + t.strictEqual( ssyrk, main, 'returns expected value' ); t.end(); function tryRequire() { diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/test/test.ndarray.js b/lib/node_modules/@stdlib/blas/base/ssyrk/test/test.ndarray.js new file mode 100644 index 000000000000..9f2c81c1094b --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/test/test.ndarray.js @@ -0,0 +1,867 @@ +/** +* @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 Float32Array = require( '@stdlib/array/float32' ); +var sscal = require( '@stdlib/blas/base/sscal' ); +var ssyrk = require( './../lib/ndarray.js' ); + + +// FIXTURES // + +var cacclnt = require( './fixtures/ca_cc_l_nt.json' ); +var cacclt = require( './fixtures/ca_cc_l_t.json' ); +var caccunt = require( './fixtures/ca_cc_u_nt.json' ); +var caccut = require( './fixtures/ca_cc_u_t.json' ); +var carclnt = require( './fixtures/ca_rc_l_nt.json' ); +var carclt = require( './fixtures/ca_rc_l_t.json' ); +var carcunt = require( './fixtures/ca_rc_u_nt.json' ); +var carcut = require( './fixtures/ca_rc_u_t.json' ); + +var racclnt = require( './fixtures/ra_cc_l_nt.json' ); +var racclt = require( './fixtures/ra_cc_l_t.json' ); +var raccunt = require( './fixtures/ra_cc_u_nt.json' ); +var raccut = require( './fixtures/ra_cc_u_t.json' ); +var rarclnt = require( './fixtures/ra_rc_l_nt.json' ); +var rarclt = require( './fixtures/ra_rc_l_t.json' ); +var rarcunt = require( './fixtures/ra_rc_u_nt.json' ); +var rarcut = require( './fixtures/ra_rc_u_t.json' ); + +var rarcuntsa1sa2 = require( './fixtures/ra_rc_u_nt_sa1_sa2.json' ); +var rarcuntsa1nsa2 = require( './fixtures/ra_rc_u_nt_sa1n_sa2.json' ); +var rarcuntsa1sa2n = require( './fixtures/ra_rc_u_nt_sa1_sa2n.json' ); +var rarcuntsa1nsa2n = require( './fixtures/ra_rc_u_nt_sa1n_sa2n.json' ); +var rarcltsc1sc2 = require( './fixtures/ra_rc_l_t_sc1_sc2.json' ); +var rarcltsc1nsc2 = require( './fixtures/ra_rc_l_t_sc1n_sc2.json' ); +var rarcltsc1sc2n = require( './fixtures/ra_rc_l_t_sc1_sc2n.json' ); +var rarcltsc1nsc2n = require( './fixtures/ra_rc_l_t_sc1n_sc2n.json' ); +var rarcoa = require( './fixtures/ra_rc_l_nt_oa.json' ); +var rarcoc = require( './fixtures/ra_rc_l_nt_oc.json' ); +var cap = require( './fixtures/ra_rc_l_nt_complex_access_pattern.json' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof ssyrk, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function has an arity of 14', function test( t ) { + t.strictEqual( ssyrk.length, 14, '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 = rarclnt; + + 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() { + ssyrk( value, data.trans, data.N, data.K, data.alpha, new Float32Array( data.A ), data.strideA1, data.strideA2, data.offsetA, 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 = rarclnt; + + 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() { + ssyrk( data.uplo, value, data.N, data.K, data.alpha, new Float32Array( data.A ), data.strideA1, data.strideA2, data.offsetA, 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 = rarclnt; + + 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() { + ssyrk( data.uplo, data.trans, value, data.K, data.alpha, new Float32Array( data.A ), data.strideA1, data.strideA2, data.offsetA, 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 = rarclnt; + + 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() { + ssyrk( data.uplo, data.trans, data.N, value, data.alpha, new Float32Array( data.A ), data.strideA1, data.strideA2, data.offsetA, data.beta, new Float32Array( data.C ), data.strideC1, data.strideC2, data.offsetC ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid twelfth argument', function test( t ) { + var values; + var data; + var i; + + data = rarclnt; + + 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() { + ssyrk( data.uplo, data.trans, data.N, data.K, data.alpha, new Float32Array( data.A ), data.strideA1, data.strideA2, data.offsetA, data.beta, new Float32Array( data.C ), value, data.strideC2, data.offsetC ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid thirteenth argument', function test( t ) { + var values; + var data; + var i; + + data = rarclnt; + + 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() { + ssyrk( data.uplo, data.trans, data.N, data.K, data.alpha, new Float32Array( data.A ), data.strideA1, data.strideA2, data.offsetA, data.beta, new Float32Array( data.C ), data.strideC1, value, data.offsetC ); + }; + } +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*A**T + β*C` (column_major, column_major, lower, no-transpose)', function test( t ) { + var expected; + var data; + var out; + var a; + var c; + + data = cacclnt; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssyrk( data.uplo, data.trans, data.N, data.K, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, 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*A**T + β*C` (column_major, column_major, upper, no-transpose)', function test( t ) { + var expected; + var data; + var out; + var a; + var c; + + data = caccunt; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssyrk( data.uplo, data.trans, data.N, data.K, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, 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**T*A + β*C` (column_major, column_major, lower, transpose)', function test( t ) { + var expected; + var data; + var out; + var a; + var c; + + data = cacclt; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssyrk( data.uplo, data.trans, data.N, data.K, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, 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**T*A + β*C` (column_major, column_major, upper, transpose)', function test( t ) { + var expected; + var data; + var out; + var a; + var c; + + data = caccut; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssyrk( data.uplo, data.trans, data.N, data.K, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, 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*A**T + β*C` (column_major, row_major, lower, no-transpose)', function test( t ) { + var expected; + var data; + var out; + var a; + var c; + + data = carclnt; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssyrk( data.uplo, data.trans, data.N, data.K, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, 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*A**T + β*C` (column_major, row_major, upper, no-transpose)', function test( t ) { + var expected; + var data; + var out; + var a; + var c; + + data = carcunt; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssyrk( data.uplo, data.trans, data.N, data.K, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, 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**T*A + β*C` (column_major, row_major, lower, transpose)', function test( t ) { + var expected; + var data; + var out; + var a; + var c; + + data = carclt; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssyrk( data.uplo, data.trans, data.N, data.K, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, 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**T*A + β*C` (column_major, row_major, upper, transpose)', function test( t ) { + var expected; + var data; + var out; + var a; + var c; + + data = carcut; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssyrk( data.uplo, data.trans, data.N, data.K, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, 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*A**T + β*C` (row_major, column_major, lower, no-transpose)', function test( t ) { + var expected; + var data; + var out; + var a; + var c; + + data = racclnt; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssyrk( data.uplo, data.trans, data.N, data.K, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, 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*A**T + β*C` (row_major, column_major, upper, no-transpose)', function test( t ) { + var expected; + var data; + var out; + var a; + var c; + + data = raccunt; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssyrk( data.uplo, data.trans, data.N, data.K, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, 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**T*A + β*C` (row_major, column_major, lower, transpose)', function test( t ) { + var expected; + var data; + var out; + var a; + var c; + + data = racclt; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssyrk( data.uplo, data.trans, data.N, data.K, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, 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**T*A + β*C` (row_major, column_major, upper, transpose)', function test( t ) { + var expected; + var data; + var out; + var a; + var c; + + data = raccut; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssyrk( data.uplo, data.trans, data.N, data.K, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, 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*A**T + β*C` (row_major, row_major, lower, no-transpose)', function test( t ) { + var expected; + var data; + var out; + var a; + var c; + + data = rarclnt; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssyrk( data.uplo, data.trans, data.N, data.K, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, 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*A**T + β*C` (row_major, row_major, upper, no-transpose)', function test( t ) { + var expected; + var data; + var out; + var a; + var c; + + data = rarcunt; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssyrk( data.uplo, data.trans, data.N, data.K, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, 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**T*A + β*C` (row_major, row_major, lower, transpose)', function test( t ) { + var expected; + var data; + var out; + var a; + var c; + + data = rarclt; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssyrk( data.uplo, data.trans, data.N, data.K, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, 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**T*A + β*C` (row_major, row_major, upper, transpose)', function test( t ) { + var expected; + var data; + var out; + var a; + var c; + + data = rarcut; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssyrk( data.uplo, data.trans, data.N, data.K, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, 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 second input matrix', function test( t ) { + var data; + var out; + var a; + var c; + + data = rarclnt; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + out = ssyrk( data.uplo, data.trans, data.N, data.K, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, data.beta, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.end(); +}); + +tape( 'if `N` is `0`, the function returns the second input matrix unchanged', function test( t ) { + var expected; + var data; + var out; + var a; + var c; + + data = rarclnt; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C ); + + out = ssyrk( data.uplo, data.trans, 0, data.K, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, 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 `K` is `0` and `β` is `1`, the function returns the second input matrix unchanged', function test( t ) { + var expected; + var data; + var out; + var a; + var c; + + data = rarclnt; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C ); + + out = ssyrk( data.uplo, data.trans, data.N, data.K, 0.0, a, data.strideA1, data.strideA2, data.offsetA, 1.0, c, data.strideC1, data.strideC2, data.offsetC ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + out = ssyrk( data.uplo, data.trans, data.N, 0, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, 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 second input triangular matrix filled with zeros', function test( t ) { + var expected; + var data; + var out; + var a; + var c; + + data = rarclnt; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( c.length ); + + out = ssyrk( data.uplo, data.trans, data.N, data.K, 0.0, a, data.strideA1, data.strideA2, data.offsetA, 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 second input triangular matrix scaled by `β`', function test( t ) { + var expected; + var data; + var out; + var a; + var c; + + data = rarclnt; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = sscal( c.length, 10.0, new Float32Array( c ), 1 ); + + out = ssyrk( data.uplo, data.trans, data.N, data.K, 0.0, a, data.strideA1, data.strideA2, data.offsetA, 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 c; + + data = rarcuntsa1sa2; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssyrk( data.uplo, data.trans, data.N, data.K, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, 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 c; + + data = rarcuntsa1nsa2; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssyrk( data.uplo, data.trans, data.N, data.K, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, 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 c; + + data = rarcuntsa1sa2n; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssyrk( data.uplo, data.trans, data.N, data.K, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, 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 c; + + data = rarcuntsa1nsa2n; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssyrk( data.uplo, data.trans, data.N, data.K, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, 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 c; + + data = rarcoa; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssyrk( data.uplo, data.trans, data.N, data.K, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, 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 c; + + data = rarcltsc1sc2; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssyrk( data.uplo, data.trans, data.N, data.K, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, 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 c; + + data = rarcltsc1nsc2; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssyrk( data.uplo, data.trans, data.N, data.K, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, 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 c; + + data = rarcltsc1sc2n; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssyrk( data.uplo, data.trans, data.N, data.K, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, 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 c; + + data = rarcltsc1nsc2n; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssyrk( data.uplo, data.trans, data.N, data.K, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, 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 c; + + data = rarcoc; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssyrk( data.uplo, data.trans, data.N, data.K, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, 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 c; + + data = cap; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssyrk( data.uplo, data.trans, data.N, data.K, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, 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(); +}); diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/test/test.ssyrk.js b/lib/node_modules/@stdlib/blas/base/ssyrk/test/test.ssyrk.js new file mode 100644 index 000000000000..277493c101f4 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/test/test.ssyrk.js @@ -0,0 +1,607 @@ +/** +* @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 Float32Array = require( '@stdlib/array/float32' ); +var sscal = require( '@stdlib/blas/base/sscal' ); +var ssyrk = require( './../lib/ssyrk.js' ); + + +// FIXTURES // + +var clnt = require( './fixtures/column_major_l_nt.json' ); +var cunt = require( './fixtures/column_major_u_nt.json' ); +var clt = require( './fixtures/column_major_l_t.json' ); +var cut = require( './fixtures/column_major_u_t.json' ); + +var rlnt = require( './fixtures/row_major_l_nt.json' ); +var runt = require( './fixtures/row_major_u_nt.json' ); +var rlt = require( './fixtures/row_major_l_t.json' ); +var rut = require( './fixtures/row_major_u_t.json' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof ssyrk, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function has an arity of 11', function test( t ) { + t.strictEqual( ssyrk.length, 11, '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 = rlnt; + + 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() { + ssyrk( value, data.uplo, data.trans, data.N, data.K, data.alpha, new Float32Array( data.A ), data.lda, 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 = rlnt; + + 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() { + ssyrk( data.order, value, data.trans, data.N, data.K, data.alpha, new Float32Array( data.A ), data.lda, 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 = rlnt; + + 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() { + ssyrk( data.order, data.uplo, value, data.K, data.N, data.alpha, new Float32Array( data.A ), data.lda, 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 = rlnt; + + 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() { + ssyrk( data.order, data.uplo, data.trans, value, data.N, data.alpha, new Float32Array( data.A ), data.lda, 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 = rlnt; + + 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() { + ssyrk( data.order, data.uplo, data.trans, data.K, value, data.alpha, new Float32Array( data.A ), data.lda, 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 = rlnt; + + 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() { + ssyrk( data.order, data.uplo, data.trans, data.N, data.K, data.alpha, new Float32Array( data.A ), value, data.beta, new Float32Array( data.C ), data.ldc ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid eleventh argument', function test( t ) { + var values; + var data; + var i; + + data = rlnt; + + 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() { + ssyrk( data.order, data.uplo, data.trans, data.N, data.K, data.alpha, new Float32Array( data.A ), data.lda, data.beta, new Float32Array( data.C ), value ); + }; + } +}); + +tape( 'the function performs the matrix-matrix operation `C = α*A*A**T + β*C` (row-major, lower, no-transpose)', function test( t ) { + var expected; + var data; + var out; + var a; + var c; + + data = rlnt; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssyrk( data.order, data.uplo, data.trans, data.N, data.K, data.alpha, a, data.lda, 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*A**T + β*C` (column-major, lower, no-transpose)', function test( t ) { + var expected; + var data; + var out; + var a; + var c; + + data = clnt; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssyrk( data.order, data.uplo, data.trans, data.N, data.K, data.alpha, a, data.lda, 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*A**T + β*C` (row-major, upper, no-transpose)', function test( t ) { + var expected; + var data; + var out; + var a; + var c; + + data = runt; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssyrk( data.order, data.uplo, data.trans, data.N, data.K, data.alpha, a, data.lda, 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*A**T + β*C` (column-major, upper, no-transpose)', function test( t ) { + var expected; + var data; + var out; + var a; + var c; + + data = cunt; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssyrk( data.order, data.uplo, data.trans, data.N, data.K, data.alpha, a, data.lda, 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**T*A + β*C` (row-major, lower, transpose)', function test( t ) { + var expected; + var data; + var out; + var a; + var c; + + data = rlt; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssyrk( data.order, data.uplo, data.trans, data.N, data.K, data.alpha, a, data.lda, 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**T*A + β*C` (column-major, lower, transpose)', function test( t ) { + var expected; + var data; + var out; + var a; + var c; + + data = clt; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssyrk( data.order, data.uplo, data.trans, data.N, data.K, data.alpha, a, data.lda, 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**T*A + β*C` (row-major, upper, transpose)', function test( t ) { + var expected; + var data; + var out; + var a; + var c; + + data = rut; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssyrk( data.order, data.uplo, data.trans, data.N, data.K, data.alpha, a, data.lda, 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**T*A + β*C` (column-major, upper, transpose)', function test( t ) { + var expected; + var data; + var out; + var a; + var c; + + data = cut; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C_out ); + + out = ssyrk( data.order, data.uplo, data.trans, data.N, data.K, data.alpha, a, data.lda, 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 second input matrix (row-major)', function test( t ) { + var data; + var out; + var a; + var c; + + data = rut; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + out = ssyrk( data.order, data.uplo, data.trans, data.N, data.K, data.alpha, a, data.lda, data.beta, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns a reference to the second input matrix (column-major)', function test( t ) { + var data; + var out; + var a; + var c; + + data = cut; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + out = ssyrk( data.order, data.uplo, data.trans, data.N, data.K, data.alpha, a, data.lda, data.beta, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.end(); +}); + +tape( 'if `N` is `0`, the function returns the second input matrix unchanged (row-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var c; + + data = rut; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C ); + + out = ssyrk( data.order, data.uplo, data.trans, 0, data.K, data.alpha, a, data.lda, data.beta, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'if `N` is `0`, the function returns the second input matrix unchanged (column-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var c; + + data = cut; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C ); + + out = ssyrk( data.order, data.uplo, data.trans, 0, data.K, data.alpha, a, data.lda, data.beta, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'if `α` or `K` is `0` and `β` is `1`, the function returns the second input matrix unchanged (row-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var c; + + data = rut; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C ); + + out = ssyrk( data.order, data.uplo, data.trans, data.N, data.K, 0.0, a, data.lda, 1.0, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + out = ssyrk( data.order, data.uplo, data.trans, data.N, 0, data.alpha, a, data.lda, 1.0, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'if `α` or `K` is `0` and `β` is `1`, the function returns the second input matrix unchanged (column-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var c; + + data = cut; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( data.C ); + + out = ssyrk( data.order, data.uplo, data.trans, data.N, data.K, 0.0, a, data.lda, 1.0, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + out = ssyrk( data.order, data.uplo, data.trans, data.N, 0, data.alpha, a, data.lda, 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 second input triangular matrix filled with zeros (row-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var c; + + data = rut; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( c.length ); + + out = ssyrk( data.order, data.uplo, data.trans, data.N, data.K, 0.0, a, data.lda, 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 second input triangular matrix filled with zeros (column-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var c; + + data = cut; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = new Float32Array( c.length ); + + out = ssyrk( data.order, data.uplo, data.trans, data.N, data.K, 0.0, a, data.lda, 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 second input triangular matrix scaled by `β` (row-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var c; + + data = rut; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = sscal( c.length, 10.0, new Float32Array( c ), 1 ); + + out = ssyrk( data.order, data.uplo, data.trans, data.N, data.K, 0.0, a, data.lda, 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 second input triangular matrix scaled by `β` (column-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var c; + + data = cut; + + a = new Float32Array( data.A ); + c = new Float32Array( data.C ); + + expected = sscal( c.length, 10.0, new Float32Array( c ), 1 ); + + out = ssyrk( data.order, data.uplo, data.trans, data.N, data.K, 0.0, a, data.lda, 10.0, c, data.ldc ); + t.strictEqual( out, c, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); From 838be0846e4c7b1fee5825e7dcf81fd60935e470 Mon Sep 17 00:00:00 2001 From: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> Date: Thu, 19 Jun 2025 11:51:49 +0000 Subject: [PATCH 06/17] chore: update copyright years --- lib/node_modules/@stdlib/blas/base/ssyrk/README.md | 2 +- lib/node_modules/@stdlib/blas/base/ssyrk/benchmark/benchmark.js | 2 +- .../@stdlib/blas/base/ssyrk/benchmark/benchmark.ndarray.js | 2 +- lib/node_modules/@stdlib/blas/base/ssyrk/docs/types/index.d.ts | 2 +- lib/node_modules/@stdlib/blas/base/ssyrk/docs/types/test.ts | 2 +- lib/node_modules/@stdlib/blas/base/ssyrk/examples/index.js | 2 +- lib/node_modules/@stdlib/blas/base/ssyrk/lib/base.js | 2 +- lib/node_modules/@stdlib/blas/base/ssyrk/lib/index.js | 2 +- lib/node_modules/@stdlib/blas/base/ssyrk/lib/main.js | 2 +- lib/node_modules/@stdlib/blas/base/ssyrk/lib/ndarray.js | 2 +- lib/node_modules/@stdlib/blas/base/ssyrk/lib/ssyrk.js | 2 +- lib/node_modules/@stdlib/blas/base/ssyrk/test/test.js | 2 +- lib/node_modules/@stdlib/blas/base/ssyrk/test/test.ndarray.js | 2 +- lib/node_modules/@stdlib/blas/base/ssyrk/test/test.ssyrk.js | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/README.md b/lib/node_modules/@stdlib/blas/base/ssyrk/README.md index 6ba8ac0d0ee8..d1a6ef03e972 100644 --- a/lib/node_modules/@stdlib/blas/base/ssyrk/README.md +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/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/ssyrk/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/ssyrk/benchmark/benchmark.js index bd97d49b03a5..903a60f3912b 100644 --- a/lib/node_modules/@stdlib/blas/base/ssyrk/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/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/ssyrk/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/ssyrk/benchmark/benchmark.ndarray.js index e9f5f6a305b7..e2c3a7458dfd 100644 --- a/lib/node_modules/@stdlib/blas/base/ssyrk/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/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/ssyrk/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/base/ssyrk/docs/types/index.d.ts index 3ce136d3eadb..aabae6350919 100644 --- a/lib/node_modules/@stdlib/blas/base/ssyrk/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/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/ssyrk/docs/types/test.ts b/lib/node_modules/@stdlib/blas/base/ssyrk/docs/types/test.ts index 18b10f820707..02f2955dc483 100644 --- a/lib/node_modules/@stdlib/blas/base/ssyrk/docs/types/test.ts +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/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/ssyrk/examples/index.js b/lib/node_modules/@stdlib/blas/base/ssyrk/examples/index.js index be2a8c763597..b178ec2088c0 100644 --- a/lib/node_modules/@stdlib/blas/base/ssyrk/examples/index.js +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/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/ssyrk/lib/base.js b/lib/node_modules/@stdlib/blas/base/ssyrk/lib/base.js index 6478930749a1..ab29881c56a7 100644 --- a/lib/node_modules/@stdlib/blas/base/ssyrk/lib/base.js +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/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/ssyrk/lib/index.js b/lib/node_modules/@stdlib/blas/base/ssyrk/lib/index.js index a033b9f56898..29783ebdf769 100644 --- a/lib/node_modules/@stdlib/blas/base/ssyrk/lib/index.js +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/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/ssyrk/lib/main.js b/lib/node_modules/@stdlib/blas/base/ssyrk/lib/main.js index 0d3d27208c93..d212f1e22ad4 100644 --- a/lib/node_modules/@stdlib/blas/base/ssyrk/lib/main.js +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/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/ssyrk/lib/ndarray.js b/lib/node_modules/@stdlib/blas/base/ssyrk/lib/ndarray.js index 1ae9aa38800f..54fec77eb039 100644 --- a/lib/node_modules/@stdlib/blas/base/ssyrk/lib/ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/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/ssyrk/lib/ssyrk.js b/lib/node_modules/@stdlib/blas/base/ssyrk/lib/ssyrk.js index d2aa0ca4ed6e..624eeb3a7fd2 100644 --- a/lib/node_modules/@stdlib/blas/base/ssyrk/lib/ssyrk.js +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/lib/ssyrk.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/ssyrk/test/test.js b/lib/node_modules/@stdlib/blas/base/ssyrk/test/test.js index 3ff785ceddcc..09e4dd7b1c02 100644 --- a/lib/node_modules/@stdlib/blas/base/ssyrk/test/test.js +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/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/ssyrk/test/test.ndarray.js b/lib/node_modules/@stdlib/blas/base/ssyrk/test/test.ndarray.js index 9f2c81c1094b..f2b06f4a284f 100644 --- a/lib/node_modules/@stdlib/blas/base/ssyrk/test/test.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/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. diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/test/test.ssyrk.js b/lib/node_modules/@stdlib/blas/base/ssyrk/test/test.ssyrk.js index 277493c101f4..05913831584d 100644 --- a/lib/node_modules/@stdlib/blas/base/ssyrk/test/test.ssyrk.js +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/test/test.ssyrk.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 cdcb0d417a6e62625efaedb0025ea9a7a985df97 Mon Sep 17 00:00:00 2001 From: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> Date: Thu, 19 Jun 2025 17:47:30 +0530 Subject: [PATCH 07/17] chore: add indentation Signed-off-by: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> --- .../@stdlib/blas/base/ssyrk/lib/base.js | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/lib/base.js b/lib/node_modules/@stdlib/blas/base/ssyrk/lib/base.js index ab29881c56a7..196cd224e5f0 100644 --- a/lib/node_modules/@stdlib/blas/base/ssyrk/lib/base.js +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/lib/base.js @@ -245,11 +245,11 @@ function ssyrk( uplo, trans, N, K, alpha, A, strideA1, strideA2, offsetA, beta, for ( i1 = i2; i1 < N; i1++ ) { tmp = 0.0; for ( i0 = 0; i0 < K; i0++ ) { - oa1 = oa + (i2 * sa1) + (i0 * sa0); - oa2 = oa + (i1 * sa1) + (i0 * sa0); + oa1 = oa + ( i2 * sa1 ) + ( i0 * sa0 ); + oa2 = oa + ( i1 * sa1 ) + ( i0 * sa0 ); tmp = f32( tmp + f32( A[ oa1 ] * A[ oa2 ] ) ); } - idx = offsetC + (i2 * sc1) + (i1 * sc0); + idx = offsetC + ( i2 * sc1 ) + ( i1 * sc0 ); C[ idx ] = f32( C[ idx ] + f32( alpha * tmp ) ); } } @@ -263,11 +263,11 @@ function ssyrk( uplo, trans, N, K, alpha, A, strideA1, strideA2, offsetA, beta, for ( i1 = 0; i1 <= i2; i1++ ) { tmp = 0.0; for ( i0 = 0; i0 < K; i0++ ) { - oa1 = oa + (i2 * sa1) + (i0 * sa0); - oa2 = oa + (i1 * sa1) + (i0 * sa0); + oa1 = oa + ( i2 * sa1 ) + ( i0 * sa0 ); + oa2 = oa + ( i1 * sa1 ) + ( i0 * sa0 ); tmp = f32( tmp + f32( A[ oa1 ] * A[ oa2 ] ) ); } - idx = offsetC + (i2 * sc1) + (i1 * sc0); + idx = offsetC + ( i2 * sc1 ) + ( i1 * sc0 ); C[ idx ] = f32( C[ idx ] + f32( alpha * tmp ) ); } } @@ -281,11 +281,11 @@ function ssyrk( uplo, trans, N, K, alpha, A, strideA1, strideA2, offsetA, beta, for ( i1 = i2; i1 < N; i1++ ) { tmp = 0.0; for ( i0 = 0; i0 < K; i0++ ) { - oa1 = oa + (i0 * sa1) + (i2 * sa0); - oa2 = oa + (i0 * sa1) + (i1 * sa0); + oa1 = oa + ( i0 * sa1 ) + ( i2 * sa0 ); + oa2 = oa + ( i0 * sa1 ) + ( i1 * sa0 ); tmp = f32( tmp + f32( A[ oa1 ] * A[ oa2 ] ) ); } - idx = offsetC + (i2 * sc1) + (i1 * sc0); + idx = offsetC + ( i2 * sc1 ) + ( i1 * sc0 ); C[ idx ] = f32( C[ idx ] + f32( alpha * tmp ) ); } } @@ -296,11 +296,11 @@ function ssyrk( uplo, trans, N, K, alpha, A, strideA1, strideA2, offsetA, beta, for ( i1 = 0; i1 <= i2; i1++ ) { tmp = 0.0; for ( i0 = 0; i0 < K; i0++ ) { - oa1 = oa + (i0 * sa1) + (i2 * sa0); - oa2 = oa + (i0 * sa1) + (i1 * sa0); + oa1 = oa + ( i0 * sa1 ) + ( i2 * sa0 ); + oa2 = oa + ( i0 * sa1 ) + ( i1 * sa0 ); tmp = f32( tmp + f32( A[ oa1 ] * A[ oa2 ] ) ); } - idx = offsetC + (i2 * sc1) + (i1 * sc0); + idx = offsetC + ( i2 * sc1 ) + ( i1 * sc0 ); C[ idx ] = f32( C[ idx ] + f32( alpha * tmp ) ); } } From 4a4bf3d0529710524ad7c9657eab91e1df37109c Mon Sep 17 00:00:00 2001 From: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> Date: Thu, 19 Jun 2025 18:03:55 +0530 Subject: [PATCH 08/17] chore: minor clean-up Signed-off-by: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> --- lib/node_modules/@stdlib/blas/base/ssyrk/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/package.json b/lib/node_modules/@stdlib/blas/base/ssyrk/package.json index 479149d89165..540a53fd034b 100644 --- a/lib/node_modules/@stdlib/blas/base/ssyrk/package.json +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/package.json @@ -61,8 +61,8 @@ "subroutines", "array", "ndarray", - "float64", + "float32", "double", - "float64array" + "float32array" ] } From a7a8e03ae52ed848bf0362acc01e51ffeb0252b8 Mon Sep 17 00:00:00 2001 From: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> Date: Thu, 19 Jun 2025 18:08:38 +0530 Subject: [PATCH 09/17] chore: minor clean-up Signed-off-by: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> --- lib/node_modules/@stdlib/blas/base/ssyrk/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/README.md b/lib/node_modules/@stdlib/blas/base/ssyrk/README.md index d1a6ef03e972..746de9802f1a 100644 --- a/lib/node_modules/@stdlib/blas/base/ssyrk/README.md +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/README.md @@ -32,7 +32,7 @@ var ssyrk = require( '@stdlib/blas/base/ssyrk' ); #### ssyrk( ord, uplo, trans, N, K, α, A, lda, β, C, ldc ) -Performs the matrix-matrix operation `C = α*op(A)*op(B) + β*C` where `op(X)` is either `op(X) = X` or `op(X) = X^T`, `α` and `β` are scalars, `A`, `B`, and `C` are matrices, with `op(A)` an `M` by `K` matrix, `op(B)` a `K` by `N` matrix, and `C` an `M` by `N` matrix. +Performs one of the symmetric rank `K` operations `C = α*A*A**T + β*C` or `C = α*A**T*A + β*C` where `α` and `β` are scalars, `C` is an `N` by `N` symmetric matrix and `A` is an `N` by `K` matrix in the first case and a `K` by `N` matrix in the second case. ```javascript var Float32Array = require( '@stdlib/array/float32' ); @@ -76,7 +76,7 @@ ssyrk( 'row-major', 'upper', 'no-transpose', 3, 3, 1.0, A, 6, 1.0, C, 3 ); #### ssyrk.ndarray( uplo, trans, N, K, α, A, sa1, sa2, oa, β, C, sc1, sc2, oc ) -Performs the matrix-matrix operation `C = α*op(A)*op(B) + β*C`, using alternative indexing semantics and where `op(X)` is either `op(X) = X` or `op(X) = X^T`, `α` and `β` are scalars, `A`, `B`, and `C` are matrices, with `op(A)` an `M` by `K` matrix, `op(B)` a `K` by `N` matrix, and `C` an `M` by `N` matrix. +Perform one of the symmetric rank `K` operations `C = α*A*A**T + β*C` or `C = α*A**T*A + β*C`, using alternative indexing semantics and where where `α` and `β` are scalars, `C` is an `N` by `N` symmetric matrix and `A` is an `N` by `K` matrix in the first case and a `K` by `N` matrix in the second case. ```javascript var Float32Array = require( '@stdlib/array/float32' ); From 608dfa99507ae970081dded361d8f3c06525230a Mon Sep 17 00:00:00 2001 From: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> Date: Thu, 19 Jun 2025 18:10:14 +0530 Subject: [PATCH 10/17] chore: minor clean-up Signed-off-by: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> --- lib/node_modules/@stdlib/blas/base/ssyrk/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/README.md b/lib/node_modules/@stdlib/blas/base/ssyrk/README.md index 746de9802f1a..b904ac0c864b 100644 --- a/lib/node_modules/@stdlib/blas/base/ssyrk/README.md +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/README.md @@ -76,7 +76,7 @@ ssyrk( 'row-major', 'upper', 'no-transpose', 3, 3, 1.0, A, 6, 1.0, C, 3 ); #### ssyrk.ndarray( uplo, trans, N, K, α, A, sa1, sa2, oa, β, C, sc1, sc2, oc ) -Perform one of the symmetric rank `K` operations `C = α*A*A**T + β*C` or `C = α*A**T*A + β*C`, using alternative indexing semantics and where where `α` and `β` are scalars, `C` is an `N` by `N` symmetric matrix and `A` is an `N` by `K` matrix in the first case and a `K` by `N` matrix in the second case. +Performs one of the symmetric rank `K` operations `C = α*A*A**T + β*C` or `C = α*A**T*A + β*C`, using alternative indexing semantics and where where `α` and `β` are scalars, `C` is an `N` by `N` symmetric matrix and `A` is an `N` by `K` matrix in the first case and a `K` by `N` matrix in the second case. ```javascript var Float32Array = require( '@stdlib/array/float32' ); From b85f1a07269aaf2417d56d08c91f80e1fdaf4691 Mon Sep 17 00:00:00 2001 From: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> Date: Thu, 19 Jun 2025 18:13:30 +0530 Subject: [PATCH 11/17] chore: minor clean-up Signed-off-by: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> --- lib/node_modules/@stdlib/blas/base/ssyrk/lib/base.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/lib/base.js b/lib/node_modules/@stdlib/blas/base/ssyrk/lib/base.js index 196cd224e5f0..6c9af17ede4a 100644 --- a/lib/node_modules/@stdlib/blas/base/ssyrk/lib/base.js +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/lib/base.js @@ -146,7 +146,7 @@ function scal( uplo, N, beta, X, strideX1, strideX2, offsetX ) { // TODO: consid for ( i1 = 0; i1 < N; i1++ ) { for ( i0 = i1; i0 < N; i0++ ) { idx = offsetX + ( i1 * x1 ) + ( i0 * x0 ); - X[ idx ] = f32( X[ idx ] * beta ); + X[ idx ] = X[ idx ] * beta } } return X; @@ -155,7 +155,7 @@ function scal( uplo, N, beta, X, strideX1, strideX2, offsetX ) { // TODO: consid for ( i1 = 0; i1 < N; i1++ ) { for ( i0 = 0; i0 <= i1; i0++ ) { idx = offsetX + ( i1 * x1 ) + ( i0 * x0 ); - X[ idx ] = f32( X[ idx ] * beta ); + X[ idx ] = X[ idx ] * beta; } } return X; From 8d34be070c8b3c6f5d3891d5cb8230c1606f8f82 Mon Sep 17 00:00:00 2001 From: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> Date: Thu, 19 Jun 2025 22:36:51 +0530 Subject: [PATCH 12/17] chore: minor clean-up Signed-off-by: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> --- lib/node_modules/@stdlib/blas/base/ssyrk/lib/base.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/lib/base.js b/lib/node_modules/@stdlib/blas/base/ssyrk/lib/base.js index 6c9af17ede4a..90d54add40d7 100644 --- a/lib/node_modules/@stdlib/blas/base/ssyrk/lib/base.js +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/lib/base.js @@ -146,7 +146,7 @@ function scal( uplo, N, beta, X, strideX1, strideX2, offsetX ) { // TODO: consid for ( i1 = 0; i1 < N; i1++ ) { for ( i0 = i1; i0 < N; i0++ ) { idx = offsetX + ( i1 * x1 ) + ( i0 * x0 ); - X[ idx ] = X[ idx ] * beta + X[ idx ] = X[ idx ] * beta; } } return X; From ccca9159dd84e8cb5ee4f41742628d59ca17f5ba Mon Sep 17 00:00:00 2001 From: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> Date: Thu, 19 Jun 2025 22:49:00 +0530 Subject: [PATCH 13/17] chore: minor clean-up Signed-off-by: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> --- lib/node_modules/@stdlib/blas/base/ssyrk/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/package.json b/lib/node_modules/@stdlib/blas/base/ssyrk/package.json index 540a53fd034b..25a9942678b9 100644 --- a/lib/node_modules/@stdlib/blas/base/ssyrk/package.json +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/package.json @@ -62,7 +62,7 @@ "array", "ndarray", "float32", - "double", + "single", "float32array" ] } From 07edc941985e5e2f4df56e0e40fc13441bbe6915 Mon Sep 17 00:00:00 2001 From: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> Date: Fri, 20 Jun 2025 09:59:42 +0530 Subject: [PATCH 14/17] chore: minor clean-up Signed-off-by: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> --- lib/node_modules/@stdlib/blas/base/ssyrk/README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/README.md b/lib/node_modules/@stdlib/blas/base/ssyrk/README.md index b904ac0c864b..1a1c711b1c6f 100644 --- a/lib/node_modules/@stdlib/blas/base/ssyrk/README.md +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/README.md @@ -138,15 +138,14 @@ var opts = { }; var N = 4; -var K = 3; var A = discreteUniform( N*N, 0, 10, opts ); // 4x4 -var C = discreteUniform( N*K, 0, 10, opts ); // 4x3 +var C = discreteUniform( N*N, 0, 10, opts ); // 4x4 -ssyrk( 'row-major', 'lower', 'no-transpose', N, K, 1.0, A, N, 1.0, C, N ); +ssyrk( 'row-major', 'lower', 'no-transpose', N, N, 1.0, A, N, 1.0, C, N ); console.log( C ); -ssyrk.ndarray( 'lower', 'no-transpose', N, K, 1.0, A, N, 1, 0, 1.0, C, N, 1, 0 ); +ssyrk.ndarray( 'lower', 'no-transpose', N, N, 1.0, A, N, 1, 0, 1.0, C, N, 1, 0 ); console.log( C ); ``` From ad627d12860c3f4679b936b463cb4277c9c119b2 Mon Sep 17 00:00:00 2001 From: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> Date: Fri, 20 Jun 2025 10:01:43 +0530 Subject: [PATCH 15/17] chore: minor clean-up Signed-off-by: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> --- lib/node_modules/@stdlib/blas/base/ssyrk/examples/index.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/examples/index.js b/lib/node_modules/@stdlib/blas/base/ssyrk/examples/index.js index b178ec2088c0..45516b229513 100644 --- a/lib/node_modules/@stdlib/blas/base/ssyrk/examples/index.js +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/examples/index.js @@ -26,13 +26,12 @@ var opts = { }; var N = 4; -var K = 3; var A = discreteUniform( N*N, 0, 10, opts ); // 4x4 -var C = discreteUniform( N*K, 0, 10, opts ); // 4x3 +var C = discreteUniform( N*N, 0, 10, opts ); // 4x4 -ssyrk( 'row-major', 'lower', 'no-transpose', N, K, 1.0, A, N, 1.0, C, N ); +ssyrk( 'row-major', 'lower', 'no-transpose', N, N, 1.0, A, N, 1.0, C, N ); console.log( C ); -ssyrk.ndarray( 'lower', 'no-transpose', N, K, 1.0, A, N, 1, 0, 1.0, C, N, 1, 0 ); +ssyrk.ndarray( 'lower', 'no-transpose', N, N, 1.0, A, N, 1, 0, 1.0, C, N, 1, 0 ); console.log( C ); From 89892b2bd39a1df35a44eb7a1d264e909a70637f Mon Sep 17 00:00:00 2001 From: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> Date: Fri, 20 Jun 2025 12:18:17 +0530 Subject: [PATCH 16/17] chore: minor clean-up Signed-off-by: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> --- .../blas/base/ssyrk/docs/types/test.ts | 45 ------------------- 1 file changed, 45 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/docs/types/test.ts b/lib/node_modules/@stdlib/blas/base/ssyrk/docs/types/test.ts index 02f2955dc483..62930239dcde 100644 --- a/lib/node_modules/@stdlib/blas/base/ssyrk/docs/types/test.ts +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/docs/types/test.ts @@ -194,51 +194,6 @@ import ssyrk = require( './index' ); ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, C, ( A: number ): number => A ); // $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 C = new Float32Array( 25 ); - - ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, '10', C, 5 ); // $ExpectError - ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, true, C, 5 ); // $ExpectError - ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, false, C, 5 ); // $ExpectError - ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, null, C, 5 ); // $ExpectError - ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, undefined, C, 5 ); // $ExpectError - ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, [], C, 5 ); // $ExpectError - ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, {}, C, 5 ); // $ExpectError - ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, ( A: number ): number => A, C, 5 ); // $ExpectError -} - -// The compiler throws an error if the function is provided a thirteenth argument which is not a Float32Array... -{ - const A = new Float32Array( 25 ); - - ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, 10, 5 ); // $ExpectError - ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, '10', 5 ); // $ExpectError - ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, true, 5 ); // $ExpectError - ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, false, 5 ); // $ExpectError - ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, null, 5 ); // $ExpectError - ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, undefined, 5 ); // $ExpectError - ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, [ '1' ], 5 ); // $ExpectError - ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, {}, 5 ); // $ExpectError - ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, ( A: number ): number => A, 5 ); // $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 C = new Float32Array( 25 ); - - ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, C, '10' ); // $ExpectError - ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, C, true ); // $ExpectError - ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, C, false ); // $ExpectError - ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, C, null ); // $ExpectError - ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, C, undefined ); // $ExpectError - ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, C, [] ); // $ExpectError - ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 5, 1.0, C, {} ); // $ExpectError - ssyrk( 'row-major', 'lower', 'no-transpose', 5, 5, 1.0, A, 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 ); From 917193433d0fc89cd8e18488114b9b54fc9b7e8e Mon Sep 17 00:00:00 2001 From: ShabiShett07 Date: Fri, 20 Jun 2025 13:16:05 +0530 Subject: [PATCH 17/17] 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: 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: passed - task: lint_license_headers status: passed --- --- .../blas/base/ssyrk/docs/types/test.ts | 48 +++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/base/ssyrk/docs/types/test.ts b/lib/node_modules/@stdlib/blas/base/ssyrk/docs/types/test.ts index 62930239dcde..7ad9a9ad52a5 100644 --- a/lib/node_modules/@stdlib/blas/base/ssyrk/docs/types/test.ts +++ b/lib/node_modules/@stdlib/blas/base/ssyrk/docs/types/test.ts @@ -94,14 +94,14 @@ import ssyrk = require( './index' ); const A = new Float32Array( 25 ); const C = new Float32Array( 25 ); - ssyrk( 'row-major', 'lower', 'no-transpose', 5, '10', 5, A, 5, 1.0, C, 5 ); // $ExpectError - ssyrk( 'row-major', 'lower', 'no-transpose', 5, true, 5, A, 5, 1.0, C, 5 ); // $ExpectError - ssyrk( 'row-major', 'lower', 'no-transpose', 5, false, 5, A, 5, 1.0, C, 5 ); // $ExpectError - ssyrk( 'row-major', 'lower', 'no-transpose', 5, null, 5, A, 5, 1.0, C, 5 ); // $ExpectError - ssyrk( 'row-major', 'lower', 'no-transpose', 5, undefined, 5, A, 5, 1.0, C, 5 ); // $ExpectError - ssyrk( 'row-major', 'lower', 'no-transpose', 5, [], 5, A, 5, 1.0, C, 5 ); // $ExpectError - ssyrk( 'row-major', 'lower', 'no-transpose', 5, {}, 5, A, 5, 1.0, C, 5 ); // $ExpectError - ssyrk( 'row-major', 'lower', 'no-transpose', 5, ( A: number ): number => A, 5, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, '10', 1.0, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, true, 1.0, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, false, 1.0, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, null, 1.0, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, undefined, 1.0, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, [], 1.0, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, {}, 1.0, A, 5, 1.0, C, 5 ); // $ExpectError + ssyrk( 'row-major', 'lower', 'no-transpose', 5, ( A: number ): number => A, 1.0, A, 5, 1.0, C, 5 ); // $ExpectError } // The compiler throws an error if the function is provided a sixth argument which is not a number... @@ -271,14 +271,14 @@ import ssyrk = require( './index' ); const A = new Float32Array( 25 ); const C = new Float32Array( 25 ); - ssyrk.ndarray( 'lower', 'no-transpose', 5, '10', 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - ssyrk.ndarray( 'lower', 'no-transpose', 5, true, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - ssyrk.ndarray( 'lower', 'no-transpose', 5, false, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - ssyrk.ndarray( 'lower', 'no-transpose', 5, null, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - ssyrk.ndarray( 'lower', 'no-transpose', 5, undefined, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - ssyrk.ndarray( 'lower', 'no-transpose', 5, [], 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - ssyrk.ndarray( 'lower', 'no-transpose', 5, {}, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - ssyrk.ndarray( 'lower', 'no-transpose', 5, ( A: number ): number => A, 5, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, '10', 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, true, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, false, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, null, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, undefined, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, [], 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, {}, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, ( A: number ): number => A, 1.0, A, 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... @@ -286,14 +286,14 @@ import ssyrk = require( './index' ); const A = new Float32Array( 25 ); const C = new Float32Array( 25 ); - ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, '10', 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, true, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, false, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, null, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, undefined, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, [], 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, {}, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError - ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, ( A: number ): number => A, 1.0, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, '10', A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, true, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, false, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, null, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, undefined, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, [], A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, {}, A, 5, 1, 0, 1.0, C, 5, 1, 0 ); // $ExpectError + ssyrk.ndarray( 'lower', 'no-transpose', 5, 5, ( A: number ): number => A, A, 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 Float32Array...