From 987cc8064888418d8f5324fa834e99b24fc59c28 Mon Sep 17 00:00:00 2001 From: ShabiShett07 Date: Fri, 13 Jun 2025 15:27:07 +0530 Subject: [PATCH 01/12] feat: add blas/base/strmm --- .../@stdlib/blas/base/strmm/README.md | 260 +++ .../blas/base/strmm/benchmark/benchmark.js | 104 + .../base/strmm/benchmark/benchmark.ndarray.js | 104 + .../@stdlib/blas/base/strmm/docs/repl.txt | 148 ++ .../blas/base/strmm/docs/types/index.d.ts | 129 ++ .../blas/base/strmm/docs/types/test.ts | 486 ++++ .../@stdlib/blas/base/strmm/examples/index.js | 38 + .../@stdlib/blas/base/strmm/lib/base.js | 360 +++ .../@stdlib/blas/base/strmm/lib/index.js | 68 + .../@stdlib/blas/base/strmm/lib/main.js | 35 + .../@stdlib/blas/base/strmm/lib/ndarray.js | 101 + .../@stdlib/blas/base/strmm/lib/strmm.js | 129 ++ .../@stdlib/blas/base/strmm/package.json | 69 + .../strmm/test/fixtures/ca_cb_l_l_nta_nu.json | 28 + ..._cb_l_l_nta_nu_complex_access_pattern.json | 28 + .../strmm/test/fixtures/ca_cb_l_l_nta_u.json | 28 + .../strmm/test/fixtures/ca_cb_l_l_ta_nu.json | 28 + .../strmm/test/fixtures/ca_cb_l_l_ta_u.json | 28 + .../strmm/test/fixtures/ca_cb_l_u_nta_nu.json | 28 + .../strmm/test/fixtures/ca_cb_l_u_nta_u.json | 28 + .../strmm/test/fixtures/ca_cb_l_u_ta_nu.json | 28 + .../strmm/test/fixtures/ca_cb_l_u_ta_u.json | 28 + .../strmm/test/fixtures/ca_cb_r_l_nta_nu.json | 28 + .../strmm/test/fixtures/ca_cb_r_l_nta_u.json | 28 + .../strmm/test/fixtures/ca_cb_r_l_ta_nu.json | 28 + .../strmm/test/fixtures/ca_cb_r_l_ta_u.json | 28 + .../strmm/test/fixtures/ca_cb_r_u_nta_nu.json | 28 + .../strmm/test/fixtures/ca_cb_r_u_nta_u.json | 28 + .../strmm/test/fixtures/ca_cb_r_u_ta_nu.json | 28 + .../strmm/test/fixtures/ca_cb_r_u_ta_u.json | 28 + .../strmm/test/fixtures/ca_rb_l_l_nta_nu.json | 28 + ..._rb_l_l_nta_nu_complex_access_pattern.json | 28 + .../strmm/test/fixtures/ca_rb_l_l_nta_u.json | 28 + .../strmm/test/fixtures/ca_rb_l_l_ta_nu.json | 28 + .../strmm/test/fixtures/ca_rb_l_l_ta_u.json | 28 + .../strmm/test/fixtures/ca_rb_l_u_nta_nu.json | 28 + .../strmm/test/fixtures/ca_rb_l_u_nta_u.json | 28 + .../strmm/test/fixtures/ca_rb_l_u_ta_nu.json | 28 + .../strmm/test/fixtures/ca_rb_l_u_ta_u.json | 28 + .../strmm/test/fixtures/ca_rb_r_l_nta_nu.json | 28 + .../strmm/test/fixtures/ca_rb_r_l_nta_u.json | 28 + .../strmm/test/fixtures/ca_rb_r_l_ta_nu.json | 28 + .../strmm/test/fixtures/ca_rb_r_l_ta_u.json | 28 + .../strmm/test/fixtures/ca_rb_r_u_nta_nu.json | 28 + .../strmm/test/fixtures/ca_rb_r_u_nta_u.json | 28 + .../strmm/test/fixtures/ca_rb_r_u_ta_nu.json | 28 + .../strmm/test/fixtures/ca_rb_r_u_ta_u.json | 28 + .../fixtures/column_major_l_l_nta_nu.json | 25 + .../test/fixtures/column_major_l_l_nta_u.json | 25 + .../test/fixtures/column_major_l_l_ta_nu.json | 25 + .../test/fixtures/column_major_l_l_ta_u.json | 25 + .../fixtures/column_major_l_u_nta_nu.json\\" | 25 + .../test/fixtures/column_major_l_u_nta_u.json | 25 + .../test/fixtures/column_major_l_u_ta_nu.json | 25 + .../test/fixtures/column_major_l_u_ta_u.json | 25 + .../fixtures/column_major_r_l_nta_nu.json | 25 + .../test/fixtures/column_major_r_l_nta_u.json | 25 + .../test/fixtures/column_major_r_l_ta_nu.json | 25 + .../test/fixtures/column_major_r_l_ta_u.json | 25 + .../fixtures/column_major_r_u_nta_nu.json | 25 + .../test/fixtures/column_major_r_u_nta_u.json | 25 + .../test/fixtures/column_major_r_u_ta_nu.json | 25 + .../test/fixtures/column_major_r_u_ta_u.json | 25 + .../strmm/test/fixtures/ra_cb_l_l_nta_nu.json | 28 + ..._cb_l_l_nta_nu_complex_access_pattern.json | 28 + .../strmm/test/fixtures/ra_cb_l_l_nta_u.json | 28 + .../strmm/test/fixtures/ra_cb_l_l_ta_nu.json | 28 + .../strmm/test/fixtures/ra_cb_l_l_ta_u.json | 28 + .../strmm/test/fixtures/ra_cb_l_u_nta_nu.json | 28 + .../strmm/test/fixtures/ra_cb_l_u_nta_u.json | 28 + .../strmm/test/fixtures/ra_cb_l_u_ta_nu.json | 28 + .../strmm/test/fixtures/ra_cb_l_u_ta_u.json | 28 + .../strmm/test/fixtures/ra_cb_r_l_nta_nu.json | 28 + .../strmm/test/fixtures/ra_cb_r_l_nta_u.json | 28 + .../strmm/test/fixtures/ra_cb_r_l_ta_nu.json | 28 + .../strmm/test/fixtures/ra_cb_r_l_ta_u.json | 28 + .../strmm/test/fixtures/ra_cb_r_u_nta_nu.json | 28 + .../strmm/test/fixtures/ra_cb_r_u_nta_u.json | 28 + .../strmm/test/fixtures/ra_cb_r_u_ta_nu.json | 28 + .../strmm/test/fixtures/ra_cb_r_u_ta_u.json | 28 + .../strmm/test/fixtures/ra_rb_l_l_nta_nu.json | 28 + ..._rb_l_l_nta_nu_complex_access_pattern.json | 28 + .../test/fixtures/ra_rb_l_l_nta_nu_oa.json | 28 + .../test/fixtures/ra_rb_l_l_nta_nu_ob.json | 28 + .../fixtures/ra_rb_l_l_nta_nu_sa1_sa2.json | 28 + .../fixtures/ra_rb_l_l_nta_nu_sa1_sa2n.json | 28 + .../fixtures/ra_rb_l_l_nta_nu_sa1n_sa2.json | 28 + .../fixtures/ra_rb_l_l_nta_nu_sa1n_sa2n.json | 28 + .../fixtures/ra_rb_l_l_nta_nu_sb1_sb2.json | 28 + .../fixtures/ra_rb_l_l_nta_nu_sb1_sb2n.json | 28 + .../fixtures/ra_rb_l_l_nta_nu_sb1n_sb2.json | 28 + .../fixtures/ra_rb_l_l_nta_nu_sb1n_sb2n.json | 28 + .../strmm/test/fixtures/ra_rb_l_l_nta_u.json | 28 + .../strmm/test/fixtures/ra_rb_l_l_ta_nu.json | 28 + .../strmm/test/fixtures/ra_rb_l_l_ta_u.json | 28 + .../strmm/test/fixtures/ra_rb_l_u_nta_nu.json | 28 + .../strmm/test/fixtures/ra_rb_l_u_nta_u.json | 28 + .../strmm/test/fixtures/ra_rb_l_u_ta_nu.json | 28 + .../strmm/test/fixtures/ra_rb_l_u_ta_u.json | 28 + .../strmm/test/fixtures/ra_rb_r_l_nta_nu.json | 28 + .../strmm/test/fixtures/ra_rb_r_l_nta_u.json | 28 + .../strmm/test/fixtures/ra_rb_r_l_ta_nu.json | 28 + .../strmm/test/fixtures/ra_rb_r_l_ta_u.json | 28 + .../strmm/test/fixtures/ra_rb_r_u_nta_nu.json | 28 + .../strmm/test/fixtures/ra_rb_r_u_nta_u.json | 28 + .../strmm/test/fixtures/ra_rb_r_u_ta_nu.json | 28 + .../strmm/test/fixtures/ra_rb_r_u_ta_u.json | 28 + .../test/fixtures/row_major_l_l_nta_nu.json | 25 + .../test/fixtures/row_major_l_l_nta_u.json | 25 + .../test/fixtures/row_major_l_l_ta_nu.json | 25 + .../test/fixtures/row_major_l_l_ta_u.json | 25 + .../test/fixtures/row_major_l_u_nta_nu.json | 25 + .../test/fixtures/row_major_l_u_nta_u.json | 25 + .../test/fixtures/row_major_l_u_ta_nu.json | 25 + .../test/fixtures/row_major_l_u_ta_u.json | 25 + .../test/fixtures/row_major_r_l_nta_nu.json | 25 + .../test/fixtures/row_major_r_l_nta_u.json | 25 + .../test/fixtures/row_major_r_l_ta_nu.json | 25 + .../test/fixtures/row_major_r_l_ta_u.json | 25 + .../test/fixtures/row_major_r_u_nta_nu.json | 25 + .../test/fixtures/row_major_r_u_nta_u.json | 25 + .../test/fixtures/row_major_r_u_ta_nu.json | 25 + .../test/fixtures/row_major_r_u_ta_u.json | 25 + .../@stdlib/blas/base/strmm/test/test.js | 82 + .../blas/base/strmm/test/test.ndarray.js | 1947 +++++++++++++++++ .../blas/base/strmm/test/test.strmm.js | 1076 +++++++++ 126 files changed, 8120 insertions(+) create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/README.md create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/benchmark/benchmark.ndarray.js create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/examples/index.js create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/lib/base.js create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/lib/index.js create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/lib/main.js create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/lib/ndarray.js create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/lib/strmm.js create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/package.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_l_l_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_l_l_nta_nu_complex_access_pattern.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_l_l_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_l_l_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_l_l_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_l_u_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_l_u_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_l_u_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_l_u_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_r_l_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_r_l_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_r_l_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_r_l_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_r_u_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_r_u_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_r_u_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_r_u_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_l_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_l_nta_nu_complex_access_pattern.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_l_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_l_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_l_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_u_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_u_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_u_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_u_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_l_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_l_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_l_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_l_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_u_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_u_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_u_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_u_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_l_l_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_l_l_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_l_l_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_l_l_ta_u.json create mode 100644 "lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_l_u_nta_nu.json\\" create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_l_u_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_l_u_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_l_u_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_r_l_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_r_l_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_r_l_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_r_l_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_r_u_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_r_u_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_r_u_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_r_u_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_l_l_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_l_l_nta_nu_complex_access_pattern.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_l_l_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_l_l_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_l_l_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_l_u_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_l_u_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_l_u_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_l_u_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_r_l_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_r_l_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_r_l_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_r_l_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_r_u_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_r_u_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_r_u_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_r_u_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_complex_access_pattern.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_oa.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_ob.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sa1_sa2.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sa1_sa2n.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2n.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sb1_sb2.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sb1_sb2n.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sb1n_sb2.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sb1n_sb2n.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_u_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_u_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_u_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_u_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_l_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_l_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_l_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_l_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_u_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_u_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_u_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_u_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_l_l_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_l_l_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_l_l_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_l_l_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_l_u_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_l_u_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_l_u_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_l_u_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_l_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_l_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_l_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_l_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_u_nta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_u_nta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_u_ta_nu.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_u_ta_u.json create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/test.js create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/test.ndarray.js create mode 100644 lib/node_modules/@stdlib/blas/base/strmm/test/test.strmm.js diff --git a/lib/node_modules/@stdlib/blas/base/strmm/README.md b/lib/node_modules/@stdlib/blas/base/strmm/README.md new file mode 100644 index 000000000000..8eef1b483f2c --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/README.md @@ -0,0 +1,260 @@ + + +# strmm + +> Perform one of the matrix-matrix operations `B = alpha * op(A) * B` or `B = alpha * B * op(A)` where alpha is a scalar, B is an m by n matrix, A is a unit, or non-unit, upper or lower triangular matrix and op( A ) is one of `op( A ) = A` or `op( A ) = A**T`. + +
+ +## Usage + +```javascript +var strmm = require( '@stdlib/blas/base/strmm' ); +``` + +#### strmm( order, side, uplo, transa, diag, m, n, alpha, A, LDA, B, LDB ) + +Performs one of the matrix-matrix operations `B = alpha * op(A) * B` or `B = alpha * B * op(A)` where alpha is a scalar, B is an m by n matrix, A is a unit, or non-unit, upper or lower triangular matrix and op( A ) is one of `op( A ) = A` or `op( A ) = A**T`. + +```javascript +var Float32Array = require( '@stdlib/array/float32' ); + +var A = new Float32Array( [ 1.0, 0.0, 0.0, 0.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); +var B = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); + +strmm( 'row-major', 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, B, 3 ); +// B => [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 31.0, 41.0, 51.0 ] +``` + +The function has the following parameters: + +- **order**: storage layout of `A` and `B`. +- **side**: specifies whether `op( A )` appears on the left or right side of `X`. +- **uplo**: specifies whether the upper or lower triangular part of the matrix `A` is supplied. +- **transa**: specifies the form of `op( A )` to be used in the matrix multiplication. +- **diag**: specifies whether or not `A` is unit triangular. +- **m**: number of rows in `B`. +- **n**: number of columns in `B`. +- **alpha**: scalar constant. +- **A**: input matrix `A`. +- **LDA**: stride of the first dimension of `A` (a.k.a., leading dimension of the matrix `A`). +- **B**: input matrix `B`. +- **LDB**: stride of the first dimension of `B` (a.k.a., leading dimension of the matrix `B`). + +Note that indexing is relative to the first index. To introduce an offset, use [`typed array`][mdn-typed-array] views. + + + +```javascript +var Float32Array = require( '@stdlib/array/float32' ); + +// Initial arrays... +var A0 = new Float32Array( [ 0.0, 1.0, 0.0, 0.0, 0.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); +var B0 = new Float32Array( [ 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0] ); + +// Create offset views... +var A1 = new Float32Array( A0.buffer, A0.BYTES_PER_ELEMENT*1 ); // start at 2nd element +var B1 = new Float32Array( B0.buffer, B0.BYTES_PER_ELEMENT*1 ); // start at 2nd element + +strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 3, 3, 1.0, A1, 3, B1, 3 ); +// B => [ 0.0, 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 31.0, 41.0, 51.0 ] +``` + +#### strmm.ndarray( s, ul, t, d, m, n, α, A, sa1, sa2, oa, B, sb1, sb2, ob ) + +Performs one of the matrix-matrix operations `B = alpha * op(A) * B` or `B = alpha * B * op(A)` using alternative indexing semantics and where alpha is a scalar, B is an m by n matrix, A is a unit, or non-unit, upper or lower triangular matrix and op( A ) is one of `op( A ) = A` or `op( A ) = A**T`. + +```javascript +var Float32Array = require( '@stdlib/array/float32' ); + +var A = new Float32Array( [ 1.0, 0.0, 0.0, 0.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); +var B = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); + +strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 ); +// B => [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 31.0, 41.0, 51.0 ] +``` + +The function has the following parameters: + +- **side**: specifies whether `op( A )` appears on the left or right side of `X`. +- **uplo**: specifies whether the upper or lower triangular part of the matrix `A` is supplied. +- **transa**: specifies the form of `op( A )` to be used in the matrix multiplication. +- **diag**: specifies whether or not `A` is unit triangular. +- **m**: number of rows in `B`. +- **n**: number of columns in `B`. +- **alpha**: scalar constant. +- **A**: input matrix `A`. +- **sa1**: stride of the first dimension of `A`. +- **sa2**: stride of the second dimension of `A`. +- **oa**: starting index for `A`. +- **B**: input matrix `B`. +- **sb1**: stride of the first dimension of `B`. +- **sb2**: stride of the second dimension of `B`. +- **ob**: starting index for `B`. + +While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying buffer, the offset parameters support indexing semantics based on starting indices. For example, + +```javascript +var Float32Array = require( '@stdlib/array/float32' ); + +var A = new Float32Array( [ 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); +var B = new Float32Array( [ 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); + +strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 3, 3, 1.0, A, 3, 1, 2, B, 3, 1, 1 ); +// B => [ 0.0, 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 31.0, 41.0, 51.0 ] +``` + +
+ + + +
+ +## Notes + +- `strmm()` corresponds to the [BLAS][blas] level 3 function [`strmm`][strmm]. + +
+ + + +
+ +## Examples + + + +```javascript +var discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); +var strmm = require( '@stdlib/blas/base/strmm' ); + +var opts = { + 'dtype': 'float32' +}; + +var M = 3; +var N = 3; + +var A = discreteUniform( M*N, -10.0, 10.0, opts ); +var B = discreteUniform( M*N, -10.0, 10.0, opts ); + +var out = strmm( 'column-major', 'left', 'upper', 'no-transpose', 'non-unit', M, N, 1.0, A, N, B, N ); +console.log( out ); + +out = strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', M, N, 1.0, A, N, 1, 0, B, N, 1, 0 ); +console.log( out ); +``` + +
+ + + + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +TODO +``` + +#### TODO + +TODO. + +```c +TODO +``` + +TODO + +```c +TODO +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +TODO +``` + +
+ + + +
+ + + + + + + + + + + + + + diff --git a/lib/node_modules/@stdlib/blas/base/strmm/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/strmm/benchmark/benchmark.js new file mode 100644 index 000000000000..78f92cc5ac8e --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/benchmark/benchmark.js @@ -0,0 +1,104 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var bench = require( '@stdlib/bench' ); +var ones = require( '@stdlib/array/ones' ); +var 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 strmm = require( './../lib/strmm.js' ); + + +// VARIABLES // + +var options = { + 'dtype': 'float32' +}; + + +// FUNCTIONS // + +/** +* Creates a benchmark function. +* +* @private +* @param {PositiveInteger} N - array dimension size +* @returns {Function} benchmark function +*/ +function createBenchmark( N ) { + var A = ones( N*N, options.dtype ); + var B = ones( N*N, options.dtype ); + return benchmark; + + /** + * Benchmark function. + * + * @private + * @param {Benchmark} b - benchmark instance + */ + function benchmark( b ) { + var z; + var i; + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + z = strmm( 'row-major', 'left', 'lower', 'no-transpose', 'non-unit', N, N, 1.0, A, N, B, N ); + if ( isnanf( z[ i%z.length ] ) ) { + b.fail( 'should not return NaN' ); + } + } + b.toc(); + if ( isnanf( z[ i%z.length ] ) ) { + b.fail( 'should not return NaN' ); + } + b.pass( 'benchmark finished' ); + b.end(); + } +} + + +// MAIN // + +/** +* Main execution sequence. +* +* @private +*/ +function main() { + var len; + var min; + var max; + var f; + var i; + + min = 1; // 10^min + max = 6; // 10^max + + for ( i = min; i <= max; i++ ) { + len = floor( pow( pow( 10, i ), 1.0/2.0 ) ); + f = createBenchmark( len ); + bench( pkg+':size='+(len*len), f ); + } +} + +main(); diff --git a/lib/node_modules/@stdlib/blas/base/strmm/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/strmm/benchmark/benchmark.ndarray.js new file mode 100644 index 000000000000..cd7e0e6df68e --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/benchmark/benchmark.ndarray.js @@ -0,0 +1,104 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var bench = require( '@stdlib/bench' ); +var ones = require( '@stdlib/array/ones' ); +var 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 strmm = require( './../lib/ndarray.js' ); + + +// VARIABLES // + +var options = { + 'dtype': 'float32' +}; + + +// FUNCTIONS // + +/** +* Creates a benchmark function. +* +* @private +* @param {PositiveInteger} N - array dimension size +* @returns {Function} benchmark function +*/ +function createBenchmark( N ) { + var A = ones( N*N, options.dtype ); + var B = ones( N*N, options.dtype ); + return benchmark; + + /** + * Benchmark function. + * + * @private + * @param {Benchmark} b - benchmark instance + */ + function benchmark( b ) { + var z; + var i; + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + z = strmm( 'left', 'lower', 'no-transpose', 'non-unit', N, N, 1.0, A, 1, N, 0, B, 1, N, 0 ); + if ( isnanf( z[ i%z.length ] ) ) { + b.fail( 'should not return NaN' ); + } + } + b.toc(); + if ( isnanf( z[ i%z.length ] ) ) { + b.fail( 'should not return NaN' ); + } + b.pass( 'benchmark finished' ); + b.end(); + } +} + + +// MAIN // + +/** +* Main execution sequence. +* +* @private +*/ +function main() { + var len; + var min; + var max; + var f; + var i; + + min = 1; // 10^min + max = 6; // 10^max + + for ( i = min; i <= max; i++ ) { + len = floor( pow( pow( 10, i ), 1.0/2.0 ) ); + f = createBenchmark( len ); + bench( pkg+':ndarray:size='+(len*len), f ); + } +} + +main(); diff --git a/lib/node_modules/@stdlib/blas/base/strmm/docs/repl.txt b/lib/node_modules/@stdlib/blas/base/strmm/docs/repl.txt new file mode 100644 index 000000000000..da74c4fc72d1 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/docs/repl.txt @@ -0,0 +1,148 @@ + +{{alias}}( ord, side, uplo, transa, diag, M, N, α, A, lda, B, ldb ) + Performs one of the matrix-matrix operations `B = alpha * op(A) * B` or + `B = alpha * B * op(A)` where alpha is a scalar, B is an m by n matrix, + A is a unit, or non-unit, upper or lower triangular matrix and op( A ) is + one of `op( A ) = A` or `op( A ) = A**T`. + + Indexing is relative to the first index. To introduce an offset, use typed + array views. + + If `M` or `N` is equal to `0`, the function returns `B` unchanged. + + If `α` equals `0`, returns `B` filled with zeros. + + Parameters + ---------- + side: string + Specifies whether `op( A )` multiplies `B` from the left or right. + + ord: string + Row-major (C-style) or column-major (Fortran-style) order. Must be + either 'row-major' or 'column-major'. + + uplo: string + Specifies whether `A` is an upper or lower triangular matrix. + + transa: string + Specifies whether `A` should be transposed, conjugate-transposed, or + not transposed. + + diag: string + Specifies whether `A` has a unit diagonal. + + M: integer + Number of rows of `B`. + + N: integer + Number of columns of `B`. + + α: number + Scalar constant. + + A: Float32Array + Input matrix. + + lda: integer + Stride of the first dimension of `A` (a.k.a., leading dimension of the + matrix `A`). + + B: Float32Array + Second matrix. + + ldb: integer + Stride of the first dimension of `B` (a.k.a., leading dimension of the + matrix `B`). + + Returns + ------- + B: Float32Array + Second matrix. + + Examples + -------- + > var A = new {{alias:@stdlib/array/float32}}( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); + > var B = new {{alias:@stdlib/array/float32}}( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); + > var ord = 'row-major'; + > var side = 'left'; + > var uplo = 'lower'; + > var transa = 'no-transpose'; + > var diag = 'unit'; + > {{alias}}( ord, side, uplo, transa, diag, 3, 3, 1.0, A, 3, B, 3 ) + [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 31.0, 41.0, 51.0 ] + + +{{alias}}.ndarray(side,uplo,transa, diag,M,N,α,A,sa1,sa2,oa,B,sb1,sb2,ob) + Performs one of the matrix-matrix operations `B = alpha * op(A) * B` or + `B = alpha * B * op(A)` where alpha is a scalar, B is an m by n matrix, + A is a unit, or non-unit, upper or lower triangular matrix and op( A ) is + one of `op( A ) = A` or `op( A ) = A**T` using alternative indexing + semantics. + + While typed array views mandate a view offset based on the underlying + buffer, the offset parameters support indexing semantics based on starting + indices. + + Parameters + ---------- + side: string + Specifies whether `op( A )` multiplies `B` from the left or right. + + uplo: string + Specifies whether `A` is an upper or lower triangular matrix. + + transa: string + Specifies whether `A` should be transposed, conjugate-transposed, or + not transposed. + + diag: string + Specifies whether `A` has a unit diagonal. + + M: integer + Number of rows of `B`. + + N: integer + Number of columns of `B`. + + A: Float32Array + Input matrix. + + sa1: integer + Stride of the first dimension of `A`. + + sa2: integer + Stride of the second dimension of `A`. + + oa: integer + Starting index for `A`. + + B: Float32Array + Second matrix. + + sb1: integer + Stride of the first dimension of `B`. + + sb2: integer + Stride of the second dimension of `B`. + + ob: integer + Starting index for `B`. + + Returns + ------- + B: Float32Array + Second matrix. + + Examples + -------- + > var A = new {{alias:@stdlib/array/float32}}( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); + > var B = new {{alias:@stdlib/array/float32}}( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); + > var side = 'left'; + > var uplo = 'lower'; + > var transa = 'no-transpose'; + > var diag = 'unit'; + > {{alias}}( side, uplo, transa, diag, 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 ) + [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 31.0, 41.0, 51.0 ] + + See Also + -------- diff --git a/lib/node_modules/@stdlib/blas/base/strmm/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/base/strmm/docs/types/index.d.ts new file mode 100644 index 000000000000..8ac803b3eddc --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/docs/types/index.d.ts @@ -0,0 +1,129 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +// TypeScript Version: 4.1 + +/// + +import { Layout, MatrixTriangle, DiagonalType, OperationSide, TransposeOperation } from '@stdlib/types/blas'; + +/** +* Interface describing `strmm`. +*/ +interface Routine { + /** + * Performs one of the matrix-matrix operations `B = alpha * op(A) * B` or `B = alpha * B * op(A)` where alpha is a scalar, B is an m by n matrix, A is a unit, or non-unit, upper or lower triangular matrix and op( A ) is one of `op( A ) = A` or `op( A ) = A**T`. + * + * @param order - storage layout of `A` and `B` + * @param side - specifies whether `op( A )` multiplies `B` from the left or right + * @param uplo - specifies whether the upper or lower triangular part of the matrix `A` is supplied + * @param transa - specifies the form of `op( A )` to be used in matrix multiplication + * @param diag - specifies whether or not `A` is unit triangular + * @param m - number of rows in `B` + * @param n - number of columns in `B` + * @param alpha - scalar constant + * @param A - input matrix `A` + * @param LDA - stride of the first dimension of `A` (a.k.a., leading dimension of the matrix `A`) + * @param B - input matrix `B` + * @param LDB - stride of the first dimension of `B` (a.k.a., leading dimension of the matrix `B`) + * @returns `B` + * + * @example + * var Float32Array = require( '@stdlib/array/float32' ); + * + * var A = new Float32Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); + * var B = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); + * + * strmm( 'row-major', 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, B, 3 ); + * // B => [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 31.0, 41.0, 51.0 ] + */ + ( order: Layout, side: OperationSide, uplo: MatrixTriangle, transa: TransposeOperation, diag: DiagonalType, m: number, n: number, alpha: number, A: Float32Array, LDA: number, B: Float32Array, LDB: number ): Float32Array; + + /** + * Performs one of the matrix-matrix operations `B = alpha * op(A) * B` or `B = alpha * B * op(A)` using alternative indexing semantics, where alpha is a scalar, B is an m by n matrix, A is a unit, or non-unit, upper or lower triangular matrix and op( A ) is one of `op( A ) = A` or `op( A ) = A**T`. + * + * @param side - specifies whether `op( A )` multiplies `B` from the left or right + * @param uplo - specifies whether the upper or lower triangular part of the matrix `A` is supplied + * @param transa - specifies the form of `op( A )` to be used in matrix multiplication + * @param diag - specifies whether or not `A` is unit triangular + * @param m - number of rows in `B` + * @param n - number of columns in `B` + * @param alpha - scalar constant + * @param A - input matrix `A` + * @param strideA1 - stride of the first dimension of `A` + * @param strideA2 - stride of the second dimension of `A` + * @param offsetA - starting index for `A` + * @param B - input matrix `B` + * @param strideB1 - stride of the first dimension of `B` + * @param strideB2 - stride of the second dimension of `B` + * @param offsetB - starting index for `B` + * @returns `B` + * + * @example + * var Float32Array = require( '@stdlib/array/float32' ); + * + * var A = new Float32Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); + * var B = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); + * + * strmm.ndarray( 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 ); + * // B => [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 31.0, 41.0, 51.0 ] + */ + ndarray( side: OperationSide, uplo: MatrixTriangle, transa: TransposeOperation, diag: DiagonalType, m: number, n: number, alpha: number, A: Float32Array, strideA1: number, strideA2: number, offsetA: number, B: Float32Array, strideB1: number, strideB2: number, offsetB: number ): Float32Array; +} + +/** +* Performs one of the matrix-matrix operations `B = alpha * op(A) * B` or `B = alpha * B * op(A)` using alternative indexing semantics, where alpha is a scalar, B is an m by n matrix, A is a unit, or non-unit, upper or lower triangular matrix and op( A ) is one of `op( A ) = A` or `op( A ) = A**T`. +* +* @param order - storage layout of `A` and `B` +* @param side - specifies whether `op( A )` multiplies `B` from the left or right +* @param uplo - specifies whether the upper or lower triangular part of the matrix `A` is supplied +* @param transa - specifies the form of `op( A )` to be used in matrix multiplication +* @param diag - specifies whether or not `A` is unit triangular +* @param m - number of rows in `B` +* @param n - number of columns in `B` +* @param alpha - scalar constant +* @param A - input matrix `A` +* @param LDA - stride of the first dimension of `A` (a.k.a., leading dimension of the matrix `A`) +* @param B - input matrix `B` +* @param LDB - stride of the first dimension of `B` (a.k.a., leading dimension of the matrix `B`) +* @returns `B` +* +* @example +* var Float32Array = require( '@stdlib/array/float32' ); +* +* var A = new Float32Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); +* var B = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); +* +* strmm( 'row-major', 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, B, 3 ); +* // B => [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 31.0, 41.0, 51.0 ] +* +* @example +* var Float32Array = require( '@stdlib/array/float32' ); +* +* var A = new Float32Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); +* var B = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); +* +* strmm.ndarray( 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 ); +* // B => [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 31.0, 41.0, 51.0 ] +*/ +declare var strmm: Routine; + + +// EXPORTS // + +export = strmm; diff --git a/lib/node_modules/@stdlib/blas/base/strmm/docs/types/test.ts b/lib/node_modules/@stdlib/blas/base/strmm/docs/types/test.ts new file mode 100644 index 000000000000..bf40cccee0a4 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/docs/types/test.ts @@ -0,0 +1,486 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +import strmm = require( './index' ); + + +// TESTS // + +// The function returns a Float32Array... +{ + const A = new Float32Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float32Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectType Float32Array +} + +// The compiler throws an error if the function is provided a first argument which is not a string... +{ + const A = new Float32Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float32Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + strmm( 5, 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( true, 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( false, 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( null, 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( void 0, 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( [], 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( {}, 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( ( x: number ): number => x, 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a second argument which is not a string... +{ + const A = new Float32Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float32Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + strmm( 'row-major', 5, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', true, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', false, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', null, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', void 0, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', [], 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', {}, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', ( x: number ): number => x, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a third argument which is not a string... +{ + const A = new Float32Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float32Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + strmm( 'row-major', 'left', 5, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', true, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', false, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', null, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', void 0, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', [], 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', {}, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', ( x: number ): number => x, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a fourth argument which is not a string... +{ + const A = new Float32Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float32Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + strmm( 'row-major', 'left', 'upper', 5, 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', true, 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', false, 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', null, 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', void 0, 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', [], 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', {}, 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', ( x: number ): number => x, 'non-unit', 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a fifth argument which is not a string... +{ + const A = new Float32Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float32Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + strmm( 'row-major', 'left', 'upper', 'no-transpose', 5, 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', true, 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', false, 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', null, 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', void 0, 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', [], 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', {}, 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', ( x: number ): number => x, 2, 2, 6.0, A, 2, B, 2 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a sixth argument which is not a number... +{ + const A = new Float32Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float32Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', '5', 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', true, 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', false, 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', null, 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', void 0, 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', [], 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', {}, 2, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', ( x: number ): number => x, 2, 6.0, A, 2, B, 2 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a seventh argument which is not a number... +{ + const A = new Float32Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float32Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, '5', 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, true, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, false, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, null, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, void 0, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, [], 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, {}, 6.0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, ( x: number ): number => x, 6.0, A, 2, B, 2 ); // $ExpectError +} + +// The compiler throws an error if the function is provided an eighth argument which is not a number... +{ + const A = new Float32Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float32Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, '5', A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, true, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, false, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, null, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, void 0, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, [], A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, {}, A, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, ( x: number ): number => x, A, 2, B, 2 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a ninth argument which is not a Float32Array... +{ + const B = new Float32Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, '5', 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, 5, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, true, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, false, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, null, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, void 0, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, [], 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, {}, 2, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, ( x: number ): number => x, 2, B, 2 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a tenth argument which is not a number... +{ + const A = new Float32Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float32Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, '5', B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, true, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, false, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, null, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, void 0, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, [], B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, {}, B, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, ( x: number ): number => x, B, 2 ); // $ExpectError +} + +// The compiler throws an error if the function is provided an eleventh argument which is not a Float32Array... +{ + const A = new Float32Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, '5', 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 5, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, true, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, false, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, null, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, void 0, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, [], 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, {}, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, ( x: number ): number => x, 2 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a twelfth argument which is not a number... +{ + const A = new Float32Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float32Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, '5' ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, true ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, false ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, null ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, void 0 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, [] ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, {} ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, ( x: number ): number => x ); // $ExpectError +} + +// The compiler throws an error if the function is provided an unsupported number of arguments... +{ + const A = new Float32Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float32Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + strmm(); // $ExpectError + strmm( 'row-major' ); // $ExpectError + strmm( 'row-major', 'left' ); // $ExpectError + strmm( 'row-major', 'left', 'upper' ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose' ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit' ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2 ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B ); // $ExpectError + strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2, 10 ); // $ExpectError +} + +// Attached to main export is an `ndarray` method which returns a Float32Array... +{ + const A = new Float32Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float32Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 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( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float32Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + strmm.ndarray( 5, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( true, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( false, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( null, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( void 0, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( [], 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( {}, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( ( x: number ): number => x, 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a second argument which is not a string... +{ + const A = new Float32Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float32Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + strmm.ndarray( 'left', 5, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', true, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', false, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', null, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', void 0, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', [], 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', {}, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', ( x: number ): number => x, 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a third argument which is not a string... +{ + const A = new Float32Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float32Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + strmm.ndarray( 'left', 'upper', 5, 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', true, 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', false, 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', null, 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', void 0, 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', [], 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', {}, 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', ( x: number ): number => x, 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a fourth argument which is not a string... +{ + const A = new Float32Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float32Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + strmm.ndarray( 'left', 'upper', 'no-transpose', 5, 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', true, 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', false, 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', null, 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', void 0, 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', [], 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', {}, 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', ( x: number ): number => x, 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a fifth argument which is not a number... +{ + const A = new Float32Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float32Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', '5', 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', true, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', false, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', null, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', void 0, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', [], 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', {}, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', ( x: number ): number => x, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a sixth argument which is not a number... +{ + const A = new Float32Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float32Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, '5', 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, true, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, false, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, null, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, void 0, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, [], 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, {}, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, ( x: number ): number => x, 6.0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a seventh argument which is not a number... +{ + const A = new Float32Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float32Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, '5', A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, true, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, false, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, null, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, void 0, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, [], A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, {}, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, ( x: number ): number => x, A, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided an eighth argument which is not a Float32Array... +{ + const B = new Float32Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, '5', 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, 5, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, true, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, false, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, null, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, void 0, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, [], 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, {}, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, ( x: number ): number => x, 2, 1, 0, B, 2, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a ninth argument which is not a number... +{ + const A = new Float32Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float32Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, '5', 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, true, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, false, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, null, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, void 0, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, [], 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, {}, 1, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, ( x: number ): number => x, 1, 0, B, 2, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a tenth argument which is not a number... +{ + const A = new Float32Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float32Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, '5', 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, true, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, false, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, null, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, void 0, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, [], 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, {}, 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, ( x: number ): number => x, 0, B, 2, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided an eleventh argument which is not a number... +{ + const A = new Float32Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float32Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, '5', B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, true, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, false, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, null, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, void 0, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, [], B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, {}, B, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, ( x: number ): number => x, B, 2, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a twelfth argument which is not a Float32Array... +{ + const A = new Float32Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, '5', 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, 5, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, true, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, false, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, null, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, void 0, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, [], 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, {}, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, ( x: number ): number => x, 2, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a thirteenth argument which is not a number... +{ + const A = new Float32Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float32Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, '5', 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, true, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, false, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, null, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, void 0, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, [], 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, {}, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, ( x: number ): number => x, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a fourteenth argument which is not a number... +{ + const A = new Float32Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float32Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, '5', 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, true, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, false, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, null, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, void 0, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, [], 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, {}, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, ( x: number ): number => x, 0 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a fifteenth argument which is not a number... +{ + const A = new Float32Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float32Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, '5' ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, true ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, false ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, null ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, void 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, [] ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, {} ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, ( x: number ): number => x ); // $ExpectError +} + +// The compiler throws an error if the `ndarray` method is provided an unsupported number of arguments... +{ + const A = new Float32Array( [ 1.0, 3.0, 0.0, 4.0 ] ); + const B = new Float32Array( [ 5.0, 7.0, 0.0, 8.0 ] ); + + strmm.ndarray(); // $ExpectError + strmm.ndarray( 'left' ); // $ExpectError + strmm.ndarray( 'left', 'upper' ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose' ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit' ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1 ); // $ExpectError + strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0, 10 ); // $ExpectError +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/examples/index.js b/lib/node_modules/@stdlib/blas/base/strmm/examples/index.js new file mode 100644 index 000000000000..0b37b865cdf4 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/examples/index.js @@ -0,0 +1,38 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +var discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); +var strmm = require( './../lib' ); + +var opts = { + 'dtype': 'float32' +}; + +var M = 3; +var N = 3; + +var A = discreteUniform( M*N, -10.0, 10.0, opts ); +var B = discreteUniform( M*N, -10.0, 10.0, opts ); + +var out = strmm( 'column-major', 'left', 'upper', 'no-transpose', 'non-unit', M, N, 1.0, A, N, B, N ); +console.log( out ); + +out = strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', M, N, 1.0, A, N, 1, 0, B, N, 1, 0 ); +console.log( out ); diff --git a/lib/node_modules/@stdlib/blas/base/strmm/lib/base.js b/lib/node_modules/@stdlib/blas/base/strmm/lib/base.js new file mode 100644 index 000000000000..50242a7ad03c --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/lib/base.js @@ -0,0 +1,360 @@ + +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +/* eslint-disable max-len, max-statements, max-lines-per-function */ + +'use strict'; + +// MODULES // + +var isRowMajor = require( '@stdlib/ndarray/base/assert/is-row-major' ); +var f32 = require( '@stdlib/number/float64/base/to-float32' ); + + +// FUNCTIONS // + +/** +* Fills a matrix with zeros. +* +* @private +* @param {NonNegativeInteger} M - number of rows +* @param {NonNegativeInteger} N - number of columns +* @param {Float32Array} X - matrix to fill +* @param {integer} strideX1 - stride of the first dimension of `X` +* @param {integer} strideX2 - stride of the second dimension of `X` +* @param {NonNegativeInteger} offsetX - starting index for `X` +* @returns {Float32Array} input matrix +* +* @example +* var Float32Array = require( '@stdlib/array/float32' ); +* +* var X = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); +* +* zeros( 2, 3, X, 3, 1, 0 ); +* // X => [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] +* +* @example +* var Float32Array = require( '@stdlib/array/float32' ); +* +* var X = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); +* +* zeros( 2, 3, X, 1, 2, 0 ); +* // X => [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] +*/ +function zeros( M, N, X, strideX1, strideX2, offsetX ) { // TODO: consider moving to a separate package + var dx0; + var dx1; + var S0; + var S1; + var i0; + var i1; + var ix; + + if ( isRowMajor( [ strideX1, strideX2 ] ) ) { + // For row-major matrices, the last dimension has the fastest changing index... + S0 = N; + S1 = M; + dx0 = strideX2; // offset increment for innermost loop + dx1 = strideX1 - ( S0*strideX2 ); // offset increment for outermost loop + } else { // column-major + // For column-major matrices, the first dimension has the fastest changing index... + S0 = M; + S1 = N; + dx0 = strideX1; // offset increment for innermost loop + dx1 = strideX2 - ( S0*strideX1 ); // offset increment for outermost loop + } + ix = offsetX; + for ( i1 = 0; i1 < S1; i1++ ) { + for ( i0 = 0; i0 < S0; i0++ ) { + X[ ix ] = 0.0; + ix += dx0; + } + ix += dx1; + } + return X; +} + + +// MAIN // + +/** +* Performs one of the matrix-matrix operations `B = alpha * op(A) * B` or `B = alpha * B * op(A)` where alpha is a scalar, B is an m by n matrix, A is a unit, or non-unit, upper or lower triangular matrix and op( A ) is one of `op( A ) = A` or `op( A ) = A**T`. +* +* @private +* @param {string} side - specifies whether `op( A )` multiplies `B` from the left or right +* @param {string} uplo - specifies whether the upper or lower triangular part of the matrix `A` is supplied +* @param {string} transa - specifies the form of `op( A )` to be used in matrix multiplication +* @param {string} diag - specifies whether or not `A` is unit triangular +* @param {NonNegativeInteger} M - number of rows in `B` +* @param {NonNegativeInteger} N - number of columns in `B` +* @param {number} alpha - scalar constant +* @param {Float32Array} A - input matrix `A` +* @param {integer} strideA1 - stride of the first dimension of `A` +* @param {integer} strideA2 - stride of the second dimension of `A` +* @param {NonNegativeInteger} offsetA - starting index for `A` +* @param {Float32Array} B - input matrix `B` +* @param {integer} strideB1 - stride of the first dimension of `B` +* @param {integer} strideB2 - stride of the second dimension of `B` +* @param {NonNegativeInteger} offsetB - starting index for `B` +* @returns {Float32Array} `B` +* +* @example +* var Float32Array = require( '@stdlib/array/float32' ); +* +* var A = new Float32Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); +* var B = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); +* +* strmm( 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 ); +* // B => [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 31.0, 41.0, 51.0 ] +*/ +function strmm( side, uplo, transa, diag, M, N, alpha, A, strideA1, strideA2, offsetA, B, strideB1, strideB2, offsetB ) { // eslint-disable-line max-params + var nonunit; + var isrma; + var tmp; + var oa2; + var ob2; + var sa0; + var sa1; + var sb0; + var sb1; + var ob; + var i; + var j; + var k; + + isrma = isRowMajor( [ strideA1, strideA2 ] ); + nonunit = ( diag === 'non-unit' ); + + if ( M === 0 || N === 0 ) { + return B; + } + if ( isrma ) { + sa0 = strideA2; + sa1 = strideA1; + sb0 = strideB2; + sb1 = strideB1; + } else { + sa0 = strideA1; + sa1 = strideA2; + sb0 = strideB1; + sb1 = strideB2; + } + if ( alpha === 0.0 ) { + zeros( M, N, B, sb0, sb1, offsetB ); + return B; + } + if ( + ( isrma && side === 'left' && uplo === 'upper' && transa === 'no-transpose' ) || + ( !isrma && side === 'right' && uplo === 'lower' && transa === 'no-transpose' ) + ) { + for ( j = 0; j < N; j++ ) { + for ( k = 0; k < M; k++ ) { + ob2 = offsetB + ( k * sb1 ) + ( j * sb0 ); + tmp = alpha * B[ ob2 ]; + for ( i = 0; i < k; i++ ) { + oa2 = offsetA + ( i * sa1 ) + ( k * sa0 ); + ob = offsetB + ( i * sb1 ) + ( j * sb0 ); + B[ ob ] = f32( B[ ob ] + tmp * A[ oa2 ] ); + } + if ( nonunit ) { + oa2 = offsetA + ( k * sa1 ) + ( k * sa0 ); + tmp = f32( tmp * A[ oa2 ] ); + } + B[ ob2 ] = tmp; + } + } + return B; + } + if ( + ( isrma && side === 'left' && uplo === 'lower' && transa === 'no-transpose' ) || + ( !isrma && side === 'right' && uplo === 'upper' && transa === 'no-transpose' ) + ) { + for ( j = 0; j < N; j++ ) { + for ( k = M - 1; k >= 0; k-- ) { + ob2 = offsetB + ( k * sb1 ) + ( j * sb0 ); + tmp = alpha * B[ ob2 ]; + for ( i = k + 1; i < M; i++ ) { + oa2 = offsetA + ( i * sa1 ) + ( k * sa0 ); + ob = offsetB + ( i * sb1 ) + ( j * sb0 ); + B[ ob ] = f32( B[ ob ] + tmp * A[ oa2 ] ); + } + if ( nonunit ) { + oa2 = offsetA + ( k * sa1 ) + ( k * sa0 ); + tmp = f32( tmp * A[ oa2 ] ); + } + B[ ob2 ] = tmp; + } + } + return B; + } + if ( + ( isrma && side === 'left' && uplo === 'upper' && transa !== 'no-transpose' ) || + ( !isrma && side === 'right' && uplo === 'lower' && transa !== 'no-transpose' ) + ) { + for ( j = 0; j < N; j++ ) { + for ( i = M - 1; i >= 0; i-- ) { + ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); + tmp = 0.0; + for ( k = 0; k < i; k++ ) { + oa2 = offsetA + ( k * sa1 ) + ( i * sa0 ); + tmp += f32( A[ oa2 ] * B[ offsetB + ( k * sb1 ) + ( j * sb0 ) ] ); + } + if ( nonunit ) { + oa2 = offsetA + ( i * sa1 ) + ( i * sa0 ); + tmp = f32( tmp + A[ oa2 ] * B[ ob2 ] ); + } else { + tmp = f32( tmp + B[ ob2 ] ); + } + B[ ob2 ] = f32( alpha * tmp ); + } + } + return B; + } + if ( + ( isrma && side === 'left' && uplo === 'lower' && transa !== 'no-transpose' ) || + ( !isrma && side === 'right' && uplo === 'upper' && transa === 'transpose' ) + ) { + for ( j = 0; j < N; j++ ) { + for ( i = 0; i < M; i++ ) { + ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); + tmp = 0.0; + for ( k = i + 1; k < M; k++ ) { + oa2 = offsetA + ( k * sa1 ) + ( i * sa0 ); + tmp += f32( A[ oa2 ] * B[ offsetB + ( k * sb1 ) + ( j * sb0 ) ] ); + } + if ( nonunit ) { + oa2 = offsetA + ( i * sa1 ) + ( i * sa0 ); + tmp = f32( tmp + A[ oa2 ] * B[ ob2 ] ); + } else { + tmp = f32( tmp + B[ ob2 ] ); + } + B[ ob2 ] = f32( alpha * tmp ); + } + } + return B; + } + if ( + ( isrma && side === 'right' && uplo === 'upper' && transa === 'no-transpose' ) || + ( !isrma && side === 'left' && uplo === 'lower' && transa === 'no-transpose' ) + ) { + for ( j = N - 1; j >= 0; j-- ) { + if ( nonunit ) { + oa2 = offsetA + ( j * sa1 ) + ( j * sa0 ); + tmp = f32( alpha * A[ oa2 ] ); + for ( i = 0; i < M; i++ ) { + ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); + B[ ob2 ] = f32( B[ ob2 ] * tmp ); + } + } else if ( alpha !== 1.0 ) { + for ( i = 0; i < M; i++ ) { + ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); + B[ ob2 ] = f32( B[ ob2 ] * alpha ); + } + } + for ( k = 0; k < j; k++ ) { + oa2 = offsetA + ( k * sa1 ) + ( j * sa0 ); + if ( A[ oa2 ] !== 0.0 ) { + tmp = f32( alpha * A[ oa2 ] ); + for ( i = 0; i < M; i++ ) { + ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); + B[ ob2 ] = f32( B[ ob2 ] + tmp * B[ offsetB + ( i * sb1 ) + ( k * sb0 ) ] ); + } + } + } + } + return B; + } + if ( + ( isrma && side === 'right' && uplo === 'lower' && transa === 'no-transpose' ) || + ( !isrma && side === 'left' && uplo === 'upper' && transa === 'no-transpose' ) + ) { + for ( j = 0; j < N; j++ ) { + if ( nonunit ) { + oa2 = offsetA + ( j * sa1 ) + ( j * sa0 ); + tmp = f32( alpha * A[ oa2 ] ); + for ( i = 0; i < M; i++ ) { + ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); + B[ ob2 ] = f32( B[ ob2 ] * tmp ); + } + } else if ( alpha !== 1.0 ) { + for ( i = 0; i < M; i++ ) { + ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); + B[ ob2 ] = f32( B[ ob2 ] * alpha ); + } + } + for ( k = j + 1; k < N; k++ ) { + oa2 = offsetA + ( k * sa1 ) + ( j * sa0 ); + if ( A[ oa2 ] !== 0.0 ) { + tmp = f32( alpha * A[ oa2 ] ); + for ( i = 0; i < M; i++ ) { + ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); + B[ ob2 ] = f32( B[ ob2 ] + tmp * B[ offsetB + ( i * sb1 ) + ( k * sb0 ) ] ); + } + } + } + } + return B; + } + if ( + ( isrma && side === 'right' && uplo === 'upper' && transa !== 'no-transpose' ) || + ( !isrma && side === 'left' && uplo === 'lower' && transa !== 'no-transpose' ) + ) { + for ( j = 0; j < N; j++ ) { + oa2 = offsetA + ( j * sa1 ) + ( j * sa0 ); + for ( i = 0; i < M; i++ ) { + ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); + if ( nonunit ) { + tmp = f32( B[ ob2 ] * A[ oa2 ] ); + } else { + tmp = B[ ob2 ]; + } + for ( k = j + 1; k < N; k++ ) { + oa2 = offsetA + ( j * sa1 ) + ( k * sa0 ); + tmp = f32( tmp + B[ offsetB + ( i * sb1 ) + ( k * sb0 ) ] * A[ oa2 ] ); + } + B[ ob2 ] = f32( alpha * tmp ); + } + } + return B; + } + // ( isrma && side === 'right' && uplo === 'lower' && transa !== 'no-transpose' ) || ( !isrma && side === 'left' && uplo === 'upper' && transa !== 'no-transpose' ) + for ( i = 0; i < M; i++ ) { + for ( j = N - 1; j >= 0; j-- ) { + ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); + oa2 = offsetA + ( j * sa1 ) + ( j * sa0 ); + if ( nonunit ) { + tmp = f32( B[ ob2 ] * A[ oa2 ] ); + } else { + tmp = B[ ob2 ]; + } + for ( k = 0; k < j; k++ ) { + oa2 = offsetA + ( j * sa1 ) + ( k * sa0 ); + tmp = f32( tmp + B[ offsetB + ( i * sb1 ) + ( k * sb0 ) ] * A[ oa2 ] ); + } + + B[ ob2 ] = f32( alpha * tmp ); + } + } + return B; +} + + +// EXPORTS // + +module.exports = strmm; diff --git a/lib/node_modules/@stdlib/blas/base/strmm/lib/index.js b/lib/node_modules/@stdlib/blas/base/strmm/lib/index.js new file mode 100644 index 000000000000..4628b4964253 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/lib/index.js @@ -0,0 +1,68 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +/** +* BLAS routine to perform one of the matrix-matrix operations `B = alpha * op(A) * B` or `B = alpha * B * op(A)` where alpha is a scalar, B is an m by n matrix, A is a unit, or non-unit, upper or lower triangular matrix and op( A ) is one of `op( A ) = A` or `op( A ) = A**T`. +* +* @module @stdlib/blas/base/strmm +* +* @example +* var Float32Array = require( '@stdlib/array/float32' ); +* var strmm = require( '@stdlib/blas/base/strmm' ); +* +* var A = new Float32Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); +* var B = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); +* +* strmm( 'row-major', 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, B, 3 ); +* // B => [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 31.0, 41.0, 51.0 ] +* +* @example +* var Float32Array = require( '@stdlib/array/float32' ); +* var strmm = require( '@stdlib/blas/base/strmm' ); +* +* var A = new Float32Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); +* var B = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); +* +* strmm( 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 ); +* // B => [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 31.0, 41.0, 51.0 ] +*/ + +// MODULES // + +var join = require( 'path' ).join; +var tryRequire = require( '@stdlib/utils/try-require' ); +var isError = require( '@stdlib/assert/is-error' ); +var main = require( './main.js' ); + + +// MAIN // + +var strmm; +var tmp = tryRequire( join( __dirname, './native.js' ) ); +if ( isError( tmp ) ) { + strmm = main; +} else { + strmm = tmp; +} + + +// EXPORTS // + +module.exports = strmm; diff --git a/lib/node_modules/@stdlib/blas/base/strmm/lib/main.js b/lib/node_modules/@stdlib/blas/base/strmm/lib/main.js new file mode 100644 index 000000000000..a3f20f3ff047 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/lib/main.js @@ -0,0 +1,35 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var setReadOnly = require( '@stdlib/utils/define-nonenumerable-read-only-property' ); +var strmm = require( './strmm.js' ); +var ndarray = require( './ndarray.js' ); + + +// MAIN // + +setReadOnly( strmm, 'ndarray', ndarray ); + + +// EXPORTS // + +module.exports = strmm; diff --git a/lib/node_modules/@stdlib/blas/base/strmm/lib/ndarray.js b/lib/node_modules/@stdlib/blas/base/strmm/lib/ndarray.js new file mode 100644 index 000000000000..1d08f42a4ae3 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/lib/ndarray.js @@ -0,0 +1,101 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var isMatrixTriangle = require( '@stdlib/blas/base/assert/is-matrix-triangle' ); +var isOperationSide = require( '@stdlib/blas/base/assert/is-operation-side' ); +var isTransposeOperation = require( '@stdlib/blas/base/assert/is-transpose-operation' ); +var isDiagonalType = require( '@stdlib/blas/base/assert/is-diagonal-type' ); +var format = require( '@stdlib/string/format' ); +var base = require( './base.js' ); + + +// MAIN // + +/** +* Performs one of the matrix-matrix operations `B = alpha * op(A) * B` or `B = alpha * B * op(A)` where alpha is a scalar, B is an m by n matrix, A is a unit, or non-unit, upper or lower triangular matrix and op( A ) is one of `op( A ) = A` or `op( A ) = A**T`. +* +* @param {string} side - specifies whether `op( A )` multiplies `B` from the left or right +* @param {string} uplo - specifies whether the upper or lower triangular part of the matrix `A` is supplied +* @param {string} transa - specifies the form of `op( A )` to be used in matrix multiplication +* @param {string} diag - specifies whether or not `A` is unit triangular +* @param {NonNegativeInteger} M - number of rows in `B` +* @param {NonNegativeInteger} N - number of columns in `B` +* @param {number} alpha - scalar constant +* @param {Float32Array} A - input matrix `A` +* @param {integer} strideA1 - stride of the first dimension of `A` +* @param {integer} strideA2 - stride of the second dimension of `A` +* @param {NonNegativeInteger} offsetA - starting index for `A` +* @param {Float32Array} B - input matrix `B` +* @param {integer} strideB1 - stride of the first dimension of `B` +* @param {integer} strideB2 - stride of the second dimension of `B` +* @param {NonNegativeInteger} offsetB - starting index for `B` +* @throws {TypeError} first argument must be a valid side +* @throws {TypeError} second argument must specify whether the lower or upper triangular matrix is supplied. +* @throws {TypeError} third argument must specify correct transpose operation +* @throws {TypeError} fourth argument must specify whether the matrix is unit triangular or not +* @throws {RangeError} fifth argument must be a nonnegative integer +* @throws {RangeError} sixth argument must be a nonnegative integer +* @throws {RangeError} thirteenth argument must be non-zero +* @throws {RangeError} fourteenth argument must be non-zero +* @returns {Float32Array} `B` +* +* @example +* var Float32Array = require( '@stdlib/array/float32' ); +* +* var A = new Float32Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); +* var B = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); +* +* strmm( 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 ); +* // B => [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 31.0, 41.0, 51.0 ] +*/ +function strmm( side, uplo, transa, diag, M, N, alpha, A, strideA1, strideA2, offsetA, B, strideB1, strideB2, offsetB ) { // eslint-disable-line max-len, max-params + if ( !isOperationSide( side ) ) { + throw new TypeError( format( 'invalid argument. First argument must be a valid side. Value: `%s`.', side ) ); + } + if ( !isMatrixTriangle( uplo ) ) { + throw new TypeError( format( 'invalid argument. Second argument must specify whether the lower or upper triangular matrix is supplied. Value: `%s`.', uplo ) ); + } + if ( !isTransposeOperation( transa ) ) { + throw new TypeError( format( 'invalid argument. Third argument must specify correct transpose operation. Value: `%s`.', transa ) ); + } + if ( !isDiagonalType( diag ) ) { + throw new TypeError( format( 'invalid argument. Fourth argument must specify whether the matrix is unit triangular or not. Value: `%s`.', diag ) ); + } + if ( M < 0 ) { + throw new RangeError( format( 'invalid argument. Fifth argument must be a nonnegative integer. Value: `%d`.', M ) ); + } + if ( N < 0 ) { + throw new RangeError( format( 'invalid argument. Sixth argument must be a nonnegative integer. Value: `%d`.', N ) ); + } + if ( strideB1 === 0 ) { + throw new RangeError( format( 'invalid argument. Thirteenth argument must be non-zero. Value: `%d`.', strideB1 ) ); + } + if ( strideB2 === 0 ) { + throw new RangeError( format( 'invalid argument. Fourteenth argument must be non-zero. Value: `%d`.', strideB2 ) ); + } + return base( side, uplo, transa, diag, M, N, alpha, A, strideA1, strideA2, offsetA, B, strideB1, strideB2, offsetB ); // eslint-disable-line max-len +} + + +// EXPORTS // + +module.exports = strmm; diff --git a/lib/node_modules/@stdlib/blas/base/strmm/lib/strmm.js b/lib/node_modules/@stdlib/blas/base/strmm/lib/strmm.js new file mode 100644 index 000000000000..fe9920ca9d4f --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/lib/strmm.js @@ -0,0 +1,129 @@ + +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var max = require( '@stdlib/math/base/special/fast/max' ); +var isLayout = require( '@stdlib/blas/base/assert/is-layout' ); +var isMatrixTriangle = require( '@stdlib/blas/base/assert/is-matrix-triangle' ); +var isOperationSide = require( '@stdlib/blas/base/assert/is-operation-side' ); +var isTransposeOperation = require( '@stdlib/blas/base/assert/is-transpose-operation' ); +var isDiagonalType = require( '@stdlib/blas/base/assert/is-diagonal-type' ); +var isColumnMajor = require( '@stdlib/ndarray/base/assert/is-column-major-string' ); +var format = require( '@stdlib/string/format' ); +var base = require( './base.js' ); + + +// MAIN // + +/** +* Performs one of the matrix-matrix operations `B = alpha * op(A) * B` or `B = alpha * B * op(A)` where alpha is a scalar, B is an m by n matrix, A is a unit, or non-unit, upper or lower triangular matrix and op( A ) is one of `op( A ) = A` or `op( A ) = A**T`. +* +* @param {string} order - storage layout of `A` and `B` +* @param {string} side - specifies whether `op( A )` multiplies `B` from the left or right +* @param {string} uplo - specifies whether the upper or lower triangular part of the matrix `A` is supplied +* @param {string} transa - specifies the form of `op( A )` to be used in matrix multiplication +* @param {string} diag - specifies whether or not `A` is unit triangular +* @param {NonNegativeInteger} M - number of rows in `B` +* @param {NonNegativeInteger} N - number of columns in `B` +* @param {number} alpha - scalar constant +* @param {Float32Array} A - input matrix `A` +* @param {NonNegativeInteger} LDA - stride of the first dimension of `A` (a.k.a., leading dimension of the matrix `A`) +* @param {Float32Array} B - input matrix `B` +* @param {NonNegativeInteger} LDB - stride of the first dimension of `B` (a.k.a., leading dimension of the matrix `B`) +* @throws {TypeError} first argument must be a valid order +* @throws {TypeError} second argument must be a valid side +* @throws {TypeError} third argument must specify whether the lower or upper triangular matrix is supplied +* @throws {TypeError} fourth argument must specify correct transpose operation +* @throws {TypeError} fifth argument must specify whether the matrix is unit triangular or not +* @throws {RangeError} sixth argument must be a nonnegative integer +* @throws {RangeError} seventh argument must be a nonnegative integer +* @throws {RangeError} tenth argument must be greater than or equal to max(1,M) when `A` is on left side and max(1,N) otherwise +* @throws {RangeError} twelfth argument must be greater than or equal to max(1,M) +* @returns {Float32Array} `B` +* +* @example +* var Float32Array = require( '@stdlib/array/float32' ); +* +* var A = new Float32Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); +* var B = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); +* +* strmm( 'row-major', 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, B, 3 ); +* // B => [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 31.0, 41.0, 51.0 ] +*/ +function strmm( order, side, uplo, transa, diag, M, N, alpha, A, LDA, B, LDB ) { // eslint-disable-line max-params + var nrowsa; + var iscm; + var sa1; + var sa2; + var sb1; + var sb2; + if ( !isLayout( order ) ) { + throw new TypeError( format( 'invalid argument. First argument must be a valid order. Value: `%s`.', order ) ); + } + if ( !isOperationSide( side ) ) { + throw new TypeError( format( 'invalid argument. Second argument must be a valid side. Value: `%s`.', side ) ); + } + if ( !isMatrixTriangle( uplo ) ) { + throw new TypeError( format( 'invalid argument. Thirds argument must specify whether the lower or upper triangular matrix is supplied. Value: `%s`.', uplo ) ); + } + if ( !isTransposeOperation( transa ) ) { + throw new TypeError( format( 'invalid argument. Fourth argument must specify correct transpose operation. Value: `%s`.', transa ) ); + } + if ( !isDiagonalType( diag ) ) { + throw new TypeError( format( 'invalid argument. Fifth argument must specify whether the matrix is unit triangular or not. Value: `%s`.', diag ) ); + } + if ( M < 0 ) { + throw new RangeError( format( 'invalid argument. Sixth argument must be a nonnegative integer. Value: `%d`.', M ) ); + } + if ( N < 0 ) { + throw new RangeError( format( 'invalid argument. Seventh argument must be a nonnegative integer. Value: `%d`.', N ) ); + } + if ( side === 'left' ) { + nrowsa = M; + } else { + nrowsa = N; + } + if ( LDA < max( 1, nrowsa ) ) { + throw new RangeError( format( 'invalid argument. Tenth argument must be greater than or equal to max(1,%d). Value: `%d`.', nrowsa, LDA ) ); + } + if ( LDB < max( 1, M ) ) { + throw new RangeError( format( 'invalid argument. Twelfth argument must be greater than or equal to max(1,%d). Value: `%d`.', M, LDB ) ); + } + iscm = isColumnMajor( order ); + if ( iscm ) { + sa1 = 1; + sa2 = LDA; + sb1 = 1; + sb2 = LDB; + } else { // order === 'row-major' + sa1 = LDA; + sa2 = 1; + sb1 = LDB; + sb2 = 1; + } + return base( side, uplo, transa, diag, M, N, alpha, A, sa1, sa2, 0, B, sb1, sb2, 0 ); // eslint-disable-line max-len +} + + +// EXPORTS // + +module.exports = strmm; diff --git a/lib/node_modules/@stdlib/blas/base/strmm/package.json b/lib/node_modules/@stdlib/blas/base/strmm/package.json new file mode 100644 index 000000000000..a2b9e7b27bff --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/package.json @@ -0,0 +1,69 @@ + +{ + "name": "@stdlib/blas/base/strmm", + "version": "0.0.0", + "description": "Perform one of the matrix-matrix operations `B = alpha * op(A) * B` or `B = alpha * B * op(A)` where alpha is a scalar, B is an m by n matrix, A is a unit, or non-unit, upper or lower triangular matrix and op( A ) is one of `op( A ) = A` or `op( A ) = A**T`.", + "license": "Apache-2.0", + "author": { + "name": "The Stdlib Authors", + "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" + }, + "contributors": [ + { + "name": "The Stdlib Authors", + "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" + } + ], + "main": "./lib", + "directories": { + "benchmark": "./benchmark", + "doc": "./docs", + "example": "./examples", + "lib": "./lib", + "test": "./test" + }, + "types": "./docs/types", + "scripts": {}, + "homepage": "https://github.com/stdlib-js/stdlib", + "repository": { + "type": "git", + "url": "git://github.com/stdlib-js/stdlib.git" + }, + "bugs": { + "url": "https://github.com/stdlib-js/stdlib/issues" + }, + "dependencies": {}, + "devDependencies": {}, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "keywords": [ + "stdlib", + "stdmath", + "mathematics", + "math", + "blas", + "level 3", + "strmm", + "linear", + "algebra", + "subroutines", + "array", + "ndarray", + "float32", + "single", + "float32array" + ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_l_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_l_l_nta_nu.json new file mode 100644 index 000000000000..4d481be32b05 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_l_l_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 12.0, 42.0, 4.0, 33.0, 96.0, 7.0, 54.0, 150.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_l_l_nta_nu_complex_access_pattern.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_l_l_nta_nu_complex_access_pattern.json new file mode 100644 index 000000000000..f814e36148c0 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_l_l_nta_nu_complex_access_pattern.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 999.0, 1.0, 999.0, 4.0, 999.0, 7.0, 999.0, 0.0, 999.0, 5.0, 999.0, 8.0, 999.0, 0.0, 999.0, 0.0, 999.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 2, + "strideA2": 6, + "offsetA": 1, + "B": [ 999.0, 1.0, 999.0, 4.0, 999.0, 7.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 2.0, 999.0, 5.0, 999.0, 8.0, 999.0, 3.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 6.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": 2, + "strideB2": 16, + "offsetB": 1, + "B_out": [ 1.0, 12.0, 38.0, 4.0, 33.0, 86.0, 7.0, 54.0, 134.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_l_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_l_l_nta_u.json new file mode 100644 index 000000000000..2bd032b1eea0 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_l_l_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 4.0, 18.0, 4.0, 13.0, 48.0, 7.0, 22.0, 78.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_l_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_l_l_ta_nu.json new file mode 100644 index 000000000000..2da784d4a60e --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_l_l_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 14.0, 28.0, 27.0, 32.0, 61.0, 54.0, 50.0, 94.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_l_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_l_l_ta_u.json new file mode 100644 index 000000000000..4e428f60204f --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_l_l_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 14.0, 20.0, 3.0, 32.0, 41.0, 6.0, 50.0, 62.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_l_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_l_u_nta_nu.json new file mode 100644 index 000000000000..3c5b25b774b3 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_l_u_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 30.0, 34.0, 27.0, 66.0, 73.0, 54.0, 102.0, 112.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_l_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_l_u_nta_u.json new file mode 100644 index 000000000000..781b1c12aaf4 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_l_u_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 30.0, 26.0, 3.0, 66.0, 53.0, 6.0, 102.0, 80.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_l_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_l_u_ta_nu.json new file mode 100644 index 000000000000..17f7afbb0f0f --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_l_u_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 14.0, 50.0, 4.0, 41.0, 122.0, 7.0, 68.0, 194.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_l_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_l_u_ta_u.json new file mode 100644 index 000000000000..7dafd9776b44 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_l_u_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 6.0, 26.0, 4.0, 21.0, 74.0, 7.0, 36.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_r_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_r_l_nta_nu.json new file mode 100644 index 000000000000..1d34baaf7ff2 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_r_l_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 30.0, 36.0, 42.0, 62.0, 73.0, 84.0, 63.0, 72.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_r_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_r_l_nta_u.json new file mode 100644 index 000000000000..7e1c92047035 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_r_l_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 30.0, 36.0, 42.0, 46.0, 53.0, 60.0, 7.0, 8.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_r_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_r_l_ta_nu.json new file mode 100644 index 000000000000..011fc9099964 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_r_l_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 22.0, 29.0, 36.0, 90.0, 108.0, 126.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_r_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_r_l_ta_u.json new file mode 100644 index 000000000000..977bc48ed07a --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_r_l_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 34.0, 44.0, 54.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_r_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_r_u_nta_nu.json new file mode 100644 index 000000000000..6a29a998fbe9 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_r_u_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 24.0, 33.0, 42.0, 102.0, 126.0, 150.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_r_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_r_u_nta_u.json new file mode 100644 index 000000000000..314c9962b40d --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_r_u_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 8.0, 13.0, 18.0, 46.0, 62.0, 78.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_r_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_r_u_ta_nu.json new file mode 100644 index 000000000000..61d1ad1ffb03 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_r_u_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 66.0, 78.0, 90.0, 76.0, 89.0, 102.0, 63.0, 72.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_r_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_r_u_ta_u.json new file mode 100644 index 000000000000..aeb9a5a5ab98 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_r_u_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 66.0, 78.0, 90.0, 60.0, 69.0, 78.0, 7.0, 8.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_l_nta_nu.json new file mode 100644 index 000000000000..9a68dfce04ee --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_l_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 24.0, 33.0, 42.0, 102.0, 126.0, 150.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_l_nta_nu_complex_access_pattern.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_l_nta_nu_complex_access_pattern.json new file mode 100644 index 000000000000..29198debcd2b --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_l_nta_nu_complex_access_pattern.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 999.0, 1.0, 999.0, 2.0, 999.0, 3.0, 999.0, 0.0, 999.0, 5.0, 999.0, 6.0, 999.0, 0.0, 999.0, 0.0, 999.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideA1": 2, + "strideA2": 6, + "offsetA": 1, + "B": [ 999.0, 1.0, 999.0, 2.0, 999.0, 3.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 4.0, 999.0, 5.0, 999.0, 6.0, 999.0, 7.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.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": 16, + "strideB2": 2, + "offsetB": 1, + "B_out": [ 999.0, 1.0, 999.0, 2.0, 999.0, 3.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 24.0, 999.0, 33.0, 999.0, 42.0, 999.0, 102.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 126.0, 999.0, 150.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_l_nta_u.json new file mode 100644 index 000000000000..83267d2f679a --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_l_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 8.0, 13.0, 18.0, 46.0, 62.0, 78.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_l_ta_nu.json new file mode 100644 index 000000000000..19f9662c8463 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_l_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 66.0, 78.0, 90.0, 76.0, 89.0, 102.0, 63.0, 72.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_l_ta_u.json new file mode 100644 index 000000000000..2753a87276f6 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_l_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 66.0, 78.0, 90.0, 60.0, 69.0, 78.0, 7.0, 8.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_u_nta_nu.json new file mode 100644 index 000000000000..21132689ab14 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_u_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 30.0, 36.0, 42.0, 62.0, 73.0, 84.0, 63.0, 72.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_u_nta_u.json new file mode 100644 index 000000000000..e46d50c88637 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_u_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 30.0, 36.0, 42.0, 46.0, 53.0, 60.0, 7.0, 8.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_u_ta_nu.json new file mode 100644 index 000000000000..c0db1b6be6ab --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_u_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 22.0, 29.0, 36.0, 90.0, 108.0, 126.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_u_ta_u.json new file mode 100644 index 000000000000..416740de343d --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_u_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 34.0, 44.0, 54.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_l_nta_nu.json new file mode 100644 index 000000000000..98c1457bbe10 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_l_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 30.0, 34.0, 27.0, 66.0, 73.0, 54.0, 102.0, 112.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_l_nta_u.json new file mode 100644 index 000000000000..6c7f3f26eb17 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_l_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 30.0, 26.0, 3.0, 66.0, 53.0, 6.0, 102.0, 80.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_l_ta_nu.json new file mode 100644 index 000000000000..840041113c08 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_l_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 14.0, 50.0, 4.0, 41.0, 122.0, 7.0, 68.0, 194.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_l_ta_u.json new file mode 100644 index 000000000000..dcd3575a1068 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_l_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 6.0, 26.0, 4.0, 21.0, 74.0, 7.0, 36.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_u_nta_nu.json new file mode 100644 index 000000000000..bf4ecdf0eb38 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_u_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 12.0, 38.0, 4.0, 33.0, 86.0, 7.0, 54.0, 134.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_u_nta_u.json new file mode 100644 index 000000000000..43237bac00cc --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_u_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 4.0, 14.0, 4.0, 13.0, 38.0, 7.0, 22.0, 62.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_u_ta_nu.json new file mode 100644 index 000000000000..da14b7a4b74b --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_u_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 14.0, 22.0, 27.0, 32.0, 49.0, 54.0, 50.0, 76.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_u_ta_u.json new file mode 100644 index 000000000000..578207ef9440 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_u_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "strideA1": 1, + "strideA2": 3, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 14.0, 14.0, 3.0, 32.0, 29.0, 6.0, 50.0, 44.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_l_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_l_l_nta_nu.json new file mode 100644 index 000000000000..c188c3b85227 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_l_l_nta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "lda": 3, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 12.0, 42.0, 4.0, 33.0, 96.0, 7.0, 54.0, 150.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_l_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_l_l_nta_u.json new file mode 100644 index 000000000000..81a49482d80b --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_l_l_nta_u.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "lda": 3, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 4.0, 18.0, 4.0, 13.0, 48.0, 7.0, 22.0, 78.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_l_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_l_l_ta_nu.json new file mode 100644 index 000000000000..5b10b3cf968f --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_l_l_ta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "left", + "uplo": "lower", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "lda": 3, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 14.0, 28.0, 27.0, 32.0, 61.0, 54.0, 50.0, 94.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_l_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_l_l_ta_u.json new file mode 100644 index 000000000000..db472e6b5316 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_l_l_ta_u.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "left", + "uplo": "lower", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "lda": 3, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 14.0, 20.0, 3.0, 32.0, 41.0, 6.0, 50.0, 62.0, 9.0 ] +} diff --git "a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_l_u_nta_nu.json\\" "b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_l_u_nta_nu.json\\" new file mode 100644 index 000000000000..64fc2c0b218b --- /dev/null +++ "b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_l_u_nta_nu.json\\" @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "left", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "lda": 3, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 30.0, 34.0, 27.0, 66.0, 73.0, 54.0, 102.0, 112.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_l_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_l_u_nta_u.json new file mode 100644 index 000000000000..c818ef189753 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_l_u_nta_u.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "left", + "uplo": "upper", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "lda": 3, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 30.0, 26.0, 3.0, 66.0, 53.0, 6.0, 102.0, 80.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_l_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_l_u_ta_nu.json new file mode 100644 index 000000000000..6cbfcf3e9f0e --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_l_u_ta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "left", + "uplo": "upper", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "lda": 3, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 14.0, 50.0, 4.0, 41.0, 122.0, 7.0, 68.0, 194.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_l_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_l_u_ta_u.json new file mode 100644 index 000000000000..809c79b64b1a --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_l_u_ta_u.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "left", + "uplo": "upper", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "lda": 3, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 6.0, 26.0, 4.0, 21.0, 74.0, 7.0, 36.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_r_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_r_l_nta_nu.json new file mode 100644 index 000000000000..75bfce5d8006 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_r_l_nta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "right", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "lda": 3, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 30.0, 36.0, 42.0, 62.0, 73.0, 84.0, 63.0, 72.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_r_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_r_l_nta_u.json new file mode 100644 index 000000000000..b4423e09b511 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_r_l_nta_u.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "right", + "uplo": "lower", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "lda": 3, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 30.0, 36.0, 42.0, 46.0, 53.0, 60.0, 7.0, 8.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_r_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_r_l_ta_nu.json new file mode 100644 index 000000000000..7f2fc645c972 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_r_l_ta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "right", + "uplo": "lower", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "lda": 3, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 2.0, 3.0, 22.0, 29.0, 36.0, 90.0, 108.0, 126.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_r_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_r_l_ta_u.json new file mode 100644 index 000000000000..ba170a816151 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_r_l_ta_u.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "right", + "uplo": "lower", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "lda": 3, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 34.0, 44.0, 54.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_r_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_r_u_nta_nu.json new file mode 100644 index 000000000000..f68df0e23fe2 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_r_u_nta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "lda": 3, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 2.0, 3.0, 24.0, 33.0, 42.0, 102.0, 126.0, 150.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_r_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_r_u_nta_u.json new file mode 100644 index 000000000000..bcfee4fd0544 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_r_u_nta_u.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "lda": 3, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 2.0, 3.0, 8.0, 13.0, 18.0, 46.0, 62.0, 78.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_r_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_r_u_ta_nu.json new file mode 100644 index 000000000000..544007962b4a --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_r_u_ta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "right", + "uplo": "upper", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "lda": 3, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 66.0, 78.0, 90.0, 76.0, 89.0, 102.0, 63.0, 72.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_r_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_r_u_ta_u.json new file mode 100644 index 000000000000..a33b3eafdc9a --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_r_u_ta_u.json @@ -0,0 +1,25 @@ +{ + "order": "column-major", + "side": "right", + "uplo": "upper", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "lda": 3, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 66.0, 78.0, 90.0, 60.0, 69.0, 78.0, 7.0, 8.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_l_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_l_l_nta_nu.json new file mode 100644 index 000000000000..dbcd17ff8f36 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_l_l_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 2.0, 5.0, 0.0, 3.0, 6.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 12.0, 42.0, 4.0, 33.0, 96.0, 7.0, 54.0, 150.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_l_l_nta_nu_complex_access_pattern.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_l_l_nta_nu_complex_access_pattern.json new file mode 100644 index 000000000000..209b744c81ad --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_l_l_nta_nu_complex_access_pattern.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 999.0, 1.0, 999.0, 0.0, 999.0, 0.0, 999.0, 4.0, 999.0, 5.0, 999.0, 0.0, 999.0, 7.0, 999.0, 8.0, 999.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 6, + "strideA2": 2, + "offsetA": 1, + "B": [ 999.0, 1.0, 999.0, 4.0, 999.0, 7.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 2.0, 999.0, 5.0, 999.0, 8.0, 999.0, 3.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 6.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": 2, + "strideB2": 16, + "offsetB": 1, + "B_out": [ 1.0, 12.0, 38.0, 4.0, 33.0, 86.0, 7.0, 54.0, 134.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_l_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_l_l_nta_u.json new file mode 100644 index 000000000000..ee771dc81876 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_l_l_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 2.0, 5.0, 0.0, 3.0, 6.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 4.0, 18.0, 4.0, 13.0, 48.0, 7.0, 22.0, 78.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_l_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_l_l_ta_nu.json new file mode 100644 index 000000000000..64b2027d7235 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_l_l_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 2.0, 5.0, 0.0, 3.0, 6.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 3.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 14.0, 28.0, 27.0, 32.0, 61.0, 54.0, 50.0, 94.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_l_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_l_l_ta_u.json new file mode 100644 index 000000000000..7ae33c9f4c6c --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_l_l_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 2.0, 5.0, 0.0, 3.0, 6.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 14.0, 20.0, 3.0, 32.0, 41.0, 6.0, 50.0, 62.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_l_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_l_u_nta_nu.json new file mode 100644 index 000000000000..41373e49266a --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_l_u_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 4.0, 7.0, 0.0, 5.0, 8.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 30.0, 34.0, 27.0, 66.0, 73.0, 54.0, 102.0, 112.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_l_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_l_u_nta_u.json new file mode 100644 index 000000000000..d54525902f1b --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_l_u_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 4.0, 7.0, 0.0, 5.0, 8.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 30.0, 26.0, 3.0, 66.0, 53.0, 6.0, 102.0, 80.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_l_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_l_u_ta_nu.json new file mode 100644 index 000000000000..0796f6764fca --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_l_u_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 4.0, 7.0, 0.0, 5.0, 8.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 14.0, 50.0, 4.0, 41.0, 122.0, 7.0, 68.0, 194.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_l_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_l_u_ta_u.json new file mode 100644 index 000000000000..2166e1fc645d --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_l_u_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 4.0, 7.0, 0.0, 5.0, 8.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 6.0, 26.0, 4.0, 21.0, 74.0, 7.0, 36.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_r_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_r_l_nta_nu.json new file mode 100644 index 000000000000..bf2d9ffba9c5 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_r_l_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 2.0, 5.0, 0.0, 3.0, 6.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 30.0, 36.0, 42.0, 62.0, 73.0, 84.0, 63.0, 72.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_r_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_r_l_nta_u.json new file mode 100644 index 000000000000..c9573098c975 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_r_l_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 2.0, 5.0, 0.0, 3.0, 6.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 30.0, 36.0, 42.0, 46.0, 53.0, 60.0, 7.0, 8.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_r_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_r_l_ta_nu.json new file mode 100644 index 000000000000..be6f0a66fd15 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_r_l_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 2.0, 5.0, 0.0, 3.0, 6.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 22.0, 29.0, 36.0, 90.0, 108.0, 126.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_r_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_r_l_ta_u.json new file mode 100644 index 000000000000..429c0001ce58 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_r_l_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 2.0, 5.0, 0.0, 3.0, 6.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 34.0, 44.0, 54.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_r_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_r_u_nta_nu.json new file mode 100644 index 000000000000..22cabfb74476 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_r_u_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 4.0, 7.0, 0.0, 5.0, 8.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 24.0, 33.0, 42.0, 102.0, 126.0, 150.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_r_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_r_u_nta_u.json new file mode 100644 index 000000000000..0641461d3126 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_r_u_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 4.0, 7.0, 0.0, 5.0, 8.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 8.0, 13.0, 18.0, 46.0, 62.0, 78.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_r_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_r_u_ta_nu.json new file mode 100644 index 000000000000..93cfb9c69e5f --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_r_u_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 4.0, 7.0, 0.0, 5.0, 8.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 66.0, 78.0, 90.0, 76.0, 89.0, 102.0, 63.0, 72.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_r_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_r_u_ta_u.json new file mode 100644 index 000000000000..5542d74d7469 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_r_u_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 4.0, 7.0, 0.0, 5.0, 8.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 0.0, 5.0, 8.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] + ], + "strideB1": 1, + "strideB2": 3, + "offsetB": 0, + "B_out": [ 66.0, 78.0, 90.0, 60.0, 69.0, 78.0, 7.0, 8.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu.json new file mode 100644 index 000000000000..69a60b2676ed --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 24.0, 33.0, 42.0, 102.0, 126.0, 150.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_complex_access_pattern.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_complex_access_pattern.json new file mode 100644 index 000000000000..6ee193236a0b --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_complex_access_pattern.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 999.0, 1.0, 999.0, 0.0, 999.0, 0.0, 999.0, 4.0, 999.0, 5.0, 999.0, 0.0, 999.0, 7.0, 999.0, 8.0, 999.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 6, + "strideA2": 2, + "offsetA": 1, + "B": [ 999.0, 1.0, 999.0, 2.0, 999.0, 3.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 4.0, 999.0, 5.0, 999.0, 6.0, 999.0, 7.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.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": 16, + "strideB2": 2, + "offsetB": 1, + "B_out": [ 999.0, 1.0, 999.0, 2.0, 999.0, 3.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 24.0, 999.0, 33.0, 999.0, 42.0, 999.0, 102.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 126.0, 999.0, 150.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_oa.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_oa.json new file mode 100644 index 000000000000..b2b561d31d36 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_oa.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 0.0, 0.0, 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 2, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 24.0, 33.0, 42.0, 102.0, 126.0, 150.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_ob.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_ob.json new file mode 100644 index 000000000000..199cb451ef8f --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_ob.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 0.0, 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 2, + "B_out": [ 0.0, 0.0, 1.0, 2.0, 3.0, 24.0, 33.0, 42.0, 102.0, 126.0, 150.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sa1_sa2.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sa1_sa2.json new file mode 100644 index 000000000000..f727cbeddf77 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sa1_sa2.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 999.0, 0.0, 999.0, 0.0, 999.0, 4.0, 999.0, 5.0, 999.0, 0.0, 999.0, 7.0, 999.0, 8.0, 999.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 6, + "strideA2": 2, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 24.0, 33.0, 42.0, 102.0, 126.0, 150.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sa1_sa2n.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sa1_sa2n.json new file mode 100644 index 000000000000..f8f9407103e6 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sa1_sa2n.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": -3, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 24.0, 33.0, 42.0, 102.0, 126.0, 150.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2.json new file mode 100644 index 000000000000..09322b3e95e1 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": -3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 24.0, 33.0, 42.0, 102.0, 126.0, 150.0 ] + } diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2n.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2n.json new file mode 100644 index 000000000000..29374ffc2f04 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2n.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": -3, + "strideA2": -1, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 24.0, 33.0, 42.0, 102.0, 126.0, 150.0 ] + } diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sb1_sb2.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sb1_sb2.json new file mode 100644 index 000000000000..376335b8db03 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sb1_sb2.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 999.0, 2.0, 999.0, 3.0, 999.0, 4.0, 999.0, 5.0, 999.0, 6.0, 999.0, 7.0, 999.0, 8.0, 999.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 6, + "strideB2": 2, + "offsetB": 0, + "B_out": [ 1.0, 999.0, 2.0, 999.0, 3.0, 999.0, 24.0, 999.0, 33.0, 999.0, 42.0, 999.0, 102.0, 999.0, 126.0, 999.0, 150.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sb1_sb2n.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sb1_sb2n.json new file mode 100644 index 000000000000..46a3071534bc --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sb1_sb2n.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": -1, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 24.0, 33.0, 42.0, 102.0, 126.0, 150.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sb1n_sb2.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sb1n_sb2.json new file mode 100644 index 000000000000..415b235e70af --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sb1n_sb2.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": -3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 24.0, 33.0, 42.0, 102.0, 126.0, 150.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sb1n_sb2n.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sb1n_sb2n.json new file mode 100644 index 000000000000..fdb9658f7e42 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sb1n_sb2n.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": -3, + "strideB2": -1, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 24.0, 33.0, 42.0, 102.0, 126.0, 150.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_u.json new file mode 100644 index 000000000000..af9fe0652d0e --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 8.0, 13.0, 18.0, 46.0, 62.0, 78.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_ta_nu.json new file mode 100644 index 000000000000..6a1f529f33e3 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 66.0, 78.0, 90.0, 76.0, 89.0, 102.0, 63.0, 72.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_ta_u.json new file mode 100644 index 000000000000..dcc5c25fa6d2 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "lower", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 66.0, 78.0, 90.0, 60.0, 69.0, 78.0, 7.0, 8.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_u_nta_nu.json new file mode 100644 index 000000000000..201f5dcf3a79 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_u_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 0.0, 5.0, 6.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 30.0, 36.0, 42.0, 62.0, 73.0, 84.0, 63.0, 72.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_u_nta_u.json new file mode 100644 index 000000000000..34bbfa727599 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_u_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 0.0, 5.0, 6.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 30.0, 36.0, 42.0, 46.0, 53.0, 60.0, 7.0, 8.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_u_ta_nu.json new file mode 100644 index 000000000000..eea11b41a01c --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_u_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 0.0, 5.0, 6.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 22.0, 29.0, 36.0, 90.0, 108.0, 126.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_u_ta_u.json new file mode 100644 index 000000000000..0d887d86ee9d --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_u_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "left", + "uplo": "upper", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 0.0, 5.0, 6.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 34.0, 44.0, 54.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_l_nta_nu.json new file mode 100644 index 000000000000..c459e5eea6a1 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_l_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 30.0, 34.0, 27.0, 66.0, 73.0, 54.0, 102.0, 112.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_l_nta_u.json new file mode 100644 index 000000000000..f11c9e2edca7 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_l_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 30.0, 26.0, 3.0, 66.0, 53.0, 6.0, 102.0, 80.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_l_ta_nu.json new file mode 100644 index 000000000000..56595d2eabef --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_l_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 14.0, 50.0, 4.0, 41.0, 122.0, 7.0, 68.0, 194.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_l_ta_u.json new file mode 100644 index 000000000000..d51a379519e5 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_l_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "lower", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 6.0, 26.0, 4.0, 21.0, 74.0, 7.0, 36.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_u_nta_nu.json new file mode 100644 index 000000000000..41fc030f5e77 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_u_nta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 0.0, 5.0, 6.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 12.0, 38.0, 4.0, 33.0, 86.0, 7.0, 54.0, 134.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_u_nta_u.json new file mode 100644 index 000000000000..2b623b1572d8 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_u_nta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 0.0, 5.0, 6.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 4.0, 14.0, 4.0, 13.0, 38.0, 7.0, 22.0, 62.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_u_ta_nu.json new file mode 100644 index 000000000000..e81d863c0eaa --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_u_ta_nu.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 0.0, 5.0, 6.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 14.0, 22.0, 27.0, 32.0, 49.0, 54.0, 50.0, 76.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_u_ta_u.json new file mode 100644 index 000000000000..cf5e4ee18d61 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_u_ta_u.json @@ -0,0 +1,28 @@ +{ + "side": "right", + "uplo": "upper", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 0.0, 5.0, 6.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "strideA1": 3, + "strideA2": 1, + "offsetA": 0, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 14.0, 14.0, 3.0, 32.0, 29.0, 6.0, 50.0, 44.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_l_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_l_l_nta_nu.json new file mode 100644 index 000000000000..d16e0d9529b2 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_l_l_nta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "lda": 3, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 2.0, 3.0, 24.0, 33.0, 42.0, 102.0, 126.0, 150.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_l_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_l_l_nta_u.json new file mode 100644 index 000000000000..9de38c1c1f0b --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_l_l_nta_u.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "lda": 3, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 2.0, 3.0, 8.0, 13.0, 18.0, 46.0, 62.0, 78.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_l_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_l_l_ta_nu.json new file mode 100644 index 000000000000..5230f9a5d270 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_l_l_ta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "left", + "uplo": "lower", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "lda": 3, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 66.0, 78.0, 90.0, 76.0, 89.0, 102.0, 63.0, 72.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_l_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_l_l_ta_u.json new file mode 100644 index 000000000000..bca60d756199 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_l_l_ta_u.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "left", + "uplo": "lower", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "lda": 3, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 66.0, 78.0, 90.0, 60.0, 69.0, 78.0, 7.0, 8.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_l_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_l_u_nta_nu.json new file mode 100644 index 000000000000..084367a6c39f --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_l_u_nta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "left", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 0.0, 5.0, 6.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "lda": 3, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 30.0, 36.0, 42.0, 62.0, 73.0, 84.0, 63.0, 72.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_l_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_l_u_nta_u.json new file mode 100644 index 000000000000..fdb29297dbc4 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_l_u_nta_u.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "left", + "uplo": "upper", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 0.0, 5.0, 6.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "lda": 3, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 30.0, 36.0, 42.0, 46.0, 53.0, 60.0, 7.0, 8.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_l_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_l_u_ta_nu.json new file mode 100644 index 000000000000..6170388e64f8 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_l_u_ta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "left", + "uplo": "upper", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 0.0, 5.0, 6.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "lda": 3, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 2.0, 3.0, 22.0, 29.0, 36.0, 90.0, 108.0, 126.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_l_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_l_u_ta_u.json new file mode 100644 index 000000000000..8f193dfcd8eb --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_l_u_ta_u.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "left", + "uplo": "upper", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 0.0, 5.0, 6.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "lda": 3, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 34.0, 44.0, 54.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_l_nta_nu.json new file mode 100644 index 000000000000..7df1ab2f64a8 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_l_nta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "right", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "lda": 3, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 30.0, 34.0, 27.0, 66.0, 73.0, 54.0, 102.0, 112.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_l_nta_u.json new file mode 100644 index 000000000000..1a0e87261f07 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_l_nta_u.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "right", + "uplo": "lower", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "lda": 3, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 30.0, 26.0, 3.0, 66.0, 53.0, 6.0, 102.0, 80.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_l_ta_nu.json new file mode 100644 index 000000000000..5002cbf5d166 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_l_ta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "right", + "uplo": "lower", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "lda": 3, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 14.0, 50.0, 4.0, 41.0, 122.0, 7.0, 68.0, 194.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_l_ta_u.json new file mode 100644 index 000000000000..556c3da327d5 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_l_ta_u.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "right", + "uplo": "lower", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "lda": 3, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 6.0, 26.0, 4.0, 21.0, 74.0, 7.0, 36.0, 122.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_u_nta_nu.json new file mode 100644 index 000000000000..4f00c889e187 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_u_nta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 0.0, 5.0, 6.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "lda": 3, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 12.0, 38.0, 4.0, 33.0, 86.0, 7.0, 54.0, 134.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_u_nta_u.json new file mode 100644 index 000000000000..e92521693896 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_u_nta_u.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "right", + "uplo": "upper", + "transA": "no-transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 0.0, 5.0, 6.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "lda": 3, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 1.0, 4.0, 14.0, 4.0, 13.0, 38.0, 7.0, 22.0, 62.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_u_ta_nu.json new file mode 100644 index 000000000000..634c0382d407 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_u_ta_nu.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "right", + "uplo": "upper", + "transA": "transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 0.0, 5.0, 6.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "lda": 3, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 14.0, 22.0, 27.0, 32.0, 49.0, 54.0, 50.0, 76.0, 81.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_u_ta_u.json new file mode 100644 index 000000000000..572f38145c13 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_u_ta_u.json @@ -0,0 +1,25 @@ +{ + "order": "row-major", + "side": "right", + "uplo": "upper", + "transA": "transpose", + "diag": "unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], + "A_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 0.0, 5.0, 6.0 ], + [ 0.0, 0.0, 9.0 ] + ], + "lda": 3, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "ldb": 3, + "B_out": [ 14.0, 14.0, 3.0, 32.0, 29.0, 6.0, 50.0, 44.0, 9.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/test.js b/lib/node_modules/@stdlib/blas/base/strmm/test/test.js new file mode 100644 index 000000000000..fcef62b7765d --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/test.js @@ -0,0 +1,82 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var tape = require( 'tape' ); +var proxyquire = require( 'proxyquire' ); +var IS_BROWSER = require( '@stdlib/assert/is-browser' ); +var strmm = 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 strmm, '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 strmm.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 strmm = proxyquire( './../lib', { + '@stdlib/utils/try-require': tryRequire + }); + + t.strictEqual( strmm, 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 strmm; + var main; + + main = require( './../lib/strmm.js' ); + + strmm = proxyquire( './../lib', { + '@stdlib/utils/try-require': tryRequire + }); + + t.strictEqual( strmm, main, 'returns expected value' ); + t.end(); + + function tryRequire() { + return new Error( 'Cannot find module' ); + } +}); diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/test.ndarray.js b/lib/node_modules/@stdlib/blas/base/strmm/test/test.ndarray.js new file mode 100644 index 000000000000..b9c696322ba7 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/test.ndarray.js @@ -0,0 +1,1947 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +/* eslint-disable max-len */ + +'use strict'; + +// MODULES // + +var tape = require( 'tape' ); +var Float32Array = require( '@stdlib/array/float32' ); +var strmm = require( './../lib/ndarray.js' ); + + +// FIXTURES // + +var cacbllntanu = require( './fixtures/ca_cb_l_l_nta_nu.json' ); +var cacbllntau = require( './fixtures/ca_cb_l_l_nta_u.json' ); +var cacblltanu = require( './fixtures/ca_cb_l_l_ta_nu.json' ); +var cacblltau = require( './fixtures/ca_cb_l_l_ta_u.json' ); +var cacbluntanu = require( './fixtures/ca_cb_l_u_nta_nu.json' ); +var cacbluntau = require( './fixtures/ca_cb_l_u_nta_u.json' ); +var cacblutanu = require( './fixtures/ca_cb_l_u_ta_nu.json' ); +var cacblutau = require( './fixtures/ca_cb_l_u_ta_u.json' ); +var cacbrlntanu = require( './fixtures/ca_cb_r_l_nta_nu.json' ); +var cacbrlntau = require( './fixtures/ca_cb_r_l_nta_u.json' ); +var cacbrltanu = require( './fixtures/ca_cb_r_l_ta_nu.json' ); +var cacbrltau = require( './fixtures/ca_cb_r_l_ta_u.json' ); +var cacbruntanu = require( './fixtures/ca_cb_r_u_nta_nu.json' ); +var cacbruntau = require( './fixtures/ca_cb_r_u_nta_u.json' ); +var cacbrutanu = require( './fixtures/ca_cb_r_u_ta_nu.json' ); +var cacbrutau = require( './fixtures/ca_cb_r_u_ta_u.json' ); +var carbllntanu = require( './fixtures/ca_rb_l_l_nta_nu.json' ); +var carbllntau = require( './fixtures/ca_rb_l_l_nta_u.json' ); +var carblltanu = require( './fixtures/ca_rb_l_l_ta_nu.json' ); +var carblltau = require( './fixtures/ca_rb_l_l_ta_u.json' ); +var carbluntanu = require( './fixtures/ca_rb_l_u_nta_nu.json' ); +var carbluntau = require( './fixtures/ca_rb_l_u_nta_u.json' ); +var carblutanu = require( './fixtures/ca_rb_l_u_ta_nu.json' ); +var carblutau = require( './fixtures/ca_rb_l_u_ta_u.json' ); +var carbrlntanu = require( './fixtures/ca_rb_r_l_nta_nu.json' ); +var carbrlntau = require( './fixtures/ca_rb_r_l_nta_u.json' ); +var carbrltanu = require( './fixtures/ca_rb_r_l_ta_nu.json' ); +var carbrltau = require( './fixtures/ca_rb_r_l_ta_u.json' ); +var carbruntanu = require( './fixtures/ca_rb_r_u_nta_nu.json' ); +var carbruntau = require( './fixtures/ca_rb_r_u_nta_u.json' ); +var carbrutanu = require( './fixtures/ca_rb_r_u_ta_nu.json' ); +var carbrutau = require( './fixtures/ca_rb_r_u_ta_u.json' ); + +var racbllntanu = require( './fixtures/ra_cb_l_l_nta_nu.json' ); +var racbllntau = require( './fixtures/ra_cb_l_l_nta_u.json' ); +var racblltanu = require( './fixtures/ra_cb_l_l_ta_nu.json' ); +var racblltau = require( './fixtures/ra_cb_l_l_ta_u.json' ); +var racbluntanu = require( './fixtures/ra_cb_l_u_nta_nu.json' ); +var racbluntau = require( './fixtures/ra_cb_l_u_nta_u.json' ); +var racblutanu = require( './fixtures/ra_cb_l_u_ta_nu.json' ); +var racblutau = require( './fixtures/ra_cb_l_u_ta_u.json' ); +var racbrlntanu = require( './fixtures/ra_cb_r_l_nta_nu.json' ); +var racbrlntau = require( './fixtures/ra_cb_r_l_nta_u.json' ); +var racbrltanu = require( './fixtures/ra_cb_r_l_ta_nu.json' ); +var racbrltau = require( './fixtures/ra_cb_r_l_ta_u.json' ); +var racbruntanu = require( './fixtures/ra_cb_r_u_nta_nu.json' ); +var racbruntau = require( './fixtures/ra_cb_r_u_nta_u.json' ); +var racbrutanu = require( './fixtures/ra_cb_r_u_ta_nu.json' ); +var racbrutau = require( './fixtures/ra_cb_r_u_ta_u.json' ); +var rarbllntanu = require( './fixtures/ra_rb_l_l_nta_nu.json' ); +var rarbllntau = require( './fixtures/ra_rb_l_l_nta_u.json' ); +var rarblltanu = require( './fixtures/ra_rb_l_l_ta_nu.json' ); +var rarblltau = require( './fixtures/ra_rb_l_l_ta_u.json' ); +var rarbluntanu = require( './fixtures/ra_rb_l_u_nta_nu.json' ); +var rarbluntau = require( './fixtures/ra_rb_l_u_nta_u.json' ); +var rarblutanu = require( './fixtures/ra_rb_l_u_ta_nu.json' ); +var rarblutau = require( './fixtures/ra_rb_l_u_ta_u.json' ); +var rarbrlntanu = require( './fixtures/ra_rb_r_l_nta_nu.json' ); +var rarbrlntau = require( './fixtures/ra_rb_r_l_nta_u.json' ); +var rarbrltanu = require( './fixtures/ra_rb_r_l_ta_nu.json' ); +var rarbrltau = require( './fixtures/ra_rb_r_l_ta_u.json' ); +var rarbruntanu = require( './fixtures/ra_rb_r_u_nta_nu.json' ); +var rarbruntau = require( './fixtures/ra_rb_r_u_nta_u.json' ); +var rarbrutanu = require( './fixtures/ra_rb_r_u_ta_nu.json' ); +var rarbrutau = require( './fixtures/ra_rb_r_u_ta_u.json' ); + +var rarbllntanusa1sa2 = require( './fixtures/ra_rb_l_l_nta_nu_sa1_sa2.json' ); +var rarbllntanusa1nsa2 = require( './fixtures/ra_rb_l_l_nta_nu_sa1n_sa2.json' ); +var rarbllntanusa1sa2n = require( './fixtures/ra_rb_l_l_nta_nu_sa1_sa2n.json' ); +var rarbllntanusa1nsa2n = require( './fixtures/ra_rb_l_l_nta_nu_sa1n_sa2n.json' ); +var rarbllntanusb1sb2 = require( './fixtures/ra_rb_l_l_nta_nu_sb1_sb2.json' ); +var rarbllntanusb1nsb2 = require( './fixtures/ra_rb_l_l_nta_nu_sb1n_sb2.json' ); +var rarbllntanusb1sb2n = require( './fixtures/ra_rb_l_l_nta_nu_sb1_sb2n.json' ); +var rarbllntanusb1nsb2n = require( './fixtures/ra_rb_l_l_nta_nu_sb1n_sb2n.json' ); +var rarbllntanuoa = require( './fixtures/ra_rb_l_l_nta_nu_oa.json' ); +var rarbllntanuob = require( './fixtures/ra_rb_l_l_nta_nu_ob.json' ); +var rrcap = require( './fixtures/ra_rb_l_l_nta_nu_complex_access_pattern.json' ); +var rccap = require( './fixtures/ra_cb_l_l_nta_nu_complex_access_pattern.json' ); +var cccap = require( './fixtures/ca_cb_l_l_nta_nu_complex_access_pattern.json' ); +var crcap = require( './fixtures/ca_rb_l_l_nta_nu_complex_access_pattern.json' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof strmm, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function has an arity of 15', function test( t ) { + t.strictEqual( strmm.length, 15, 'returns expected value' ); + t.end(); +}); + +tape( 'the function throws an error if provided an invalid first argument', function test( t ) { + var values; + var data; + var i; + + data = racbllntanu; + + values = [ + 'foo', + 'bar', + 'beep', + 'boop' + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + strmm( value, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, new Float32Array( data.A ), data.strideA1, data.strideA2, data.offsetA, new Float32Array( data.B ), data.strideB1, data.strideB2, data.offsetB ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid second argument', function test( t ) { + var values; + var data; + var i; + + data = racbllntanu; + + values = [ + 'foo', + 'bar', + 'beep', + 'boop' + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + strmm( data.side, value, data.transA, data.diag, data.M, data.N, data.alpha, new Float32Array( data.A ), data.strideA1, data.strideA2, data.offsetA, new Float32Array( data.B ), data.strideB1, data.strideB2, data.offsetB ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid third argument', function test( t ) { + var values; + var data; + var i; + + data = racbllntanu; + + values = [ + 'foo', + 'bar', + 'beep', + 'boop' + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + strmm( data.side, data.uplo, value, data.diag, data.M, data.N, data.alpha, new Float32Array( data.A ), data.strideA1, data.strideA2, data.offsetA, new Float32Array( data.B ), data.strideB1, data.strideB2, data.offsetB ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid fourth argument', function test( t ) { + var values; + var data; + var i; + + data = racbllntanu; + + values = [ + 'foo', + 'bar', + 'beep', + 'boop' + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + strmm( data.side, data.uplo, data.transA, value, data.M, data.N, data.alpha, new Float32Array( data.A ), data.strideA1, data.strideA2, data.offsetA, new Float32Array( data.B ), data.strideB1, data.strideB2, data.offsetB ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid fifth argument', function test( t ) { + var values; + var data; + var i; + + data = racbllntanu; + + values = [ + -1, + -2, + -3 + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + strmm( data.side, data.uplo, data.transA, data.diag, value, data.N, data.alpha, new Float32Array( data.A ), data.strideA1, data.strideA2, data.offsetA, new Float32Array( data.B ), data.strideB1, data.strideB2, data.offsetB ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid sixth argument', function test( t ) { + var values; + var data; + var i; + + data = racbllntanu; + + values = [ + -1, + -2, + -3 + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + strmm( data.side, data.uplo, data.transA, data.diag, data.M, value, data.alpha, new Float32Array( data.A ), data.strideA1, data.strideA2, data.offsetA, new Float32Array( data.B ), data.strideB1, data.strideB2, data.offsetB ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid thirteenth argument', function test( t ) { + var values; + var data; + var i; + + data = racbllntanu; + + values = [ + 0 + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, new Float32Array( data.A ), data.strideA1, data.strideA2, data.offsetA, new Float32Array( data.B ), value, data.strideB2, data.offsetB ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid fourteenth argument', function test( t ) { + var values; + var data; + var i; + + data = racbllntanu; + + values = [ + 0 + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, new Float32Array( data.A ), data.strideA1, data.strideA2, data.offsetA, new Float32Array( data.B ), data.strideB1, value, data.offsetB ); + }; + } +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, column-major, left, lower, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racbllntanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, column-major, left, lower, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cacbllntanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, column-major, left, lower, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racbllntau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, column-major, left, lower, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cacbllntau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, column-major, left, lower, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racblltanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, column-major, left, lower, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cacblltanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, column-major, left, lower, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racblltau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, column-major, left, lower, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cacblltau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, column-major, left, upper, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racbluntanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, column-major, left, upper, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cacbluntanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, column-major, left, upper, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racbluntau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, column-major, left, upper, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cacbluntau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, column-major, left, upper, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racblutanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, column-major, left, upper, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cacblutanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, column-major, left, upper, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racblutau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, column-major, left, upper, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cacblutau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, column-major, right, lower, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racbrlntanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, column-major, right, lower, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cacbrlntanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, column-major, right, lower, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racbrlntau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, column-major, right, lower, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cacbrlntau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, column-major, right, lower, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racbrltanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, column-major, right, lower, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cacbrltanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, column-major, right, lower, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racbrltau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, column-major, right, lower, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cacbrltau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, column-major, right, upper, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racbruntanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, column-major, right, upper, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cacbruntanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, column-major, right, upper, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racbruntau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, column-major, right, upper, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cacbruntau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, column-major, right, upper, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racbrutanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, column-major, right, upper, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cacbrutanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, column-major, right, upper, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racbrutau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, column-major, right, upper, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cacbrutau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, row-major, left, lower, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbllntanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, row-major, left, lower, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = carbllntanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, row-major, left, lower, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbllntau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, row-major, left, lower, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = carbllntau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, row-major, left, lower, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarblltanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, row-major, left, lower, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = carblltanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, row-major, left, lower, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarblltau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, row-major, left, lower, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = carblltau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, row-major, left, upper, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbluntanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, row-major, left, upper, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = carbluntanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, row-major, left, upper, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbluntau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, row-major, left, upper, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = carbluntau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, row-major, left, upper, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarblutanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, row-major, left, upper, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = carblutanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, row-major, left, upper, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarblutau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, row-major, left, upper, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = carblutau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, row-major, right, lower, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbrlntanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, row-major, right, lower, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = carbrlntanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, row-major, right, lower, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbrlntau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, row-major, right, lower, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = carbrlntau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, row-major, right, lower, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbrltanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, row-major, right, lower, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = carbrltanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, row-major, right, lower, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbrltau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, row-major, right, lower, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = carbrltau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, row-major, right, upper, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbruntanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, row-major, right, upper, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = carbruntanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, row-major, right, upper, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbruntau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, row-major, right, upper, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = carbruntau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, row-major, right, upper, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbrutanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, row-major, right, upper, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = carbrutanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, row-major, right, upper, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbrutau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, row-major, right, upper, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = carbrutau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns a reference to the second input matrix', function test( t ) { + var data; + var out; + var a; + var b; + + data = racbllntanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.end(); +}); + +tape( 'if either `M` or `N` is `0`, the function returns the second input matrix unchanged', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racbllntanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, 0, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, 0, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'if `α` is `0`, the function returns the second input matrix filled with zeros', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = racbllntanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( b.length ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, 0.0, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports specifying the strides of the first and second dimensions of `A`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbllntanusa1sa2; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports a negative stride for the first dimension of `A`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbllntanusa1nsa2; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports a negative stride for the second dimension of `A`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbllntanusa1sa2n; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports a negative strides of `A`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbllntanusa1nsa2n; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports specifying an offset parameter for `A`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbllntanuoa; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports specifying the strides of the first and second dimensions of `B`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbllntanusb1sb2; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports a negative stride for the first dimension of `B`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbllntanusb1nsb2; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports a negative stride for the second dimension of `B`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbllntanusb1sb2n; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports a negative strides of `B`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbllntanusb1nsb2n; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports specifying an offset parameter for `B`', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rarbllntanuob; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports complex access patterns (row-major, row-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rrcap; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports complex access patterns (row-major, column-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rccap; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports complex access patterns (column-major, row-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = crcap; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports complex access patterns (column-major, column-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cccap; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.strideA1, data.strideA2, data.offsetA, b, data.strideB1, data.strideB2, data.offsetB ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/test.strmm.js b/lib/node_modules/@stdlib/blas/base/strmm/test/test.strmm.js new file mode 100644 index 000000000000..78430ad319c4 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/test.strmm.js @@ -0,0 +1,1076 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +/* eslint-disable max-len */ + +'use strict'; + +// MODULES // + +var tape = require( 'tape' ); +var Float32Array = require( '@stdlib/array/float32' ); +var strmm = require( './../lib/strmm.js' ); + + +// FIXTURES // + +var cllntanu = require( './fixtures/column_major_l_l_nta_nu.json' ); +var cllntau = require( './fixtures/column_major_l_l_nta_u.json' ); +var clltanu = require( './fixtures/column_major_l_l_ta_nu.json' ); +var clltau = require( './fixtures/column_major_l_l_ta_u.json' ); +var cluntanu = require( './fixtures/column_major_l_u_nta_nu.json' ); +var cluntau = require( './fixtures/column_major_l_u_nta_u.json' ); +var clutanu = require( './fixtures/column_major_l_u_ta_nu.json' ); +var clutau = require( './fixtures/column_major_l_u_ta_u.json' ); +var crlntanu = require( './fixtures/column_major_r_l_nta_nu.json' ); +var crlntau = require( './fixtures/column_major_r_l_nta_u.json' ); +var crltanu = require( './fixtures/column_major_r_l_ta_nu.json' ); +var crltau = require( './fixtures/column_major_r_l_ta_u.json' ); +var cruntanu = require( './fixtures/column_major_r_u_nta_nu.json' ); +var cruntau = require( './fixtures/column_major_r_u_nta_u.json' ); +var crutanu = require( './fixtures/column_major_r_u_ta_nu.json' ); +var crutau = require( './fixtures/column_major_r_u_ta_u.json' ); + +var rllntanu = require( './fixtures/row_major_l_l_nta_nu.json' ); +var rllntau = require( './fixtures/row_major_l_l_nta_u.json' ); +var rlltanu = require( './fixtures/row_major_l_l_ta_nu.json' ); +var rlltau = require( './fixtures/row_major_l_l_ta_u.json' ); +var rluntanu = require( './fixtures/row_major_l_u_nta_nu.json' ); +var rluntau = require( './fixtures/row_major_l_u_nta_u.json' ); +var rlutanu = require( './fixtures/row_major_l_u_ta_nu.json' ); +var rlutau = require( './fixtures/row_major_l_u_ta_u.json' ); +var rrlntanu = require( './fixtures/row_major_r_l_nta_nu.json' ); +var rrlntau = require( './fixtures/row_major_r_l_nta_u.json' ); +var rrltanu = require( './fixtures/row_major_r_l_ta_nu.json' ); +var rrltau = require( './fixtures/row_major_r_l_ta_u.json' ); +var rruntanu = require( './fixtures/row_major_r_u_nta_nu.json' ); +var rruntau = require( './fixtures/row_major_r_u_nta_u.json' ); +var rrutanu = require( './fixtures/row_major_r_u_ta_nu.json' ); +var rrutau = require( './fixtures/row_major_r_u_ta_u.json' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof strmm, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function has an arity of 12', function test( t ) { + t.strictEqual( strmm.length, 12, 'returns expected value' ); + t.end(); +}); + +tape( 'the function throws an error if provided an invalid first argument', function test( t ) { + var values; + var data; + var i; + + data = rllntanu; + + values = [ + 'foo', + 'bar', + 'beep', + 'boop' + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + strmm( value, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, new Float32Array( data.A ), data.lda, new Float32Array( data.B ), data.ldb ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid second argument', function test( t ) { + var values; + var data; + var i; + + data = rllntanu; + + values = [ + 'foo', + 'bar', + 'beep', + 'boop' + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + strmm( data.order, value, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, new Float32Array( data.A ), data.lda, new Float32Array( data.B ), data.ldb ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid third argument', function test( t ) { + var values; + var data; + var i; + + data = rllntanu; + + values = [ + 'foo', + 'bar', + 'beep', + 'boop' + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + strmm( data.order, data.side, value, data.transA, data.diag, data.M, data.N, data.alpha, new Float32Array( data.A ), data.lda, new Float32Array( data.B ), data.ldb ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid fourth argument', function test( t ) { + var values; + var data; + var i; + + data = rllntanu; + + values = [ + 'foo', + 'bar', + 'beep', + 'boop' + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + strmm( data.order, data.side, data.uplo, value, data.diag, data.M, data.N, data.alpha, new Float32Array( data.A ), data.lda, new Float32Array( data.B ), data.ldb ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid fifth argument', function test( t ) { + var values; + var data; + var i; + + data = rllntanu; + + values = [ + 'foo', + 'bar', + 'beep', + 'boop' + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + strmm( data.order, data.side, data.uplo, data.transA, value, data.M, data.N, data.alpha, new Float32Array( data.A ), data.lda, new Float32Array( data.B ), data.ldb ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid sixth argument', function test( t ) { + var values; + var data; + var i; + + data = rllntanu; + + values = [ + -1, + -2, + -3 + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + strmm( data.order, data.side, data.uplo, data.transA, data.diag, value, data.N, data.alpha, new Float32Array( data.A ), data.lda, new Float32Array( data.B ), data.ldb ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid seventh argument', function test( t ) { + var values; + var data; + var i; + + data = rllntanu; + + values = [ + -1, + -2, + -3 + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + strmm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, value, data.alpha, new Float32Array( data.A ), data.lda, new Float32Array( data.B ), data.ldb ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid tenth argument', function test( t ) { + var values; + var data; + var i; + + data = rllntanu; + + values = [ + 1, + 0, + -1, + -2, + -3 + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + strmm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, new Float32Array( data.A ), value, new Float32Array( data.B ), data.ldb ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid twelfth argument', function test( t ) { + var values; + var data; + var i; + + data = rllntanu; + + values = [ + 1, + 0, + -1, + -2, + -3 + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + strmm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, new Float32Array( data.A ), data.lda, new Float32Array( data.B ), value ); + }; + } +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, left, lower, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rllntanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, left, lower, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cllntanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, left, lower, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rllntau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, left, lower, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cllntau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, left, lower, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rlltanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, left, lower, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = clltanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, left, lower, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rlltau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, left, lower, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = clltau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, left, upper, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rluntanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, left, upper, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cluntanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, left, upper, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rluntau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, left, upper, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cluntau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, left, upper, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rlutanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, left, upper, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = clutanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (row-major, left, upper, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rlutau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `op(A) * X = alpha * B` (column-major, left, upper, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = clutau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (row-major, right, lower, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rrlntanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (column-major, right, lower, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = crlntanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (row-major, right, lower, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rrlntau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (column-major, right, lower, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = crlntau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (row-major, right, lower, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rrltanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (column-major, right, lower, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = crltanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (row-major, right, lower, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rrltau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (column-major, right, lower, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = crltau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (row-major, right, upper, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rruntanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (column-major, right, upper, no-transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cruntanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (row-major, right, upper, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rruntau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (column-major, right, upper, no-transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = cruntau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (row-major, right, upper, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rrutanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (column-major, right, upper, transpose, non-unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = crutanu; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (row-major, right, upper, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rrutau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function performs the matrix-matrix operation `X * op(A) = alpha * B` (column-major, right, upper, transpose, unit)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = crutau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B_out ); + + out = strmm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns a reference to the second input matrix (row-major)', function test( t ) { + var data; + var out; + var a; + var b; + + data = rlltau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + out = strmm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns a reference to the second input matrix (column-major)', function test( t ) { + var data; + var out; + var a; + var b; + + data = clltau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + out = strmm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.end(); +}); + +tape( 'if either `M` or `N` is `0`, the function returns the second input matrix unchanged (row-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rlltau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B ); + + out = strmm( data.order, data.side, data.uplo, data.transA, data.diag, 0, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + out = strmm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, 0, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'if either `M` or `N` is `0`, the function returns the second input matrix unchanged (column-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = clltau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( data.B ); + + out = strmm( data.order, data.side, data.uplo, data.transA, data.diag, 0, data.N, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + out = strmm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, 0, data.alpha, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'if `α` is `0`, the function returns the second input matrix filled with zeros (row-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = rlltau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( b.length ); + + out = strmm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, 0.0, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'if `α` is `0`, the function returns the second input matrix filled with zeros (column-major)', function test( t ) { + var expected; + var data; + var out; + var a; + var b; + + data = clltau; + + a = new Float32Array( data.A ); + b = new Float32Array( data.B ); + + expected = new Float32Array( b.length ); + + out = strmm( data.order, data.side, data.uplo, data.transA, data.diag, data.M, data.N, 0.0, a, data.lda, b, data.ldb ); + t.strictEqual( out, b, 'returns expected value' ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); From 8298e70b275bdb3d5b7b9df62fb5d09f4db6f6d2 Mon Sep 17 00:00:00 2001 From: ShabiShett07 Date: Sat, 14 Jun 2025 11:24:23 +0530 Subject: [PATCH 02/12] chore: update implementation --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../@stdlib/blas/base/strmm/lib/base.js | 374 +++++++++--------- ..._cb_l_l_nta_nu_complex_access_pattern.json | 8 +- .../strmm/test/fixtures/ca_rb_l_l_nta_nu.json | 2 +- ..._rb_l_l_nta_nu_complex_access_pattern.json | 8 +- .../strmm/test/fixtures/ca_rb_l_l_nta_u.json | 2 +- .../strmm/test/fixtures/ca_rb_l_l_ta_nu.json | 2 +- .../strmm/test/fixtures/ca_rb_l_l_ta_u.json | 2 +- .../strmm/test/fixtures/ca_rb_l_u_nta_nu.json | 2 +- .../strmm/test/fixtures/ca_rb_l_u_nta_u.json | 2 +- .../strmm/test/fixtures/ca_rb_l_u_ta_nu.json | 2 +- .../strmm/test/fixtures/ca_rb_l_u_ta_u.json | 2 +- .../strmm/test/fixtures/ca_rb_r_l_nta_nu.json | 2 +- .../strmm/test/fixtures/ca_rb_r_l_nta_u.json | 2 +- .../strmm/test/fixtures/ca_rb_r_l_ta_nu.json | 2 +- .../strmm/test/fixtures/ca_rb_r_l_ta_u.json | 2 +- .../strmm/test/fixtures/ca_rb_r_u_nta_nu.json | 2 +- .../strmm/test/fixtures/ca_rb_r_u_nta_u.json | 2 +- .../strmm/test/fixtures/ca_rb_r_u_ta_nu.json | 2 +- .../strmm/test/fixtures/ca_rb_r_u_ta_u.json | 2 +- .../fixtures/column_major_l_u_nta_nu.json | 0 ..._cb_l_l_nta_nu_complex_access_pattern.json | 20 +- ..._rb_l_l_nta_nu_complex_access_pattern.json | 8 +- .../fixtures/ra_rb_l_l_nta_nu_sa1_sa2n.json | 8 +- .../fixtures/ra_rb_l_l_nta_nu_sa1n_sa2.json | 54 +-- .../fixtures/ra_rb_l_l_nta_nu_sa1n_sa2n.json | 4 +- .../fixtures/ra_rb_l_l_nta_nu_sb1_sb2n.json | 8 +- .../fixtures/ra_rb_l_l_nta_nu_sb1n_sb2.json | 8 +- .../fixtures/ra_rb_l_l_nta_nu_sb1n_sb2n.json | 6 +- .../strmm/test/fixtures/ra_rb_l_l_nta_u.json | 2 +- .../strmm/test/fixtures/ra_rb_l_l_ta_u.json | 2 +- .../strmm/test/fixtures/ra_rb_r_u_nta_nu.json | 2 +- .../strmm/test/fixtures/ra_rb_r_u_nta_u.json | 2 +- .../strmm/test/fixtures/ra_rb_r_u_ta_nu.json | 2 +- .../strmm/test/fixtures/ra_rb_r_u_ta_u.json | 2 +- .../test/fixtures/row_major_l_l_nta_u.json | 2 +- .../test/fixtures/row_major_l_l_ta_u.json | 2 +- .../test/fixtures/row_major_r_u_nta_nu.json | 2 +- .../test/fixtures/row_major_r_u_nta_u.json | 2 +- .../test/fixtures/row_major_r_u_ta_nu.json | 2 +- .../test/fixtures/row_major_r_u_ta_u.json | 2 +- .../blas/base/strmm/test/test.ndarray.js | 4 +- 41 files changed, 283 insertions(+), 283 deletions(-) rename "lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_l_u_nta_nu.json\\" => lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_l_u_nta_nu.json (100%) diff --git a/lib/node_modules/@stdlib/blas/base/strmm/lib/base.js b/lib/node_modules/@stdlib/blas/base/strmm/lib/base.js index 50242a7ad03c..44cc6a3261a0 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/lib/base.js +++ b/lib/node_modules/@stdlib/blas/base/strmm/lib/base.js @@ -125,112 +125,112 @@ function zeros( M, N, X, strideX1, strideX2, offsetX ) { // TODO: consider movin */ function strmm( side, uplo, transa, diag, M, N, alpha, A, strideA1, strideA2, offsetA, B, strideB1, strideB2, offsetB ) { // eslint-disable-line max-params var nonunit; - var isrma; - var tmp; - var oa2; - var ob2; - var sa0; - var sa1; - var sb0; - var sb1; - var ob; - var i; - var j; - var k; + var isrma; + var tmp; + var oa2; + var ob2; + var sa0; + var sa1; + var sb0; + var sb1; + var ob; + var i; + var j; + var k; - isrma = isRowMajor( [ strideA1, strideA2 ] ); - nonunit = ( diag === 'non-unit' ); + isrma = isRowMajor( [ strideA1, strideA2 ] ); + nonunit = ( diag === 'non-unit' ); - if ( M === 0 || N === 0 ) { - return B; - } - if ( isrma ) { - sa0 = strideA2; - sa1 = strideA1; - sb0 = strideB2; - sb1 = strideB1; - } else { - sa0 = strideA1; - sa1 = strideA2; - sb0 = strideB1; - sb1 = strideB2; - } - if ( alpha === 0.0 ) { - zeros( M, N, B, sb0, sb1, offsetB ); - return B; - } - if ( - ( isrma && side === 'left' && uplo === 'upper' && transa === 'no-transpose' ) || - ( !isrma && side === 'right' && uplo === 'lower' && transa === 'no-transpose' ) - ) { - for ( j = 0; j < N; j++ ) { - for ( k = 0; k < M; k++ ) { - ob2 = offsetB + ( k * sb1 ) + ( j * sb0 ); - tmp = alpha * B[ ob2 ]; - for ( i = 0; i < k; i++ ) { - oa2 = offsetA + ( i * sa1 ) + ( k * sa0 ); - ob = offsetB + ( i * sb1 ) + ( j * sb0 ); - B[ ob ] = f32( B[ ob ] + tmp * A[ oa2 ] ); - } - if ( nonunit ) { - oa2 = offsetA + ( k * sa1 ) + ( k * sa0 ); - tmp = f32( tmp * A[ oa2 ] ); - } - B[ ob2 ] = tmp; - } - } - return B; - } - if ( - ( isrma && side === 'left' && uplo === 'lower' && transa === 'no-transpose' ) || - ( !isrma && side === 'right' && uplo === 'upper' && transa === 'no-transpose' ) - ) { - for ( j = 0; j < N; j++ ) { - for ( k = M - 1; k >= 0; k-- ) { - ob2 = offsetB + ( k * sb1 ) + ( j * sb0 ); - tmp = alpha * B[ ob2 ]; - for ( i = k + 1; i < M; i++ ) { - oa2 = offsetA + ( i * sa1 ) + ( k * sa0 ); - ob = offsetB + ( i * sb1 ) + ( j * sb0 ); - B[ ob ] = f32( B[ ob ] + tmp * A[ oa2 ] ); - } - if ( nonunit ) { - oa2 = offsetA + ( k * sa1 ) + ( k * sa0 ); - tmp = f32( tmp * A[ oa2 ] ); - } - B[ ob2 ] = tmp; - } - } - return B; - } - if ( - ( isrma && side === 'left' && uplo === 'upper' && transa !== 'no-transpose' ) || - ( !isrma && side === 'right' && uplo === 'lower' && transa !== 'no-transpose' ) - ) { - for ( j = 0; j < N; j++ ) { - for ( i = M - 1; i >= 0; i-- ) { - ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); - tmp = 0.0; + if ( M === 0 || N === 0 ) { + return B; + } + if ( isrma ) { + sa0 = strideA2; + sa1 = strideA1; + sb0 = strideB2; + sb1 = strideB1; + } else { + sa0 = strideA1; + sa1 = strideA2; + sb0 = strideB1; + sb1 = strideB2; + } + if ( alpha === 0.0 ) { + zeros( M, N, B, sb0, sb1, offsetB ); + return B; + } + if ( + ( isrma && side === 'left' && uplo === 'upper' && transa === 'no-transpose' ) || + ( !isrma && side === 'right' && uplo === 'lower' && transa === 'no-transpose' ) + ) { + for ( j = 0; j < N; j++ ) { + for ( k = 0; k < M; k++ ) { + ob2 = offsetB + ( k * sb1 ) + ( j * sb0 ); + tmp = alpha * B[ ob2 ]; + for ( i = 0; i < k; i++ ) { + oa2 = offsetA + ( i * sa1 ) + ( k * sa0 ); + ob = offsetB + ( i * sb1 ) + ( j * sb0 ); + B[ ob ] = f32( B[ ob ] + ( tmp * A[ oa2 ] ) ); + } + if ( nonunit ) { + oa2 = offsetA + ( k * sa1 ) + ( k * sa0 ); + tmp = f32( tmp * A[ oa2 ] ); + } + B[ ob2 ] = tmp; + } + } + return B; + } + if ( + ( isrma && side === 'left' && uplo === 'lower' && transa === 'no-transpose' ) || + ( !isrma && side === 'right' && uplo === 'upper' && transa === 'no-transpose' ) + ) { + for ( j = 0; j < N; j++ ) { + for ( k = M - 1; k >= 0; k-- ) { + ob2 = offsetB + ( k * sb1 ) + ( j * sb0 ); + tmp = alpha * B[ ob2 ]; + for ( i = k + 1; i < M; i++ ) { + oa2 = offsetA + ( i * sa1 ) + ( k * sa0 ); + ob = offsetB + ( i * sb1 ) + ( j * sb0 ); + B[ ob ] = f32( B[ ob ] + ( tmp * A[ oa2 ] ) ); + } + if ( nonunit ) { + oa2 = offsetA + ( k * sa1 ) + ( k * sa0 ); + tmp = f32( tmp * A[ oa2 ] ); + } + B[ ob2 ] = tmp; + } + } + return B; + } + if ( + ( isrma && side === 'left' && uplo === 'upper' && transa !== 'no-transpose' ) || + ( !isrma && side === 'right' && uplo === 'lower' && transa !== 'no-transpose' ) + ) { + for ( j = 0; j < N; j++ ) { + for ( i = M - 1; i >= 0; i-- ) { + ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); + tmp = 0.0; for ( k = 0; k < i; k++ ) { - oa2 = offsetA + ( k * sa1 ) + ( i * sa0 ); - tmp += f32( A[ oa2 ] * B[ offsetB + ( k * sb1 ) + ( j * sb0 ) ] ); - } - if ( nonunit ) { - oa2 = offsetA + ( i * sa1 ) + ( i * sa0 ); - tmp = f32( tmp + A[ oa2 ] * B[ ob2 ] ); - } else { - tmp = f32( tmp + B[ ob2 ] ); - } - B[ ob2 ] = f32( alpha * tmp ); - } - } - return B; - } - if ( - ( isrma && side === 'left' && uplo === 'lower' && transa !== 'no-transpose' ) || - ( !isrma && side === 'right' && uplo === 'upper' && transa === 'transpose' ) - ) { - for ( j = 0; j < N; j++ ) { + oa2 = offsetA + ( k * sa1 ) + ( i * sa0 ); + tmp += f32( A[ oa2 ] * B[ offsetB + ( k * sb1 ) + ( j * sb0 ) ] ); + } + if ( nonunit ) { + oa2 = offsetA + ( i * sa1 ) + ( i * sa0 ); + tmp = f32( tmp + ( A[ oa2 ] * B[ ob2 ] ) ); + } else { + tmp = f32( tmp + B[ ob2 ] ); + } + B[ ob2 ] = f32( alpha * tmp ); + } + } + return B; + } + if ( + ( isrma && side === 'left' && uplo === 'lower' && transa !== 'no-transpose' ) || + ( !isrma && side === 'right' && uplo === 'upper' && transa === 'transpose' ) + ) { + for ( j = 0; j < N; j++ ) { for ( i = 0; i < M; i++ ) { ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); tmp = 0.0; @@ -240,7 +240,7 @@ function strmm( side, uplo, transa, diag, M, N, alpha, A, strideA1, strideA2, of } if ( nonunit ) { oa2 = offsetA + ( i * sa1 ) + ( i * sa0 ); - tmp = f32( tmp + A[ oa2 ] * B[ ob2 ] ); + tmp = f32( tmp + ( A[ oa2 ] * B[ ob2 ] ) ); } else { tmp = f32( tmp + B[ ob2 ] ); } @@ -248,77 +248,77 @@ function strmm( side, uplo, transa, diag, M, N, alpha, A, strideA1, strideA2, of } } return B; - } - if ( - ( isrma && side === 'right' && uplo === 'upper' && transa === 'no-transpose' ) || - ( !isrma && side === 'left' && uplo === 'lower' && transa === 'no-transpose' ) - ) { - for ( j = N - 1; j >= 0; j-- ) { - if ( nonunit ) { - oa2 = offsetA + ( j * sa1 ) + ( j * sa0 ); - tmp = f32( alpha * A[ oa2 ] ); - for ( i = 0; i < M; i++ ) { - ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); - B[ ob2 ] = f32( B[ ob2 ] * tmp ); - } - } else if ( alpha !== 1.0 ) { - for ( i = 0; i < M; i++ ) { - ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); - B[ ob2 ] = f32( B[ ob2 ] * alpha ); - } - } - for ( k = 0; k < j; k++ ) { - oa2 = offsetA + ( k * sa1 ) + ( j * sa0 ); - if ( A[ oa2 ] !== 0.0 ) { - tmp = f32( alpha * A[ oa2 ] ); - for ( i = 0; i < M; i++ ) { - ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); - B[ ob2 ] = f32( B[ ob2 ] + tmp * B[ offsetB + ( i * sb1 ) + ( k * sb0 ) ] ); - } - } - } - } - return B; - } - if ( - ( isrma && side === 'right' && uplo === 'lower' && transa === 'no-transpose' ) || - ( !isrma && side === 'left' && uplo === 'upper' && transa === 'no-transpose' ) - ) { - for ( j = 0; j < N; j++ ) { - if ( nonunit ) { - oa2 = offsetA + ( j * sa1 ) + ( j * sa0 ); - tmp = f32( alpha * A[ oa2 ] ); - for ( i = 0; i < M; i++ ) { - ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); - B[ ob2 ] = f32( B[ ob2 ] * tmp ); - } - } else if ( alpha !== 1.0 ) { - for ( i = 0; i < M; i++ ) { - ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); - B[ ob2 ] = f32( B[ ob2 ] * alpha ); - } - } - for ( k = j + 1; k < N; k++ ) { - oa2 = offsetA + ( k * sa1 ) + ( j * sa0 ); - if ( A[ oa2 ] !== 0.0 ) { - tmp = f32( alpha * A[ oa2 ] ); - for ( i = 0; i < M; i++ ) { - ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); - B[ ob2 ] = f32( B[ ob2 ] + tmp * B[ offsetB + ( i * sb1 ) + ( k * sb0 ) ] ); - } - } - } - } - return B; - } - if ( - ( isrma && side === 'right' && uplo === 'upper' && transa !== 'no-transpose' ) || - ( !isrma && side === 'left' && uplo === 'lower' && transa !== 'no-transpose' ) - ) { - for ( j = 0; j < N; j++ ) { - oa2 = offsetA + ( j * sa1 ) + ( j * sa0 ); + } + if ( + ( isrma && side === 'right' && uplo === 'upper' && transa === 'no-transpose' ) || + ( !isrma && side === 'left' && uplo === 'lower' && transa === 'no-transpose' ) + ) { + for ( j = N - 1; j >= 0; j-- ) { + if ( nonunit ) { + oa2 = offsetA + ( j * sa1 ) + ( j * sa0 ); + tmp = f32( alpha * A[ oa2 ] ); + for ( i = 0; i < M; i++ ) { + ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); + B[ ob2 ] = f32( B[ ob2 ] * tmp ); + } + } else if ( alpha !== 1.0 ) { + for ( i = 0; i < M; i++ ) { + ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); + B[ ob2 ] = f32( B[ ob2 ] * alpha ); + } + } + for ( k = 0; k < j; k++ ) { + oa2 = offsetA + ( k * sa1 ) + ( j * sa0 ); + if ( A[ oa2 ] !== 0.0 ) { + tmp = f32( alpha * A[ oa2 ] ); + for ( i = 0; i < M; i++ ) { + ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); + B[ ob2 ] = f32( B[ ob2 ] + ( tmp * B[ offsetB + ( i * sb1 ) + ( k * sb0 ) ] ) ); + } + } + } + } + return B; + } + if ( + ( isrma && side === 'right' && uplo === 'lower' && transa === 'no-transpose' ) || + ( !isrma && side === 'left' && uplo === 'upper' && transa === 'no-transpose' ) + ) { + for ( j = 0; j < N; j++ ) { + if ( nonunit ) { + oa2 = offsetA + ( j * sa1 ) + ( j * sa0 ); + tmp = f32( alpha * A[ oa2 ] ); + for ( i = 0; i < M; i++ ) { + ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); + B[ ob2 ] = f32( B[ ob2 ] * tmp ); + } + } else if ( alpha !== 1.0 ) { + for ( i = 0; i < M; i++ ) { + ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); + B[ ob2 ] = f32( B[ ob2 ] * alpha ); + } + } + for ( k = j + 1; k < N; k++ ) { + oa2 = offsetA + ( k * sa1 ) + ( j * sa0 ); + if ( A[ oa2 ] !== 0.0 ) { + tmp = f32( alpha * A[ oa2 ] ); + for ( i = 0; i < M; i++ ) { + ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); + B[ ob2 ] = f32( B[ ob2 ] + ( tmp * B[ offsetB + ( i * sb1 ) + ( k * sb0 ) ] ) ); + } + } + } + } + return B; + } + if ( + ( isrma && side === 'right' && uplo === 'upper' && transa !== 'no-transpose' ) || + ( !isrma && side === 'left' && uplo === 'lower' && transa !== 'no-transpose' ) + ) { + for ( j = 0; j < N; j++ ) { for ( i = 0; i < M; i++ ) { ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); + oa2 = offsetA + ( j * sa1 ) + ( j * sa0 ); if ( nonunit ) { tmp = f32( B[ ob2 ] * A[ oa2 ] ); } else { @@ -326,31 +326,31 @@ function strmm( side, uplo, transa, diag, M, N, alpha, A, strideA1, strideA2, of } for ( k = j + 1; k < N; k++ ) { oa2 = offsetA + ( j * sa1 ) + ( k * sa0 ); - tmp = f32( tmp + B[ offsetB + ( i * sb1 ) + ( k * sb0 ) ] * A[ oa2 ] ); + tmp = f32( tmp + ( B[ offsetB + ( i * sb1 ) + ( k * sb0 ) ] * A[ oa2 ] ) ); } B[ ob2 ] = f32( alpha * tmp ); } } return B; - } - // ( isrma && side === 'right' && uplo === 'lower' && transa !== 'no-transpose' ) || ( !isrma && side === 'left' && uplo === 'upper' && transa !== 'no-transpose' ) - for ( i = 0; i < M; i++ ) { - for ( j = N - 1; j >= 0; j-- ) { - ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); - oa2 = offsetA + ( j * sa1 ) + ( j * sa0 ); + } + // ( isrma && side === 'right' && uplo === 'lower' && transa !== 'no-transpose' ) || ( !isrma && side === 'left' && uplo === 'upper' && transa !== 'no-transpose' ) + for ( i = 0; i < M; i++ ) { + for ( j = N - 1; j >= 0; j-- ) { + ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); + oa2 = offsetA + ( j * sa1 ) + ( j * sa0 ); if ( nonunit ) { tmp = f32( B[ ob2 ] * A[ oa2 ] ); } else { tmp = B[ ob2 ]; } - for ( k = 0; k < j; k++ ) { - oa2 = offsetA + ( j * sa1 ) + ( k * sa0 ); - tmp = f32( tmp + B[ offsetB + ( i * sb1 ) + ( k * sb0 ) ] * A[ oa2 ] ); - } + for ( k = 0; k < j; k++ ) { + oa2 = offsetA + ( j * sa1 ) + ( k * sa0 ); + tmp = f32( tmp + ( B[ offsetB + ( i * sb1 ) + ( k * sb0 ) ] * A[ oa2 ] ) ); + } - B[ ob2 ] = f32( alpha * tmp ); - } - } + B[ ob2 ] = f32( alpha * tmp ); + } + } return B; } diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_l_l_nta_nu_complex_access_pattern.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_l_l_nta_nu_complex_access_pattern.json index f814e36148c0..25fb17bf4125 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_l_l_nta_nu_complex_access_pattern.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_cb_l_l_nta_nu_complex_access_pattern.json @@ -15,14 +15,14 @@ "strideA1": 2, "strideA2": 6, "offsetA": 1, - "B": [ 999.0, 1.0, 999.0, 4.0, 999.0, 7.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 2.0, 999.0, 5.0, 999.0, 8.0, 999.0, 3.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 6.0, 999.0, 9.0 ], + "B": [ 999.0, 1.0, 999.0, 999.0, 4.0, 999.0, 999.0, 7.0, 999.0, 999.0, 2.0, 999.0, 999.0, 5.0, 999.0, 999.0, 8.0, 999.0, 999.0, 3.0, 999.0, 999.0, 6.0, 999.0, 999.0, 9.0 ], "B_mat": [ [ 1.0, 2.0, 3.0 ], [ 4.0, 5.0, 6.0 ], [ 7.0, 8.0, 9.0 ] ], - "strideB1": 2, - "strideB2": 16, + "strideB1": 3, + "strideB2": 9, "offsetB": 1, - "B_out": [ 1.0, 12.0, 38.0, 4.0, 33.0, 86.0, 7.0, 54.0, 134.0 ] + "B_out": [ 999.0, 1.0, 999.0, 999.0, 24.0, 999.0, 999.0, 102.0, 999.0, 999.0, 2.0, 999.0, 999.0, 33.0, 999.0, 999.0, 126.0, 999.0, 999.0, 3.0, 999.0, 999.0, 42.0, 999.0, 999.0, 150.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_l_nta_nu.json index 9a68dfce04ee..06d26d5a5658 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_l_nta_nu.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_l_nta_nu.json @@ -24,5 +24,5 @@ "strideB1": 3, "strideB2": 1, "offsetB": 0, - "B_out": [ 1.0, 2.0, 3.0, 24.0, 33.0, 42.0, 102.0, 126.0, 150.0 ] + "B_out": [ 1.0, 2.0, 3.0, 22.0, 29.0, 36.0, 90.0, 108.0, 126.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_l_nta_nu_complex_access_pattern.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_l_nta_nu_complex_access_pattern.json index 29198debcd2b..a163c33bc992 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_l_nta_nu_complex_access_pattern.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_l_nta_nu_complex_access_pattern.json @@ -15,14 +15,14 @@ "strideA1": 2, "strideA2": 6, "offsetA": 1, - "B": [ 999.0, 1.0, 999.0, 2.0, 999.0, 3.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 4.0, 999.0, 5.0, 999.0, 6.0, 999.0, 7.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 8.0, 999.0, 9.0 ], + "B": [ 999.0, 1.0, 999.0, 999.0, 2.0, 999.0, 999.0, 3.0, 999.0, 999.0, 4.0, 999.0, 999.0, 5.0, 999.0, 999.0, 6.0, 999.0, 999.0, 7.0, 999.0, 999.0, 8.0, 999.0, 999.0, 9.0 ], "B_mat": [ [ 1.0, 2.0, 3.0 ], [ 4.0, 5.0, 6.0 ], [ 7.0, 8.0, 9.0 ] ], - "strideB1": 16, - "strideB2": 2, + "strideB1": 9, + "strideB2": 3, "offsetB": 1, - "B_out": [ 999.0, 1.0, 999.0, 2.0, 999.0, 3.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 24.0, 999.0, 33.0, 999.0, 42.0, 999.0, 102.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 126.0, 999.0, 150.0 ] + "B_out": [ 999.0, 1.0, 999.0, 999.0, 2.0, 999.0, 999.0, 3.0, 999.0, 999.0, 22.0, 999.0, 999.0, 29.0, 999.0, 999.0, 36.0, 999.0, 999.0, 90.0, 999.0, 999.0, 108.0, 999.0, 999.0, 126.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_l_nta_u.json index 83267d2f679a..25965b5e6b7a 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_l_nta_u.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_l_nta_u.json @@ -24,5 +24,5 @@ "strideB1": 3, "strideB2": 1, "offsetB": 0, - "B_out": [ 1.0, 2.0, 3.0, 8.0, 13.0, 18.0, 46.0, 62.0, 78.0 ] + "B_out": [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 34.0, 44.0, 54.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_l_ta_nu.json index 19f9662c8463..fb4c5887f764 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_l_ta_nu.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_l_ta_nu.json @@ -24,5 +24,5 @@ "strideB1": 3, "strideB2": 1, "offsetB": 0, - "B_out": [ 66.0, 78.0, 90.0, 76.0, 89.0, 102.0, 63.0, 72.0, 81.0 ] + "B_out": [ 30.0, 36.0, 42.0, 62.0, 73.0, 84.0, 63.0, 72.0, 81.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_l_ta_u.json index 2753a87276f6..091796a80450 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_l_ta_u.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_l_ta_u.json @@ -24,5 +24,5 @@ "strideB1": 3, "strideB2": 1, "offsetB": 0, - "B_out": [ 66.0, 78.0, 90.0, 60.0, 69.0, 78.0, 7.0, 8.0, 9.0 ] + "B_out": [ 30.0, 36.0, 42.0, 46.0, 53.0, 60.0, 7.0, 8.0, 9.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_u_nta_nu.json index 21132689ab14..99165d6f9320 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_u_nta_nu.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_u_nta_nu.json @@ -24,5 +24,5 @@ "strideB1": 3, "strideB2": 1, "offsetB": 0, - "B_out": [ 30.0, 36.0, 42.0, 62.0, 73.0, 84.0, 63.0, 72.0, 81.0 ] + "B_out": [ 66.0, 78.0, 90.0, 76.0, 89.0, 102.0, 63.0, 72.0, 81.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_u_nta_u.json index e46d50c88637..ba0acdf8dc74 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_u_nta_u.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_u_nta_u.json @@ -24,5 +24,5 @@ "strideB1": 3, "strideB2": 1, "offsetB": 0, - "B_out": [ 30.0, 36.0, 42.0, 46.0, 53.0, 60.0, 7.0, 8.0, 9.0 ] + "B_out": [ 66.0, 78.0, 90.0, 60.0, 69.0, 78.0, 7.0, 8.0, 9.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_u_ta_nu.json index c0db1b6be6ab..4954594d02ae 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_u_ta_nu.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_u_ta_nu.json @@ -24,5 +24,5 @@ "strideB1": 3, "strideB2": 1, "offsetB": 0, - "B_out": [ 1.0, 2.0, 3.0, 22.0, 29.0, 36.0, 90.0, 108.0, 126.0 ] + "B_out": [ 1.0, 2.0, 3.0, 24.0, 33.0, 42.0, 102.0, 126.0, 150.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_u_ta_u.json index 416740de343d..a2602f871b6c 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_u_ta_u.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_l_u_ta_u.json @@ -24,5 +24,5 @@ "strideB1": 3, "strideB2": 1, "offsetB": 0, - "B_out": [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 34.0, 44.0, 54.0 ] + "B_out": [ 1.0, 2.0, 3.0, 8.0, 13.0, 18.0, 46.0, 62.0, 78.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_l_nta_nu.json index 98c1457bbe10..f13243838ee6 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_l_nta_nu.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_l_nta_nu.json @@ -24,5 +24,5 @@ "strideB1": 3, "strideB2": 1, "offsetB": 0, - "B_out": [ 30.0, 34.0, 27.0, 66.0, 73.0, 54.0, 102.0, 112.0, 81.0 ] + "B_out": [ 14.0, 28.0, 27.0, 32.0, 61.0, 54.0, 50.0, 94.0, 81.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_l_nta_u.json index 6c7f3f26eb17..7b7f6ec422d9 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_l_nta_u.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_l_nta_u.json @@ -24,5 +24,5 @@ "strideB1": 3, "strideB2": 1, "offsetB": 0, - "B_out": [ 30.0, 26.0, 3.0, 66.0, 53.0, 6.0, 102.0, 80.0, 9.0 ] + "B_out": [ 14.0, 20.0, 3.0, 32.0, 41.0, 6.0, 50.0, 62.0, 9.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_l_ta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_l_ta_nu.json index 840041113c08..8a8fa2994175 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_l_ta_nu.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_l_ta_nu.json @@ -24,5 +24,5 @@ "strideB1": 3, "strideB2": 1, "offsetB": 0, - "B_out": [ 1.0, 14.0, 50.0, 4.0, 41.0, 122.0, 7.0, 68.0, 194.0 ] + "B_out": [ 1.0, 12.0, 42.0, 4.0, 33.0, 96.0, 7.0, 54.0, 150.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_l_ta_u.json index dcd3575a1068..350669451961 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_l_ta_u.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_l_ta_u.json @@ -24,5 +24,5 @@ "strideB1": 3, "strideB2": 1, "offsetB": 0, - "B_out": [ 1.0, 6.0, 26.0, 4.0, 21.0, 74.0, 7.0, 36.0, 122.0 ] + "B_out": [ 1.0, 4.0, 18.0, 4.0, 13.0, 48.0, 7.0, 22.0, 78.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_u_nta_nu.json index bf4ecdf0eb38..de5bf2433941 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_u_nta_nu.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_u_nta_nu.json @@ -24,5 +24,5 @@ "strideB1": 3, "strideB2": 1, "offsetB": 0, - "B_out": [ 1.0, 12.0, 38.0, 4.0, 33.0, 86.0, 7.0, 54.0, 134.0 ] + "B_out": [ 1.0, 14.0, 50.0, 4.0, 41.0, 122.0, 7.0, 68.0, 194.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_u_nta_u.json index 43237bac00cc..0448f873634a 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_u_nta_u.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_u_nta_u.json @@ -24,5 +24,5 @@ "strideB1": 3, "strideB2": 1, "offsetB": 0, - "B_out": [ 1.0, 4.0, 14.0, 4.0, 13.0, 38.0, 7.0, 22.0, 62.0 ] + "B_out": [ 1.0, 6.0, 26.0, 4.0, 21.0, 74.0, 7.0, 36.0, 122.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_u_ta_nu.json index da14b7a4b74b..dd22a3ce294d 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_u_ta_nu.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_u_ta_nu.json @@ -24,5 +24,5 @@ "strideB1": 3, "strideB2": 1, "offsetB": 0, - "B_out": [ 14.0, 22.0, 27.0, 32.0, 49.0, 54.0, 50.0, 76.0, 81.0 ] + "B_out": [ 30.0, 34.0, 27.0, 66.0, 73.0, 54.0, 102.0, 112.0, 81.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_u_ta_u.json index 578207ef9440..22fd1af828f4 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_u_ta_u.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ca_rb_r_u_ta_u.json @@ -24,5 +24,5 @@ "strideB1": 3, "strideB2": 1, "offsetB": 0, - "B_out": [ 14.0, 14.0, 3.0, 32.0, 29.0, 6.0, 50.0, 44.0, 9.0 ] + "B_out": [ 30.0, 26.0, 3.0, 66.0, 53.0, 6.0, 102.0, 80.0, 9.0 ] } diff --git "a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_l_u_nta_nu.json\\" b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_l_u_nta_nu.json similarity index 100% rename from "lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_l_u_nta_nu.json\\" rename to lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/column_major_l_u_nta_nu.json diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_l_l_nta_nu_complex_access_pattern.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_l_l_nta_nu_complex_access_pattern.json index 209b744c81ad..722fbc4338d7 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_l_l_nta_nu_complex_access_pattern.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_cb_l_l_nta_nu_complex_access_pattern.json @@ -6,23 +6,23 @@ "M": 3, "N": 3, "alpha": 1.0, - "A": [ 999.0, 1.0, 999.0, 0.0, 999.0, 0.0, 999.0, 4.0, 999.0, 5.0, 999.0, 0.0, 999.0, 7.0, 999.0, 8.0, 999.0, 9.0 ], + "A": [ 999.0, 1.0, 999.0, 0.0, 999.0, 0.0, 999.0, 2.0, 999.0, 5.0, 999.0, 0.0, 999.0, 3.0, 999.0, 6.0, 999.0, 9.0 ], "A_mat": [ [ 1.0, 0.0, 0.0 ], - [ 4.0, 5.0, 0.0 ], - [ 7.0, 8.0, 9.0 ] + [ 2.0, 5.0, 0.0 ], + [ 3.0, 6.0, 9.0 ] ], "strideA1": 6, "strideA2": 2, "offsetA": 1, - "B": [ 999.0, 1.0, 999.0, 4.0, 999.0, 7.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 2.0, 999.0, 5.0, 999.0, 8.0, 999.0, 3.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 6.0, 999.0, 9.0 ], + "B": [ 999.0, 1.0, 999.0, 999.0, 2.0, 999.0, 999.0, 3.0, 999.0, 999.0, 4.0, 999.0, 999.0, 5.0, 999.0, 999.0, 6.0, 999.0, 999.0, 7.0, 999.0, 999.0, 8.0, 999.0, 999.0, 9.0 ], "B_mat": [ - [ 1.0, 2.0, 3.0 ], - [ 4.0, 5.0, 6.0 ], - [ 7.0, 8.0, 9.0 ] + [ 1.0, 4.0, 7.0 ], + [ 2.0, 5.0, 8.0 ], + [ 3.0, 6.0, 9.0 ] ], - "strideB1": 2, - "strideB2": 16, + "strideB1": 3, + "strideB2": 9, "offsetB": 1, - "B_out": [ 1.0, 12.0, 38.0, 4.0, 33.0, 86.0, 7.0, 54.0, 134.0 ] + "B_out": [ 999.0, 1.0, 999.0, 999.0, 12.0, 999.0, 999.0, 42.0, 999.0, 999.0, 4.0, 999.0, 999.0, 33.0, 999.0, 999.0, 96.0, 999.0, 999.0, 7.0, 999.0, 999.0, 54.0, 999.0, 999.0, 150.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_complex_access_pattern.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_complex_access_pattern.json index 6ee193236a0b..66ac35575006 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_complex_access_pattern.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_complex_access_pattern.json @@ -15,14 +15,14 @@ "strideA1": 6, "strideA2": 2, "offsetA": 1, - "B": [ 999.0, 1.0, 999.0, 2.0, 999.0, 3.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 4.0, 999.0, 5.0, 999.0, 6.0, 999.0, 7.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 8.0, 999.0, 9.0 ], + "B": [ 999.0, 1.0, 999.0, 999.0, 2.0, 999.0, 999.0, 3.0, 999.0, 999.0, 4.0, 999.0, 999.0, 5.0, 999.0, 999.0, 6.0, 999.0, 999.0, 7.0, 999.0, 999.0, 8.0, 999.0, 999.0, 9.0 ], "B_mat": [ [ 1.0, 2.0, 3.0 ], [ 4.0, 5.0, 6.0 ], [ 7.0, 8.0, 9.0 ] ], - "strideB1": 16, - "strideB2": 2, + "strideB1": 9, + "strideB2": 3, "offsetB": 1, - "B_out": [ 999.0, 1.0, 999.0, 2.0, 999.0, 3.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 24.0, 999.0, 33.0, 999.0, 42.0, 999.0, 102.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 999.0, 126.0, 999.0, 150.0 ] + "B_out": [ 999.0, 1.0, 999.0, 999.0, 2.0, 999.0, 999.0, 3.0, 999.0, 999.0, 24.0, 999.0, 999.0, 33.0, 999.0, 999.0, 42.0, 999.0, 999.0, 102.0, 999.0, 999.0, 126.0, 999.0, 999.0, 150.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sa1_sa2n.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sa1_sa2n.json index f8f9407103e6..7700222df592 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sa1_sa2n.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sa1_sa2n.json @@ -6,15 +6,15 @@ "M": 3, "N": 3, "alpha": 1.0, - "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A": [ 0.0, 0.0, 1.0, 999.0, 999.0, 999.0, 0.0, 5.0, 4.0, 999.0, 999.0, 999.0, 9.0, 8.0, 7.0 ], "A_mat": [ [ 1.0, 0.0, 0.0 ], [ 4.0, 5.0, 0.0 ], [ 7.0, 8.0, 9.0 ] ], - "strideA1": 3, - "strideA2": -3, - "offsetA": 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 ], diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2.json index 09322b3e95e1..a35b90938d6d 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2.json @@ -1,28 +1,28 @@ { - "side": "left", - "uplo": "lower", - "transA": "no-transpose", - "diag": "non-unit", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], - "A_mat": [ - [ 1.0, 0.0, 0.0 ], - [ 4.0, 5.0, 0.0 ], - [ 7.0, 8.0, 9.0 ] - ], - "strideA1": -3, - "strideA2": 1, - "offsetA": 0, - "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], - "B_mat": [ - [ 1.0, 2.0, 3.0 ], - [ 4.0, 5.0, 6.0 ], - [ 7.0, 8.0, 9.0 ] - ], - "strideB1": 3, - "strideB2": 1, - "offsetB": 0, - "B_out": [ 1.0, 2.0, 3.0, 24.0, 33.0, 42.0, 102.0, 126.0, 150.0 ] - } + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 7.0, 8.0, 9.0, 999.0, 999.0, 999.0, 4.0, 5.0, 0.0, 999.0, 999.0, 999.0, 1.0, 0.0, 0.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": -6, + "strideA2": 1, + "offsetA": 12, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 24.0, 33.0, 42.0, 102.0, 126.0, 150.0 ] +} diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2n.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2n.json index 29374ffc2f04..b8ffacb8eaa7 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2n.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2n.json @@ -6,7 +6,7 @@ "M": 3, "N": 3, "alpha": 1.0, - "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], + "A": [ 9.0, 8.0, 7.0, 0.0, 5.0, 4.0, 0.0, 0.0, 1.0 ], "A_mat": [ [ 1.0, 0.0, 0.0 ], [ 4.0, 5.0, 0.0 ], @@ -14,7 +14,7 @@ ], "strideA1": -3, "strideA2": -1, - "offsetA": 0, + "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 ], diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sb1_sb2n.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sb1_sb2n.json index 46a3071534bc..5b07e94992d6 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sb1_sb2n.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sb1_sb2n.json @@ -15,14 +15,14 @@ "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": [ 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": 3, + "strideB1": 6, "strideB2": -1, - "offsetB": 0, - "B_out": [ 1.0, 2.0, 3.0, 24.0, 33.0, 42.0, 102.0, 126.0, 150.0 ] + "offsetB": 2, + "B_out": [ 3.0, 2.0, 1.0, 999.0, 999.0, 999.0, 42.0, 33.0, 24.0, 999.0, 999.0, 999.0, 150.0, 126.0, 102.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sb1n_sb2.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sb1n_sb2.json index 415b235e70af..8d06d8fdd191 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sb1n_sb2.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sb1n_sb2.json @@ -15,14 +15,14 @@ "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": [ 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": -3, + "strideB1": -6, "strideB2": 1, - "offsetB": 0, - "B_out": [ 1.0, 2.0, 3.0, 24.0, 33.0, 42.0, 102.0, 126.0, 150.0 ] + "offsetB": 12, + "B_out": [ 102.0, 126.0, 150.0, 999.0, 999.0, 999.0, 24.0, 33.0, 42.0, 999.0, 999.0, 999.0, 1.0, 2.0, 3.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sb1n_sb2n.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sb1n_sb2n.json index fdb9658f7e42..3c0d67f72bb0 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sb1n_sb2n.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sb1n_sb2n.json @@ -15,7 +15,7 @@ "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": [ 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 ], @@ -23,6 +23,6 @@ ], "strideB1": -3, "strideB2": -1, - "offsetB": 0, - "B_out": [ 1.0, 2.0, 3.0, 24.0, 33.0, 42.0, 102.0, 126.0, 150.0 ] + "offsetB": 8, + "B_out": [ 150.0, 126.0, 102.0, 42.0, 33.0, 24.0, 3.0, 2.0, 1.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_u.json index af9fe0652d0e..249c98229e3f 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_u.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_u.json @@ -2,7 +2,7 @@ "side": "left", "uplo": "lower", "transA": "no-transpose", - "diag": "non-unit", + "diag": "unit", "M": 3, "N": 3, "alpha": 1.0, diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_ta_u.json index dcc5c25fa6d2..6a1f529f33e3 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_ta_u.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_ta_u.json @@ -24,5 +24,5 @@ "strideB1": 3, "strideB2": 1, "offsetB": 0, - "B_out": [ 66.0, 78.0, 90.0, 60.0, 69.0, 78.0, 7.0, 8.0, 9.0 ] + "B_out": [ 66.0, 78.0, 90.0, 76.0, 89.0, 102.0, 63.0, 72.0, 81.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_u_nta_nu.json index 41fc030f5e77..68e649b6265b 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_u_nta_nu.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_u_nta_nu.json @@ -24,5 +24,5 @@ "strideB1": 3, "strideB2": 1, "offsetB": 0, - "B_out": [ 1.0, 12.0, 38.0, 4.0, 33.0, 86.0, 7.0, 54.0, 134.0 ] + "B_out": [ 1.0, 12.0, 42.0, 4.0, 33.0, 96.0, 7.0, 54.0, 150.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_u_nta_u.json index 2b623b1572d8..be808d80f190 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_u_nta_u.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_u_nta_u.json @@ -24,5 +24,5 @@ "strideB1": 3, "strideB2": 1, "offsetB": 0, - "B_out": [ 1.0, 4.0, 14.0, 4.0, 13.0, 38.0, 7.0, 22.0, 62.0 ] + "B_out": [ 1.0, 4.0, 18.0, 4.0, 13.0, 48.0, 7.0, 22.0, 78.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_u_ta_nu.json index e81d863c0eaa..af9867e2b7b4 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_u_ta_nu.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_u_ta_nu.json @@ -24,5 +24,5 @@ "strideB1": 3, "strideB2": 1, "offsetB": 0, - "B_out": [ 14.0, 22.0, 27.0, 32.0, 49.0, 54.0, 50.0, 76.0, 81.0 ] + "B_out": [ 14.0, 28.0, 27.0, 32.0, 61.0, 54.0, 50.0, 94.0, 81.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_u_ta_u.json index cf5e4ee18d61..312de01134ce 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_u_ta_u.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_r_u_ta_u.json @@ -24,5 +24,5 @@ "strideB1": 3, "strideB2": 1, "offsetB": 0, - "B_out": [ 14.0, 14.0, 3.0, 32.0, 29.0, 6.0, 50.0, 44.0, 9.0 ] + "B_out": [ 14.0, 20.0, 3.0, 32.0, 41.0, 6.0, 50.0, 62.0, 9.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_l_l_nta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_l_l_nta_u.json index 9de38c1c1f0b..56421cce6859 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_l_l_nta_u.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_l_l_nta_u.json @@ -3,7 +3,7 @@ "side": "left", "uplo": "lower", "transA": "no-transpose", - "diag": "non-unit", + "diag": "unit", "M": 3, "N": 3, "alpha": 1.0, diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_l_l_ta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_l_l_ta_u.json index bca60d756199..0adb2938feb5 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_l_l_ta_u.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_l_l_ta_u.json @@ -3,7 +3,7 @@ "side": "left", "uplo": "lower", "transA": "transpose", - "diag": "non-unit", + "diag": "unit", "M": 3, "N": 3, "alpha": 1.0, diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_u_nta_nu.json index 4f00c889e187..f4f11abaaf05 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_u_nta_nu.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_u_nta_nu.json @@ -21,5 +21,5 @@ [ 7.0, 8.0, 9.0 ] ], "ldb": 3, - "B_out": [ 1.0, 12.0, 38.0, 4.0, 33.0, 86.0, 7.0, 54.0, 134.0 ] + "B_out": [ 1.0, 12.0, 42.0, 4.0, 33.0, 96.0, 7.0, 54.0, 150.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_u_nta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_u_nta_u.json index e92521693896..c94262a3eeff 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_u_nta_u.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_u_nta_u.json @@ -21,5 +21,5 @@ [ 7.0, 8.0, 9.0 ] ], "ldb": 3, - "B_out": [ 1.0, 4.0, 14.0, 4.0, 13.0, 38.0, 7.0, 22.0, 62.0 ] + "B_out": [ 1.0, 4.0, 18.0, 4.0, 13.0, 48.0, 7.0, 22.0, 78.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_u_ta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_u_ta_nu.json index 634c0382d407..e3065fd1860e 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_u_ta_nu.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_u_ta_nu.json @@ -21,5 +21,5 @@ [ 7.0, 8.0, 9.0 ] ], "ldb": 3, - "B_out": [ 14.0, 22.0, 27.0, 32.0, 49.0, 54.0, 50.0, 76.0, 81.0 ] + "B_out": [ 14.0, 28.0, 27.0, 32.0, 61.0, 54.0, 50.0, 94.0, 81.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_u_ta_u.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_u_ta_u.json index 572f38145c13..8de16d06cb39 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_u_ta_u.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_u_ta_u.json @@ -21,5 +21,5 @@ [ 7.0, 8.0, 9.0 ] ], "ldb": 3, - "B_out": [ 14.0, 14.0, 3.0, 32.0, 29.0, 6.0, 50.0, 44.0, 9.0 ] + "B_out": [ 14.0, 20.0, 3.0, 32.0, 41.0, 6.0, 50.0, 62.0, 9.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/test.ndarray.js b/lib/node_modules/@stdlib/blas/base/strmm/test/test.ndarray.js index b9c696322ba7..fb952eda4e59 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/test.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/test.ndarray.js @@ -1726,7 +1726,7 @@ tape( 'the function supports a negative stride for the second dimension of `A`', t.end(); }); -tape( 'the function supports a negative strides of `A`', function test( t ) { +tape( 'the function supports negative strides of `A`', function test( t ) { var expected; var data; var out; @@ -1826,7 +1826,7 @@ tape( 'the function supports a negative stride for the second dimension of `B`', t.end(); }); -tape( 'the function supports a negative strides of `B`', function test( t ) { +tape( 'the function supports negative strides of `B`', function test( t ) { var expected; var data; var out; From 1a72ee2d96320dc1e4183e4a4f2f461f431871d4 Mon Sep 17 00:00:00 2001 From: ShabiShett07 Date: Sat, 14 Jun 2025 11:41:18 +0530 Subject: [PATCH 03/12] 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 --- --- .../@stdlib/blas/base/strmm/README.md | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/base/strmm/README.md b/lib/node_modules/@stdlib/blas/base/strmm/README.md index 8eef1b483f2c..b865d3e900de 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/README.md +++ b/lib/node_modules/@stdlib/blas/base/strmm/README.md @@ -37,7 +37,7 @@ Performs one of the matrix-matrix operations `B = alpha * op(A) * B` or `B = alp ```javascript var Float32Array = require( '@stdlib/array/float32' ); -var A = new Float32Array( [ 1.0, 0.0, 0.0, 0.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); +var A = new Float32Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); var B = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); strmm( 'row-major', 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, B, 3 ); @@ -61,21 +61,21 @@ The function has the following parameters: Note that indexing is relative to the first index. To introduce an offset, use [`typed array`][mdn-typed-array] views. - + ```javascript var Float32Array = require( '@stdlib/array/float32' ); // Initial arrays... -var A0 = new Float32Array( [ 0.0, 1.0, 0.0, 0.0, 0.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); -var B0 = new Float32Array( [ 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0] ); +var A0 = new Float32Array( [ 0.0, 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); +var B0 = new Float32Array( [ 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); // Create offset views... var A1 = new Float32Array( A0.buffer, A0.BYTES_PER_ELEMENT*1 ); // start at 2nd element var B1 = new Float32Array( B0.buffer, B0.BYTES_PER_ELEMENT*1 ); // start at 2nd element -strmm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 3, 3, 1.0, A1, 3, B1, 3 ); -// B => [ 0.0, 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 31.0, 41.0, 51.0 ] +strmm( 'row-major', 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A1, 3, B1, 3 ); +// B1 => [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 31.0, 41.0, 51.0 ] ``` #### strmm.ndarray( s, ul, t, d, m, n, α, A, sa1, sa2, oa, B, sb1, sb2, ob ) @@ -85,10 +85,10 @@ Performs one of the matrix-matrix operations `B = alpha * op(A) * B` or `B = alp ```javascript var Float32Array = require( '@stdlib/array/float32' ); -var A = new Float32Array( [ 1.0, 0.0, 0.0, 0.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); +var A = new Float32Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); var B = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); -strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 ); +strmm.ndarray( 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 ); // B => [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 31.0, 41.0, 51.0 ] ``` @@ -112,13 +112,15 @@ The function has the following parameters: 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, 0.0, 1.0, 0.0, 0.0, 0.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); +var A = new Float32Array( [ 0.0, 0.0, 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); var B = new Float32Array( [ 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); -strmm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 3, 3, 1.0, A, 3, 1, 2, B, 3, 1, 1 ); +strmm.ndarray( 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 2, B, 3, 1, 1 ); // B => [ 0.0, 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 31.0, 41.0, 51.0 ] ``` From ac3bbe0bef2f2d660a7ab580595ecfe5dce490c3 Mon Sep 17 00:00:00 2001 From: ShabiShett07 Date: Sat, 14 Jun 2025 11:59:51 +0530 Subject: [PATCH 04/12] 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: passed - task: lint_repl_help status: passed - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../@stdlib/blas/base/strmm/docs/repl.txt | 27 ++++++++++--------- .../blas/base/strmm/docs/types/index.d.ts | 16 +++++------ .../@stdlib/blas/base/strmm/package.json | 1 - 3 files changed, 23 insertions(+), 21 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/base/strmm/docs/repl.txt b/lib/node_modules/@stdlib/blas/base/strmm/docs/repl.txt index da74c4fc72d1..3cdc0640d2bb 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/docs/repl.txt +++ b/lib/node_modules/@stdlib/blas/base/strmm/docs/repl.txt @@ -14,13 +14,13 @@ Parameters ---------- - side: string - Specifies whether `op( A )` multiplies `B` from the left or right. - ord: string Row-major (C-style) or column-major (Fortran-style) order. Must be either 'row-major' or 'column-major'. + side: string + Specifies whether `op( A )` multiplies `B` from the left or right. + uplo: string Specifies whether `A` is an upper or lower triangular matrix. @@ -61,18 +61,18 @@ Examples -------- - > var A = new {{alias:@stdlib/array/float32}}( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); - > var B = new {{alias:@stdlib/array/float32}}( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); + > var A = new {{alias:@stdlib/array/float32}}( [ 1.0, 0.0, 2.0, 3.0 ] ); + > var B = new {{alias:@stdlib/array/float32}}( [ 1.0, 2.0, 3.0, 4.0 ] ); > var ord = 'row-major'; > var side = 'left'; > var uplo = 'lower'; > var transa = 'no-transpose'; > var diag = 'unit'; - > {{alias}}( ord, side, uplo, transa, diag, 3, 3, 1.0, A, 3, B, 3 ) - [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 31.0, 41.0, 51.0 ] + > {{alias}}( ord, side, uplo, transa, diag, 2, 2, 1.0, A, 2, B, 2 ) + [ 1.0, 2.0, 5.0, 8.0 ] -{{alias}}.ndarray(side,uplo,transa, diag,M,N,α,A,sa1,sa2,oa,B,sb1,sb2,ob) +{{alias}}.ndarray(side,uplo,transa,diag,M,N,α,A,sa1,sa2,oa,B,sb1,sb2,ob) Performs one of the matrix-matrix operations `B = alpha * op(A) * B` or `B = alpha * B * op(A)` where alpha is a scalar, B is an m by n matrix, A is a unit, or non-unit, upper or lower triangular matrix and op( A ) is @@ -104,6 +104,9 @@ N: integer Number of columns of `B`. + α: number + Scalar constant. + A: Float32Array Input matrix. @@ -135,14 +138,14 @@ Examples -------- - > var A = new {{alias:@stdlib/array/float32}}( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); - > var B = new {{alias:@stdlib/array/float32}}( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); + > var A = new {{alias:@stdlib/array/float32}}( [ 1.0, 0.0, 2.0, 3.0 ] ); + > var B = new {{alias:@stdlib/array/float32}}( [ 1.0, 2.0, 3.0, 4.0 ] ); > var side = 'left'; > var uplo = 'lower'; > var transa = 'no-transpose'; > var diag = 'unit'; - > {{alias}}( side, uplo, transa, diag, 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 ) - [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 31.0, 41.0, 51.0 ] + > {{alias}}.ndarray(side,uplo,transa,diag,2,2,1.0,A,2,1,0,B,2,1,0) + [ 1.0, 2.0, 5.0, 8.0 ] See Also -------- diff --git a/lib/node_modules/@stdlib/blas/base/strmm/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/base/strmm/docs/types/index.d.ts index 8ac803b3eddc..78b6f68f52dd 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/blas/base/strmm/docs/types/index.d.ts @@ -47,10 +47,10 @@ interface Routine { * var Float32Array = require( '@stdlib/array/float32' ); * * var A = new Float32Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); - * var B = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); - * - * strmm( 'row-major', 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, B, 3 ); - * // B => [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 31.0, 41.0, 51.0 ] + * var B = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); + * + * strmm( 'row-major', 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, B, 3 ); + * // B => [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 31.0, 41.0, 51.0 ] */ ( order: Layout, side: OperationSide, uplo: MatrixTriangle, transa: TransposeOperation, diag: DiagonalType, m: number, n: number, alpha: number, A: Float32Array, LDA: number, B: Float32Array, LDB: number ): Float32Array; @@ -78,10 +78,10 @@ interface Routine { * var Float32Array = require( '@stdlib/array/float32' ); * * var A = new Float32Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); - * var B = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); - * - * strmm.ndarray( 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 ); - * // B => [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 31.0, 41.0, 51.0 ] + * var B = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); + * + * strmm.ndarray( 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 ); + * // B => [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 31.0, 41.0, 51.0 ] */ ndarray( side: OperationSide, uplo: MatrixTriangle, transa: TransposeOperation, diag: DiagonalType, m: number, n: number, alpha: number, A: Float32Array, strideA1: number, strideA2: number, offsetA: number, B: Float32Array, strideB1: number, strideB2: number, offsetB: number ): Float32Array; } diff --git a/lib/node_modules/@stdlib/blas/base/strmm/package.json b/lib/node_modules/@stdlib/blas/base/strmm/package.json index a2b9e7b27bff..ba0ed4cc4574 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/package.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/package.json @@ -1,4 +1,3 @@ - { "name": "@stdlib/blas/base/strmm", "version": "0.0.0", From 60ec836fbee8e5caf26d7ce89e6d60e40943ef27 Mon Sep 17 00:00:00 2001 From: ShabiShett07 Date: Sat, 14 Jun 2025 13:11:40 +0530 Subject: [PATCH 05/12] 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 --- --- .../@stdlib/blas/base/strmm/lib/base.js | 22 +++++++++---------- .../test/fixtures/row_major_r_l_nta_nu.json | 4 ++-- .../test/fixtures/row_major_r_u_nta_nu.json | 4 ++-- 3 files changed, 14 insertions(+), 16 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/base/strmm/lib/base.js b/lib/node_modules/@stdlib/blas/base/strmm/lib/base.js index 44cc6a3261a0..9c739f99ad1a 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/lib/base.js +++ b/lib/node_modules/@stdlib/blas/base/strmm/lib/base.js @@ -256,16 +256,15 @@ function strmm( side, uplo, transa, diag, M, N, alpha, A, strideA1, strideA2, of for ( j = N - 1; j >= 0; j-- ) { if ( nonunit ) { oa2 = offsetA + ( j * sa1 ) + ( j * sa0 ); - tmp = f32( alpha * A[ oa2 ] ); + tmp = f32( A[ oa2 ] ); for ( i = 0; i < M; i++ ) { ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); B[ ob2 ] = f32( B[ ob2 ] * tmp ); } - } else if ( alpha !== 1.0 ) { - for ( i = 0; i < M; i++ ) { - ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); - B[ ob2 ] = f32( B[ ob2 ] * alpha ); - } + } + for ( i = 0; i < M; i++ ) { + ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); + B[ ob2 ] = f32( B[ ob2 ] * alpha ); } for ( k = 0; k < j; k++ ) { oa2 = offsetA + ( k * sa1 ) + ( j * sa0 ); @@ -287,16 +286,15 @@ function strmm( side, uplo, transa, diag, M, N, alpha, A, strideA1, strideA2, of for ( j = 0; j < N; j++ ) { if ( nonunit ) { oa2 = offsetA + ( j * sa1 ) + ( j * sa0 ); - tmp = f32( alpha * A[ oa2 ] ); + tmp = f32( A[ oa2 ] ); for ( i = 0; i < M; i++ ) { ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); B[ ob2 ] = f32( B[ ob2 ] * tmp ); } - } else if ( alpha !== 1.0 ) { - for ( i = 0; i < M; i++ ) { - ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); - B[ ob2 ] = f32( B[ ob2 ] * alpha ); - } + } + for ( i = 0; i < M; i++ ) { + ob2 = offsetB + ( i * sb1 ) + ( j * sb0 ); + B[ ob2 ] = f32( B[ ob2 ] * alpha ); } for ( k = j + 1; k < N; k++ ) { oa2 = offsetA + ( k * sa1 ) + ( j * sa0 ); diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_l_nta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_l_nta_nu.json index 7df1ab2f64a8..7ca43b2eaf96 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_l_nta_nu.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_l_nta_nu.json @@ -6,7 +6,7 @@ "diag": "non-unit", "M": 3, "N": 3, - "alpha": 1.0, + "alpha": 2.0, "A": [ 1.0, 0.0, 0.0, 4.0, 5.0, 0.0, 7.0, 8.0, 9.0 ], "A_mat": [ [ 1.0, 0.0, 0.0 ], @@ -21,5 +21,5 @@ [ 7.0, 8.0, 9.0 ] ], "ldb": 3, - "B_out": [ 30.0, 34.0, 27.0, 66.0, 73.0, 54.0, 102.0, 112.0, 81.0 ] + "B_out": [ 60.0, 68.0, 54.0, 132.0, 146.0, 108.0, 204.0, 224.0, 162.0 ] } diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_u_nta_nu.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_u_nta_nu.json index f4f11abaaf05..b7b083cabc52 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_u_nta_nu.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/row_major_r_u_nta_nu.json @@ -6,7 +6,7 @@ "diag": "non-unit", "M": 3, "N": 3, - "alpha": 1.0, + "alpha": 2.0, "A": [ 1.0, 2.0, 3.0, 0.0, 5.0, 6.0, 0.0, 0.0, 9.0 ], "A_mat": [ [ 1.0, 2.0, 3.0 ], @@ -21,5 +21,5 @@ [ 7.0, 8.0, 9.0 ] ], "ldb": 3, - "B_out": [ 1.0, 12.0, 42.0, 4.0, 33.0, 96.0, 7.0, 54.0, 150.0 ] + "B_out": [ 2.0, 24.0, 84.0, 8.0, 66.0, 192.0, 14.0, 108.0, 300.0 ] } From eaad183ff7ac26e28cb9cdef28d5e5dd5d467d13 Mon Sep 17 00:00:00 2001 From: ShabiShett07 Date: Sat, 14 Jun 2025 15:14:37 +0530 Subject: [PATCH 06/12] 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: passed - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../@stdlib/blas/base/strmm/README.md | 18 +++++++-------- .../@stdlib/blas/base/strmm/docs/repl.txt | 17 +++++++------- .../blas/base/strmm/docs/types/index.d.ts | 22 +++++++++---------- .../@stdlib/blas/base/strmm/lib/base.js | 2 +- .../@stdlib/blas/base/strmm/lib/index.js | 2 +- .../@stdlib/blas/base/strmm/lib/ndarray.js | 2 +- .../@stdlib/blas/base/strmm/lib/strmm.js | 2 +- 7 files changed, 32 insertions(+), 33 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/base/strmm/README.md b/lib/node_modules/@stdlib/blas/base/strmm/README.md index b865d3e900de..e11bb58ad26a 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/README.md +++ b/lib/node_modules/@stdlib/blas/base/strmm/README.md @@ -20,7 +20,7 @@ limitations under the License. # strmm -> Perform one of the matrix-matrix operations `B = alpha * op(A) * B` or `B = alpha * B * op(A)` where alpha is a scalar, B is an m by n matrix, A is a unit, or non-unit, upper or lower triangular matrix and op( A ) is one of `op( A ) = A` or `op( A ) = A**T`. +> Perform one of the matrix-matrix operations `B = α * op(A) * B` or `B = α * B * op(A)` where α is a scalar, `B` is an `M` by `N` matrix, A is a unit, or non-unit, upper or lower triangular matrix and `op( A )` is one of `op( A ) = A` or `op( A ) = A**T`.
@@ -30,9 +30,9 @@ limitations under the License. var strmm = require( '@stdlib/blas/base/strmm' ); ``` -#### strmm( order, side, uplo, transa, diag, m, n, alpha, A, LDA, B, LDB ) +#### strmm( order, side, uplo, transa, diag, M, N, alpha, A, LDA, B, LDB ) -Performs one of the matrix-matrix operations `B = alpha * op(A) * B` or `B = alpha * B * op(A)` where alpha is a scalar, B is an m by n matrix, A is a unit, or non-unit, upper or lower triangular matrix and op( A ) is one of `op( A ) = A` or `op( A ) = A**T`. +Performs one of the matrix-matrix operations `B = α * op(A) * B` or `B = α * B * op(A)` where α is a scalar, `B` is an `M` by `N` matrix, A is a unit, or non-unit, upper or lower triangular matrix and `op( A )` is one of `op( A ) = A` or `op( A ) = A**T`. ```javascript var Float32Array = require( '@stdlib/array/float32' ); @@ -51,8 +51,8 @@ The function has the following parameters: - **uplo**: specifies whether the upper or lower triangular part of the matrix `A` is supplied. - **transa**: specifies the form of `op( A )` to be used in the matrix multiplication. - **diag**: specifies whether or not `A` is unit triangular. -- **m**: number of rows in `B`. -- **n**: number of columns in `B`. +- **M**: number of rows in `B`. +- **N**: number of columns in `B`. - **alpha**: scalar constant. - **A**: input matrix `A`. - **LDA**: stride of the first dimension of `A` (a.k.a., leading dimension of the matrix `A`). @@ -78,9 +78,9 @@ strmm( 'row-major', 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A1, 3, B // B1 => [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 31.0, 41.0, 51.0 ] ``` -#### strmm.ndarray( s, ul, t, d, m, n, α, A, sa1, sa2, oa, B, sb1, sb2, ob ) +#### strmm.ndarray( s, ul, t, d, M, N, α, A, sa1, sa2, oa, B, sb1, sb2, ob ) -Performs one of the matrix-matrix operations `B = alpha * op(A) * B` or `B = alpha * B * op(A)` using alternative indexing semantics and where alpha is a scalar, B is an m by n matrix, A is a unit, or non-unit, upper or lower triangular matrix and op( A ) is one of `op( A ) = A` or `op( A ) = A**T`. +one of the matrix-matrix operations `B = α * op(A) * B` or `B = α * B * op(A)` using alternative indexing semantics and where α is a scalar, `B` is an `M` by `N` matrix, A is a unit, or non-unit, upper or lower triangular matrix and `op( A )` is one of `op( A ) = A` or `op( A ) = A**T`. ```javascript var Float32Array = require( '@stdlib/array/float32' ); @@ -98,8 +98,8 @@ The function has the following parameters: - **uplo**: specifies whether the upper or lower triangular part of the matrix `A` is supplied. - **transa**: specifies the form of `op( A )` to be used in the matrix multiplication. - **diag**: specifies whether or not `A` is unit triangular. -- **m**: number of rows in `B`. -- **n**: number of columns in `B`. +- **M**: number of rows in `B`. +- **N**: number of columns in `B`. - **alpha**: scalar constant. - **A**: input matrix `A`. - **sa1**: stride of the first dimension of `A`. diff --git a/lib/node_modules/@stdlib/blas/base/strmm/docs/repl.txt b/lib/node_modules/@stdlib/blas/base/strmm/docs/repl.txt index 3cdc0640d2bb..cbb975338d0a 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/docs/repl.txt +++ b/lib/node_modules/@stdlib/blas/base/strmm/docs/repl.txt @@ -1,9 +1,9 @@ {{alias}}( ord, side, uplo, transa, diag, M, N, α, A, lda, B, ldb ) - Performs one of the matrix-matrix operations `B = alpha * op(A) * B` or - `B = alpha * B * op(A)` where alpha is a scalar, B is an m by n matrix, - A is a unit, or non-unit, upper or lower triangular matrix and op( A ) is - one of `op( A ) = A` or `op( A ) = A**T`. + Performs one of the matrix-matrix operations `B = α * op(A) * B` or + `B = α * B * op(A)` where α is a scalar, `B` is an `M` by `N` matrix, A is + a unit, or non-unit, upper or lower triangular matrix and `op( A )` is one + of `op( A ) = A` or `op( A ) = A**T`. Indexing is relative to the first index. To introduce an offset, use typed array views. @@ -73,11 +73,10 @@ {{alias}}.ndarray(side,uplo,transa,diag,M,N,α,A,sa1,sa2,oa,B,sb1,sb2,ob) - Performs one of the matrix-matrix operations `B = alpha * op(A) * B` or - `B = alpha * B * op(A)` where alpha is a scalar, B is an m by n matrix, - A is a unit, or non-unit, upper or lower triangular matrix and op( A ) is - one of `op( A ) = A` or `op( A ) = A**T` using alternative indexing - semantics. + Performs one of the matrix-matrix operations `B = α * op(A) * B` or + `B = α * B * op(A)` where α is a scalar, `B` is an `M` by `N` matrix, A is + a unit, or non-unit, upper or lower triangular matrix and `op( A )` is one + of `op( A ) = A` or `op( A ) = A**T` using alternative indexing semantics. While typed array views mandate a view offset based on the underlying buffer, the offset parameters support indexing semantics based on starting diff --git a/lib/node_modules/@stdlib/blas/base/strmm/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/base/strmm/docs/types/index.d.ts index 78b6f68f52dd..2cbe42961c13 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/blas/base/strmm/docs/types/index.d.ts @@ -27,15 +27,15 @@ import { Layout, MatrixTriangle, DiagonalType, OperationSide, TransposeOperation */ interface Routine { /** - * Performs one of the matrix-matrix operations `B = alpha * op(A) * B` or `B = alpha * B * op(A)` where alpha is a scalar, B is an m by n matrix, A is a unit, or non-unit, upper or lower triangular matrix and op( A ) is one of `op( A ) = A` or `op( A ) = A**T`. + * Performs one of the matrix-matrix operations `B = α * op(A) * B` or `B = α * B * op(A)` where α is a scalar, `B` is an `M` by `N` matrix, A is a unit, or non-unit, upper or lower triangular matrix and `op( A )` is one of `op( A ) = A` or `op( A ) = A**T`. * * @param order - storage layout of `A` and `B` * @param side - specifies whether `op( A )` multiplies `B` from the left or right * @param uplo - specifies whether the upper or lower triangular part of the matrix `A` is supplied * @param transa - specifies the form of `op( A )` to be used in matrix multiplication * @param diag - specifies whether or not `A` is unit triangular - * @param m - number of rows in `B` - * @param n - number of columns in `B` + * @param M - number of rows in `B` + * @param N - number of columns in `B` * @param alpha - scalar constant * @param A - input matrix `A` * @param LDA - stride of the first dimension of `A` (a.k.a., leading dimension of the matrix `A`) @@ -52,17 +52,17 @@ interface Routine { * strmm( 'row-major', 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, B, 3 ); * // B => [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 31.0, 41.0, 51.0 ] */ - ( order: Layout, side: OperationSide, uplo: MatrixTriangle, transa: TransposeOperation, diag: DiagonalType, m: number, n: number, alpha: number, A: Float32Array, LDA: number, B: Float32Array, LDB: number ): Float32Array; + ( order: Layout, side: OperationSide, uplo: MatrixTriangle, transa: TransposeOperation, diag: DiagonalType, M: number, N: number, alpha: number, A: Float32Array, LDA: number, B: Float32Array, LDB: number ): Float32Array; /** - * Performs one of the matrix-matrix operations `B = alpha * op(A) * B` or `B = alpha * B * op(A)` using alternative indexing semantics, where alpha is a scalar, B is an m by n matrix, A is a unit, or non-unit, upper or lower triangular matrix and op( A ) is one of `op( A ) = A` or `op( A ) = A**T`. + * Performs one of the matrix-matrix operations `B = α * op(A) * B` or `B = α * B * op(A)` using alternative indexing semantics, where α is a scalar, `B` is an `M` by `N` matrix, A is a unit, or non-unit, upper or lower triangular matrix and `op( A )` is one of `op( A ) = A` or `op( A ) = A**T`. * * @param side - specifies whether `op( A )` multiplies `B` from the left or right * @param uplo - specifies whether the upper or lower triangular part of the matrix `A` is supplied * @param transa - specifies the form of `op( A )` to be used in matrix multiplication * @param diag - specifies whether or not `A` is unit triangular - * @param m - number of rows in `B` - * @param n - number of columns in `B` + * @param M - number of rows in `B` + * @param N - number of columns in `B` * @param alpha - scalar constant * @param A - input matrix `A` * @param strideA1 - stride of the first dimension of `A` @@ -83,19 +83,19 @@ interface Routine { * strmm.ndarray( 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 ); * // B => [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 31.0, 41.0, 51.0 ] */ - ndarray( side: OperationSide, uplo: MatrixTriangle, transa: TransposeOperation, diag: DiagonalType, m: number, n: number, alpha: number, A: Float32Array, strideA1: number, strideA2: number, offsetA: number, B: Float32Array, strideB1: number, strideB2: number, offsetB: number ): Float32Array; + ndarray( side: OperationSide, uplo: MatrixTriangle, transa: TransposeOperation, diag: DiagonalType, M: number, N: number, alpha: number, A: Float32Array, strideA1: number, strideA2: number, offsetA: number, B: Float32Array, strideB1: number, strideB2: number, offsetB: number ): Float32Array; } /** -* Performs one of the matrix-matrix operations `B = alpha * op(A) * B` or `B = alpha * B * op(A)` using alternative indexing semantics, where alpha is a scalar, B is an m by n matrix, A is a unit, or non-unit, upper or lower triangular matrix and op( A ) is one of `op( A ) = A` or `op( A ) = A**T`. +* Performs one of the matrix-matrix operations `B = α * op(A) * B` or `B = α * B * op(A)` where α is a scalar, `B` is an `M` by `N` matrix, A is a unit, or non-unit, upper or lower triangular matrix and `op( A )` is one of `op( A ) = A` or `op( A ) = A**T`. * * @param order - storage layout of `A` and `B` * @param side - specifies whether `op( A )` multiplies `B` from the left or right * @param uplo - specifies whether the upper or lower triangular part of the matrix `A` is supplied * @param transa - specifies the form of `op( A )` to be used in matrix multiplication * @param diag - specifies whether or not `A` is unit triangular -* @param m - number of rows in `B` -* @param n - number of columns in `B` +* @param M - number of rows in `B` +* @param N - number of columns in `B` * @param alpha - scalar constant * @param A - input matrix `A` * @param LDA - stride of the first dimension of `A` (a.k.a., leading dimension of the matrix `A`) diff --git a/lib/node_modules/@stdlib/blas/base/strmm/lib/base.js b/lib/node_modules/@stdlib/blas/base/strmm/lib/base.js index 9c739f99ad1a..e4eae1861740 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/lib/base.js +++ b/lib/node_modules/@stdlib/blas/base/strmm/lib/base.js @@ -94,7 +94,7 @@ function zeros( M, N, X, strideX1, strideX2, offsetX ) { // TODO: consider movin // MAIN // /** -* Performs one of the matrix-matrix operations `B = alpha * op(A) * B` or `B = alpha * B * op(A)` where alpha is a scalar, B is an m by n matrix, A is a unit, or non-unit, upper or lower triangular matrix and op( A ) is one of `op( A ) = A` or `op( A ) = A**T`. +* Performs one of the matrix-matrix operations `B = α * op(A) * B` or `B = α * B * op(A)` where α is a scalar, `B` is an `M` by `N` matrix, A is a unit, or non-unit, upper or lower triangular matrix and `op( A )` is one of `op( A ) = A` or `op( A ) = A**T`. * * @private * @param {string} side - specifies whether `op( A )` multiplies `B` from the left or right diff --git a/lib/node_modules/@stdlib/blas/base/strmm/lib/index.js b/lib/node_modules/@stdlib/blas/base/strmm/lib/index.js index 4628b4964253..eb19ab41d629 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/lib/index.js +++ b/lib/node_modules/@stdlib/blas/base/strmm/lib/index.js @@ -19,7 +19,7 @@ 'use strict'; /** -* BLAS routine to perform one of the matrix-matrix operations `B = alpha * op(A) * B` or `B = alpha * B * op(A)` where alpha is a scalar, B is an m by n matrix, A is a unit, or non-unit, upper or lower triangular matrix and op( A ) is one of `op( A ) = A` or `op( A ) = A**T`. +* BLAS routine to perform one of the matrix-matrix operations `B = α * op(A) * B` or `B = α * B * op(A)` where α is a scalar, `B` is an `M` by `N` matrix, A is a unit, or non-unit, upper or lower triangular matrix and `op( A )` is one of `op( A ) = A` or `op( A ) = A**T`. * * @module @stdlib/blas/base/strmm * diff --git a/lib/node_modules/@stdlib/blas/base/strmm/lib/ndarray.js b/lib/node_modules/@stdlib/blas/base/strmm/lib/ndarray.js index 1d08f42a4ae3..a66bb058d6a8 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/lib/ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/strmm/lib/ndarray.js @@ -31,7 +31,7 @@ var base = require( './base.js' ); // MAIN // /** -* Performs one of the matrix-matrix operations `B = alpha * op(A) * B` or `B = alpha * B * op(A)` where alpha is a scalar, B is an m by n matrix, A is a unit, or non-unit, upper or lower triangular matrix and op( A ) is one of `op( A ) = A` or `op( A ) = A**T`. +* Performs one of the matrix-matrix operations `B = α * op(A) * B` or `B = α * B * op(A)` where α is a scalar, `B` is an `M` by `N` matrix, A is a unit, or non-unit, upper or lower triangular matrix and `op( A )` is one of `op( A ) = A` or `op( A ) = A**T`. * * @param {string} side - specifies whether `op( A )` multiplies `B` from the left or right * @param {string} uplo - specifies whether the upper or lower triangular part of the matrix `A` is supplied diff --git a/lib/node_modules/@stdlib/blas/base/strmm/lib/strmm.js b/lib/node_modules/@stdlib/blas/base/strmm/lib/strmm.js index fe9920ca9d4f..ec9402d99f86 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/lib/strmm.js +++ b/lib/node_modules/@stdlib/blas/base/strmm/lib/strmm.js @@ -35,7 +35,7 @@ var base = require( './base.js' ); // MAIN // /** -* Performs one of the matrix-matrix operations `B = alpha * op(A) * B` or `B = alpha * B * op(A)` where alpha is a scalar, B is an m by n matrix, A is a unit, or non-unit, upper or lower triangular matrix and op( A ) is one of `op( A ) = A` or `op( A ) = A**T`. +* Performs one of the matrix-matrix operations `B = α * op(A) * B` or `B = α * B * op(A)` where α is a scalar, `B` is an `M` by `N` matrix, A is a unit, or non-unit, upper or lower triangular matrix and `op( A )` is one of `op( A ) = A` or `op( A ) = A**T`. * * @param {string} order - storage layout of `A` and `B` * @param {string} side - specifies whether `op( A )` multiplies `B` from the left or right From 1f6cc4cae0155e5681cf05b49509cfa79c86a068 Mon Sep 17 00:00:00 2001 From: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> Date: Sat, 14 Jun 2025 15:25:18 +0530 Subject: [PATCH 07/12] chore: minor clean-up Signed-off-by: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> --- lib/node_modules/@stdlib/blas/base/strmm/lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/blas/base/strmm/lib/index.js b/lib/node_modules/@stdlib/blas/base/strmm/lib/index.js index eb19ab41d629..025b59de06f2 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/lib/index.js +++ b/lib/node_modules/@stdlib/blas/base/strmm/lib/index.js @@ -40,7 +40,7 @@ * var A = new Float32Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] ); * var B = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] ); * -* strmm( 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 ); +* strmm.ndarray( 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 ); * // B => [ 1.0, 2.0, 3.0, 6.0, 9.0, 12.0, 31.0, 41.0, 51.0 ] */ From c08da0f37228c1a6edbf23417e368597a4f163c6 Mon Sep 17 00:00:00 2001 From: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> Date: Sat, 14 Jun 2025 15:36:52 +0530 Subject: [PATCH 08/12] chore: minor clean-up Signed-off-by: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> --- lib/node_modules/@stdlib/blas/base/strmm/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/blas/base/strmm/README.md b/lib/node_modules/@stdlib/blas/base/strmm/README.md index e11bb58ad26a..9268fbbde579 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/README.md +++ b/lib/node_modules/@stdlib/blas/base/strmm/README.md @@ -30,7 +30,7 @@ limitations under the License. var strmm = require( '@stdlib/blas/base/strmm' ); ``` -#### strmm( order, side, uplo, transa, diag, M, N, alpha, A, LDA, B, LDB ) +#### strmm( order, side, uplo, transa, diag, M, N, α, A, LDA, B, LDB ) Performs one of the matrix-matrix operations `B = α * op(A) * B` or `B = α * B * op(A)` where α is a scalar, `B` is an `M` by `N` matrix, A is a unit, or non-unit, upper or lower triangular matrix and `op( A )` is one of `op( A ) = A` or `op( A ) = A**T`. From b97ace51706cbc2df4462000acbfbe190f01772b Mon Sep 17 00:00:00 2001 From: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> Date: Sun, 15 Jun 2025 13:58:25 +0530 Subject: [PATCH 09/12] chore: minor clean-up Signed-off-by: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> --- lib/node_modules/@stdlib/blas/base/strmm/lib/base.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/node_modules/@stdlib/blas/base/strmm/lib/base.js b/lib/node_modules/@stdlib/blas/base/strmm/lib/base.js index e4eae1861740..064f524f2796 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/lib/base.js +++ b/lib/node_modules/@stdlib/blas/base/strmm/lib/base.js @@ -1,4 +1,3 @@ - /** * @license Apache-2.0 * From c3dbe71daeb926d1f2c1a5a8b9365931225b7543 Mon Sep 17 00:00:00 2001 From: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> Date: Sun, 15 Jun 2025 15:35:39 +0530 Subject: [PATCH 10/12] chore: minor clean-up Signed-off-by: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> --- .../fixtures/ra_rb_l_l_nta_nu_sa1n_sa2n.json | 54 +++++++++---------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2n.json b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2n.json index b8ffacb8eaa7..2b596f80066f 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2n.json +++ b/lib/node_modules/@stdlib/blas/base/strmm/test/fixtures/ra_rb_l_l_nta_nu_sa1n_sa2n.json @@ -1,28 +1,28 @@ { - "side": "left", - "uplo": "lower", - "transA": "no-transpose", - "diag": "non-unit", - "M": 3, - "N": 3, - "alpha": 1.0, - "A": [ 9.0, 8.0, 7.0, 0.0, 5.0, 4.0, 0.0, 0.0, 1.0 ], - "A_mat": [ - [ 1.0, 0.0, 0.0 ], - [ 4.0, 5.0, 0.0 ], - [ 7.0, 8.0, 9.0 ] - ], - "strideA1": -3, - "strideA2": -1, - "offsetA": 8, - "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], - "B_mat": [ - [ 1.0, 2.0, 3.0 ], - [ 4.0, 5.0, 6.0 ], - [ 7.0, 8.0, 9.0 ] - ], - "strideB1": 3, - "strideB2": 1, - "offsetB": 0, - "B_out": [ 1.0, 2.0, 3.0, 24.0, 33.0, 42.0, 102.0, 126.0, 150.0 ] - } + "side": "left", + "uplo": "lower", + "transA": "no-transpose", + "diag": "non-unit", + "M": 3, + "N": 3, + "alpha": 1.0, + "A": [ 9.0, 8.0, 7.0, 0.0, 5.0, 4.0, 0.0, 0.0, 1.0 ], + "A_mat": [ + [ 1.0, 0.0, 0.0 ], + [ 4.0, 5.0, 0.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideA1": -3, + "strideA2": -1, + "offsetA": 8, + "B": [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ], + "B_mat": [ + [ 1.0, 2.0, 3.0 ], + [ 4.0, 5.0, 6.0 ], + [ 7.0, 8.0, 9.0 ] + ], + "strideB1": 3, + "strideB2": 1, + "offsetB": 0, + "B_out": [ 1.0, 2.0, 3.0, 24.0, 33.0, 42.0, 102.0, 126.0, 150.0 ] +} From df094cbe3828c862a458c1a1e79a9dc1e137b7d4 Mon Sep 17 00:00:00 2001 From: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> Date: Sun, 15 Jun 2025 16:00:23 +0530 Subject: [PATCH 11/12] chore: minor clean-up Signed-off-by: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> --- lib/node_modules/@stdlib/blas/base/strmm/lib/strmm.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/node_modules/@stdlib/blas/base/strmm/lib/strmm.js b/lib/node_modules/@stdlib/blas/base/strmm/lib/strmm.js index ec9402d99f86..189667b18b42 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/lib/strmm.js +++ b/lib/node_modules/@stdlib/blas/base/strmm/lib/strmm.js @@ -1,4 +1,3 @@ - /** * @license Apache-2.0 * From 239f3803ba5c300dbe14d45c6ea16c852f895326 Mon Sep 17 00:00:00 2001 From: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> Date: Sun, 15 Jun 2025 18:25:02 +0530 Subject: [PATCH 12/12] chore: minor clean-up Signed-off-by: Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com> --- lib/node_modules/@stdlib/blas/base/strmm/lib/strmm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/blas/base/strmm/lib/strmm.js b/lib/node_modules/@stdlib/blas/base/strmm/lib/strmm.js index 189667b18b42..82bf12400fb3 100644 --- a/lib/node_modules/@stdlib/blas/base/strmm/lib/strmm.js +++ b/lib/node_modules/@stdlib/blas/base/strmm/lib/strmm.js @@ -82,7 +82,7 @@ function strmm( order, side, uplo, transa, diag, M, N, alpha, A, LDA, B, LDB ) { throw new TypeError( format( 'invalid argument. Second argument must be a valid side. Value: `%s`.', side ) ); } if ( !isMatrixTriangle( uplo ) ) { - throw new TypeError( format( 'invalid argument. Thirds argument must specify whether the lower or upper triangular matrix is supplied. Value: `%s`.', uplo ) ); + throw new TypeError( format( 'invalid argument. Third argument must specify whether the lower or upper triangular matrix is supplied. Value: `%s`.', uplo ) ); } if ( !isTransposeOperation( transa ) ) { throw new TypeError( format( 'invalid argument. Fourth argument must specify correct transpose operation. Value: `%s`.', transa ) );