From 40495491e0a42e591a415b2208c507adeed23975 Mon Sep 17 00:00:00 2001 From: bhumikasudarshani-cmd Date: Fri, 17 Apr 2026 08:03:47 +0000 Subject: [PATCH 1/2] benchmark: replace Array constructor with literal and fix formatting --- .eslintignore | 2 +- .../check_pr_issue_references.lock.yml | 8 +- .../workflows/generate_monthly_changelog.yml | 2 +- .github/workflows/git_note_amend_message.yml | 2 +- .../workflows/git_note_filter_packages.yml | 2 +- .github/workflows/lint_autofix.yml | 2 +- .github/workflows/lint_changed_files.yml | 43 +- .github/workflows/lint_random_files.yml | 4 +- .github/workflows/markdown_equations.yml | 2 +- .github/workflows/markdown_pkg_urls.yml | 2 +- .../workflows/markdown_related_packages.yml | 2 +- .github/workflows/markdown_tocs.yml | 2 +- .github/workflows/merge_ready_prs.yml | 2 +- .github/workflows/namespace_declarations.yml | 2 +- .github/workflows/namespace_exports.yml | 2 +- .github/workflows/pr_merge_develop.yml | 2 +- .github/workflows/pr_rebase_develop.yml | 2 +- .github/workflows/publish_coverage_pr.yml | 6 +- .github/workflows/run_affected_benchmarks.yml | 2 +- .github/workflows/run_affected_examples.yml | 2 +- .github/workflows/run_affected_tests.yml | 2 +- .github/workflows/run_tests_coverage.yml | 4 +- .github/workflows/run_tests_coverage_pr.yml | 2 +- .github/workflows/terminal.yml | 2 +- .github/workflows/update_cli_permissions.yml | 2 +- .github/workflows/update_contributors.yml | 2 +- .github/workflows/update_error_databases.yml | 2 +- .../update_math_scaffold_databases.yml | 2 +- .../workflows/update_package_meta_data.yml | 2 +- .../workflows/update_pr_copyright_years.yml | 2 +- .github/workflows/update_repl_docs.yml | 2 +- .../workflows/windows_test_npm_install.yml | 2 +- docs/migration-guides/mathjs/package.json | 2 +- etc/r/requirements.txt | 8 +- .../lint/pkg-json-names/test/test.lint.js | 3 +- .../lint/pkg-json/test/fixtures/invalid.json | 2 +- .../data/docs/types/index__d__ts.txt | 16 +- .../data/docs/types/index__d__ts.txt | 8 +- .../data/docs/types/index__d__ts.txt | 8 +- .../data/docs/types/index__d__ts.txt | 8 +- .../benchmark/benchmark.accessors.length.js | 2 +- .../benchmark/benchmark.length.js | 2 +- .../base/join/benchmark/benchmark.length.js | 3 +- .../benchmark/benchmark.length.js | 3 +- .../benchmark/benchmark.length.js | 3 +- .../array/base/last/benchmark/benchmark.js | 3 +- .../linspace/benchmark/benchmark.length.js | 3 +- .../linspace2d/benchmark/benchmark.size.js | 3 +- .../logspace/benchmark/benchmark.length.js | 3 +- .../base/map/benchmark/benchmark.assign.js | 3 +- .../array/base/map/benchmark/benchmark.js | 3 +- .../base/map2d/benchmark/benchmark.assign.js | 3 +- .../array/base/map2d/benchmark/benchmark.js | 3 +- .../base/map3d/benchmark/benchmark.assign.js | 3 +- .../array/base/map3d/benchmark/benchmark.js | 3 +- .../base/map4d/benchmark/benchmark.assign.js | 3 +- .../array/base/map4d/benchmark/benchmark.js | 3 +- .../base/map5d/benchmark/benchmark.assign.js | 3 +- .../array/base/map5d/benchmark/benchmark.js | 3 +- .../base/mskbinary2d/benchmark/benchmark.js | 3 +- .../base/mskbinary3d/benchmark/benchmark.js | 3 +- .../base/mskbinary4d/benchmark/benchmark.js | 3 +- .../base/mskbinary5d/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.assign.length.js | 3 +- .../base/mskfilter-map/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.length.js | 3 +- .../benchmark/benchmark.assign.length.js | 3 +- .../base/mskfilter/benchmark/benchmark.js | 3 +- .../mskfilter/benchmark/benchmark.length.js | 3 +- .../base/mskfilter2/benchmark/benchmark.js | 3 +- .../mskfilter2/benchmark/benchmark.length.js | 3 +- .../base/mskfiltern/benchmark/benchmark.js | 3 +- .../mskfiltern/benchmark/benchmark.length.js | 3 +- .../array/base/mskput/benchmark/benchmark.js | 5 +- .../base/mskput/benchmark/benchmark.length.js | 3 +- .../benchmark/benchmark.assign.length.js | 3 +- .../base/mskreject-map/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.length.js | 3 +- .../benchmark/benchmark.assign.length.js | 3 +- .../base/mskreject/benchmark/benchmark.js | 3 +- .../mskreject/benchmark/benchmark.length.js | 3 +- .../base/mskunary2d/benchmark/benchmark.js | 3 +- .../base/mskunary3d/benchmark/benchmark.js | 3 +- .../base/mskunary4d/benchmark/benchmark.js | 3 +- .../base/mskunary5d/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.js | 19 +- .../benchmark/benchmark.length.js | 3 +- .../nested2objects/benchmark/benchmark.js | 3 +- .../base/nested2views/benchmark/benchmark.js | 3 +- .../@stdlib/array/complex128/README.md | 299 +---- .../@stdlib/array/complex128/docs/repl.txt | 267 ++--- .../@stdlib/array/complex128/lib/main.js | 77 +- .../@stdlib/array/empty/lib/polyfill.js | 9 +- ...chmark.assign.complex128_complex.length.js | 3 +- ...benchmark.assign.complex128_real.length.js | 3 +- ...nchmark.assign.complex64_complex.length.js | 3 +- .../benchmark.assign.complex64_real.length.js | 3 +- .../benchmark.assign.float32_real.length.js | 3 +- .../benchmark.assign.float64_real.length.js | 3 +- ...benchmark.assign.generic_complex.length.js | 3 +- .../benchmark.assign.generic_real.length.js | 3 +- .../linspace/benchmark/benchmark.assign.js | 17 +- .../benchmark.complex128_complex.length.js | 3 +- .../benchmark.complex128_real.length.js | 3 +- .../benchmark.complex64_complex.length.js | 3 +- .../benchmark.complex64_real.length.js | 3 +- .../benchmark.default_complex.length.js | 3 +- .../benchmark.default_real.length.js | 3 +- .../benchmark.float32_real.length.js | 3 +- .../benchmark.float64_real.length.js | 3 +- .../benchmark.generic_complex.length.js | 3 +- .../benchmark.generic_real.length.js | 3 +- .../array/linspace/benchmark/benchmark.js | 21 +- .../benchmark/benchmark.from.js | 19 +- .../benchmark/benchmark.get.js | 3 +- .../benchmark/benchmark.js | 27 +- .../benchmark/benchmark.of.js | 5 +- .../benchmark/benchmark.set.js | 7 +- .../benchmark/benchmark.set.length.js | 3 +- .../benchmark/benchmark.to_string.js | 3 +- .../benchmark/benchmark.to_string.length.js | 3 +- .../benchmark/benchmark.from.js | 19 +- .../benchmark/benchmark.get.js | 3 +- .../benchmark/benchmark.js | 27 +- .../benchmark/benchmark.of.js | 5 +- .../benchmark/benchmark.set.js | 7 +- .../benchmark/benchmark.set.length.js | 3 +- .../benchmark/benchmark.to_string.js | 3 +- .../benchmark/benchmark.to_string.length.js | 3 +- .../logspace/benchmark/benchmark.length.js | 3 +- .../mostly-safe-casts/benchmark/benchmark.js | 3 +- .../array/mskfilter/benchmark/benchmark.js | 3 +- .../mskfilter/benchmark/benchmark.length.js | 3 +- .../array/mskput/benchmark/benchmark.js | 5 +- .../mskput/benchmark/benchmark.length.js | 3 +- .../array/mskreject/benchmark/benchmark.js | 3 +- .../mskreject/benchmark/benchmark.length.js | 3 +- .../array/next-dtype/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.js | 5 +- .../base/dcabs1/benchmark/benchmark.native.js | 3 +- .../@stdlib/blas/base/docs/types/index.d.ts | 6 +- .../blas/base/drotg/benchmark/benchmark.js | 3 +- .../blas/base/drotm/benchmark/benchmark.js | 3 +- .../base/drotm/benchmark/benchmark.native.js | 3 +- .../base/drotm/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../@stdlib/blas/base/dsyr/README.md | 2 +- .../blas/base/dsyr/benchmark/benchmark.js | 3 +- .../base/dsyr/benchmark/benchmark.native.js | 3 +- .../base/dsyr/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../blas/base/dsyr2/benchmark/benchmark.js | 3 +- .../base/dsyr2/benchmark/benchmark.native.js | 3 +- .../base/dsyr2/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../blas/base/dtrsv/test/test.ndarray.js | 3 +- .../blas/base/gaxpy/benchmark/benchmark.js | 3 +- .../base/gaxpy/benchmark/benchmark.ndarray.js | 3 +- .../blas/base/gcopy/benchmark/benchmark.js | 3 +- .../base/gcopy/benchmark/benchmark.ndarray.js | 3 +- .../blas/base/gsyr/test/test.ndarray.js | 1 - .../benchmark/benchmark.js | 5 +- .../benchmark/benchmark.js | 5 +- .../@stdlib/blas/base/ndarray/README.md | 9 + .../@stdlib/blas/base/ndarray/daxpy/README.md | 124 ++ .../base/ndarray/daxpy/benchmark/benchmark.js | 118 ++ .../blas/base/ndarray/daxpy/docs/repl.txt | 40 + .../base/ndarray/daxpy/docs/types/index.d.ts | 55 + .../base/ndarray/daxpy/docs/types/test.ts | 69 ++ .../blas/base/ndarray/daxpy/examples/index.js | 41 + .../blas/base/ndarray/daxpy/lib/index.js | 54 + .../blas/base/ndarray/daxpy/lib/main.js | 69 ++ .../blas/base/ndarray/daxpy/package.json | 73 ++ .../blas/base/ndarray/daxpy/test/test.js | 234 ++++ .../base/ndarray/ddot/benchmark/benchmark.js | 3 +- .../blas/base/ndarray/docs/types/index.d.ts | 83 ++ .../@stdlib/blas/base/ndarray/gaxpy/README.md | 123 ++ .../base/ndarray/gaxpy/benchmark/benchmark.js | 118 ++ .../blas/base/ndarray/gaxpy/docs/repl.txt | 39 + .../base/ndarray/gaxpy/docs/types/index.d.ts | 54 + .../base/ndarray/gaxpy/docs/types/test.ts | 69 ++ .../blas/base/ndarray/gaxpy/examples/index.js | 41 + .../blas/base/ndarray/gaxpy/lib/index.js | 53 + .../blas/base/ndarray/gaxpy/lib/main.js | 68 ++ .../blas/base/ndarray/gaxpy/package.json | 72 ++ .../blas/base/ndarray/gaxpy/test/test.js | 233 ++++ .../base/ndarray/gdot/benchmark/benchmark.js | 3 +- .../@stdlib/blas/base/ndarray/lib/index.js | 27 + .../@stdlib/blas/base/ndarray/saxpy/README.md | 124 ++ .../base/ndarray/saxpy/benchmark/benchmark.js | 118 ++ .../blas/base/ndarray/saxpy/docs/repl.txt | 40 + .../base/ndarray/saxpy/docs/types/index.d.ts | 55 + .../base/ndarray/saxpy/docs/types/test.ts | 69 ++ .../blas/base/ndarray/saxpy/examples/index.js | 41 + .../blas/base/ndarray/saxpy/lib/index.js | 54 + .../blas/base/ndarray/saxpy/lib/main.js | 69 ++ .../blas/base/ndarray/saxpy/package.json | 73 ++ .../blas/base/ndarray/saxpy/test/test.js | 234 ++++ .../base/ndarray/sdot/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.js | 5 +- .../benchmark/benchmark.js | 5 +- .../base/scabs1/benchmark/benchmark.native.js | 3 +- .../@stdlib/blas/base/sdsdot/README.md | 2 +- .../@stdlib/blas/base/sger/README.md | 2 +- .../base/srotm/benchmark/c/benchmark.length.c | 16 +- .../@stdlib/blas/base/sspr/README.md | 2 +- .../@stdlib/blas/base/ssyr/README.md | 2 +- .../blas/base/ssyr2/test/test.ssyr2.native.js | 1 - .../blas/base/strsv/docs/types/index.d.ts | 4 +- .../blas/base/strsv/test/test.ndarray.js | 3 +- .../benchmark/benchmark.js | 5 +- .../benchmark/benchmark.js | 5 +- .../base/wasm/cswap/benchmark/benchmark.js | 3 +- .../wasm/cswap/benchmark/benchmark.module.js | 3 +- .../cswap/benchmark/benchmark.module.main.js | 3 +- .../benchmark/benchmark.module.ndarray.js | 3 +- .../wasm/cswap/benchmark/benchmark.ndarray.js | 3 +- .../base/wasm/idamax/benchmark/benchmark.js | 3 +- .../wasm/idamax/benchmark/benchmark.module.js | 3 +- .../idamax/benchmark/benchmark.module.main.js | 3 +- .../benchmark/benchmark.module.ndarray.js | 3 +- .../idamax/benchmark/benchmark.ndarray.js | 3 +- .../base/wasm/isamax/benchmark/benchmark.js | 3 +- .../wasm/isamax/benchmark/benchmark.module.js | 3 +- .../isamax/benchmark/benchmark.module.main.js | 3 +- .../benchmark/benchmark.module.ndarray.js | 3 +- .../isamax/benchmark/benchmark.ndarray.js | 3 +- .../base/wasm/sasum/benchmark/benchmark.js | 3 +- .../wasm/sasum/benchmark/benchmark.module.js | 3 +- .../sasum/benchmark/benchmark.module.main.js | 3 +- .../benchmark/benchmark.module.ndarray.js | 3 +- .../wasm/sasum/benchmark/benchmark.ndarray.js | 3 +- .../base/wasm/saxpy/benchmark/benchmark.js | 3 +- .../wasm/saxpy/benchmark/benchmark.module.js | 3 +- .../saxpy/benchmark/benchmark.module.main.js | 3 +- .../benchmark/benchmark.module.ndarray.js | 3 +- .../wasm/saxpy/benchmark/benchmark.ndarray.js | 3 +- .../base/wasm/scasum/benchmark/benchmark.js | 3 +- .../wasm/scasum/benchmark/benchmark.module.js | 3 +- .../scasum/benchmark/benchmark.module.main.js | 3 +- .../benchmark/benchmark.module.ndarray.js | 3 +- .../scasum/benchmark/benchmark.ndarray.js | 3 +- .../base/wasm/scnrm2/benchmark/benchmark.js | 3 +- .../wasm/scnrm2/benchmark/benchmark.module.js | 3 +- .../scnrm2/benchmark/benchmark.module.main.js | 3 +- .../benchmark/benchmark.module.ndarray.js | 3 +- .../scnrm2/benchmark/benchmark.ndarray.js | 3 +- .../base/wasm/scopy/benchmark/benchmark.js | 3 +- .../wasm/scopy/benchmark/benchmark.module.js | 3 +- .../scopy/benchmark/benchmark.module.main.js | 3 +- .../benchmark/benchmark.module.ndarray.js | 3 +- .../wasm/scopy/benchmark/benchmark.ndarray.js | 3 +- .../base/wasm/sdot/benchmark/benchmark.js | 3 +- .../wasm/sdot/benchmark/benchmark.module.js | 3 +- .../sdot/benchmark/benchmark.module.main.js | 3 +- .../benchmark/benchmark.module.ndarray.js | 3 +- .../wasm/sdot/benchmark/benchmark.ndarray.js | 3 +- .../base/wasm/sdsdot/benchmark/benchmark.js | 3 +- .../wasm/sdsdot/benchmark/benchmark.module.js | 3 +- .../sdsdot/benchmark/benchmark.module.main.js | 3 +- .../benchmark/benchmark.module.ndarray.js | 3 +- .../sdsdot/benchmark/benchmark.ndarray.js | 3 +- .../base/wasm/snrm2/benchmark/benchmark.js | 3 +- .../wasm/snrm2/benchmark/benchmark.module.js | 3 +- .../snrm2/benchmark/benchmark.module.main.js | 3 +- .../benchmark/benchmark.module.ndarray.js | 3 +- .../wasm/snrm2/benchmark/benchmark.ndarray.js | 3 +- .../base/wasm/srot/benchmark/benchmark.js | 3 +- .../wasm/srot/benchmark/benchmark.module.js | 3 +- .../srot/benchmark/benchmark.module.main.js | 3 +- .../benchmark/benchmark.module.ndarray.js | 3 +- .../wasm/srot/benchmark/benchmark.ndarray.js | 3 +- .../base/wasm/srotm/benchmark/benchmark.js | 3 +- .../wasm/srotm/benchmark/benchmark.module.js | 3 +- .../srotm/benchmark/benchmark.module.main.js | 3 +- .../benchmark/benchmark.module.ndarray.js | 3 +- .../wasm/srotm/benchmark/benchmark.ndarray.js | 3 +- .../base/wasm/sscal/benchmark/benchmark.js | 3 +- .../wasm/sscal/benchmark/benchmark.module.js | 3 +- .../sscal/benchmark/benchmark.module.main.js | 3 +- .../benchmark/benchmark.module.ndarray.js | 3 +- .../wasm/sscal/benchmark/benchmark.ndarray.js | 3 +- .../base/wasm/sswap/benchmark/benchmark.js | 3 +- .../wasm/sswap/benchmark/benchmark.module.js | 3 +- .../sswap/benchmark/benchmark.module.main.js | 3 +- .../benchmark/benchmark.module.ndarray.js | 3 +- .../wasm/sswap/benchmark/benchmark.ndarray.js | 3 +- .../base/wasm/zcopy/benchmark/benchmark.js | 3 +- .../wasm/zcopy/benchmark/benchmark.module.js | 3 +- .../zcopy/benchmark/benchmark.module.main.js | 3 +- .../benchmark/benchmark.module.ndarray.js | 3 +- .../wasm/zcopy/benchmark/benchmark.ndarray.js | 3 +- .../base/wasm/zdrot/benchmark/benchmark.js | 3 +- .../wasm/zdrot/benchmark/benchmark.module.js | 3 +- .../zdrot/benchmark/benchmark.module.main.js | 3 +- .../benchmark/benchmark.module.ndarray.js | 3 +- .../wasm/zdrot/benchmark/benchmark.ndarray.js | 3 +- .../base/wasm/zscal/benchmark/benchmark.js | 3 +- .../wasm/zscal/benchmark/benchmark.module.js | 3 +- .../zscal/benchmark/benchmark.module.main.js | 3 +- .../benchmark/benchmark.module.ndarray.js | 3 +- .../wasm/zscal/benchmark/benchmark.ndarray.js | 3 +- .../base/wasm/zswap/benchmark/benchmark.js | 3 +- .../wasm/zswap/benchmark/benchmark.module.js | 3 +- .../zswap/benchmark/benchmark.module.main.js | 3 +- .../benchmark/benchmark.module.ndarray.js | 3 +- .../wasm/zswap/benchmark/benchmark.ndarray.js | 3 +- .../blas/base/zaxpy/benchmark/benchmark.js | 3 +- .../base/zaxpy/benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.native.ndarray.js | 3 +- .../base/zaxpy/benchmark/benchmark.ndarray.js | 3 +- .../blas/base/zcopy/benchmark/benchmark.js | 3 +- .../base/zcopy/benchmark/benchmark.native.js | 3 +- .../base/zcopy/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- lib/node_modules/@stdlib/blas/ext/README.md | 3 + .../@stdlib/blas/ext/base/README.md | 11 +- .../@stdlib/blas/ext/base/cfill/README.md | 2 +- .../ext/base/cfill/benchmark/benchmark.js | 3 +- .../base/cfill/benchmark/benchmark.native.js | 3 +- .../base/cfill/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../base/cindex-of-row/docs/types/index.d.ts | 16 +- .../blas/ext/base/csum/benchmark/benchmark.js | 3 +- .../base/csum/benchmark/benchmark.native.js | 3 +- .../base/csum/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../ext/base/csumkbn/benchmark/benchmark.js | 3 +- .../csumkbn/benchmark/benchmark.native.js | 3 +- .../csumkbn/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../@stdlib/blas/ext/base/dasumpw/README.md | 4 +- .../blas/ext/base/dcusumkbn2/README.md | 8 +- .../@stdlib/blas/ext/base/dcusumors/README.md | 4 +- .../@stdlib/blas/ext/base/dcusumpw/README.md | 4 +- .../base/dindex-of-row/docs/types/index.d.ts | 16 +- .../@stdlib/blas/ext/base/dindex-of/README.md | 2 +- .../ext/base/dnanasum/benchmark/benchmark.js | 3 +- .../dnanasum/benchmark/benchmark.native.js | 3 +- .../dnanasum/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../base/dnancusumkbn/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../blas/ext/base/dnannsumors/README.md | 2 +- .../blas/ext/base/dnannsumpw/README.md | 2 +- .../base/dnansumkbn2/benchmark/benchmark.js | 3 +- .../dnansumkbn2/benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../base/dnansumors/benchmark/benchmark.js | 3 +- .../dnansumors/benchmark/benchmark.native.js | 3 +- .../dnansumors/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../ext/base/dnansumpw/benchmark/benchmark.js | 3 +- .../dnansumpw/benchmark/benchmark.native.js | 3 +- .../dnansumpw/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../blas/ext/base/docs/types/index.d.ts | 92 +- .../@stdlib/blas/ext/base/drrss/README.md | 2 +- .../ext/base/dsapxsum/benchmark/benchmark.js | 3 +- .../dsapxsum/benchmark/benchmark.native.js | 3 +- .../dsapxsum/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../base/dsapxsumpw/benchmark/benchmark.js | 3 +- .../dsapxsumpw/benchmark/benchmark.native.js | 3 +- .../dsapxsumpw/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../base/dsnannsumors/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../ext/base/dsnansum/benchmark/benchmark.js | 3 +- .../dsnansum/benchmark/benchmark.native.js | 3 +- .../dsnansum/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../base/dsnansumors/benchmark/benchmark.js | 3 +- .../dsnansumors/benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../base/dsnansumpw/benchmark/benchmark.js | 3 +- .../dsnansumpw/benchmark/benchmark.native.js | 3 +- .../dsnansumpw/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../c/unsorted-random/benchmark.length.c | 4 +- .../benchmark.mostly_sorted_few_uniques.js | 3 +- ...chmark.mostly_sorted_few_uniques.native.js | 3 +- ...hmark.mostly_sorted_few_uniques.ndarray.js | 3 +- ...ostly_sorted_few_uniques.ndarray.native.js | 3 +- .../benchmark.mostly_sorted_random.js | 3 +- .../benchmark.mostly_sorted_random.native.js | 3 +- .../benchmark.mostly_sorted_random.ndarray.js | 3 +- ...ark.mostly_sorted_random.ndarray.native.js | 3 +- ...benchmark.rev_mostly_sorted_few_uniques.js | 3 +- ...rk.rev_mostly_sorted_few_uniques.native.js | 3 +- ...k.rev_mostly_sorted_few_uniques.ndarray.js | 3 +- ...ostly_sorted_few_uniques.ndarray.native.js | 3 +- .../benchmark.rev_mostly_sorted_random.js | 3 +- ...nchmark.rev_mostly_sorted_random.native.js | 3 +- ...chmark.rev_mostly_sorted_random.ndarray.js | 3 +- ...rev_mostly_sorted_random.ndarray.native.js | 3 +- .../benchmark.rev_sorted_few_uniques.js | 3 +- ...benchmark.rev_sorted_few_uniques.native.js | 3 +- ...enchmark.rev_sorted_few_uniques.ndarray.js | 3 +- ...k.rev_sorted_few_uniques.ndarray.native.js | 3 +- .../benchmark/benchmark.rev_sorted_random.js | 3 +- .../benchmark.rev_sorted_random.native.js | 3 +- .../benchmark.rev_sorted_random.ndarray.js | 3 +- ...chmark.rev_sorted_random.ndarray.native.js | 3 +- .../benchmark/benchmark.sorted_few_uniques.js | 3 +- .../benchmark.sorted_few_uniques.native.js | 3 +- .../benchmark.sorted_few_uniques.ndarray.js | 3 +- ...hmark.sorted_few_uniques.ndarray.native.js | 3 +- .../benchmark/benchmark.sorted_random.js | 3 +- .../benchmark.sorted_random.native.js | 3 +- .../benchmark.sorted_random.ndarray.js | 3 +- .../benchmark.sorted_random.ndarray.native.js | 3 +- .../benchmark.unsorted_few_uniques.js | 3 +- .../benchmark.unsorted_few_uniques.native.js | 3 +- .../benchmark.unsorted_few_uniques.ndarray.js | 3 +- ...ark.unsorted_few_uniques.ndarray.native.js | 3 +- .../benchmark/benchmark.unsorted_random.js | 3 +- .../benchmark.unsorted_random.native.js | 3 +- .../benchmark.unsorted_random.ndarray.js | 3 +- ...enchmark.unsorted_random.ndarray.native.js | 3 +- .../benchmark.mostly_sorted_few_uniques.js | 3 +- ...chmark.mostly_sorted_few_uniques.native.js | 3 +- ...hmark.mostly_sorted_few_uniques.ndarray.js | 3 +- ...ostly_sorted_few_uniques.ndarray.native.js | 3 +- .../benchmark.mostly_sorted_random.js | 3 +- .../benchmark.mostly_sorted_random.native.js | 3 +- .../benchmark.mostly_sorted_random.ndarray.js | 3 +- ...ark.mostly_sorted_random.ndarray.native.js | 3 +- ...benchmark.rev_mostly_sorted_few_uniques.js | 3 +- ...rk.rev_mostly_sorted_few_uniques.native.js | 3 +- ...k.rev_mostly_sorted_few_uniques.ndarray.js | 3 +- ...ostly_sorted_few_uniques.ndarray.native.js | 3 +- .../benchmark.rev_mostly_sorted_random.js | 3 +- ...nchmark.rev_mostly_sorted_random.native.js | 3 +- ...chmark.rev_mostly_sorted_random.ndarray.js | 3 +- ...rev_mostly_sorted_random.ndarray.native.js | 3 +- .../benchmark.rev_sorted_few_uniques.js | 3 +- ...benchmark.rev_sorted_few_uniques.native.js | 3 +- ...enchmark.rev_sorted_few_uniques.ndarray.js | 3 +- ...k.rev_sorted_few_uniques.ndarray.native.js | 3 +- .../benchmark/benchmark.rev_sorted_random.js | 3 +- .../benchmark.rev_sorted_random.native.js | 3 +- .../benchmark.rev_sorted_random.ndarray.js | 3 +- ...chmark.rev_sorted_random.ndarray.native.js | 3 +- .../benchmark/benchmark.sorted_few_uniques.js | 3 +- .../benchmark.sorted_few_uniques.native.js | 3 +- .../benchmark.sorted_few_uniques.ndarray.js | 3 +- ...hmark.sorted_few_uniques.ndarray.native.js | 3 +- .../benchmark/benchmark.sorted_random.js | 3 +- .../benchmark.sorted_random.native.js | 3 +- .../benchmark.sorted_random.ndarray.js | 3 +- .../benchmark.sorted_random.ndarray.native.js | 3 +- .../benchmark.unsorted_few_uniques.js | 3 +- .../benchmark.unsorted_few_uniques.native.js | 3 +- .../benchmark.unsorted_few_uniques.ndarray.js | 3 +- ...ark.unsorted_few_uniques.ndarray.native.js | 3 +- .../benchmark/benchmark.unsorted_random.js | 3 +- .../benchmark.unsorted_random.native.js | 3 +- .../benchmark.unsorted_random.ndarray.js | 3 +- ...enchmark.unsorted_random.ndarray.native.js | 3 +- .../benchmark.mostly_sorted_few_uniques.js | 3 +- ...chmark.mostly_sorted_few_uniques.native.js | 3 +- ...hmark.mostly_sorted_few_uniques.ndarray.js | 3 +- ...ostly_sorted_few_uniques.ndarray.native.js | 3 +- .../benchmark.mostly_sorted_random.js | 3 +- .../benchmark.mostly_sorted_random.native.js | 3 +- .../benchmark.mostly_sorted_random.ndarray.js | 3 +- ...ark.mostly_sorted_random.ndarray.native.js | 3 +- ...benchmark.rev_mostly_sorted_few_uniques.js | 3 +- ...rk.rev_mostly_sorted_few_uniques.native.js | 3 +- ...k.rev_mostly_sorted_few_uniques.ndarray.js | 3 +- ...ostly_sorted_few_uniques.ndarray.native.js | 3 +- .../benchmark.rev_mostly_sorted_random.js | 3 +- ...nchmark.rev_mostly_sorted_random.native.js | 3 +- ...chmark.rev_mostly_sorted_random.ndarray.js | 3 +- ...rev_mostly_sorted_random.ndarray.native.js | 3 +- .../benchmark.rev_sorted_few_uniques.js | 3 +- ...benchmark.rev_sorted_few_uniques.native.js | 3 +- ...enchmark.rev_sorted_few_uniques.ndarray.js | 3 +- ...k.rev_sorted_few_uniques.ndarray.native.js | 3 +- .../benchmark/benchmark.rev_sorted_random.js | 3 +- .../benchmark.rev_sorted_random.native.js | 3 +- .../benchmark.rev_sorted_random.ndarray.js | 3 +- ...chmark.rev_sorted_random.ndarray.native.js | 3 +- .../benchmark/benchmark.sorted_few_uniques.js | 3 +- .../benchmark.sorted_few_uniques.native.js | 3 +- .../benchmark.sorted_few_uniques.ndarray.js | 3 +- ...hmark.sorted_few_uniques.ndarray.native.js | 3 +- .../benchmark/benchmark.sorted_random.js | 3 +- .../benchmark.sorted_random.native.js | 3 +- .../benchmark.sorted_random.ndarray.js | 3 +- .../benchmark.sorted_random.ndarray.native.js | 3 +- .../benchmark.unsorted_few_uniques.js | 3 +- .../benchmark.unsorted_few_uniques.native.js | 3 +- .../benchmark.unsorted_few_uniques.ndarray.js | 3 +- ...ark.unsorted_few_uniques.ndarray.native.js | 3 +- .../benchmark/benchmark.unsorted_random.js | 3 +- .../benchmark.unsorted_random.native.js | 3 +- .../benchmark.unsorted_random.ndarray.js | 3 +- ...enchmark.unsorted_random.ndarray.native.js | 3 +- .../benchmark.mostly_sorted_few_uniques.js | 3 +- ...chmark.mostly_sorted_few_uniques.native.js | 3 +- ...hmark.mostly_sorted_few_uniques.ndarray.js | 3 +- ...ostly_sorted_few_uniques.ndarray.native.js | 3 +- .../benchmark.mostly_sorted_random.js | 3 +- .../benchmark.mostly_sorted_random.native.js | 3 +- .../benchmark.mostly_sorted_random.ndarray.js | 3 +- ...ark.mostly_sorted_random.ndarray.native.js | 3 +- ...benchmark.rev_mostly_sorted_few_uniques.js | 3 +- ...rk.rev_mostly_sorted_few_uniques.native.js | 3 +- ...k.rev_mostly_sorted_few_uniques.ndarray.js | 3 +- ...ostly_sorted_few_uniques.ndarray.native.js | 3 +- .../benchmark.rev_mostly_sorted_random.js | 3 +- ...nchmark.rev_mostly_sorted_random.native.js | 3 +- ...chmark.rev_mostly_sorted_random.ndarray.js | 3 +- ...rev_mostly_sorted_random.ndarray.native.js | 3 +- .../benchmark.rev_sorted_few_uniques.js | 3 +- ...benchmark.rev_sorted_few_uniques.native.js | 3 +- ...enchmark.rev_sorted_few_uniques.ndarray.js | 3 +- ...k.rev_sorted_few_uniques.ndarray.native.js | 3 +- .../benchmark/benchmark.rev_sorted_random.js | 3 +- .../benchmark.rev_sorted_random.native.js | 3 +- .../benchmark.rev_sorted_random.ndarray.js | 3 +- ...chmark.rev_sorted_random.ndarray.native.js | 3 +- .../benchmark/benchmark.sorted_few_uniques.js | 3 +- .../benchmark.sorted_few_uniques.native.js | 3 +- .../benchmark.sorted_few_uniques.ndarray.js | 3 +- ...hmark.sorted_few_uniques.ndarray.native.js | 3 +- .../benchmark/benchmark.sorted_random.js | 3 +- .../benchmark.sorted_random.native.js | 3 +- .../benchmark.sorted_random.ndarray.js | 3 +- .../benchmark.sorted_random.ndarray.native.js | 3 +- .../benchmark.unsorted_few_uniques.js | 3 +- .../benchmark.unsorted_few_uniques.native.js | 3 +- .../benchmark.unsorted_few_uniques.ndarray.js | 3 +- ...ark.unsorted_few_uniques.ndarray.native.js | 3 +- .../benchmark/benchmark.unsorted_random.js | 3 +- .../benchmark.unsorted_random.native.js | 3 +- .../benchmark.unsorted_random.ndarray.js | 3 +- ...enchmark.unsorted_random.ndarray.native.js | 3 +- .../c/unsorted-random/benchmark.length.c | 4 +- .../benchmark.mostly_sorted_few_uniques.js | 3 +- ...chmark.mostly_sorted_few_uniques.native.js | 3 +- ...hmark.mostly_sorted_few_uniques.ndarray.js | 3 +- ...ostly_sorted_few_uniques.ndarray.native.js | 3 +- .../benchmark.mostly_sorted_random.js | 3 +- .../benchmark.mostly_sorted_random.native.js | 3 +- .../benchmark.mostly_sorted_random.ndarray.js | 3 +- ...ark.mostly_sorted_random.ndarray.native.js | 3 +- ...benchmark.rev_mostly_sorted_few_uniques.js | 3 +- ...rk.rev_mostly_sorted_few_uniques.native.js | 3 +- ...k.rev_mostly_sorted_few_uniques.ndarray.js | 3 +- ...ostly_sorted_few_uniques.ndarray.native.js | 3 +- .../benchmark.rev_mostly_sorted_random.js | 3 +- ...nchmark.rev_mostly_sorted_random.native.js | 3 +- ...chmark.rev_mostly_sorted_random.ndarray.js | 3 +- ...rev_mostly_sorted_random.ndarray.native.js | 3 +- .../benchmark.rev_sorted_few_uniques.js | 3 +- ...benchmark.rev_sorted_few_uniques.native.js | 3 +- ...enchmark.rev_sorted_few_uniques.ndarray.js | 3 +- ...k.rev_sorted_few_uniques.ndarray.native.js | 3 +- .../benchmark/benchmark.rev_sorted_random.js | 3 +- .../benchmark.rev_sorted_random.native.js | 3 +- .../benchmark.rev_sorted_random.ndarray.js | 3 +- ...chmark.rev_sorted_random.ndarray.native.js | 3 +- .../benchmark/benchmark.sorted_few_uniques.js | 3 +- .../benchmark.sorted_few_uniques.native.js | 3 +- .../benchmark.sorted_few_uniques.ndarray.js | 3 +- ...hmark.sorted_few_uniques.ndarray.native.js | 3 +- .../benchmark/benchmark.sorted_random.js | 3 +- .../benchmark.sorted_random.native.js | 3 +- .../benchmark.sorted_random.ndarray.js | 3 +- .../benchmark.sorted_random.ndarray.native.js | 3 +- .../benchmark.unsorted_few_uniques.js | 3 +- .../benchmark.unsorted_few_uniques.native.js | 3 +- .../benchmark.unsorted_few_uniques.ndarray.js | 3 +- ...ark.unsorted_few_uniques.ndarray.native.js | 3 +- .../benchmark/benchmark.unsorted_random.js | 3 +- .../benchmark.unsorted_random.native.js | 3 +- .../benchmark.unsorted_random.ndarray.js | 3 +- ...enchmark.unsorted_random.ndarray.native.js | 3 +- .../c/unsorted-random/benchmark.length.c | 4 +- .../benchmark.mostly_sorted_few_uniques.js | 3 +- ...chmark.mostly_sorted_few_uniques.native.js | 3 +- ...hmark.mostly_sorted_few_uniques.ndarray.js | 3 +- ...ostly_sorted_few_uniques.ndarray.native.js | 3 +- .../benchmark.mostly_sorted_random.js | 3 +- .../benchmark.mostly_sorted_random.native.js | 3 +- .../benchmark.mostly_sorted_random.ndarray.js | 3 +- ...ark.mostly_sorted_random.ndarray.native.js | 3 +- ...benchmark.rev_mostly_sorted_few_uniques.js | 3 +- ...rk.rev_mostly_sorted_few_uniques.native.js | 3 +- ...k.rev_mostly_sorted_few_uniques.ndarray.js | 3 +- ...ostly_sorted_few_uniques.ndarray.native.js | 3 +- .../benchmark.rev_mostly_sorted_random.js | 3 +- ...nchmark.rev_mostly_sorted_random.native.js | 3 +- ...chmark.rev_mostly_sorted_random.ndarray.js | 3 +- ...rev_mostly_sorted_random.ndarray.native.js | 3 +- .../benchmark.rev_sorted_few_uniques.js | 3 +- ...benchmark.rev_sorted_few_uniques.native.js | 3 +- ...enchmark.rev_sorted_few_uniques.ndarray.js | 3 +- ...k.rev_sorted_few_uniques.ndarray.native.js | 3 +- .../benchmark/benchmark.rev_sorted_random.js | 3 +- .../benchmark.rev_sorted_random.native.js | 3 +- .../benchmark.rev_sorted_random.ndarray.js | 3 +- ...chmark.rev_sorted_random.ndarray.native.js | 3 +- .../benchmark/benchmark.sorted_few_uniques.js | 3 +- .../benchmark.sorted_few_uniques.native.js | 3 +- .../benchmark.sorted_few_uniques.ndarray.js | 3 +- ...hmark.sorted_few_uniques.ndarray.native.js | 3 +- .../benchmark/benchmark.sorted_random.js | 3 +- .../benchmark.sorted_random.native.js | 3 +- .../benchmark.sorted_random.ndarray.js | 3 +- .../benchmark.sorted_random.ndarray.native.js | 3 +- .../benchmark.unsorted_few_uniques.js | 3 +- .../benchmark.unsorted_few_uniques.native.js | 3 +- .../benchmark.unsorted_few_uniques.ndarray.js | 3 +- ...ark.unsorted_few_uniques.ndarray.native.js | 3 +- .../benchmark/benchmark.unsorted_random.js | 3 +- .../benchmark.unsorted_random.native.js | 3 +- .../benchmark.unsorted_random.ndarray.js | 3 +- ...enchmark.unsorted_random.ndarray.native.js | 3 +- .../ext/base/dssumors/benchmark/benchmark.js | 3 +- .../dssumors/benchmark/benchmark.native.js | 3 +- .../dssumors/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../ext/base/dssumpw/benchmark/benchmark.js | 3 +- .../dssumpw/benchmark/benchmark.native.js | 3 +- .../dssumpw/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../blas/ext/base/dsum/benchmark/benchmark.js | 3 +- .../base/dsum/benchmark/benchmark.native.js | 3 +- .../base/dsum/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../ext/base/dsumpw/benchmark/benchmark.js | 3 +- .../base/dsumpw/benchmark/benchmark.native.js | 3 +- .../dsumpw/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../blas/ext/base/gapx/benchmark/benchmark.js | 3 +- .../base/gapx/benchmark/benchmark.ndarray.js | 3 +- .../ext/base/gapxsum/benchmark/benchmark.js | 3 +- .../gapxsum/benchmark/benchmark.ndarray.js | 3 +- .../base/gapxsumors/benchmark/benchmark.js | 3 +- .../gapxsumors/benchmark/benchmark.ndarray.js | 3 +- .../ext/base/gapxsumpw/benchmark/benchmark.js | 3 +- .../gapxsumpw/benchmark/benchmark.ndarray.js | 3 +- .../ext/base/gasumpw/benchmark/benchmark.js | 3 +- .../gasumpw/benchmark/benchmark.ndarray.js | 3 +- .../ext/base/gcusumkbn/benchmark/benchmark.js | 3 +- .../gcusumkbn/benchmark/benchmark.ndarray.js | 3 +- .../base/gcusumkbn2/benchmark/benchmark.js | 3 +- .../gcusumkbn2/benchmark/benchmark.ndarray.js | 3 +- .../ext/base/gcusumors/benchmark/benchmark.js | 3 +- .../gcusumors/benchmark/benchmark.ndarray.js | 3 +- .../ext/base/gcusumpw/benchmark/benchmark.js | 3 +- .../gcusumpw/benchmark/benchmark.ndarray.js | 3 +- .../ext/base/gfill-by/benchmark/benchmark.js | 3 +- .../gfill-by/benchmark/benchmark.ndarray.js | 3 +- .../base/gfind-index/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../gfind-last-index/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../base/gindex-of-row/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../ext/base/gindex-of/benchmark/benchmark.js | 3 +- .../gindex-of/benchmark/benchmark.ndarray.js | 3 +- .../ext/base/gjoin/benchmark/benchmark.js | 3 +- .../base/gjoin/benchmark/benchmark.ndarray.js | 3 +- .../ext/base/glinspace/benchmark/benchmark.js | 3 +- .../glinspace/benchmark/benchmark.ndarray.js | 3 +- .../base/gnannsumpw/benchmark/benchmark.js | 3 +- .../gnannsumpw/benchmark/benchmark.ndarray.js | 3 +- .../ext/base/gnansum/benchmark/benchmark.js | 3 +- .../gnansum/benchmark/benchmark.ndarray.js | 3 +- .../base/gnansumkbn/benchmark/benchmark.js | 3 +- .../gnansumkbn/benchmark/benchmark.ndarray.js | 3 +- .../base/gnansumkbn2/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../base/gnansumors/benchmark/benchmark.js | 3 +- .../gnansumors/benchmark/benchmark.ndarray.js | 3 +- .../ext/base/gnansumpw/benchmark/benchmark.js | 3 +- .../gnansumpw/benchmark/benchmark.ndarray.js | 3 +- .../blas/ext/base/greplicate/README.md | 177 +++ .../base/greplicate/benchmark/benchmark.js | 106 ++ .../greplicate/benchmark/benchmark.ndarray.js | 106 ++ .../blas/ext/base/greplicate/docs/repl.txt | 118 ++ .../ext/base/greplicate/docs/types/index.d.ts | 112 ++ .../ext/base/greplicate/docs/types/test.ts | 283 +++++ .../ext/base/greplicate/examples/index.js | 34 + .../blas/ext/base/greplicate/lib/accessors.js | 88 ++ .../blas/ext/base/greplicate/lib/index.js | 59 + .../blas/ext/base/greplicate/lib/main.js | 56 + .../blas/ext/base/greplicate/lib/ndarray.js | 83 ++ .../blas/ext/base/greplicate/package.json | 67 ++ .../blas/ext/base/greplicate/test/test.js | 38 + .../ext/base/greplicate/test/test.main.js | 430 +++++++ .../ext/base/greplicate/test/test.ndarray.js | 543 +++++++++ .../blas/ext/base/grev/benchmark/benchmark.js | 3 +- .../base/grev/benchmark/benchmark.ndarray.js | 3 +- .../benchmark.mostly_sorted_few_uniques.js | 3 +- ...hmark.mostly_sorted_few_uniques.ndarray.js | 3 +- .../benchmark.mostly_sorted_random.js | 3 +- .../benchmark.mostly_sorted_random.ndarray.js | 3 +- ...benchmark.rev_mostly_sorted_few_uniques.js | 3 +- ...k.rev_mostly_sorted_few_uniques.ndarray.js | 3 +- .../benchmark.rev_mostly_sorted_random.js | 3 +- ...chmark.rev_mostly_sorted_random.ndarray.js | 3 +- .../benchmark.rev_sorted_few_uniques.js | 3 +- ...enchmark.rev_sorted_few_uniques.ndarray.js | 3 +- .../benchmark/benchmark.rev_sorted_random.js | 3 +- .../benchmark.rev_sorted_random.ndarray.js | 3 +- .../benchmark/benchmark.sorted_few_uniques.js | 3 +- .../benchmark.sorted_few_uniques.ndarray.js | 3 +- .../benchmark/benchmark.sorted_random.js | 3 +- .../benchmark.sorted_random.ndarray.js | 3 +- .../benchmark.unsorted_few_uniques.js | 3 +- .../benchmark.unsorted_few_uniques.ndarray.js | 3 +- .../benchmark/benchmark.unsorted_random.js | 3 +- .../benchmark.unsorted_random.ndarray.js | 3 +- .../benchmark.mostly_sorted_few_uniques.js | 3 +- ...hmark.mostly_sorted_few_uniques.ndarray.js | 3 +- .../benchmark.mostly_sorted_random.js | 3 +- .../benchmark.mostly_sorted_random.ndarray.js | 3 +- ...benchmark.rev_mostly_sorted_few_uniques.js | 3 +- ...k.rev_mostly_sorted_few_uniques.ndarray.js | 3 +- .../benchmark.rev_mostly_sorted_random.js | 3 +- ...chmark.rev_mostly_sorted_random.ndarray.js | 3 +- .../benchmark.rev_sorted_few_uniques.js | 3 +- ...enchmark.rev_sorted_few_uniques.ndarray.js | 3 +- .../benchmark/benchmark.rev_sorted_random.js | 3 +- .../benchmark.rev_sorted_random.ndarray.js | 3 +- .../benchmark/benchmark.sorted_few_uniques.js | 3 +- .../benchmark.sorted_few_uniques.ndarray.js | 3 +- .../benchmark/benchmark.sorted_random.js | 3 +- .../benchmark.sorted_random.ndarray.js | 3 +- .../benchmark.unsorted_few_uniques.js | 3 +- .../benchmark.unsorted_few_uniques.ndarray.js | 3 +- .../benchmark/benchmark.unsorted_random.js | 3 +- .../benchmark.unsorted_random.ndarray.js | 3 +- .../benchmark.mostly_sorted_few_uniques.js | 3 +- ...hmark.mostly_sorted_few_uniques.ndarray.js | 3 +- .../benchmark.mostly_sorted_random.js | 3 +- .../benchmark.mostly_sorted_random.ndarray.js | 3 +- ...benchmark.rev_mostly_sorted_few_uniques.js | 3 +- ...k.rev_mostly_sorted_few_uniques.ndarray.js | 3 +- .../benchmark.rev_mostly_sorted_random.js | 3 +- ...chmark.rev_mostly_sorted_random.ndarray.js | 3 +- .../benchmark.rev_sorted_few_uniques.js | 3 +- ...enchmark.rev_sorted_few_uniques.ndarray.js | 3 +- .../benchmark/benchmark.rev_sorted_random.js | 3 +- .../benchmark.rev_sorted_random.ndarray.js | 3 +- .../benchmark/benchmark.sorted_few_uniques.js | 3 +- .../benchmark.sorted_few_uniques.ndarray.js | 3 +- .../benchmark/benchmark.sorted_random.js | 3 +- .../benchmark.sorted_random.ndarray.js | 3 +- .../benchmark.unsorted_few_uniques.js | 3 +- .../benchmark.unsorted_few_uniques.ndarray.js | 3 +- .../benchmark/benchmark.unsorted_random.js | 3 +- .../benchmark.unsorted_random.ndarray.js | 3 +- .../benchmark.mostly_sorted_few_uniques.js | 3 +- ...hmark.mostly_sorted_few_uniques.ndarray.js | 3 +- .../benchmark.mostly_sorted_random.js | 3 +- .../benchmark.mostly_sorted_random.ndarray.js | 3 +- ...benchmark.rev_mostly_sorted_few_uniques.js | 3 +- ...k.rev_mostly_sorted_few_uniques.ndarray.js | 3 +- .../benchmark.rev_mostly_sorted_random.js | 3 +- ...chmark.rev_mostly_sorted_random.ndarray.js | 3 +- .../benchmark.rev_sorted_few_uniques.js | 3 +- ...enchmark.rev_sorted_few_uniques.ndarray.js | 3 +- .../benchmark/benchmark.rev_sorted_random.js | 3 +- .../benchmark.rev_sorted_random.ndarray.js | 3 +- .../benchmark/benchmark.sorted_few_uniques.js | 3 +- .../benchmark.sorted_few_uniques.ndarray.js | 3 +- .../benchmark/benchmark.sorted_random.js | 3 +- .../benchmark.sorted_random.ndarray.js | 3 +- .../benchmark.unsorted_few_uniques.js | 3 +- .../benchmark.unsorted_few_uniques.ndarray.js | 3 +- .../benchmark/benchmark.unsorted_random.js | 3 +- .../benchmark.unsorted_random.ndarray.js | 3 +- .../benchmark.mostly_sorted_few_uniques.js | 3 +- ...hmark.mostly_sorted_few_uniques.ndarray.js | 3 +- .../benchmark.mostly_sorted_random.js | 3 +- .../benchmark.mostly_sorted_random.ndarray.js | 3 +- ...benchmark.rev_mostly_sorted_few_uniques.js | 3 +- ...k.rev_mostly_sorted_few_uniques.ndarray.js | 3 +- .../benchmark.rev_mostly_sorted_random.js | 3 +- ...chmark.rev_mostly_sorted_random.ndarray.js | 3 +- .../benchmark.rev_sorted_few_uniques.js | 3 +- ...enchmark.rev_sorted_few_uniques.ndarray.js | 3 +- .../benchmark/benchmark.rev_sorted_random.js | 3 +- .../benchmark.rev_sorted_random.ndarray.js | 3 +- .../benchmark/benchmark.sorted_few_uniques.js | 3 +- .../benchmark.sorted_few_uniques.ndarray.js | 3 +- .../benchmark/benchmark.sorted_random.js | 3 +- .../benchmark.sorted_random.ndarray.js | 3 +- .../benchmark.unsorted_few_uniques.js | 3 +- .../benchmark.unsorted_few_uniques.ndarray.js | 3 +- .../benchmark/benchmark.unsorted_random.js | 3 +- .../benchmark.unsorted_random.ndarray.js | 3 +- .../blas/ext/base/gsum/benchmark/benchmark.js | 3 +- .../base/gsum/benchmark/benchmark.ndarray.js | 3 +- .../ext/base/gsumkbn/benchmark/benchmark.js | 3 +- .../gsumkbn/benchmark/benchmark.ndarray.js | 3 +- .../ext/base/gsumkbn2/benchmark/benchmark.js | 3 +- .../gsumkbn2/benchmark/benchmark.ndarray.js | 3 +- .../ext/base/gsumors/benchmark/benchmark.js | 3 +- .../gsumors/benchmark/benchmark.ndarray.js | 3 +- .../@stdlib/blas/ext/base/gvander/README.md | 216 ++++ .../ext/base/gvander/benchmark/benchmark.js | 106 ++ .../gvander/benchmark/benchmark.ndarray.js | 106 ++ .../blas/ext/base/gvander/docs/repl.txt | 136 +++ .../ext/base/gvander/docs/types/index.d.ts | 119 ++ .../blas/ext/base/gvander/docs/types/test.ts | 341 ++++++ .../blas/ext/base/gvander/examples/index.js | 35 + .../blas/ext/base/gvander/lib/accessors.js | 168 +++ .../@stdlib/blas/ext/base/gvander/lib/base.js | 155 +++ .../blas/ext/base/gvander/lib/index.js | 59 + .../@stdlib/blas/ext/base/gvander/lib/main.js | 99 ++ .../blas/ext/base/gvander/lib/ndarray.js | 71 ++ .../blas/ext/base/gvander/package.json | 67 ++ .../blas/ext/base/gvander/test/test.js | 38 + .../blas/ext/base/gvander/test/test.main.js | 710 ++++++++++++ .../ext/base/gvander/test/test.ndarray.js | 721 ++++++++++++ .../@stdlib/blas/ext/base/gwhere/README.md | 213 ++++ .../ext/base/gwhere/benchmark/benchmark.js | 108 ++ .../gwhere/benchmark/benchmark.ndarray.js | 108 ++ .../blas/ext/base/gwhere/docs/repl.txt | 152 +++ .../ext/base/gwhere/docs/types/index.d.ts | 131 +++ .../blas/ext/base/gwhere/docs/types/test.ts | 445 +++++++ .../blas/ext/base/gwhere/examples/index.js | 45 + .../blas/ext/base/gwhere/lib/accessors.js | 112 ++ .../@stdlib/blas/ext/base/gwhere/lib/index.js | 63 + .../@stdlib/blas/ext/base/gwhere/lib/main.js | 63 + .../blas/ext/base/gwhere/lib/ndarray.js | 99 ++ .../@stdlib/blas/ext/base/gwhere/package.json | 69 ++ .../@stdlib/blas/ext/base/gwhere/test/test.js | 38 + .../blas/ext/base/gwhere/test/test.main.js | 580 ++++++++++ .../blas/ext/base/gwhere/test/test.ndarray.js | 831 +++++++++++++ .../@stdlib/blas/ext/base/lib/index.js | 27 + .../@stdlib/blas/ext/base/ndarray/README.md | 12 + .../blas/ext/base/ndarray/cone-to/README.md | 110 ++ .../ndarray/cone-to/benchmark/benchmark.js | 108 ++ .../ext/base/ndarray/cone-to/docs/repl.txt | 32 + .../ndarray/cone-to/docs/types/index.d.ts | 46 + .../base/ndarray/cone-to/docs/types/test.ts | 57 + .../base/ndarray/cone-to/examples/index.js | 31 + .../ext/base/ndarray/cone-to/lib/index.js | 45 + .../blas/ext/base/ndarray/cone-to/lib/main.js | 57 + .../ext/base/ndarray/cone-to/package.json | 74 ++ .../ext/base/ndarray/cone-to/test/test.js | 290 +++++ .../blas/ext/base/ndarray/csum/README.md | 158 +++ .../base/ndarray/csum/benchmark/benchmark.js | 5 +- .../csum/benchmark/benchmark.native.js | 119 ++ .../base/ndarray/csum/benchmark/c/Makefile | 146 +++ .../csum/benchmark/c/benchmark.length.c | 193 ++++ .../blas/ext/base/ndarray/csum/binding.gyp | 170 +++ .../ext/base/ndarray/csum/examples/c/Makefile | 146 +++ .../base/ndarray/csum/examples/c/example.c | 77 ++ .../blas/ext/base/ndarray/csum/include.gypi | 53 + .../stdlib/blas/ext/base/ndarray/csum.h | 41 + .../blas/ext/base/ndarray/csum/lib/index.js | 16 +- .../blas/ext/base/ndarray/csum/lib/native.js | 58 + .../blas/ext/base/ndarray/csum/manifest.json | 120 ++ .../blas/ext/base/ndarray/csum/package.json | 4 + .../blas/ext/base/ndarray/csum/src/Makefile | 70 ++ .../blas/ext/base/ndarray/csum/src/addon.c | 62 + .../blas/ext/base/ndarray/csum/src/main.c | 34 + .../blas/ext/base/ndarray/csum/test/test.js | 178 +-- .../ext/base/ndarray/csum/test/test.main.js | 199 ++++ .../ext/base/ndarray/csum/test/test.native.js | 208 ++++ .../ndarray/csumkbn/benchmark/benchmark.js | 3 +- .../ndarray/dcusum/benchmark/benchmark.js | 3 +- .../blas/ext/base/ndarray/dcusumkbn/README.md | 6 +- .../ndarray/dcusumkbn/docs/types/index.d.ts | 6 +- .../ext/base/ndarray/dcusumkbn/lib/index.js | 6 +- .../ndarray/dcusumkbn2/benchmark/benchmark.js | 3 +- .../ndarray/dcusumors/benchmark/benchmark.js | 3 +- .../ndarray/dindex-of/benchmark/benchmark.js | 3 +- .../dlast-index-of/benchmark/benchmark.js | 3 +- .../ndarray/dlinspace/benchmark/benchmark.js | 3 +- .../blas/ext/base/ndarray/dnansum/README.md | 147 +++ .../ndarray/dnansum/benchmark/benchmark.js | 5 +- .../dnansum/benchmark/benchmark.native.js | 129 +++ .../base/ndarray/dnansum/benchmark/c/Makefile | 146 +++ .../dnansum/benchmark/c/benchmark.length.c | 189 +++ .../blas/ext/base/ndarray/dnansum/binding.gyp | 170 +++ .../base/ndarray/dnansum/examples/c/Makefile | 146 +++ .../base/ndarray/dnansum/examples/c/example.c | 74 ++ .../ext/base/ndarray/dnansum/include.gypi | 53 + .../stdlib/blas/ext/base/ndarray/dnansum.h | 40 + .../ext/base/ndarray/dnansum/lib/index.js | 16 +- .../ext/base/ndarray/dnansum/lib/native.js | 55 + .../ext/base/ndarray/dnansum/manifest.json | 110 ++ .../ext/base/ndarray/dnansum/package.json | 4 + .../ext/base/ndarray/dnansum/src/Makefile | 70 ++ .../blas/ext/base/ndarray/dnansum/src/addon.c | 58 + .../blas/ext/base/ndarray/dnansum/src/main.c | 33 + .../ext/base/ndarray/dnansum/test/test.js | 159 +-- .../base/ndarray/dnansum/test/test.main.js | 180 +++ .../base/ndarray/dnansum/test/test.native.js | 189 +++ .../ndarray/dnansumkbn/benchmark/benchmark.js | 3 +- .../dnansumkbn2/benchmark/benchmark.js | 3 +- .../ndarray/dnansumors/benchmark/benchmark.js | 3 +- .../ndarray/dnansumpw/benchmark/benchmark.js | 3 +- .../ext/base/ndarray/docs/types/index.d.ts | 106 +- .../blas/ext/base/ndarray/dsort/README.md | 129 +++ .../base/ndarray/dsort/benchmark/benchmark.js | 111 ++ .../blas/ext/base/ndarray/dsort/docs/repl.txt | 38 + .../base/ndarray/dsort/docs/types/index.d.ts | 58 + .../ext/base/ndarray/dsort/docs/types/test.ts | 64 + .../ext/base/ndarray/dsort/examples/index.js | 44 + .../blas/ext/base/ndarray/dsort/lib/index.js | 50 + .../blas/ext/base/ndarray/dsort/lib/main.js | 71 ++ .../blas/ext/base/ndarray/dsort/package.json | 66 ++ .../blas/ext/base/ndarray/dsort/test/test.js | 83 ++ .../ndarray/dsorthp/benchmark/benchmark.js | 3 +- .../ext/base/ndarray/dsorthp/docs/repl.txt | 2 +- .../ext/base/ndarray/dsorthp/test/test.js | 6 +- .../ndarray/dsortins/benchmark/benchmark.js | 3 +- .../ext/base/ndarray/dsortins/test/test.js | 6 +- .../ndarray/dsortsh/benchmark/benchmark.js | 3 +- .../ext/base/ndarray/dsortsh/test/test.js | 6 +- .../ndarray/dsumkbn/benchmark/benchmark.js | 3 +- .../ndarray/dsumkbn2/benchmark/benchmark.js | 3 +- .../ndarray/dsumors/benchmark/benchmark.js | 3 +- .../ndarray/dsumpw/benchmark/benchmark.js | 3 +- .../ndarray/gcusum/benchmark/benchmark.js | 3 +- .../ndarray/gcusumkbn/benchmark/benchmark.js | 3 +- .../ndarray/gcusumkbn2/benchmark/benchmark.js | 3 +- .../ndarray/gcusumors/benchmark/benchmark.js | 3 +- .../ndarray/gcusumpw/benchmark/benchmark.js | 3 +- .../gfind-index/benchmark/benchmark.js | 3 +- .../gfind-last-index/benchmark/benchmark.js | 3 +- .../ndarray/gindex-of/benchmark/benchmark.js | 3 +- .../base/ndarray/gjoin/benchmark/benchmark.js | 3 +- .../glast-index-of/benchmark/benchmark.js | 3 +- .../ndarray/glinspace/benchmark/benchmark.js | 3 +- .../ndarray/gnansum/benchmark/benchmark.js | 3 +- .../ndarray/gnansumkbn/benchmark/benchmark.js | 3 +- .../gnansumkbn2/benchmark/benchmark.js | 3 +- .../ndarray/gnansumors/benchmark/benchmark.js | 3 +- .../ndarray/gnansumpw/benchmark/benchmark.js | 3 +- .../blas/ext/base/ndarray/gsort/docs/repl.txt | 3 +- .../ndarray/gsorthp/benchmark/benchmark.js | 3 +- .../ext/base/ndarray/gsorthp/docs/repl.txt | 3 +- .../base/ndarray/gsum/benchmark/benchmark.js | 3 +- .../ndarray/gsumkbn2/benchmark/benchmark.js | 3 +- .../ndarray/gsumors/benchmark/benchmark.js | 3 +- .../ndarray/gsumpw/benchmark/benchmark.js | 3 +- .../blas/ext/base/ndarray/lib/index.js | 36 + .../ndarray/scusum/benchmark/benchmark.js | 3 +- .../ndarray/scusumkbn/benchmark/benchmark.js | 3 +- .../ndarray/scusumkbn2/benchmark/benchmark.js | 3 +- .../ndarray/scusumors/benchmark/benchmark.js | 3 +- .../ndarray/sindex-of/benchmark/benchmark.js | 3 +- .../slast-index-of/benchmark/benchmark.js | 3 +- .../ndarray/slinspace/benchmark/benchmark.js | 3 +- .../blas/ext/base/ndarray/snansum/README.md | 147 +++ .../ndarray/snansum/benchmark/benchmark.js | 5 +- .../snansum/benchmark/benchmark.native.js | 129 +++ .../base/ndarray/snansum/benchmark/c/Makefile | 146 +++ .../snansum/benchmark/c/benchmark.length.c | 189 +++ .../blas/ext/base/ndarray/snansum/binding.gyp | 170 +++ .../base/ndarray/snansum/examples/c/Makefile | 146 +++ .../base/ndarray/snansum/examples/c/example.c | 74 ++ .../ext/base/ndarray/snansum/include.gypi | 53 + .../stdlib/blas/ext/base/ndarray/snansum.h | 40 + .../ext/base/ndarray/snansum/lib/index.js | 16 +- .../ext/base/ndarray/snansum/lib/native.js | 55 + .../ext/base/ndarray/snansum/manifest.json | 110 ++ .../ext/base/ndarray/snansum/package.json | 4 + .../ext/base/ndarray/snansum/src/Makefile | 70 ++ .../blas/ext/base/ndarray/snansum/src/addon.c | 58 + .../blas/ext/base/ndarray/snansum/src/main.c | 33 + .../ext/base/ndarray/snansum/test/test.js | 176 +-- .../base/ndarray/snansum/test/test.main.js | 195 ++++ .../base/ndarray/snansum/test/test.native.js | 204 ++++ .../ndarray/snansumkbn/benchmark/benchmark.js | 3 +- .../snansumkbn2/benchmark/benchmark.js | 3 +- .../ndarray/snansumors/benchmark/benchmark.js | 3 +- .../ndarray/snansumpw/benchmark/benchmark.js | 3 +- .../blas/ext/base/ndarray/ssort/README.md | 131 +++ .../base/ndarray/ssort/benchmark/benchmark.js | 111 ++ .../blas/ext/base/ndarray/ssort/docs/repl.txt | 38 + .../base/ndarray/ssort/docs/types/index.d.ts | 58 + .../ext/base/ndarray/ssort/docs/types/test.ts | 64 + .../ext/base/ndarray/ssort/examples/index.js | 46 + .../blas/ext/base/ndarray/ssort/lib/index.js | 50 + .../blas/ext/base/ndarray/ssort/lib/main.js | 71 ++ .../blas/ext/base/ndarray/ssort/package.json | 66 ++ .../blas/ext/base/ndarray/ssort/test/test.js | 83 ++ .../ndarray/ssorthp/benchmark/benchmark.js | 3 +- .../ext/base/ndarray/ssorthp/docs/repl.txt | 2 +- .../ext/base/ndarray/ssorthp/test/test.js | 6 +- .../ndarray/ssumkbn/benchmark/benchmark.js | 3 +- .../ndarray/ssumkbn2/benchmark/benchmark.js | 3 +- .../ndarray/ssumors/benchmark/benchmark.js | 3 +- .../ndarray/ssumpw/benchmark/benchmark.js | 3 +- .../blas/ext/base/ndarray/zone-to/README.md | 110 ++ .../ndarray/zone-to/benchmark/benchmark.js | 108 ++ .../ext/base/ndarray/zone-to/docs/repl.txt | 32 + .../ndarray/zone-to/docs/types/index.d.ts | 46 + .../base/ndarray/zone-to/docs/types/test.ts | 57 + .../base/ndarray/zone-to/examples/index.js | 31 + .../ext/base/ndarray/zone-to/lib/index.js | 45 + .../blas/ext/base/ndarray/zone-to/lib/main.js | 57 + .../ext/base/ndarray/zone-to/package.json | 74 ++ .../ext/base/ndarray/zone-to/test/test.js | 290 +++++ .../blas/ext/base/ndarray/zsum/README.md | 158 +++ .../base/ndarray/zsum/benchmark/benchmark.js | 5 +- .../zsum/benchmark/benchmark.native.js | 119 ++ .../base/ndarray/zsum/benchmark/c/Makefile | 146 +++ .../zsum/benchmark/c/benchmark.length.c | 193 ++++ .../blas/ext/base/ndarray/zsum/binding.gyp | 170 +++ .../ext/base/ndarray/zsum/examples/c/Makefile | 146 +++ .../base/ndarray/zsum/examples/c/example.c | 77 ++ .../blas/ext/base/ndarray/zsum/include.gypi | 53 + .../stdlib/blas/ext/base/ndarray/zsum.h | 41 + .../blas/ext/base/ndarray/zsum/lib/index.js | 16 +- .../blas/ext/base/ndarray/zsum/lib/native.js | 58 + .../blas/ext/base/ndarray/zsum/manifest.json | 119 ++ .../blas/ext/base/ndarray/zsum/package.json | 4 + .../blas/ext/base/ndarray/zsum/src/Makefile | 70 ++ .../blas/ext/base/ndarray/zsum/src/addon.c | 62 + .../blas/ext/base/ndarray/zsum/src/main.c | 34 + .../blas/ext/base/ndarray/zsum/test/test.js | 180 +-- .../ext/base/ndarray/zsum/test/test.main.js | 199 ++++ .../ext/base/ndarray/zsum/test/test.native.js | 208 ++++ .../ndarray/zsumkbn/benchmark/benchmark.js | 3 +- .../blas/ext/base/sapx/benchmark/benchmark.js | 3 +- .../base/sapx/benchmark/benchmark.native.js | 3 +- .../base/sapx/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../ext/base/sapxsum/benchmark/benchmark.js | 3 +- .../sapxsum/benchmark/benchmark.native.js | 3 +- .../sapxsum/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../base/sapxsumkbn/benchmark/benchmark.js | 3 +- .../sapxsumkbn/benchmark/benchmark.native.js | 3 +- .../sapxsumkbn/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../base/sapxsumkbn2/benchmark/benchmark.js | 3 +- .../sapxsumkbn2/benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../base/sapxsumors/benchmark/benchmark.js | 3 +- .../sapxsumors/benchmark/benchmark.native.js | 3 +- .../sapxsumors/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../ext/base/sapxsumpw/benchmark/benchmark.js | 3 +- .../sapxsumpw/benchmark/benchmark.native.js | 3 +- .../sapxsumpw/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../ext/base/sasumpw/benchmark/benchmark.js | 3 +- .../sasumpw/benchmark/benchmark.native.js | 3 +- .../sasumpw/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../ext/base/scusum/benchmark/benchmark.js | 3 +- .../base/scusum/benchmark/benchmark.native.js | 3 +- .../scusum/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../ext/base/scusumkbn/benchmark/benchmark.js | 3 +- .../scusumkbn/benchmark/benchmark.native.js | 3 +- .../scusumkbn/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../base/scusumkbn2/benchmark/benchmark.js | 3 +- .../scusumkbn2/benchmark/benchmark.native.js | 3 +- .../scusumkbn2/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../ext/base/scusumors/benchmark/benchmark.js | 3 +- .../scusumors/benchmark/benchmark.native.js | 3 +- .../scusumors/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../ext/base/scusumpw/benchmark/benchmark.js | 3 +- .../scusumpw/benchmark/benchmark.native.js | 3 +- .../scusumpw/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../ext/base/sdsapxsum/benchmark/benchmark.js | 3 +- .../sdsapxsum/benchmark/benchmark.native.js | 3 +- .../sdsapxsum/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../base/sdsapxsumpw/benchmark/benchmark.js | 3 +- .../sdsapxsumpw/benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../base/sdsnansumpw/benchmark/benchmark.js | 3 +- .../sdsnansumpw/benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../ext/base/sdssum/benchmark/benchmark.js | 3 +- .../base/sdssum/benchmark/benchmark.native.js | 3 +- .../sdssum/benchmark/benchmark.ndarray.js | 5 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../ext/base/sdssumpw/benchmark/benchmark.js | 3 +- .../sdssumpw/benchmark/benchmark.native.js | 3 +- .../sdssumpw/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../ext/base/sfill/benchmark/benchmark.js | 3 +- .../base/sfill/benchmark/benchmark.native.js | 3 +- .../base/sfill/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../base/sindex-of-row/docs/types/index.d.ts | 16 +- .../@stdlib/blas/ext/base/sindex-of/README.md | 2 +- .../ext/base/sindex-of/benchmark/benchmark.js | 3 +- .../sindex-of/benchmark/benchmark.native.js | 3 +- .../sindex-of/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../@stdlib/blas/ext/base/ssort/README.md | 299 +++++ .../benchmark/benchmark.unsorted_random.js | 122 ++ .../benchmark.unsorted_random.native.js | 132 +++ .../benchmark.unsorted_random.ndarray.js | 122 ++ ...enchmark.unsorted_random.ndarray.native.js | 132 +++ .../benchmark/c/unsorted-random/Makefile | 146 +++ .../c/unsorted-random/benchmark.length.c | 195 ++++ .../@stdlib/blas/ext/base/ssort/binding.gyp | 170 +++ .../@stdlib/blas/ext/base/ssort/docs/repl.txt | 113 ++ .../blas/ext/base/ssort/docs/types/index.d.ts | 95 ++ .../blas/ext/base/ssort/docs/types/test.ts | 187 +++ .../blas/ext/base/ssort/examples/c/Makefile | 146 +++ .../blas/ext/base/ssort/examples/c/example.c | 39 + .../blas/ext/base/ssort/examples/index.js | 30 + .../@stdlib/blas/ext/base/ssort/include.gypi | 53 + .../include/stdlib/blas/ext/base/ssort.h | 45 + .../@stdlib/blas/ext/base/ssort/lib/index.js | 68 ++ .../@stdlib/blas/ext/base/ssort/lib/main.js | 35 + .../@stdlib/blas/ext/base/ssort/lib/native.js | 35 + .../blas/ext/base/ssort/lib/ndarray.js | 53 + .../blas/ext/base/ssort/lib/ndarray.native.js | 53 + .../@stdlib/blas/ext/base/ssort/lib/ssort.js | 53 + .../blas/ext/base/ssort/lib/ssort.native.js | 53 + .../@stdlib/blas/ext/base/ssort/manifest.json | 82 ++ .../@stdlib/blas/ext/base/ssort/package.json | 74 ++ .../@stdlib/blas/ext/base/ssort/src/Makefile | 70 ++ .../@stdlib/blas/ext/base/ssort/src/addon.c | 62 + .../@stdlib/blas/ext/base/ssort/src/main.c | 48 + .../ext/base/ssort/test/fixtures/ascending.js | 75 ++ .../ext/base/ssort/test/fixtures/num2str.js | 45 + .../@stdlib/blas/ext/base/ssort/test/test.js | 82 ++ .../blas/ext/base/ssort/test/test.ndarray.js | 622 ++++++++++ .../base/ssort/test/test.ndarray.native.js | 631 ++++++++++ .../blas/ext/base/ssort/test/test.ssort.js | 576 +++++++++ .../ext/base/ssort/test/test.ssort.native.js | 585 ++++++++++ ...benchmark.rev_sorted_few_uniques.native.js | 3 +- .../benchmark.unsorted_random.native.js | 3 +- .../benchmark.unsorted_random.ndarray.js | 3 +- ...enchmark.unsorted_random.ndarray.native.js | 3 +- .../@stdlib/blas/ext/base/ssorthp/README.md | 140 ++- .../benchmark/c/unsorted-random/Makefile | 146 +++ .../c/unsorted-random/benchmark.length.c | 195 ++++ .../blas/ext/base/ssorthp/docs/repl.txt | 27 +- .../ext/base/ssorthp/docs/types/index.d.ts | 12 +- .../ext/base/ssorthp/examples/c/example.c | 4 +- .../blas/ext/base/ssorthp/examples/index.js | 9 +- .../include/stdlib/blas/ext/base/ssorthp.h | 11 +- .../blas/ext/base/ssorthp/lib/ndarray.js | 26 +- .../ext/base/ssorthp/lib/ndarray.native.js | 18 +- .../blas/ext/base/ssorthp/lib/ssorthp.js | 99 +- .../ext/base/ssorthp/lib/ssorthp.native.js | 6 +- .../blas/ext/base/ssorthp/manifest.json | 55 +- .../@stdlib/blas/ext/base/ssorthp/src/addon.c | 26 +- .../base/ssorthp/src/{ssorthp.c => main.c} | 84 +- .../benchmark.unsorted_few_uniques.js | 3 +- .../benchmark.unsorted_few_uniques.native.js | 3 +- .../benchmark.unsorted_few_uniques.ndarray.js | 3 +- ...ark.unsorted_few_uniques.ndarray.native.js | 3 +- .../benchmark/benchmark.unsorted_random.js | 3 +- .../benchmark.unsorted_random.native.js | 3 +- .../benchmark.unsorted_random.ndarray.js | 3 +- ...enchmark.unsorted_random.ndarray.native.js | 3 +- .../ext/base/wasm/dapx/benchmark/benchmark.js | 3 +- .../wasm/dapx/benchmark/benchmark.module.js | 3 +- .../dapx/benchmark/benchmark.module.main.js | 3 +- .../benchmark/benchmark.module.ndarray.js | 3 +- .../wasm/dapx/benchmark/benchmark.ndarray.js | 3 +- .../base/wasm/dapxsum/benchmark/benchmark.js | 3 +- .../dapxsum/benchmark/benchmark.module.js | 3 +- .../benchmark/benchmark.module.main.js | 3 +- .../benchmark/benchmark.module.ndarray.js | 3 +- .../dapxsum/benchmark/benchmark.ndarray.js | 3 +- .../wasm/dapxsumkbn/benchmark/benchmark.js | 3 +- .../dapxsumkbn/benchmark/benchmark.module.js | 3 +- .../benchmark/benchmark.module.main.js | 3 +- .../benchmark/benchmark.module.ndarray.js | 3 +- .../dapxsumkbn/benchmark/benchmark.ndarray.js | 3 +- .../wasm/dapxsumors/benchmark/benchmark.js | 3 +- .../dapxsumors/benchmark/benchmark.module.js | 3 +- .../benchmark/benchmark.module.main.js | 3 +- .../benchmark/benchmark.module.ndarray.js | 3 +- .../dapxsumors/benchmark/benchmark.ndarray.js | 3 +- .../wasm/dapxsumpw/benchmark/benchmark.js | 3 +- .../dapxsumpw/benchmark/benchmark.module.js | 3 +- .../benchmark/benchmark.module.main.js | 3 +- .../benchmark/benchmark.module.ndarray.js | 3 +- .../dapxsumpw/benchmark/benchmark.ndarray.js | 3 +- .../base/wasm/dasumpw/benchmark/benchmark.js | 3 +- .../dasumpw/benchmark/benchmark.module.js | 3 +- .../benchmark/benchmark.module.main.js | 3 +- .../benchmark/benchmark.module.ndarray.js | 3 +- .../dasumpw/benchmark/benchmark.ndarray.js | 3 +- .../wasm/dnanasumors/benchmark/benchmark.js | 3 +- .../dnanasumors/benchmark/benchmark.module.js | 3 +- .../benchmark/benchmark.module.main.js | 3 +- .../benchmark/benchmark.module.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../wasm/dnansumkbn2/benchmark/benchmark.js | 3 +- .../dnansumkbn2/benchmark/benchmark.module.js | 3 +- .../benchmark/benchmark.module.main.js | 3 +- .../benchmark/benchmark.module.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../wasm/dnansumpw/benchmark/benchmark.js | 3 +- .../dnansumpw/benchmark/benchmark.module.js | 3 +- .../benchmark/benchmark.module.main.js | 3 +- .../benchmark/benchmark.module.ndarray.js | 3 +- .../dnansumpw/benchmark/benchmark.ndarray.js | 3 +- .../wasm/sapxsumkbn/benchmark/benchmark.js | 3 +- .../sapxsumkbn/benchmark/benchmark.module.js | 3 +- .../benchmark/benchmark.module.main.js | 3 +- .../benchmark/benchmark.module.ndarray.js | 3 +- .../sapxsumkbn/benchmark/benchmark.ndarray.js | 3 +- .../base/zindex-of-row/docs/types/index.d.ts | 16 +- .../@stdlib/blas/ext/docs/types/index.d.ts | 104 +- .../@stdlib/blas/ext/find-index/README.md | 34 +- .../@stdlib/blas/ext/find-index/docs/repl.txt | 9 +- .../blas/ext/find-index/docs/types/index.d.ts | 30 +- .../@stdlib/blas/ext/find-index/lib/assign.js | 6 +- .../@stdlib/blas/ext/find-index/lib/base.js | 5 +- .../@stdlib/blas/ext/find-index/lib/index.js | 6 +- .../@stdlib/blas/ext/find-index/lib/main.js | 6 +- .../@stdlib/blas/ext/index-of/README.md | 32 +- .../@stdlib/blas/ext/index-of/docs/repl.txt | 9 +- .../blas/ext/index-of/docs/types/index.d.ts | 30 +- .../@stdlib/blas/ext/index-of/lib/assign.js | 6 +- .../@stdlib/blas/ext/index-of/lib/base.js | 5 +- .../@stdlib/blas/ext/index-of/lib/index.js | 6 +- .../@stdlib/blas/ext/index-of/lib/main.js | 6 +- .../@stdlib/blas/ext/last-index-of/README.md | 32 +- .../blas/ext/last-index-of/docs/repl.txt | 9 +- .../ext/last-index-of/docs/types/index.d.ts | 30 +- .../blas/ext/last-index-of/lib/assign.js | 6 +- .../blas/ext/last-index-of/lib/base.js | 5 +- .../blas/ext/last-index-of/lib/index.js | 6 +- .../blas/ext/last-index-of/lib/main.js | 6 +- .../@stdlib/blas/ext/lib/index.js | 9 + .../@stdlib/blas/ext/linspace/README.md | 42 +- .../@stdlib/blas/ext/linspace/docs/repl.txt | 10 +- .../blas/ext/linspace/docs/types/index.d.ts | 81 +- .../@stdlib/blas/ext/linspace/lib/assign.js | 8 +- .../@stdlib/blas/ext/linspace/lib/base.js | 8 +- .../@stdlib/blas/ext/linspace/lib/index.js | 12 +- .../@stdlib/blas/ext/linspace/lib/main.js | 7 +- .../@stdlib/blas/ext/sorthp/README.md | 33 +- .../@stdlib/blas/ext/sorthp/docs/repl.txt | 5 +- .../blas/ext/sorthp/docs/types/index.d.ts | 24 +- .../@stdlib/blas/ext/sorthp/lib/base.js | 6 +- .../@stdlib/blas/ext/sorthp/lib/index.js | 6 +- .../@stdlib/blas/ext/sorthp/lib/main.js | 6 +- .../@stdlib/blas/ext/sum/README.md | 48 +- .../@stdlib/blas/ext/sum/docs/repl.txt | 9 +- .../blas/ext/sum/docs/types/index.d.ts | 20 +- .../@stdlib/blas/ext/sum/lib/index.js | 5 +- .../@stdlib/blas/ext/sum/lib/main.js | 5 +- .../@stdlib/blas/ext/to-sortedhp/README.md | 44 +- .../blas/ext/to-sortedhp/docs/repl.txt | 10 +- .../ext/to-sortedhp/docs/types/index.d.ts | 48 +- .../blas/ext/to-sortedhp/lib/assign.js | 6 +- .../@stdlib/blas/ext/to-sortedhp/lib/index.js | 12 +- .../@stdlib/blas/ext/to-sortedhp/lib/main.js | 6 +- .../blas/ext/to-sortedhp/test/test.assign.js | 25 +- .../@stdlib/blas/ext/zero-to/README.md | 166 +++ .../ext/zero-to/benchmark/benchmark.assign.js | 103 ++ .../blas/ext/zero-to/benchmark/benchmark.js | 101 ++ .../@stdlib/blas/ext/zero-to/docs/repl.txt | 92 ++ .../blas/ext/zero-to/docs/types/index.d.ts | 137 +++ .../blas/ext/zero-to/docs/types/test.ts | 166 +++ .../blas/ext/zero-to/examples/index.js | 42 + .../@stdlib/blas/ext/zero-to/lib/assign.js | 105 ++ .../@stdlib/blas/ext/zero-to/lib/base.js | 87 ++ .../@stdlib/blas/ext/zero-to/lib/defaults.js | 38 + .../@stdlib/blas/ext/zero-to/lib/dtypes.js | 36 + .../@stdlib/blas/ext/zero-to/lib/index.js | 62 + .../@stdlib/blas/ext/zero-to/lib/main.js | 126 ++ .../@stdlib/blas/ext/zero-to/package.json | 65 ++ .../blas/ext/zero-to/test/test.assign.js | 478 ++++++++ .../@stdlib/blas/ext/zero-to/test/test.js | 39 + .../blas/ext/zero-to/test/test.main.js | 432 +++++++ .../@stdlib/blas/sswap/benchmark/benchmark.js | 3 +- .../blas/sswap/benchmark/benchmark.stacks.js | 5 +- .../complex/float32/base/mul-add/README.md | 6 +- .../us-states-names-capitals/README.md | 3 +- .../examples/index.js | 3 +- .../@stdlib/error/tools/msg2id/lib/index.js | 2 +- .../base/dge-trans/docs/types/index.d.ts | 8 +- .../@stdlib/lapack/base/docs/types/index.d.ts | 4 +- .../benchmark/benchmark.assign.js | 3 +- .../unary-factory/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.length.js | 3 +- .../tools/unary/benchmark/benchmark.apply.js | 3 +- .../tools/unary/benchmark/benchmark.assign.js | 3 +- .../array/tools/unary/benchmark/benchmark.js | 5 +- .../benchmark/benchmark.primes.js | 3 +- .../assert/is-integer/benchmark/benchmark.js | 5 +- .../is-integer/benchmark/benchmark.native.js | 5 +- .../assert/is-integerf/benchmark/benchmark.js | 5 +- .../is-integerf/benchmark/benchmark.native.js | 5 +- .../is-prime/benchmark/benchmark.primes.js | 3 +- .../math/base/special/acosh/test/test.js | 42 +- .../base/special/acosh/test/test.native.js | 42 +- .../@stdlib/math/base/special/acotd/README.md | 2 +- .../math/base/special/acotdf/README.md | 2 +- .../math/base/special/cceiln/README.md | 34 +- .../math/base/special/cceiln/docs/repl.txt | 6 +- .../base/special/cceiln/docs/types/index.d.ts | 10 +- .../math/base/special/cceiln/lib/index.js | 40 +- .../math/base/special/cceiln/lib/main.js | 40 +- .../math/base/special/cceiln/lib/native.js | 40 +- .../@stdlib/math/base/special/ceiln/README.md | 4 +- .../math/base/special/cflipsign/README.md | 1 + .../math/base/special/copysignf/README.md | 2 +- .../math/base/special/cosh/test/test.js | 33 +- .../base/special/cosh/test/test.native.js | 33 +- .../@stdlib/math/base/special/coshf/README.md | 14 - .../math/base/special/cphase/README.md | 11 +- .../math/base/special/erf/test/test.js | 63 +- .../math/base/special/erf/test/test.native.js | 123 +- .../math/base/special/erfc/test/test.js | 73 +- .../base/special/erfc/test/test.native.js | 123 +- .../math/base/special/fast/pow-int/README.md | 4 +- .../pow-int/benchmark/c/native/benchmark.c | 2 +- .../special/fast/pow-int/examples/c/example.c | 2 +- .../base/special/fast/{pow.h => pow_int.h} | 6 +- .../base/special/fast/pow-int/src/addon.c | 2 +- .../math/base/special/fast/pow-int/src/main.c | 2 +- .../math/base/special/flipsignf/README.md | 2 +- .../@stdlib/math/base/special/fmod/README.md | 2 +- .../special/hyp2f1/lib/hyp2f1negcequalbc.js | 78 ++ .../math/base/special/hyp2f1/lib/hyt2f1.js | 8 +- .../math/base/special/hyp2f1/lib/main.js | 5 + .../math/base/special/hyp2f1/manifest.json | 3 + .../math/base/special/hyp2f1/src/main.c | 46 +- .../test/fixtures/python/edge_cases3.json | 2 +- .../test/fixtures/python/edge_cases5.json | 1 + .../test/fixtures/python/edge_cases6.json | 1 + .../hyp2f1/test/fixtures/python/outliers.json | 2 +- .../hyp2f1/test/fixtures/python/runner.py | 40 + .../math/base/special/hyp2f1/test/test.js | 56 +- .../base/special/hyp2f1/test/test.native.js | 72 +- .../math/base/special/negalucas/README.md | 2 +- .../math/base/special/negalucasf/README.md | 2 +- .../math/base/special/roundb/test/test.js | 2 +- .../@stdlib/math/base/special/sec/README.md | 4 +- .../math/base/special/vercosf/README.md | 2 +- .../@stdlib/math/base/tools/README.md | 3 + .../math/base/tools/chebyshev-series/LICENSE | 196 ++++ .../base/tools/chebyshev-series/README.md | 148 +++ .../benchmark/benchmark.factory.js | 80 ++ .../benchmark/benchmark.factory.length.js | 99 ++ .../chebyshev-series/benchmark/benchmark.js | 58 + .../benchmark/benchmark.length.js | 99 ++ .../base/tools/chebyshev-series/docs/repl.txt | 55 + .../chebyshev-series/docs/types/index.d.ts | 108 ++ .../tools/chebyshev-series/docs/types/test.ts | 103 ++ .../tools/chebyshev-series/examples/index.js | 40 + .../tools/chebyshev-series/lib/factory.js | 115 ++ .../base/tools/chebyshev-series/lib/index.js | 58 + .../base/tools/chebyshev-series/lib/main.js | 107 ++ .../base/tools/chebyshev-series/package.json | 66 ++ .../chebyshev-series/test/test.factory.js | 106 ++ .../base/tools/chebyshev-series/test/test.js | 38 + .../tools/chebyshev-series/test/test.main.js | 66 ++ .../@stdlib/math/base/tools/lib/index.js | 9 + .../math/iter/ops/add/benchmark/benchmark.js | 3 +- .../iter/ops/divide/benchmark/benchmark.js | 3 +- .../math/iter/ops/mod/benchmark/benchmark.js | 3 +- .../iter/ops/multiply/benchmark/benchmark.js | 3 +- .../iter/ops/subtract/benchmark/benchmark.js | 3 +- .../composites/benchmark/benchmark.js | 3 +- .../composites/benchmark/benchmark.length.js | 3 +- .../continued-fraction/benchmark/benchmark.js | 9 +- .../sequences/cubes/benchmark/benchmark.js | 3 +- .../even-integers/benchmark/benchmark.js | 3 +- .../factorials/benchmark/benchmark.js | 3 +- .../fibonacci/benchmark/benchmark.js | 3 +- .../fifth-powers/benchmark/benchmark.js | 3 +- .../fourth-powers/benchmark/benchmark.js | 3 +- .../sequences/integers/benchmark/benchmark.js | 3 +- .../sequences/lucas/benchmark/benchmark.js | 3 +- .../negafibonacci/benchmark/benchmark.js | 3 +- .../negalucas/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.js | 3 +- .../negative-integers/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.js | 3 +- .../nonfibonacci/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.js | 3 +- .../benchmark/benchmark.js | 3 +- .../benchmark/benchmark.js | 3 +- .../benchmark/benchmark.js | 3 +- .../nonsquares/benchmark/benchmark.js | 3 +- .../odd-integers/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.js | 3 +- .../positive-integers/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.js | 3 +- .../sequences/primes/benchmark/benchmark.js | 3 +- .../primes/benchmark/benchmark.length.js | 3 +- .../squared-triangular/benchmark/benchmark.js | 3 +- .../sequences/squares/benchmark/benchmark.js | 3 +- .../triangular/benchmark/benchmark.js | 3 +- .../tribonacci/benchmark/benchmark.js | 3 +- .../iter/special/abs/benchmark/benchmark.js | 3 +- .../iter/special/abs2/benchmark/benchmark.js | 3 +- .../iter/special/acos/benchmark/benchmark.js | 3 +- .../iter/special/acosh/benchmark/benchmark.js | 3 +- .../iter/special/acot/benchmark/benchmark.js | 3 +- .../iter/special/acoth/benchmark/benchmark.js | 3 +- .../special/acovercos/benchmark/benchmark.js | 3 +- .../special/acoversin/benchmark/benchmark.js | 3 +- .../special/ahavercos/benchmark/benchmark.js | 3 +- .../special/ahaversin/benchmark/benchmark.js | 3 +- .../iter/special/asin/benchmark/benchmark.js | 3 +- .../iter/special/asinh/benchmark/benchmark.js | 3 +- .../iter/special/atan/benchmark/benchmark.js | 3 +- .../iter/special/atan2/benchmark/benchmark.js | 3 +- .../iter/special/atanh/benchmark/benchmark.js | 3 +- .../special/avercos/benchmark/benchmark.js | 3 +- .../special/aversin/benchmark/benchmark.js | 3 +- .../special/besselj0/benchmark/benchmark.js | 3 +- .../special/besselj1/benchmark/benchmark.js | 3 +- .../special/bessely0/benchmark/benchmark.js | 3 +- .../special/bessely1/benchmark/benchmark.js | 3 +- .../iter/special/beta/benchmark/benchmark.js | 3 +- .../special/betaln/benchmark/benchmark.js | 3 +- .../iter/special/binet/benchmark/benchmark.js | 3 +- .../iter/special/cbrt/benchmark/benchmark.js | 3 +- .../iter/special/ceil/benchmark/benchmark.js | 3 +- .../special/ceil10/benchmark/benchmark.js | 3 +- .../iter/special/ceil2/benchmark/benchmark.js | 3 +- .../iter/special/cos/benchmark/benchmark.js | 3 +- .../iter/special/cosh/benchmark/benchmark.js | 3 +- .../iter/special/cosm1/benchmark/benchmark.js | 3 +- .../iter/special/cospi/benchmark/benchmark.js | 3 +- .../special/covercos/benchmark/benchmark.js | 3 +- .../special/coversin/benchmark/benchmark.js | 3 +- .../special/deg2rad/benchmark/benchmark.js | 3 +- .../special/digamma/benchmark/benchmark.js | 3 +- .../dirac-delta/benchmark/benchmark.js | 3 +- .../dirichlet-eta/benchmark/benchmark.js | 3 +- .../special/ellipe/benchmark/benchmark.js | 3 +- .../special/ellipk/benchmark/benchmark.js | 3 +- .../iter/special/erf/benchmark/benchmark.js | 3 +- .../iter/special/erfc/benchmark/benchmark.js | 3 +- .../special/erfcinv/benchmark/benchmark.js | 3 +- .../special/erfinv/benchmark/benchmark.js | 3 +- .../iter/special/exp/benchmark/benchmark.js | 3 +- .../iter/special/exp10/benchmark/benchmark.js | 3 +- .../iter/special/exp2/benchmark/benchmark.js | 3 +- .../iter/special/expit/benchmark/benchmark.js | 3 +- .../iter/special/expm1/benchmark/benchmark.js | 3 +- .../special/expm1rel/benchmark/benchmark.js | 3 +- .../special/factorial/benchmark/benchmark.js | 3 +- .../factorialln/benchmark/benchmark.js | 3 +- .../iter/special/floor/benchmark/benchmark.js | 3 +- .../special/floor10/benchmark/benchmark.js | 3 +- .../special/floor2/benchmark/benchmark.js | 3 +- .../special/fresnelc/benchmark/benchmark.js | 3 +- .../special/fresnels/benchmark/benchmark.js | 3 +- .../iter/special/gamma/benchmark/benchmark.js | 3 +- .../special/gamma1pm1/benchmark/benchmark.js | 3 +- .../special/gammaln/benchmark/benchmark.js | 3 +- .../special/hacovercos/benchmark/benchmark.js | 3 +- .../special/hacoversin/benchmark/benchmark.js | 3 +- .../special/havercos/benchmark/benchmark.js | 3 +- .../special/haversin/benchmark/benchmark.js | 3 +- .../iter/special/inv/benchmark/benchmark.js | 3 +- .../iter/special/ln/benchmark/benchmark.js | 3 +- .../iter/special/log/benchmark/benchmark.js | 3 +- .../iter/special/log10/benchmark/benchmark.js | 3 +- .../special/log1mexp/benchmark/benchmark.js | 3 +- .../iter/special/log1p/benchmark/benchmark.js | 3 +- .../special/log1pexp/benchmark/benchmark.js | 3 +- .../iter/special/log2/benchmark/benchmark.js | 3 +- .../iter/special/logit/benchmark/benchmark.js | 3 +- .../iter/special/pow/benchmark/benchmark.js | 3 +- .../special/rad2deg/benchmark/benchmark.js | 3 +- .../iter/special/ramp/benchmark/benchmark.js | 3 +- .../riemann-zeta/benchmark/benchmark.js | 3 +- .../iter/special/round/benchmark/benchmark.js | 3 +- .../special/round10/benchmark/benchmark.js | 3 +- .../special/round2/benchmark/benchmark.js | 3 +- .../iter/special/rsqrt/benchmark/benchmark.js | 3 +- .../special/signum/benchmark/benchmark.js | 3 +- .../iter/special/sin/benchmark/benchmark.js | 3 +- .../iter/special/sinc/benchmark/benchmark.js | 3 +- .../iter/special/sinh/benchmark/benchmark.js | 3 +- .../iter/special/sinpi/benchmark/benchmark.js | 3 +- .../special/spence/benchmark/benchmark.js | 3 +- .../iter/special/sqrt/benchmark/benchmark.js | 3 +- .../special/sqrt1pm1/benchmark/benchmark.js | 3 +- .../iter/special/tan/benchmark/benchmark.js | 3 +- .../iter/special/tanh/benchmark/benchmark.js | 3 +- .../special/trigamma/benchmark/benchmark.js | 3 +- .../iter/special/trunc/benchmark/benchmark.js | 3 +- .../special/trunc10/benchmark/benchmark.js | 3 +- .../special/trunc2/benchmark/benchmark.js | 3 +- .../special/vercos/benchmark/benchmark.js | 3 +- .../special/versin/benchmark/benchmark.js | 3 +- .../iter/tools/map/benchmark/benchmark.js | 3 +- .../iter/tools/map2/benchmark/benchmark.js | 3 +- .../iter/tools/map3/benchmark/benchmark.js | 3 +- .../strided/ops/add-by/benchmark/benchmark.js | 3 +- .../ops/add-by/benchmark/benchmark.ndarray.js | 3 +- .../strided/ops/add/benchmark/benchmark.js | 3 +- .../ops/add/benchmark/benchmark.native.js | 3 +- .../ops/add/benchmark/benchmark.ndarray.js | 3 +- .../add/benchmark/benchmark.ndarray.native.js | 3 +- .../strided/ops/mul-by/benchmark/benchmark.js | 3 +- .../ops/mul-by/benchmark/benchmark.ndarray.js | 3 +- .../strided/ops/mul/benchmark/benchmark.js | 3 +- .../ops/mul/benchmark/benchmark.native.js | 3 +- .../ops/mul/benchmark/benchmark.ndarray.js | 3 +- .../mul/benchmark/benchmark.ndarray.native.js | 3 +- .../strided/ops/sub-by/benchmark/benchmark.js | 3 +- .../ops/sub-by/benchmark/benchmark.ndarray.js | 3 +- .../special/abs-by/benchmark/benchmark.js | 3 +- .../abs-by/benchmark/benchmark.ndarray.js | 3 +- .../benchmark.two_pass_comparison.js | 3 +- .../special/abs2-by/benchmark/benchmark.js | 3 +- .../abs2-by/benchmark/benchmark.ndarray.js | 3 +- .../special/abs2/benchmark/benchmark.js | 3 +- .../abs2/benchmark/benchmark.native.js | 3 +- .../abs2/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/acos-by/benchmark/benchmark.js | 3 +- .../acos-by/benchmark/benchmark.ndarray.js | 3 +- .../special/acosh-by/benchmark/benchmark.js | 3 +- .../acosh-by/benchmark/benchmark.ndarray.js | 3 +- .../special/acot-by/benchmark/benchmark.js | 3 +- .../acot-by/benchmark/benchmark.ndarray.js | 3 +- .../special/acoth-by/benchmark/benchmark.js | 3 +- .../acoth-by/benchmark/benchmark.ndarray.js | 3 +- .../acovercos-by/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../acoversin-by/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../ahavercos-by/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../ahaversin-by/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../special/asin-by/benchmark/benchmark.js | 3 +- .../asin-by/benchmark/benchmark.ndarray.js | 3 +- .../special/asinh-by/benchmark/benchmark.js | 3 +- .../asinh-by/benchmark/benchmark.ndarray.js | 3 +- .../special/asinh-by/test/test.main.js | 2 + .../special/atan-by/benchmark/benchmark.js | 3 +- .../atan-by/benchmark/benchmark.ndarray.js | 3 +- .../special/atanh-by/benchmark/benchmark.js | 3 +- .../atanh-by/benchmark/benchmark.ndarray.js | 3 +- .../special/avercos-by/benchmark/benchmark.js | 3 +- .../avercos-by/benchmark/benchmark.ndarray.js | 3 +- .../special/aversin-by/benchmark/benchmark.js | 3 +- .../aversin-by/benchmark/benchmark.ndarray.js | 3 +- .../besselj0-by/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../besselj1-by/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../bessely0-by/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../bessely1-by/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../special/binet-by/benchmark/benchmark.js | 3 +- .../binet-by/benchmark/benchmark.ndarray.js | 3 +- .../special/cbrt-by/benchmark/benchmark.js | 3 +- .../cbrt-by/benchmark/benchmark.ndarray.js | 3 +- .../special/cbrt/benchmark/benchmark.js | 3 +- .../cbrt/benchmark/benchmark.native.js | 3 +- .../cbrt/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/ceil/benchmark/benchmark.js | 3 +- .../ceil/benchmark/benchmark.native.js | 3 +- .../ceil/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/cos-by/benchmark/benchmark.js | 3 +- .../cos-by/benchmark/benchmark.ndarray.js | 3 +- .../special/dabs/benchmark/benchmark.js | 3 +- .../dabs/benchmark/benchmark.native.js | 3 +- .../dabs/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/dabs2/benchmark/benchmark.js | 3 +- .../dabs2/benchmark/benchmark.native.js | 3 +- .../dabs2/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/dcbrt-by/benchmark/benchmark.js | 3 +- .../dcbrt-by/benchmark/benchmark.ndarray.js | 3 +- .../special/dcbrt/benchmark/benchmark.js | 3 +- .../dcbrt/benchmark/benchmark.native.js | 3 +- .../dcbrt/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/dceil/benchmark/benchmark.js | 3 +- .../dceil/benchmark/benchmark.native.js | 3 +- .../dceil/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/ddeg2rad/benchmark/benchmark.js | 3 +- .../ddeg2rad/benchmark/benchmark.native.js | 3 +- .../ddeg2rad/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/deg2rad/benchmark/benchmark.js | 3 +- .../deg2rad/benchmark/benchmark.native.js | 3 +- .../deg2rad/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/dfloor/benchmark/benchmark.js | 3 +- .../dfloor/benchmark/benchmark.native.js | 3 +- .../dfloor/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/dinv/benchmark/benchmark.js | 3 +- .../dinv/benchmark/benchmark.native.js | 3 +- .../dinv/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/dmskabs/benchmark/benchmark.js | 3 +- .../dmskabs/benchmark/benchmark.native.js | 3 +- .../dmskabs/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/dmskabs2/benchmark/benchmark.js | 3 +- .../dmskabs2/benchmark/benchmark.native.js | 3 +- .../dmskabs2/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/dmskcbrt/benchmark/benchmark.js | 3 +- .../dmskcbrt/benchmark/benchmark.native.js | 3 +- .../dmskcbrt/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/dmskceil/benchmark/benchmark.js | 3 +- .../dmskceil/benchmark/benchmark.native.js | 3 +- .../dmskceil/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../dmskdeg2rad/benchmark/benchmark.js | 3 +- .../dmskdeg2rad/benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/dmskfloor/benchmark/benchmark.js | 3 +- .../dmskfloor/benchmark/benchmark.native.js | 3 +- .../dmskfloor/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/dmskinv/benchmark/benchmark.js | 3 +- .../dmskinv/benchmark/benchmark.native.js | 3 +- .../dmskinv/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/dmskramp/benchmark/benchmark.js | 3 +- .../dmskramp/benchmark/benchmark.native.js | 3 +- .../dmskramp/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/dmskrsqrt/benchmark/benchmark.js | 3 +- .../dmskrsqrt/benchmark/benchmark.native.js | 3 +- .../dmskrsqrt/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/dmsksqrt/benchmark/benchmark.js | 3 +- .../dmsksqrt/benchmark/benchmark.native.js | 3 +- .../dmsksqrt/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/dmsktrunc/benchmark/benchmark.js | 3 +- .../dmsktrunc/benchmark/benchmark.native.js | 3 +- .../dmsktrunc/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/dramp/benchmark/benchmark.js | 3 +- .../dramp/benchmark/benchmark.native.js | 3 +- .../dramp/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/drsqrt/benchmark/benchmark.js | 3 +- .../drsqrt/benchmark/benchmark.native.js | 3 +- .../drsqrt/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/dsqrt/benchmark/benchmark.js | 3 +- .../dsqrt/benchmark/benchmark.native.js | 3 +- .../dsqrt/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/dtrunc/benchmark/benchmark.js | 3 +- .../dtrunc/benchmark/benchmark.native.js | 3 +- .../dtrunc/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/floor/benchmark/benchmark.js | 3 +- .../floor/benchmark/benchmark.native.js | 3 +- .../floor/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/inv/benchmark/benchmark.js | 3 +- .../special/inv/benchmark/benchmark.native.js | 3 +- .../inv/benchmark/benchmark.ndarray.js | 3 +- .../inv/benchmark/benchmark.ndarray.native.js | 3 +- .../special/ramp/benchmark/benchmark.js | 3 +- .../ramp/benchmark/benchmark.native.js | 3 +- .../ramp/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/rsqrt/benchmark/benchmark.js | 3 +- .../rsqrt/benchmark/benchmark.native.js | 3 +- .../rsqrt/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/sabs/benchmark/benchmark.js | 3 +- .../sabs/benchmark/benchmark.native.js | 3 +- .../sabs/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/sabs2/benchmark/benchmark.js | 3 +- .../sabs2/benchmark/benchmark.native.js | 3 +- .../sabs2/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/scbrt/benchmark/benchmark.js | 3 +- .../scbrt/benchmark/benchmark.native.js | 3 +- .../scbrt/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/sceil/benchmark/benchmark.js | 3 +- .../sceil/benchmark/benchmark.native.js | 3 +- .../sceil/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/sdeg2rad/benchmark/benchmark.js | 3 +- .../sdeg2rad/benchmark/benchmark.native.js | 3 +- .../sdeg2rad/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/sfloor/benchmark/benchmark.js | 3 +- .../sfloor/benchmark/benchmark.native.js | 3 +- .../sfloor/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/sin-by/benchmark/benchmark.js | 3 +- .../sin-by/benchmark/benchmark.ndarray.js | 3 +- .../special/sinv/benchmark/benchmark.js | 3 +- .../sinv/benchmark/benchmark.native.js | 3 +- .../sinv/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/smskabs/benchmark/benchmark.js | 3 +- .../smskabs/benchmark/benchmark.native.js | 3 +- .../smskabs/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/smskabs2/benchmark/benchmark.js | 3 +- .../smskabs2/benchmark/benchmark.native.js | 3 +- .../smskabs2/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/smskcbrt/benchmark/benchmark.js | 3 +- .../smskcbrt/benchmark/benchmark.native.js | 3 +- .../smskcbrt/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/smskceil/benchmark/benchmark.js | 3 +- .../smskceil/benchmark/benchmark.native.js | 3 +- .../smskceil/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../smskdeg2rad/benchmark/benchmark.js | 3 +- .../smskdeg2rad/benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/smskfloor/benchmark/benchmark.js | 3 +- .../smskfloor/benchmark/benchmark.native.js | 3 +- .../smskfloor/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/smskinv/benchmark/benchmark.js | 3 +- .../smskinv/benchmark/benchmark.native.js | 3 +- .../smskinv/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/smskramp/benchmark/benchmark.js | 3 +- .../smskramp/benchmark/benchmark.native.js | 3 +- .../smskramp/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/smskrsqrt/benchmark/benchmark.js | 3 +- .../smskrsqrt/benchmark/benchmark.native.js | 3 +- .../smskrsqrt/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/smsksqrt/benchmark/benchmark.js | 3 +- .../smsksqrt/benchmark/benchmark.native.js | 3 +- .../smsksqrt/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/smsktrunc/benchmark/benchmark.js | 3 +- .../smsktrunc/benchmark/benchmark.native.js | 3 +- .../smsktrunc/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/sqrt-by/benchmark/benchmark.js | 3 +- .../sqrt-by/benchmark/benchmark.ndarray.js | 3 +- .../special/sqrt/benchmark/benchmark.js | 3 +- .../sqrt/benchmark/benchmark.native.js | 3 +- .../sqrt/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/sramp/benchmark/benchmark.js | 3 +- .../sramp/benchmark/benchmark.native.js | 3 +- .../sramp/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/srsqrt/benchmark/benchmark.js | 3 +- .../srsqrt/benchmark/benchmark.native.js | 3 +- .../srsqrt/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/ssqrt/benchmark/benchmark.js | 3 +- .../ssqrt/benchmark/benchmark.native.js | 3 +- .../ssqrt/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/strunc/benchmark/benchmark.js | 3 +- .../strunc/benchmark/benchmark.native.js | 3 +- .../strunc/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../special/trunc/benchmark/benchmark.js | 3 +- .../trunc/benchmark/benchmark.native.js | 3 +- .../trunc/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- lib/node_modules/@stdlib/ndarray/README.md | 3 + .../@stdlib/ndarray/base/README.md | 9 + .../benchmark.10d_blocked_columnmajor.js | 7 +- .../benchmark.10d_blocked_rowmajor.js | 7 +- .../benchmark/benchmark.10d_columnmajor.js | 7 +- .../benchmark/benchmark.10d_rowmajor.js | 7 +- .../benchmark/benchmark.11d_columnmajor.js | 7 +- .../benchmark/benchmark.11d_rowmajor.js | 7 +- .../benchmark/benchmark.1d_columnmajor.js | 3 +- .../any-by/benchmark/benchmark.1d_rowmajor.js | 3 +- .../benchmark.2d_blocked_columnmajor.js | 7 +- .../benchmark.2d_blocked_rowmajor.js | 7 +- .../benchmark/benchmark.2d_columnmajor.js | 7 +- .../any-by/benchmark/benchmark.2d_rowmajor.js | 7 +- .../benchmark.2d_rowmajor_accessors.js | 7 +- .../benchmark.3d_blocked_columnmajor.js | 7 +- .../benchmark.3d_blocked_rowmajor.js | 7 +- .../benchmark/benchmark.3d_columnmajor.js | 7 +- .../any-by/benchmark/benchmark.3d_rowmajor.js | 7 +- .../benchmark.4d_blocked_columnmajor.js | 7 +- .../benchmark.4d_blocked_rowmajor.js | 7 +- .../benchmark/benchmark.4d_columnmajor.js | 7 +- .../any-by/benchmark/benchmark.4d_rowmajor.js | 7 +- .../benchmark.5d_blocked_columnmajor.js | 7 +- .../benchmark.5d_blocked_rowmajor.js | 7 +- .../benchmark/benchmark.5d_columnmajor.js | 7 +- .../any-by/benchmark/benchmark.5d_rowmajor.js | 7 +- .../benchmark.6d_blocked_columnmajor.js | 7 +- .../benchmark.6d_blocked_rowmajor.js | 7 +- .../benchmark/benchmark.6d_columnmajor.js | 7 +- .../any-by/benchmark/benchmark.6d_rowmajor.js | 7 +- .../benchmark.7d_blocked_columnmajor.js | 7 +- .../benchmark.7d_blocked_rowmajor.js | 7 +- .../benchmark/benchmark.7d_columnmajor.js | 7 +- .../any-by/benchmark/benchmark.7d_rowmajor.js | 7 +- .../benchmark.8d_blocked_columnmajor.js | 7 +- .../benchmark.8d_blocked_rowmajor.js | 7 +- .../benchmark/benchmark.8d_columnmajor.js | 7 +- .../any-by/benchmark/benchmark.8d_rowmajor.js | 7 +- .../benchmark.9d_blocked_columnmajor.js | 7 +- .../benchmark.9d_blocked_rowmajor.js | 7 +- .../benchmark/benchmark.9d_columnmajor.js | 7 +- .../any-by/benchmark/benchmark.9d_rowmajor.js | 7 +- .../benchmark.10d_blocked_columnmajor.js | 7 +- .../benchmark.10d_blocked_rowmajor.js | 7 +- .../benchmark/benchmark.10d_columnmajor.js | 7 +- .../any/benchmark/benchmark.10d_rowmajor.js | 7 +- .../benchmark/benchmark.11d_columnmajor.js | 7 +- .../any/benchmark/benchmark.11d_rowmajor.js | 7 +- .../any/benchmark/benchmark.1d_columnmajor.js | 3 +- .../any/benchmark/benchmark.1d_rowmajor.js | 3 +- .../benchmark.2d_blocked_columnmajor.js | 7 +- .../benchmark.2d_blocked_rowmajor.js | 7 +- .../any/benchmark/benchmark.2d_columnmajor.js | 7 +- .../any/benchmark/benchmark.2d_rowmajor.js | 7 +- .../benchmark.2d_rowmajor_accessors.js | 7 +- ...benchmark.2d_rowmajor_accessors_complex.js | 7 +- .../benchmark.3d_blocked_columnmajor.js | 7 +- .../benchmark.3d_blocked_rowmajor.js | 7 +- .../any/benchmark/benchmark.3d_columnmajor.js | 7 +- .../any/benchmark/benchmark.3d_rowmajor.js | 7 +- .../benchmark.4d_blocked_columnmajor.js | 7 +- .../benchmark.4d_blocked_rowmajor.js | 7 +- .../any/benchmark/benchmark.4d_columnmajor.js | 7 +- .../any/benchmark/benchmark.4d_rowmajor.js | 7 +- .../benchmark.5d_blocked_columnmajor.js | 7 +- .../benchmark.5d_blocked_rowmajor.js | 7 +- .../any/benchmark/benchmark.5d_columnmajor.js | 7 +- .../any/benchmark/benchmark.5d_rowmajor.js | 7 +- .../benchmark.6d_blocked_columnmajor.js | 7 +- .../benchmark.6d_blocked_rowmajor.js | 7 +- .../any/benchmark/benchmark.6d_columnmajor.js | 7 +- .../any/benchmark/benchmark.6d_rowmajor.js | 7 +- .../benchmark.7d_blocked_columnmajor.js | 7 +- .../benchmark.7d_blocked_rowmajor.js | 7 +- .../any/benchmark/benchmark.7d_columnmajor.js | 7 +- .../any/benchmark/benchmark.7d_rowmajor.js | 7 +- .../benchmark.8d_blocked_columnmajor.js | 7 +- .../benchmark.8d_blocked_rowmajor.js | 7 +- .../any/benchmark/benchmark.8d_columnmajor.js | 7 +- .../any/benchmark/benchmark.8d_rowmajor.js | 7 +- .../benchmark.9d_blocked_columnmajor.js | 7 +- .../benchmark.9d_blocked_rowmajor.js | 7 +- .../any/benchmark/benchmark.9d_columnmajor.js | 7 +- .../any/benchmark/benchmark.9d_rowmajor.js | 7 +- .../ndarray/base/count-falsy/README.md | 2 +- .../ndarray/base/count-truthy/README.md | 2 +- .../base/expand-dimensions/lib/main.js | 12 +- .../base/expand-dimensions/test/test.js | 104 +- .../ndarray/base/flatten-shape-from/README.md | 2 +- .../@stdlib/ndarray/base/fliplr/docs/repl.txt | 1 - .../@stdlib/ndarray/base/flipud/docs/repl.txt | 1 - .../@stdlib/ndarray/base/full-by/README.md | 161 +++ .../base/full-by/benchmark/benchmark.js | 318 +++++ .../full-by/benchmark/benchmark.size.bool.js | 104 ++ .../benchmark/benchmark.size.complex128.js | 105 ++ .../benchmark/benchmark.size.complex64.js | 105 ++ .../benchmark/benchmark.size.float32.js | 104 ++ .../benchmark/benchmark.size.float64.js | 104 ++ .../benchmark/benchmark.size.generic.js | 104 ++ .../full-by/benchmark/benchmark.size.int16.js | 104 ++ .../full-by/benchmark/benchmark.size.int32.js | 104 ++ .../full-by/benchmark/benchmark.size.int8.js | 104 ++ .../benchmark/benchmark.size.uint16.js | 104 ++ .../benchmark/benchmark.size.uint32.js | 104 ++ .../full-by/benchmark/benchmark.size.uint8.js | 104 ++ .../benchmark/benchmark.size.uint8c.js | 104 ++ .../ndarray/base/full-by/docs/repl.txt | 41 + .../base/full-by/docs/types/index.d.ts | 404 +++++++ .../ndarray/base/full-by/docs/types/test.ts | 156 +++ .../ndarray/base/full-by/examples/index.js | 35 + .../@stdlib/ndarray/base/full-by/lib/index.js | 48 + .../@stdlib/ndarray/base/full-by/lib/main.js | 80 ++ .../@stdlib/ndarray/base/full-by/package.json | 69 ++ .../@stdlib/ndarray/base/full-by/test/test.js | 950 +++++++++++++++ .../@stdlib/ndarray/base/lib/index.js | 27 + .../@stdlib/ndarray/base/rotr90/README.md | 155 +++ .../base/rotr90/benchmark/benchmark.js | 272 +++++ .../@stdlib/ndarray/base/rotr90/docs/repl.txt | 45 + .../ndarray/base/rotr90/docs/types/index.d.ts | 47 + .../ndarray/base/rotr90/docs/types/test.ts | 90 ++ .../ndarray/base/rotr90/examples/index.js | 51 + .../@stdlib/ndarray/base/rotr90/lib/index.js | 44 + .../@stdlib/ndarray/base/rotr90/lib/main.js | 108 ++ .../@stdlib/ndarray/base/rotr90/package.json | 66 ++ .../@stdlib/ndarray/base/rotr90/test/test.js | 604 ++++++++++ .../base/spread-dimensions/lib/main.js | 27 +- .../base/spread-dimensions/test/test.js | 110 +- .../ndarray/base/to-unflattened/README.md | 121 ++ .../to-unflattened/benchmark/benchmark.js | 205 ++++ .../ndarray/base/to-unflattened/docs/repl.txt | 33 + .../base/to-unflattened/docs/types/index.d.ts | 47 + .../base/to-unflattened/docs/types/test.ts | 84 ++ .../base/to-unflattened/examples/index.js | 29 + .../ndarray/base/to-unflattened/lib/index.js | 44 + .../ndarray/base/to-unflattened/lib/main.js | 68 ++ .../ndarray/base/to-unflattened/package.json | 69 ++ .../ndarray/base/to-unflattened/test/test.js | 397 +++++++ .../base/unary-accumulate/src/dispatch.c | 2 +- .../@stdlib/ndarray/base/unflatten/README.md | 126 ++ .../base/unflatten/benchmark/benchmark.js | 205 ++++ .../ndarray/base/unflatten/docs/repl.txt | 35 + .../base/unflatten/docs/types/index.d.ts | 48 + .../ndarray/base/unflatten/docs/types/test.ts | 99 ++ .../ndarray/base/unflatten/examples/index.js | 29 + .../ndarray/base/unflatten/lib/index.js | 44 + .../ndarray/base/unflatten/lib/main.js | 118 ++ .../ndarray/base/unflatten/package.json | 67 ++ .../ndarray/base/unflatten/test/test.js | 1025 +++++++++++++++++ .../ndarray/concat/test/test.assign.js | 4 +- .../fancy/test/test.instance.tostring.js | 3 +- lib/node_modules/@stdlib/ndarray/lib/index.js | 9 + .../remove-singleton-dimensions/README.md | 131 +++ .../benchmark/benchmark.js | 159 +++ .../remove-singleton-dimensions/docs/repl.txt | 29 + .../docs/types/index.d.ts | 47 + .../docs/types/test.ts | 56 + .../examples/index.js | 29 + .../remove-singleton-dimensions/lib/index.js | 46 + .../remove-singleton-dimensions/lib/main.js | 58 + .../remove-singleton-dimensions/package.json | 67 ++ .../remove-singleton-dimensions/test/test.js | 117 ++ .../ndarray/to-fancy/examples/set_slice.3d.js | 48 +- .../ndarray/to-string/docs/types/index.d.ts | 2 +- .../@stdlib/ndarray/with/README.md | 5 +- .../@stdlib/ndarray/with/docs/repl.txt | 5 +- .../ndarray/with/docs/types/index.d.ts | 5 +- .../@stdlib/ndarray/with/lib/index.js | 5 +- .../@stdlib/ndarray/with/lib/main.js | 5 +- .../@stdlib/number/float32/base/add/README.md | 14 +- .../number/float32/base/add/examples/index.js | 14 +- .../@stdlib/number/float32/base/div/README.md | 14 +- .../number/float32/base/div/examples/index.js | 14 +- .../number/float32/base/identity/README.md | 12 +- .../float32/base/identity/examples/index.js | 12 +- .../@stdlib/number/float32/base/mul/README.md | 14 +- .../number/float32/base/mul/examples/index.js | 14 +- .../number/float32/base/signbit/README.md | 2 +- .../@stdlib/number/float32/base/sub/README.md | 14 +- .../number/float32/base/sub/examples/index.js | 14 +- .../@stdlib/number/float64/base/div/README.md | 14 +- .../number/float64/base/div/examples/index.js | 14 +- .../number/float64/base/identity/README.md | 12 +- .../float64/base/identity/examples/index.js | 12 +- .../@stdlib/number/float64/base/mul/README.md | 14 +- .../number/float64/base/mul/examples/index.js | 14 +- .../number/float64/base/signbit/README.md | 2 +- .../@stdlib/number/float64/base/sub/README.md | 14 +- .../number/float64/base/sub/examples/index.js | 14 +- .../int32/base/mul/benchmark/benchmark.js | 53 +- .../components/svg/graph/lib/defaults.json | 6 +- .../umask/scripts/binary_to_symbolic.js | 4 +- .../benchmark/benchmark.float32.assign.js | 3 +- .../benchmark/benchmark.float32.factory.js | 3 +- .../arcsine/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.assign.js | 3 +- .../benchmark/benchmark.float64.factory.js | 3 +- .../arcsine/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.assign.js | 3 +- .../benchmark/benchmark.generic.factory.js | 3 +- .../arcsine/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.assign.js | 3 +- .../benchmark/benchmark.float32.factory.js | 3 +- .../bernoulli/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.assign.js | 3 +- .../benchmark/benchmark.float64.factory.js | 3 +- .../bernoulli/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.assign.js | 3 +- .../benchmark/benchmark.generic.factory.js | 3 +- .../bernoulli/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.assign.js | 3 +- .../benchmark/benchmark.float32.factory.js | 3 +- .../array/beta/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.assign.js | 3 +- .../benchmark/benchmark.float64.factory.js | 3 +- .../array/beta/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.assign.js | 3 +- .../benchmark/benchmark.generic.factory.js | 3 +- .../array/beta/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.assign.js | 3 +- .../benchmark/benchmark.float32.factory.js | 3 +- .../betaprime/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.assign.js | 3 +- .../benchmark/benchmark.float64.factory.js | 3 +- .../betaprime/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.assign.js | 3 +- .../benchmark/benchmark.generic.factory.js | 3 +- .../betaprime/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.assign.js | 3 +- .../benchmark/benchmark.float32.factory.js | 3 +- .../binomial/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.assign.js | 3 +- .../benchmark/benchmark.float64.factory.js | 3 +- .../binomial/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.assign.js | 3 +- .../benchmark/benchmark.generic.factory.js | 3 +- .../binomial/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.assign.js | 3 +- .../benchmark/benchmark.float32.factory.js | 3 +- .../cauchy/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.assign.js | 3 +- .../benchmark/benchmark.float64.factory.js | 3 +- .../cauchy/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.assign.js | 3 +- .../benchmark/benchmark.generic.factory.js | 3 +- .../cauchy/benchmark/benchmark.generic.js | 3 +- .../chi/benchmark/benchmark.float32.assign.js | 3 +- .../benchmark/benchmark.float32.factory.js | 3 +- .../array/chi/benchmark/benchmark.float32.js | 3 +- .../chi/benchmark/benchmark.float64.assign.js | 3 +- .../benchmark/benchmark.float64.factory.js | 3 +- .../array/chi/benchmark/benchmark.float64.js | 3 +- .../chi/benchmark/benchmark.generic.assign.js | 3 +- .../benchmark/benchmark.generic.factory.js | 3 +- .../array/chi/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.assign.js | 3 +- .../benchmark/benchmark.float32.factory.js | 3 +- .../chisquare/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.assign.js | 3 +- .../benchmark/benchmark.float64.factory.js | 3 +- .../chisquare/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.assign.js | 3 +- .../benchmark/benchmark.generic.factory.js | 3 +- .../chisquare/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.assign.js | 3 +- .../benchmark/benchmark.float32.factory.js | 3 +- .../cosine/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.assign.js | 3 +- .../benchmark/benchmark.float64.factory.js | 3 +- .../cosine/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.assign.js | 3 +- .../benchmark/benchmark.generic.factory.js | 3 +- .../cosine/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.assign.js | 3 +- .../benchmark/benchmark.float32.factory.js | 3 +- .../benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.assign.js | 3 +- .../benchmark/benchmark.float64.factory.js | 3 +- .../benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.assign.js | 3 +- .../benchmark/benchmark.generic.factory.js | 3 +- .../benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.int32.assign.js | 3 +- .../benchmark/benchmark.int32.factory.js | 3 +- .../benchmark/benchmark.int32.js | 3 +- .../benchmark/benchmark.float32.assign.js | 3 +- .../benchmark/benchmark.float32.factory.js | 3 +- .../erlang/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.assign.js | 3 +- .../benchmark/benchmark.float64.factory.js | 3 +- .../erlang/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.assign.js | 3 +- .../benchmark/benchmark.generic.factory.js | 3 +- .../erlang/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.assign.js | 3 +- .../benchmark/benchmark.float32.factory.js | 3 +- .../benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.assign.js | 3 +- .../benchmark/benchmark.float64.factory.js | 3 +- .../benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.assign.js | 3 +- .../benchmark/benchmark.generic.factory.js | 3 +- .../benchmark/benchmark.generic.js | 3 +- .../f/benchmark/benchmark.float32.assign.js | 3 +- .../f/benchmark/benchmark.float32.factory.js | 3 +- .../array/f/benchmark/benchmark.float32.js | 3 +- .../f/benchmark/benchmark.float64.assign.js | 3 +- .../f/benchmark/benchmark.float64.factory.js | 3 +- .../array/f/benchmark/benchmark.float64.js | 3 +- .../f/benchmark/benchmark.generic.assign.js | 3 +- .../f/benchmark/benchmark.generic.factory.js | 3 +- .../array/f/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.assign.js | 3 +- .../benchmark/benchmark.float32.factory.js | 3 +- .../frechet/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.assign.js | 3 +- .../benchmark/benchmark.float64.factory.js | 3 +- .../frechet/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.assign.js | 3 +- .../benchmark/benchmark.generic.factory.js | 3 +- .../frechet/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.assign.js | 3 +- .../benchmark/benchmark.float32.factory.js | 3 +- .../gamma/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.assign.js | 3 +- .../benchmark/benchmark.float64.factory.js | 3 +- .../gamma/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.assign.js | 3 +- .../benchmark/benchmark.generic.factory.js | 3 +- .../gamma/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.assign.js | 3 +- .../benchmark/benchmark.float32.factory.js | 3 +- .../geometric/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.assign.js | 3 +- .../benchmark/benchmark.float64.factory.js | 3 +- .../geometric/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.assign.js | 3 +- .../benchmark/benchmark.generic.factory.js | 3 +- .../geometric/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.assign.js | 3 +- .../benchmark/benchmark.float32.factory.js | 3 +- .../gumbel/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.assign.js | 3 +- .../benchmark/benchmark.float64.factory.js | 3 +- .../gumbel/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.assign.js | 3 +- .../benchmark/benchmark.generic.factory.js | 3 +- .../gumbel/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.assign.js | 3 +- .../benchmark/benchmark.float32.factory.js | 3 +- .../benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.assign.js | 3 +- .../benchmark/benchmark.float64.factory.js | 3 +- .../benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.assign.js | 3 +- .../benchmark/benchmark.generic.factory.js | 3 +- .../benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.assign.js | 3 +- .../benchmark/benchmark.float32.factory.js | 3 +- .../invgamma/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.assign.js | 3 +- .../benchmark/benchmark.float64.factory.js | 3 +- .../invgamma/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.assign.js | 3 +- .../benchmark/benchmark.generic.factory.js | 3 +- .../invgamma/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.assign.js | 3 +- .../benchmark/benchmark.float32.factory.js | 3 +- .../benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.assign.js | 3 +- .../benchmark/benchmark.float64.factory.js | 3 +- .../benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.assign.js | 3 +- .../benchmark/benchmark.generic.factory.js | 3 +- .../benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.assign.js | 3 +- .../benchmark/benchmark.float32.factory.js | 3 +- .../laplace/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.assign.js | 3 +- .../benchmark/benchmark.float64.factory.js | 3 +- .../laplace/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.assign.js | 3 +- .../benchmark/benchmark.generic.factory.js | 3 +- .../laplace/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.assign.js | 3 +- .../benchmark/benchmark.float32.factory.js | 3 +- .../array/levy/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.assign.js | 3 +- .../benchmark/benchmark.float64.factory.js | 3 +- .../array/levy/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.assign.js | 3 +- .../benchmark/benchmark.generic.factory.js | 3 +- .../array/levy/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.assign.js | 3 +- .../benchmark/benchmark.float32.factory.js | 3 +- .../logistic/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.assign.js | 3 +- .../benchmark/benchmark.float64.factory.js | 3 +- .../logistic/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.assign.js | 3 +- .../benchmark/benchmark.generic.factory.js | 3 +- .../logistic/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.assign.js | 3 +- .../benchmark/benchmark.float32.factory.js | 3 +- .../lognormal/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.assign.js | 3 +- .../benchmark/benchmark.float64.factory.js | 3 +- .../lognormal/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.assign.js | 3 +- .../benchmark/benchmark.generic.factory.js | 3 +- .../lognormal/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.factory.js | 3 +- .../benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.factory.js | 3 +- .../benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.factory.js | 3 +- .../benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.factory.js | 3 +- .../minstd/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.factory.js | 3 +- .../minstd/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.factory.js | 3 +- .../minstd/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.factory.js | 3 +- .../mt19937/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.factory.js | 3 +- .../mt19937/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.factory.js | 3 +- .../mt19937/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.assign.js | 3 +- .../benchmark/benchmark.float32.factory.js | 3 +- .../benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.assign.js | 3 +- .../benchmark/benchmark.float64.factory.js | 3 +- .../benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.assign.js | 3 +- .../benchmark/benchmark.generic.factory.js | 3 +- .../benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.assign.js | 3 +- .../benchmark/benchmark.float32.factory.js | 3 +- .../normal/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.assign.js | 3 +- .../benchmark/benchmark.float64.factory.js | 3 +- .../normal/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.assign.js | 3 +- .../benchmark/benchmark.generic.factory.js | 3 +- .../normal/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.assign.js | 3 +- .../benchmark/benchmark.float32.factory.js | 3 +- .../benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.assign.js | 3 +- .../benchmark/benchmark.float64.factory.js | 3 +- .../benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.assign.js | 3 +- .../benchmark/benchmark.generic.factory.js | 3 +- .../benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.assign.js | 3 +- .../benchmark/benchmark.float32.factory.js | 3 +- .../poisson/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.assign.js | 3 +- .../benchmark/benchmark.float64.factory.js | 3 +- .../poisson/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.assign.js | 3 +- .../benchmark/benchmark.generic.factory.js | 3 +- .../poisson/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.factory.js | 3 +- .../randu/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.factory.js | 3 +- .../randu/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.factory.js | 3 +- .../randu/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.assign.js | 3 +- .../benchmark/benchmark.float32.factory.js | 3 +- .../rayleigh/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.assign.js | 3 +- .../benchmark/benchmark.float64.factory.js | 3 +- .../rayleigh/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.assign.js | 3 +- .../benchmark/benchmark.generic.factory.js | 3 +- .../rayleigh/benchmark/benchmark.generic.js | 3 +- .../t/benchmark/benchmark.float32.assign.js | 3 +- .../t/benchmark/benchmark.float32.factory.js | 3 +- .../array/t/benchmark/benchmark.float32.js | 3 +- .../t/benchmark/benchmark.float64.assign.js | 3 +- .../t/benchmark/benchmark.float64.factory.js | 3 +- .../array/t/benchmark/benchmark.float64.js | 3 +- .../t/benchmark/benchmark.generic.assign.js | 3 +- .../t/benchmark/benchmark.generic.factory.js | 3 +- .../array/t/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.assign.js | 3 +- .../binary-factory/benchmark/benchmark.js | 5 +- .../benchmark/benchmark.length.js | 3 +- .../binary/benchmark/benchmark.assign.js | 3 +- .../binary/benchmark/benchmark.generate.js | 3 +- .../array/tools/binary/benchmark/benchmark.js | 5 +- .../nullary/benchmark/benchmark.assign.js | 3 +- .../nullary/benchmark/benchmark.generate.js | 3 +- .../tools/nullary/benchmark/benchmark.js | 5 +- .../benchmark/benchmark.assign.js | 3 +- .../ternary-factory/benchmark/benchmark.js | 5 +- .../benchmark/benchmark.length.js | 3 +- .../ternary/benchmark/benchmark.assign.js | 3 +- .../ternary/benchmark/benchmark.generate.js | 3 +- .../tools/ternary/benchmark/benchmark.js | 5 +- .../benchmark/benchmark.assign.js | 3 +- .../unary-factory/benchmark/benchmark.js | 5 +- .../benchmark/benchmark.length.js | 3 +- .../tools/unary/benchmark/benchmark.assign.js | 3 +- .../unary/benchmark/benchmark.generate.js | 3 +- .../array/tools/unary/benchmark/benchmark.js | 5 +- .../benchmark/benchmark.float32.assign.js | 3 +- .../benchmark/benchmark.float32.factory.js | 3 +- .../triangular/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.assign.js | 3 +- .../benchmark/benchmark.float64.factory.js | 3 +- .../triangular/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.assign.js | 3 +- .../benchmark/benchmark.generic.factory.js | 3 +- .../triangular/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.assign.js | 3 +- .../benchmark/benchmark.float32.factory.js | 3 +- .../uniform/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.assign.js | 3 +- .../benchmark/benchmark.float64.factory.js | 3 +- .../uniform/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.assign.js | 3 +- .../benchmark/benchmark.generic.factory.js | 3 +- .../uniform/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.assign.js | 3 +- .../benchmark/benchmark.float32.factory.js | 3 +- .../weibull/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.assign.js | 3 +- .../benchmark/benchmark.float64.factory.js | 3 +- .../weibull/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.assign.js | 3 +- .../benchmark/benchmark.generic.factory.js | 3 +- .../weibull/benchmark/benchmark.generic.js | 3 +- .../iter/arcsine/benchmark/benchmark.js | 3 +- .../iter/bernoulli/benchmark/benchmark.js | 3 +- .../random/iter/beta/benchmark/benchmark.js | 3 +- .../iter/betaprime/benchmark/benchmark.js | 3 +- .../iter/binomial/benchmark/benchmark.js | 3 +- .../iter/box-muller/benchmark/benchmark.js | 3 +- .../random/iter/cauchy/benchmark/benchmark.js | 3 +- .../random/iter/chi/benchmark/benchmark.js | 3 +- .../iter/chisquare/benchmark/benchmark.js | 3 +- .../random/iter/cosine/benchmark/benchmark.js | 3 +- .../discrete-uniform/benchmark/benchmark.js | 3 +- .../random/iter/erlang/benchmark/benchmark.js | 3 +- .../iter/exponential/benchmark/benchmark.js | 3 +- .../random/iter/f/benchmark/benchmark.js | 3 +- .../iter/frechet/benchmark/benchmark.js | 3 +- .../random/iter/gamma/benchmark/benchmark.js | 3 +- .../iter/geometric/benchmark/benchmark.js | 3 +- .../random/iter/gumbel/benchmark/benchmark.js | 3 +- .../hypergeometric/benchmark/benchmark.js | 3 +- .../improved-ziggurat/benchmark/benchmark.js | 3 +- .../iter/invgamma/benchmark/benchmark.js | 3 +- .../iter/kumaraswamy/benchmark/benchmark.js | 3 +- .../iter/laplace/benchmark/benchmark.js | 3 +- .../random/iter/levy/benchmark/benchmark.js | 3 +- .../iter/logistic/benchmark/benchmark.js | 3 +- .../iter/lognormal/benchmark/benchmark.js | 3 +- .../minstd-shuffle/benchmark/benchmark.js | 3 +- .../random/iter/minstd/benchmark/benchmark.js | 3 +- .../iter/mt19937/benchmark/benchmark.js | 3 +- .../negative-binomial/benchmark/benchmark.js | 3 +- .../random/iter/normal/benchmark/benchmark.js | 3 +- .../iter/pareto-type1/benchmark/benchmark.js | 3 +- .../iter/poisson/benchmark/benchmark.js | 3 +- .../random/iter/randi/benchmark/benchmark.js | 3 +- .../random/iter/randn/benchmark/benchmark.js | 3 +- .../random/iter/randu/benchmark/benchmark.js | 3 +- .../iter/rayleigh/benchmark/benchmark.js | 3 +- .../random/iter/t/benchmark/benchmark.js | 3 +- .../iter/triangular/benchmark/benchmark.js | 3 +- .../iter/uniform/benchmark/benchmark.js | 3 +- .../iter/weibull/benchmark/benchmark.js | 3 +- .../streams/arcsine/benchmark/benchmark.js | 7 +- .../arcsine/benchmark/benchmark.throughput.js | 11 +- .../streams/bernoulli/benchmark/benchmark.js | 7 +- .../benchmark/benchmark.throughput.js | 11 +- .../streams/beta/benchmark/benchmark.js | 7 +- .../beta/benchmark/benchmark.throughput.js | 11 +- .../streams/betaprime/benchmark/benchmark.js | 7 +- .../benchmark/benchmark.throughput.js | 11 +- .../streams/binomial/benchmark/benchmark.js | 7 +- .../benchmark/benchmark.throughput.js | 11 +- .../streams/box-muller/benchmark/benchmark.js | 7 +- .../benchmark/benchmark.throughput.js | 11 +- .../streams/cauchy/benchmark/benchmark.js | 7 +- .../cauchy/benchmark/benchmark.throughput.js | 11 +- .../random/streams/chi/benchmark/benchmark.js | 7 +- .../chi/benchmark/benchmark.throughput.js | 11 +- .../streams/chisquare/benchmark/benchmark.js | 7 +- .../benchmark/benchmark.throughput.js | 11 +- .../streams/cosine/benchmark/benchmark.js | 7 +- .../cosine/benchmark/benchmark.throughput.js | 11 +- .../discrete-uniform/benchmark/benchmark.js | 7 +- .../benchmark/benchmark.throughput.js | 11 +- .../streams/erlang/benchmark/benchmark.js | 7 +- .../erlang/benchmark/benchmark.throughput.js | 11 +- .../exponential/benchmark/benchmark.js | 7 +- .../benchmark/benchmark.throughput.js | 11 +- .../random/streams/f/benchmark/benchmark.js | 7 +- .../f/benchmark/benchmark.throughput.js | 11 +- .../streams/frechet/benchmark/benchmark.js | 7 +- .../frechet/benchmark/benchmark.throughput.js | 11 +- .../streams/gamma/benchmark/benchmark.js | 7 +- .../gamma/benchmark/benchmark.throughput.js | 11 +- .../streams/geometric/benchmark/benchmark.js | 7 +- .../benchmark/benchmark.throughput.js | 11 +- .../streams/gumbel/benchmark/benchmark.js | 7 +- .../gumbel/benchmark/benchmark.throughput.js | 11 +- .../hypergeometric/benchmark/benchmark.js | 7 +- .../benchmark/benchmark.throughput.js | 11 +- .../improved-ziggurat/benchmark/benchmark.js | 7 +- .../benchmark/benchmark.throughput.js | 11 +- .../streams/invgamma/benchmark/benchmark.js | 7 +- .../benchmark/benchmark.throughput.js | 11 +- .../kumaraswamy/benchmark/benchmark.js | 7 +- .../benchmark/benchmark.throughput.js | 11 +- .../streams/laplace/benchmark/benchmark.js | 7 +- .../laplace/benchmark/benchmark.throughput.js | 11 +- .../streams/levy/benchmark/benchmark.js | 7 +- .../levy/benchmark/benchmark.throughput.js | 11 +- .../streams/logistic/benchmark/benchmark.js | 7 +- .../benchmark/benchmark.throughput.js | 11 +- .../streams/lognormal/benchmark/benchmark.js | 7 +- .../benchmark/benchmark.throughput.js | 11 +- .../minstd-shuffle/benchmark/benchmark.js | 7 +- .../benchmark/benchmark.throughput.js | 11 +- .../streams/minstd/benchmark/benchmark.js | 7 +- .../minstd/benchmark/benchmark.throughput.js | 11 +- .../streams/mt19937/benchmark/benchmark.js | 7 +- .../mt19937/benchmark/benchmark.throughput.js | 11 +- .../negative-binomial/benchmark/benchmark.js | 7 +- .../benchmark/benchmark.throughput.js | 11 +- .../streams/normal/benchmark/benchmark.js | 7 +- .../normal/benchmark/benchmark.throughput.js | 11 +- .../pareto-type1/benchmark/benchmark.js | 7 +- .../benchmark/benchmark.throughput.js | 11 +- .../streams/poisson/benchmark/benchmark.js | 7 +- .../poisson/benchmark/benchmark.throughput.js | 11 +- .../streams/randi/benchmark/benchmark.js | 7 +- .../randi/benchmark/benchmark.throughput.js | 11 +- .../streams/randn/benchmark/benchmark.js | 7 +- .../randn/benchmark/benchmark.throughput.js | 11 +- .../streams/randu/benchmark/benchmark.js | 7 +- .../randu/benchmark/benchmark.throughput.js | 11 +- .../streams/rayleigh/benchmark/benchmark.js | 7 +- .../benchmark/benchmark.throughput.js | 11 +- .../random/streams/t/benchmark/benchmark.js | 7 +- .../t/benchmark/benchmark.throughput.js | 11 +- .../streams/triangular/benchmark/benchmark.js | 7 +- .../benchmark/benchmark.throughput.js | 11 +- .../streams/uniform/benchmark/benchmark.js | 7 +- .../uniform/benchmark/benchmark.throughput.js | 11 +- .../streams/weibull/benchmark/benchmark.js | 7 +- .../weibull/benchmark/benchmark.throughput.js | 11 +- .../benchmark/benchmark.float32.broadcast.js | 3 +- .../arcsine/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.broadcast.js | 3 +- .../benchmark.float64.broadcast.options.js | 3 +- .../arcsine/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.float64.options.js | 3 +- .../benchmark/benchmark.generic.broadcast.js | 3 +- .../arcsine/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.broadcast.js | 3 +- .../bernoulli/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.broadcast.js | 3 +- .../bernoulli/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.broadcast.js | 3 +- .../bernoulli/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.broadcast.js | 3 +- .../beta/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.broadcast.js | 3 +- .../benchmark.float64.broadcast.options.js | 3 +- .../beta/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.float64.options.js | 3 +- .../benchmark/benchmark.generic.broadcast.js | 3 +- .../beta/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.broadcast.js | 3 +- .../betaprime/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.broadcast.js | 3 +- .../benchmark.float64.broadcast.options.js | 3 +- .../betaprime/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.float64.options.js | 3 +- .../benchmark/benchmark.generic.broadcast.js | 3 +- .../betaprime/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.broadcast.js | 3 +- .../chi/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.broadcast.js | 3 +- .../chi/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.broadcast.js | 3 +- .../chi/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.broadcast.js | 3 +- .../chisquare/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.broadcast.js | 3 +- .../chisquare/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.broadcast.js | 3 +- .../chisquare/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.broadcast.js | 3 +- .../cosine/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.broadcast.js | 3 +- .../benchmark.float64.broadcast.options.js | 3 +- .../cosine/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.float64.options.js | 3 +- .../benchmark/benchmark.generic.broadcast.js | 3 +- .../cosine/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.broadcast.js | 3 +- .../benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.broadcast.js | 3 +- .../benchmark.float64.broadcast.options.js | 3 +- .../benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.float64.options.js | 3 +- .../benchmark/benchmark.generic.broadcast.js | 3 +- .../benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.int32.broadcast.js | 3 +- .../benchmark/benchmark.int32.js | 3 +- .../benchmark/benchmark.float32.broadcast.js | 3 +- .../benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.broadcast.js | 3 +- .../benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.broadcast.js | 3 +- .../benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.broadcast.js | 3 +- .../gamma/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.broadcast.js | 3 +- .../benchmark.float64.broadcast.options.js | 3 +- .../gamma/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.float64.options.js | 3 +- .../benchmark/benchmark.generic.broadcast.js | 3 +- .../gamma/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.broadcast.js | 3 +- .../geometric/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.broadcast.js | 3 +- .../geometric/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.broadcast.js | 3 +- .../geometric/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.broadcast.js | 3 +- .../invgamma/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.broadcast.js | 3 +- .../benchmark.float64.broadcast.options.js | 3 +- .../invgamma/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.float64.options.js | 3 +- .../benchmark/benchmark.generic.broadcast.js | 3 +- .../invgamma/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.broadcast.js | 3 +- .../lognormal/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.broadcast.js | 3 +- .../benchmark.float64.broadcast.options.js | 3 +- .../lognormal/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.float64.options.js | 3 +- .../benchmark/benchmark.generic.broadcast.js | 3 +- .../lognormal/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.float64.normalized.js | 3 +- .../benchmark/benchmark.float64.options.js | 3 +- .../benchmark/benchmark.generic.js | 3 +- .../minstd/benchmark/benchmark.float32.js | 3 +- .../minstd/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.float64.normalized.js | 3 +- .../benchmark/benchmark.float64.options.js | 3 +- .../minstd/benchmark/benchmark.generic.js | 3 +- .../mt19937/benchmark/benchmark.float32.js | 3 +- .../mt19937/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.float64.normalized.js | 3 +- .../benchmark/benchmark.float64.options.js | 3 +- .../mt19937/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.broadcast.js | 3 +- .../normal/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.broadcast.js | 3 +- .../benchmark.float64.broadcast.options.js | 3 +- .../normal/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.float64.options.js | 3 +- .../benchmark/benchmark.generic.broadcast.js | 3 +- .../normal/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.broadcast.js | 3 +- .../poisson/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.broadcast.js | 3 +- .../poisson/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.broadcast.js | 3 +- .../poisson/benchmark/benchmark.generic.js | 3 +- .../randu/benchmark/benchmark.float32.js | 3 +- .../randu/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.float64.options.js | 3 +- .../randu/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.broadcast.js | 3 +- .../rayleigh/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.broadcast.js | 3 +- .../rayleigh/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.broadcast.js | 3 +- .../rayleigh/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.broadcast.js | 3 +- .../strided/t/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.broadcast.js | 3 +- .../strided/t/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.generic.broadcast.js | 3 +- .../strided/t/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.broadcast.length.js | 3 +- .../binary-factory/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.length.js | 3 +- .../benchmark.ndarray.broadcast.length.js | 3 +- .../benchmark/benchmark.ndarray.length.js | 3 +- .../benchmark/benchmark.broadcast.length.js | 3 +- .../ternary-factory/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.length.js | 3 +- .../benchmark.ndarray.broadcast.length.js | 3 +- .../benchmark/benchmark.ndarray.length.js | 3 +- .../benchmark/benchmark.broadcast.length.js | 3 +- .../unary-factory/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.length.js | 3 +- .../benchmark.ndarray.broadcast.length.js | 3 +- .../benchmark/benchmark.ndarray.length.js | 3 +- .../benchmark/benchmark.float32.broadcast.js | 3 +- .../uniform/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.broadcast.js | 3 +- .../benchmark.float64.broadcast.options.js | 3 +- .../uniform/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.float64.options.js | 3 +- .../benchmark/benchmark.generic.broadcast.js | 3 +- .../uniform/benchmark/benchmark.generic.js | 3 +- .../benchmark/benchmark.float32.broadcast.js | 3 +- .../weibull/benchmark/benchmark.float32.js | 3 +- .../benchmark/benchmark.float64.broadcast.js | 3 +- .../benchmark.float64.broadcast.options.js | 3 +- .../weibull/benchmark/benchmark.float64.js | 3 +- .../benchmark/benchmark.float64.options.js | 3 +- .../benchmark/benchmark.generic.broadcast.js | 3 +- .../weibull/benchmark/benchmark.generic.js | 3 +- .../@stdlib/repl/code-blocks/data/data.csv | 36 +- .../@stdlib/repl/code-blocks/data/data.json | 2 +- .../@stdlib/repl/help/data/data.csv | 72 +- .../@stdlib/repl/help/data/data.json | 2 +- .../@stdlib/repl/info/data/data.csv | 14 +- .../@stdlib/repl/info/data/data.json | 2 +- .../@stdlib/repl/signature/data/data.csv | 4 +- .../@stdlib/repl/signature/data/data.json | 2 +- .../repl/typed-signature/data/data.csv | 12 +- .../repl/typed-signature/data/data.json | 2 +- .../stats/array/max-by/benchmark/benchmark.js | 3 +- .../stats/array/max/benchmark/benchmark.js | 3 +- .../stats/array/maxabs/benchmark/benchmark.js | 3 +- .../array/maxsorted/benchmark/benchmark.js | 3 +- .../stats/array/mean/benchmark/benchmark.js | 3 +- .../array/meankbn2/benchmark/benchmark.js | 3 +- .../array/meanors/benchmark/benchmark.js | 3 +- .../stats/array/meanpn/benchmark/benchmark.js | 3 +- .../stats/array/meanpw/benchmark/benchmark.js | 3 +- .../stats/array/meanwd/benchmark/benchmark.js | 3 +- .../array/mediansorted/benchmark/benchmark.js | 3 +- .../stats/array/minabs/benchmark/benchmark.js | 3 +- .../stats/array/mskmax/benchmark/benchmark.js | 3 +- .../stats/array/mskmin/benchmark/benchmark.js | 3 +- .../array/mskrange/benchmark/benchmark.js | 3 +- .../array/nanmax-by/benchmark/benchmark.js | 3 +- .../stats/array/nanmax/benchmark/benchmark.js | 3 +- .../array/nanmaxabs/benchmark/benchmark.js | 3 +- .../array/nanmean/benchmark/benchmark.js | 3 +- .../array/nanmeanors/benchmark/benchmark.js | 3 +- .../array/nanmeanpn/benchmark/benchmark.js | 3 +- .../array/nanmeanwd/benchmark/benchmark.js | 3 +- .../array/nanmin-by/benchmark/benchmark.js | 3 +- .../stats/array/nanmin/benchmark/benchmark.js | 3 +- .../array/nanminabs/benchmark/benchmark.js | 3 +- .../array/nanmskmax/benchmark/benchmark.js | 3 +- .../array/nanmskmin/benchmark/benchmark.js | 3 +- .../array/nanmskrange/benchmark/benchmark.js | 3 +- .../array/nanrange-by/benchmark/benchmark.js | 3 +- .../array/nanrange/benchmark/benchmark.js | 3 +- .../array/nanstdev/benchmark/benchmark.js | 3 +- .../array/nanstdevch/benchmark/benchmark.js | 3 +- .../array/nanstdevpn/benchmark/benchmark.js | 3 +- .../array/nanstdevtk/benchmark/benchmark.js | 3 +- .../array/nanstdevwd/benchmark/benchmark.js | 3 +- .../array/nanstdevyc/benchmark/benchmark.js | 3 +- .../array/nanvariance/benchmark/benchmark.js | 3 +- .../nanvariancech/benchmark/benchmark.js | 3 +- .../nanvariancepn/benchmark/benchmark.js | 3 +- .../nanvariancetk/benchmark/benchmark.js | 3 +- .../nanvariancewd/benchmark/benchmark.js | 3 +- .../nanvarianceyc/benchmark/benchmark.js | 3 +- .../array/range-by/benchmark/benchmark.js | 3 +- .../stats/array/range/benchmark/benchmark.js | 3 +- .../array/stdevtk/benchmark/benchmark.js | 3 +- .../array/stdevwd/benchmark/benchmark.js | 3 +- .../array/stdevyc/benchmark/benchmark.js | 3 +- .../array/variance/benchmark/benchmark.js | 3 +- .../array/variancech/benchmark/benchmark.js | 3 +- .../array/variancepn/benchmark/benchmark.js | 3 +- .../array/variancetk/benchmark/benchmark.js | 3 +- .../array/varianceyc/benchmark/benchmark.js | 3 +- .../bartlett-test/benchmark/benchmark.js | 5 +- .../arcsine/logcdf/benchmark/benchmark.js | 3 +- .../stats/base/dists/arcsine/pdf/README.md | 2 +- .../base/dists/arcsine/quantile/README.md | 2 +- .../base/dists/bernoulli/stdev/lib/main.js | 11 +- .../base/dists/bernoulli/stdev/manifest.json | 12 +- .../base/dists/bernoulli/stdev/src/main.c | 11 +- .../base/dists/betaprime/stdev/lib/main.js | 14 +- .../base/dists/betaprime/stdev/manifest.json | 12 +- .../base/dists/betaprime/stdev/src/main.c | 14 +- .../base/dists/binomial/stdev/lib/main.js | 16 +- .../base/dists/binomial/stdev/manifest.json | 12 +- .../base/dists/binomial/stdev/src/main.c | 12 +- .../base/dists/bradford/stdev/lib/main.js | 10 +- .../base/dists/bradford/stdev/manifest.json | 13 +- .../base/dists/bradford/stdev/src/main.c | 10 +- .../stats/base/dists/cauchy/pdf/README.md | 2 +- .../stats/base/dists/chi/logpdf/README.md | 2 +- .../chi/pdf/benchmark/benchmark.native.js | 3 +- .../stats/base/dists/chi/stdev/lib/main.js | 10 +- .../stats/base/dists/chi/stdev/manifest.json | 9 +- .../stats/base/dists/chi/stdev/src/main.c | 11 +- .../base/dists/chisquare/stdev/lib/main.js | 7 +- .../base/dists/chisquare/stdev/manifest.json | 10 +- .../base/dists/chisquare/stdev/src/main.c | 7 +- .../stats/base/dists/frechet/cdf/README.md | 2 +- .../base/dists/frechet/entropy/README.md | 21 +- .../dists/frechet/entropy/examples/index.js | 22 +- .../base/dists/frechet/kurtosis/README.md | 24 +- .../dists/frechet/kurtosis/examples/index.js | 22 +- .../stats/base/dists/frechet/logcdf/README.md | 27 +- .../dists/frechet/logcdf/examples/index.js | 25 +- .../stats/base/dists/frechet/logpdf/README.md | 27 +- .../dists/frechet/logpdf/examples/index.js | 25 +- .../stats/base/dists/frechet/mean/README.md | 24 +- .../base/dists/frechet/mean/examples/index.js | 22 +- .../stats/base/dists/frechet/median/README.md | 24 +- .../dists/frechet/median/examples/index.js | 22 +- .../stats/base/dists/frechet/mode/README.md | 24 +- .../base/dists/frechet/mode/examples/index.js | 22 +- .../base/dists/frechet/quantile/README.md | 27 +- .../dists/frechet/quantile/examples/index.js | 25 +- .../base/dists/frechet/skewness/README.md | 24 +- .../dists/frechet/skewness/examples/index.js | 22 +- .../stats/base/dists/frechet/stdev/README.md | 24 +- .../dists/frechet/stdev/examples/index.js | 22 +- .../base/dists/frechet/variance/README.md | 24 +- .../dists/frechet/variance/examples/index.js | 22 +- .../kurtosis/benchmark/benchmark.native.js | 3 +- .../gumbel/logcdf/benchmark/benchmark.js | 3 +- .../logcdf/benchmark/benchmark.native.js | 3 +- .../gumbel/logpdf/benchmark/benchmark.js | 3 +- .../logpdf/benchmark/benchmark.native.js | 3 +- .../median/benchmark/benchmark.native.js | 3 +- .../dists/gumbel/mgf/benchmark/benchmark.js | 3 +- .../gumbel/mgf/benchmark/benchmark.native.js | 3 +- .../dists/gumbel/pdf/benchmark/benchmark.js | 3 +- .../gumbel/pdf/benchmark/benchmark.native.js | 3 +- .../gumbel/quantile/benchmark/benchmark.js | 3 +- .../quantile/benchmark/benchmark.native.js | 3 +- .../base/dists/gumbel/skewness/README.md | 2 +- .../base/dists/halfnormal/logpdf/README.md | 4 +- .../halfnormal/logpdf/benchmark/benchmark.js | 18 +- .../logpdf/benchmark/benchmark.native.js | 19 +- .../dists/hypergeometric/stdev/lib/main.js | 16 +- .../dists/hypergeometric/stdev/manifest.json | 5 +- .../dists/hypergeometric/stdev/src/main.c | 11 +- .../invgamma/ctor/benchmark/benchmark.js | 33 +- .../base/dists/kumaraswamy/stdev/lib/main.js | 17 +- .../dists/kumaraswamy/stdev/manifest.json | 13 +- .../base/dists/kumaraswamy/stdev/src/main.c | 18 +- .../stats/base/dists/levy/mean/README.md | 4 +- .../base/dists/lognormal/stdev/lib/main.js | 14 +- .../base/dists/lognormal/stdev/manifest.json | 15 +- .../base/dists/lognormal/stdev/src/main.c | 14 +- .../stats/base/dists/normal/logcdf/README.md | 2 +- .../stats/base/dists/normal/logpdf/README.md | 2 +- .../base/dists/pareto-type1/stdev/lib/main.js | 19 +- .../dists/pareto-type1/stdev/manifest.json | 12 +- .../base/dists/pareto-type1/stdev/src/main.c | 19 +- .../dists/planck/mgf/benchmark/benchmark.js | 3 +- .../planck/mgf/benchmark/benchmark.native.js | 3 +- .../planck/mode/benchmark/benchmark.native.js | 3 +- .../dists/planck/pmf/benchmark/benchmark.js | 3 +- .../planck/pmf/benchmark/benchmark.native.js | 3 +- .../planck/quantile/benchmark/benchmark.js | 3 +- .../quantile/benchmark/benchmark.native.js | 3 +- .../skewness/benchmark/benchmark.native.js | 3 +- .../stdev/benchmark/benchmark.native.js | 3 +- .../variance/benchmark/benchmark.native.js | 3 +- .../dists/poisson/ctor/benchmark/benchmark.js | 33 +- .../stats/base/dists/poisson/logpmf/README.md | 2 +- .../stats/base/dists/poisson/mode/README.md | 2 +- .../base/dists/poisson/skewness/README.md | 2 +- .../base/dists/poisson/stdev/lib/main.js | 7 +- .../base/dists/poisson/stdev/manifest.json | 12 +- .../stats/base/dists/poisson/stdev/src/main.c | 10 +- .../stats/base/dists/t/entropy/README.md | 2 +- .../stats/base/dists/t/stdev/lib/main.js | 11 +- .../stats/base/dists/t/stdev/manifest.json | 9 +- .../stats/base/dists/t/stdev/src/main.c | 11 +- .../base/dists/triangular/stdev/lib/main.js | 12 +- .../base/dists/triangular/stdev/manifest.json | 12 +- .../base/dists/triangular/stdev/src/main.c | 12 +- .../dists/uniform/ctor/benchmark/benchmark.js | 37 +- .../@stdlib/stats/base/ndarray/README.md | 39 + .../ndarray/covarmtk/benchmark/benchmark.js | 3 +- .../base/ndarray/cumax/benchmark/benchmark.js | 3 +- .../base/ndarray/cumin/benchmark/benchmark.js | 3 +- .../dmaxabssorted/benchmark/benchmark.js | 3 +- .../ndarray/dmaxsorted/benchmark/benchmark.js | 3 +- .../ndarray/dmeanli/benchmark/benchmark.js | 3 +- .../stats/base/ndarray/dmeanlipw/README.md | 148 +++ .../ndarray/dmeanlipw/benchmark/benchmark.js | 5 +- .../dmeanlipw/benchmark/benchmark.native.js | 114 ++ .../ndarray/dmeanlipw/benchmark/c/Makefile | 146 +++ .../dmeanlipw/benchmark/c/benchmark.length.c | 185 +++ .../stats/base/ndarray/dmeanlipw/binding.gyp | 170 +++ .../ndarray/dmeanlipw/examples/c/Makefile | 146 +++ .../ndarray/dmeanlipw/examples/c/example.c | 74 ++ .../stats/base/ndarray/dmeanlipw/include.gypi | 53 + .../stdlib/stats/base/ndarray/dmeanlipw.h | 40 + .../stats/base/ndarray/dmeanlipw/lib/index.js | 16 +- .../base/ndarray/dmeanlipw/lib/native.js | 55 + .../base/ndarray/dmeanlipw/manifest.json | 110 ++ .../stats/base/ndarray/dmeanlipw/package.json | 4 + .../stats/base/ndarray/dmeanlipw/src/Makefile | 70 ++ .../stats/base/ndarray/dmeanlipw/src/addon.c | 58 + .../stats/base/ndarray/dmeanlipw/src/main.c | 33 + .../stats/base/ndarray/dmeanlipw/test/test.js | 143 +-- .../base/ndarray/dmeanlipw/test/test.main.js | 164 +++ .../ndarray/dmeanlipw/test/test.native.js | 177 +++ .../ndarray/dmeanpn/benchmark/benchmark.js | 3 +- .../ndarray/dmeanpw/benchmark/benchmark.js | 3 +- .../ndarray/dmeanwd/benchmark/benchmark.js | 3 +- .../dmediansorted/benchmark/benchmark.js | 3 +- .../ndarray/dminsorted/benchmark/benchmark.js | 3 +- .../ndarray/dmskmin/benchmark/benchmark.js | 3 +- .../ndarray/dmskrange/benchmark/benchmark.js | 3 +- .../ndarray/dnanmax/benchmark/benchmark.js | 3 +- .../ndarray/dnanmaxabs/benchmark/benchmark.js | 3 +- .../ndarray/dnanmean/benchmark/benchmark.js | 3 +- .../dnanmeanors/benchmark/benchmark.js | 3 +- .../ndarray/dnanmeanpn/benchmark/benchmark.js | 3 +- .../ndarray/dnanmeanpw/benchmark/benchmark.js | 3 +- .../ndarray/dnanmeanwd/benchmark/benchmark.js | 3 +- .../ndarray/dnanmin/benchmark/benchmark.js | 3 +- .../ndarray/dnanminabs/benchmark/benchmark.js | 3 +- .../ndarray/dnanmskmax/benchmark/benchmark.js | 3 +- .../ndarray/dnanmskmin/benchmark/benchmark.js | 3 +- .../dnanmskrange/benchmark/benchmark.js | 3 +- .../ndarray/dnanrange/benchmark/benchmark.js | 3 +- .../stats/base/ndarray/dnanstdev/README.md | 2 +- .../ndarray/dnanstdev/benchmark/benchmark.js | 6 +- .../base/ndarray/dnanstdev/examples/index.js | 2 +- .../stats/base/ndarray/drangeabs/README.md | 147 +++ .../ndarray/drangeabs/benchmark/benchmark.js | 2 +- .../drangeabs/benchmark/benchmark.native.js | 114 ++ .../ndarray/drangeabs/benchmark/c/Makefile | 146 +++ .../drangeabs/benchmark/c/benchmark.length.c | 185 +++ .../stats/base/ndarray/drangeabs/binding.gyp | 170 +++ .../ndarray/drangeabs/examples/c/Makefile | 146 +++ .../ndarray/drangeabs/examples/c/example.c | 74 ++ .../stats/base/ndarray/drangeabs/include.gypi | 53 + .../stdlib/stats/base/ndarray/drangeabs.h | 40 + .../stats/base/ndarray/drangeabs/lib/index.js | 16 +- .../base/ndarray/drangeabs/lib/native.js | 55 + .../base/ndarray/drangeabs/manifest.json | 110 ++ .../stats/base/ndarray/drangeabs/package.json | 4 + .../stats/base/ndarray/drangeabs/src/Makefile | 70 ++ .../stats/base/ndarray/drangeabs/src/addon.c | 58 + .../stats/base/ndarray/drangeabs/src/main.c | 33 + .../stats/base/ndarray/drangeabs/test/test.js | 152 +-- .../base/ndarray/drangeabs/test/test.main.js | 168 +++ .../ndarray/drangeabs/test/test.native.js | 177 +++ .../stats/base/ndarray/dstdevtk/README.md | 1 + .../ndarray/dztest/benchmark/benchmark.js | 3 +- .../ndarray/dztest2/benchmark/benchmark.js | 3 +- .../@stdlib/stats/base/ndarray/lib/index.js | 117 ++ .../ndarray/max-by/benchmark/benchmark.js | 3 +- .../ndarray/maxabs/benchmark/benchmark.js | 3 +- .../ndarray/maxsorted/benchmark/benchmark.js | 3 +- .../base/ndarray/mean/benchmark/benchmark.js | 3 +- .../ndarray/meankbn/benchmark/benchmark.js | 3 +- .../ndarray/meankbn2/benchmark/benchmark.js | 3 +- .../ndarray/meanors/benchmark/benchmark.js | 3 +- .../ndarray/meanpn/benchmark/benchmark.js | 3 +- .../ndarray/meanpw/benchmark/benchmark.js | 3 +- .../ndarray/meanwd/benchmark/benchmark.js | 3 +- .../mediansorted/benchmark/benchmark.js | 3 +- .../stats/base/ndarray/midrangeabs/README.md | 115 ++ .../midrangeabs/benchmark/benchmark.js | 109 ++ .../base/ndarray/midrangeabs/docs/repl.txt | 31 + .../ndarray/midrangeabs/docs/types/index.d.ts | 45 + .../ndarray/midrangeabs/docs/types/test.ts | 57 + .../ndarray/midrangeabs/examples/index.js | 33 + .../base/ndarray/midrangeabs/lib/index.js | 44 + .../base/ndarray/midrangeabs/lib/main.js | 55 + .../base/ndarray/midrangeabs/package.json | 67 ++ .../base/ndarray/midrangeabs/test/test.js | 194 ++++ .../ndarray/min-by/benchmark/benchmark.js | 3 +- .../ndarray/minabs/benchmark/benchmark.js | 3 +- .../ndarray/minsorted/benchmark/benchmark.js | 3 +- .../ndarray/mskmax/benchmark/benchmark.js | 3 +- .../ndarray/mskmin/benchmark/benchmark.js | 3 +- .../ndarray/mskrange/benchmark/benchmark.js | 3 +- .../ndarray/nanmax-by/benchmark/benchmark.js | 3 +- .../ndarray/nanmax/benchmark/benchmark.js | 3 +- .../ndarray/nanmeanwd/benchmark/benchmark.js | 3 +- .../nanmidrange/benchmark/benchmark.js | 3 +- .../ndarray/nanmin-by/benchmark/benchmark.js | 3 +- .../ndarray/nanmin/benchmark/benchmark.js | 3 +- .../ndarray/nanminabs/benchmark/benchmark.js | 3 +- .../ndarray/nanmskmax/benchmark/benchmark.js | 3 +- .../ndarray/nanmskmin/benchmark/benchmark.js | 3 +- .../nanmskrange/benchmark/benchmark.js | 3 +- .../nanrange-by/benchmark/benchmark.js | 3 +- .../ndarray/nanrange/benchmark/benchmark.js | 3 +- .../ndarray/range-by/benchmark/benchmark.js | 3 +- .../base/ndarray/range/benchmark/benchmark.js | 3 +- .../ndarray/scovarmtk/benchmark/benchmark.js | 3 +- .../ndarray/scumax/benchmark/benchmark.js | 3 +- .../ndarray/scumaxabs/benchmark/benchmark.js | 3 +- .../ndarray/scumin/benchmark/benchmark.js | 3 +- .../ndarray/scuminabs/benchmark/benchmark.js | 3 +- .../ndarray/sdsmean/benchmark/benchmark.js | 3 +- .../ndarray/sdsmeanors/benchmark/benchmark.js | 3 +- .../sdsnanmeanors/benchmark/benchmark.js | 3 +- .../smaxabssorted/benchmark/benchmark.js | 3 +- .../stats/base/ndarray/smaxsorted/README.md | 147 +++ .../ndarray/smaxsorted/benchmark/benchmark.js | 5 +- .../smaxsorted/benchmark/benchmark.native.js | 114 ++ .../ndarray/smaxsorted/benchmark/c/Makefile | 146 +++ .../smaxsorted/benchmark/c/benchmark.length.c | 175 +++ .../stats/base/ndarray/smaxsorted/binding.gyp | 170 +++ .../ndarray/smaxsorted/examples/c/Makefile | 146 +++ .../ndarray/smaxsorted/examples/c/example.c | 74 ++ .../base/ndarray/smaxsorted/include.gypi | 53 + .../stdlib/stats/base/ndarray/smaxsorted.h | 40 + .../base/ndarray/smaxsorted/lib/index.js | 16 +- .../base/ndarray/smaxsorted/lib/native.js | 55 + .../base/ndarray/smaxsorted/manifest.json | 110 ++ .../base/ndarray/smaxsorted/package.json | 4 + .../base/ndarray/smaxsorted/src/Makefile | 70 ++ .../stats/base/ndarray/smaxsorted/src/addon.c | 58 + .../stats/base/ndarray/smaxsorted/src/main.c | 33 + .../base/ndarray/smaxsorted/test/test.js | 160 +-- .../base/ndarray/smaxsorted/test/test.main.js | 181 +++ .../ndarray/smaxsorted/test/test.native.js | 190 +++ .../base/ndarray/smean/benchmark/benchmark.js | 3 +- .../ndarray/smeankbn/benchmark/benchmark.js | 3 +- .../ndarray/smeankbn2/benchmark/benchmark.js | 3 +- .../ndarray/smeanli/benchmark/benchmark.js | 3 +- .../ndarray/smeanlipw/benchmark/benchmark.js | 3 +- .../ndarray/smeanors/benchmark/benchmark.js | 3 +- .../ndarray/smeanpn/benchmark/benchmark.js | 3 +- .../ndarray/smeanpw/benchmark/benchmark.js | 3 +- .../ndarray/smeanwd/benchmark/benchmark.js | 3 +- .../smediansorted/benchmark/benchmark.js | 3 +- .../ndarray/sminsorted/benchmark/benchmark.js | 3 +- .../ndarray/smskmax/benchmark/benchmark.js | 3 +- .../ndarray/smskmin/benchmark/benchmark.js | 3 +- .../ndarray/snanmaxabs/benchmark/benchmark.js | 3 +- .../ndarray/snanmean/benchmark/benchmark.js | 3 +- .../snanmeanors/benchmark/benchmark.js | 3 +- .../ndarray/snanmeanpn/benchmark/benchmark.js | 3 +- .../ndarray/snanmeanwd/benchmark/benchmark.js | 3 +- .../ndarray/snanmin/benchmark/benchmark.js | 3 +- .../ndarray/snanminabs/benchmark/benchmark.js | 3 +- .../ndarray/snanmskmax/benchmark/benchmark.js | 3 +- .../ndarray/snanmskmin/benchmark/benchmark.js | 3 +- .../snanmskrange/benchmark/benchmark.js | 3 +- .../stats/base/ndarray/sstdevtk/README.md | 1 + .../stats/base/ndarray/stdevtk/README.md | 1 + .../ndarray/sztest/benchmark/benchmark.js | 3 +- .../ndarray/sztest2/benchmark/benchmark.js | 3 +- .../stats/base/ndarray/variancepn/README.md | 203 ++++ .../ndarray/variancepn/benchmark/benchmark.js | 112 ++ .../docs/img/equation_sample_mean.svg | 43 + .../base/ndarray/variancepn/docs/repl.txt | 54 + .../ndarray/variancepn/docs/types/index.d.ts | 52 + .../ndarray/variancepn/docs/types/test.ts | 65 ++ .../base/ndarray/variancepn/examples/index.js | 37 + .../base/ndarray/variancepn/lib/index.js | 54 + .../stats/base/ndarray/variancepn/lib/main.js | 69 ++ .../base/ndarray/variancepn/package.json | 71 ++ .../base/ndarray/variancepn/test/test.js | 227 ++++ .../stats/base/ndarray/variancetk/README.md | 201 ++++ .../ndarray/variancetk/benchmark/benchmark.js | 112 ++ .../docs/img/equation_sample_mean.svg | 43 + .../base/ndarray/variancetk/docs/repl.txt | 54 + .../ndarray/variancetk/docs/types/index.d.ts | 52 + .../ndarray/variancetk/docs/types/test.ts | 65 ++ .../base/ndarray/variancetk/examples/index.js | 37 + .../base/ndarray/variancetk/lib/index.js | 54 + .../stats/base/ndarray/variancetk/lib/main.js | 69 ++ .../base/ndarray/variancetk/package.json | 65 ++ .../base/ndarray/variancetk/test/test.js | 227 ++++ .../stats/base/ndarray/varianceyc/README.md | 200 ++++ .../ndarray/varianceyc/benchmark/benchmark.js | 112 ++ .../docs/img/equation_sample_mean.svg | 43 + .../base/ndarray/varianceyc/docs/repl.txt | 54 + .../ndarray/varianceyc/docs/types/index.d.ts | 52 + .../ndarray/varianceyc/docs/types/test.ts | 65 ++ .../base/ndarray/varianceyc/examples/index.js | 37 + .../base/ndarray/varianceyc/lib/index.js | 54 + .../stats/base/ndarray/varianceyc/lib/main.js | 69 ++ .../base/ndarray/varianceyc/package.json | 65 ++ .../base/ndarray/varianceyc/test/test.js | 227 ++++ .../base/ndarray/ztest/benchmark/benchmark.js | 3 +- .../ndarray/ztest2/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.js | 5 +- .../benchmark/benchmark.js | 5 +- .../results/factory/benchmark/benchmark.js | 5 +- .../results/float32/benchmark/benchmark.js | 5 +- .../results/float64/benchmark/benchmark.js | 5 +- .../results/factory/benchmark/benchmark.js | 5 +- .../results/float32/benchmark/benchmark.js | 5 +- .../results/float64/benchmark/benchmark.js | 5 +- .../binomial-test/benchmark/benchmark.js | 9 +- .../stats/chi2gof/benchmark/benchmark.js | 15 +- .../stats/chi2test/benchmark/benchmark.js | 3 +- .../@stdlib/stats/cumax/README.md | 31 +- .../stats/cumax/benchmark/benchmark.assign.js | 3 +- .../stats/cumax/benchmark/benchmark.js | 3 +- .../@stdlib/stats/cumax/docs/repl.txt | 9 +- .../@stdlib/stats/cumax/docs/types/index.d.ts | 24 +- .../@stdlib/stats/cumax/lib/index.js | 6 +- .../@stdlib/stats/cumax/lib/main.js | 6 +- .../@stdlib/stats/cumin/README.md | 31 +- .../stats/cumin/benchmark/benchmark.assign.js | 3 +- .../stats/cumin/benchmark/benchmark.js | 3 +- .../@stdlib/stats/cumin/docs/repl.txt | 9 +- .../@stdlib/stats/cumin/docs/types/index.d.ts | 24 +- .../@stdlib/stats/cumin/lib/index.js | 6 +- .../@stdlib/stats/cumin/lib/main.js | 6 +- .../stats/fligner-test/benchmark/benchmark.js | 5 +- .../stats/incr/apcorr/benchmark/benchmark.js | 5 +- .../stats/incr/count/benchmark/benchmark.js | 3 +- .../incr/covariance/benchmark/benchmark.js | 5 +- .../stats/incr/covmat/benchmark/benchmark.js | 13 +- .../stats/incr/cv/benchmark/benchmark.js | 5 +- .../stats/incr/ewmean/benchmark/benchmark.js | 3 +- .../stats/incr/ewstdev/benchmark/benchmark.js | 3 +- .../incr/ewvariance/benchmark/benchmark.js | 3 +- .../stats/incr/gmean/benchmark/benchmark.js | 3 +- .../stats/incr/grubbs/benchmark/benchmark.js | 5 +- .../stats/incr/hmean/benchmark/benchmark.js | 3 +- .../incr/kurtosis/benchmark/benchmark.js | 3 +- .../stats/incr/maape/benchmark/benchmark.js | 3 +- .../stats/incr/mae/benchmark/benchmark.js | 3 +- .../stats/incr/mapcorr/benchmark/benchmark.js | 5 +- .../stats/incr/mape/benchmark/benchmark.js | 3 +- .../stats/incr/max/benchmark/benchmark.js | 3 +- .../stats/incr/maxabs/benchmark/benchmark.js | 3 +- .../incr/mcovariance/benchmark/benchmark.js | 5 +- .../stats/incr/mcv/benchmark/benchmark.js | 5 +- .../stats/incr/mda/benchmark/benchmark.js | 3 +- .../stats/incr/me/benchmark/benchmark.js | 3 +- .../stats/incr/mean/benchmark/benchmark.js | 3 +- .../stats/incr/meanabs/benchmark/benchmark.js | 3 +- .../incr/meanabs2/benchmark/benchmark.js | 3 +- .../incr/meanstdev/benchmark/benchmark.js | 3 +- .../stats/incr/meanvar/benchmark/benchmark.js | 3 +- .../stats/incr/mgmean/benchmark/benchmark.js | 3 +- .../stats/incr/mgrubbs/benchmark/benchmark.js | 5 +- .../stats/incr/mhmean/benchmark/benchmark.js | 3 +- .../incr/midrange/benchmark/benchmark.js | 3 +- .../stats/incr/min/benchmark/benchmark.js | 3 +- .../stats/incr/minabs/benchmark/benchmark.js | 3 +- .../stats/incr/minmax/benchmark/benchmark.js | 3 +- .../incr/minmaxabs/benchmark/benchmark.js | 3 +- .../stats/incr/mmaape/benchmark/benchmark.js | 3 +- .../stats/incr/mmae/benchmark/benchmark.js | 3 +- .../stats/incr/mmape/benchmark/benchmark.js | 3 +- .../stats/incr/mmax/benchmark/benchmark.js | 3 +- .../stats/incr/mmaxabs/benchmark/benchmark.js | 3 +- .../stats/incr/mmda/benchmark/benchmark.js | 3 +- .../stats/incr/mme/benchmark/benchmark.js | 3 +- .../stats/incr/mmean/benchmark/benchmark.js | 3 +- .../incr/mmeanabs/benchmark/benchmark.js | 3 +- .../incr/mmeanabs2/benchmark/benchmark.js | 3 +- .../incr/mmeanstdev/benchmark/benchmark.js | 3 +- .../incr/mmeanvar/benchmark/benchmark.js | 3 +- .../incr/mmidrange/benchmark/benchmark.js | 3 +- .../stats/incr/mmin/benchmark/benchmark.js | 3 +- .../stats/incr/mminabs/benchmark/benchmark.js | 3 +- .../stats/incr/mminmax/benchmark/benchmark.js | 3 +- .../incr/mminmaxabs/benchmark/benchmark.js | 3 +- .../stats/incr/mmpe/benchmark/benchmark.js | 3 +- .../stats/incr/mmse/benchmark/benchmark.js | 3 +- .../stats/incr/mpcorr/benchmark/benchmark.js | 5 +- .../stats/incr/mpcorr2/benchmark/benchmark.js | 5 +- .../incr/mpcorrdist/benchmark/benchmark.js | 5 +- .../stats/incr/mpe/benchmark/benchmark.js | 3 +- .../stats/incr/mprod/benchmark/benchmark.js | 3 +- .../stats/incr/mrange/benchmark/benchmark.js | 3 +- .../stats/incr/mrmse/benchmark/benchmark.js | 3 +- .../stats/incr/mrss/benchmark/benchmark.js | 3 +- .../stats/incr/mse/benchmark/benchmark.js | 3 +- .../stats/incr/mstdev/benchmark/benchmark.js | 5 +- .../stats/incr/msum/benchmark/benchmark.js | 3 +- .../stats/incr/msumabs/benchmark/benchmark.js | 3 +- .../incr/msumabs2/benchmark/benchmark.js | 3 +- .../incr/msummary/benchmark/benchmark.js | 3 +- .../incr/msumprod/benchmark/benchmark.js | 3 +- .../incr/mvariance/benchmark/benchmark.js | 5 +- .../stats/incr/mvmr/benchmark/benchmark.js | 5 +- .../incr/nancount/benchmark/benchmark.js | 3 +- .../incr/nangmean/benchmark/benchmark.js | 3 +- .../incr/nanhmean/benchmark/benchmark.js | 3 +- .../incr/nanmaxabs/benchmark/benchmark.js | 3 +- .../stats/incr/nanmcv/benchmark/benchmark.js | 5 +- .../stats/incr/nanmean/benchmark/benchmark.js | 3 +- .../incr/nanmeanabs/benchmark/benchmark.js | 3 +- .../stats/incr/nanmin/benchmark/benchmark.js | 3 +- .../stats/incr/nanmmse/benchmark/benchmark.js | 3 +- .../incr/nanmstdev/benchmark/benchmark.js | 5 +- .../stats/incr/nanmsum/benchmark/benchmark.js | 3 +- .../incr/nanskewness/benchmark/benchmark.js | 3 +- .../incr/nanstdev/benchmark/benchmark.js | 5 +- .../stats/incr/nansum/benchmark/benchmark.js | 3 +- .../incr/nansumabs/benchmark/benchmark.js | 3 +- .../incr/nansumabs2/benchmark/benchmark.js | 3 +- .../stats/incr/pcorr/benchmark/benchmark.js | 5 +- .../stats/incr/pcorr2/benchmark/benchmark.js | 5 +- .../incr/pcorrdist/benchmark/benchmark.js | 5 +- .../incr/pcorrdistmat/benchmark/benchmark.js | 13 +- .../incr/pcorrmat/benchmark/benchmark.js | 13 +- .../stats/incr/prod/benchmark/benchmark.js | 3 +- .../stats/incr/range/benchmark/benchmark.js | 3 +- .../stats/incr/rmse/benchmark/benchmark.js | 3 +- .../stats/incr/rss/benchmark/benchmark.js | 3 +- .../incr/skewness/benchmark/benchmark.js | 3 +- .../stats/incr/stdev/benchmark/benchmark.js | 5 +- .../stats/incr/sum/benchmark/benchmark.js | 3 +- .../stats/incr/sumabs/benchmark/benchmark.js | 3 +- .../stats/incr/sumabs2/benchmark/benchmark.js | 3 +- .../stats/incr/summary/benchmark/benchmark.js | 3 +- .../stats/incr/sumprod/benchmark/benchmark.js | 3 +- .../incr/variance/benchmark/benchmark.js | 5 +- .../stats/incr/vmr/benchmark/benchmark.js | 5 +- .../stats/iter/cugmean/benchmark/benchmark.js | 3 +- .../stats/iter/cuhmean/benchmark/benchmark.js | 3 +- .../stats/iter/cumax/benchmark/benchmark.js | 3 +- .../iter/cumaxabs/benchmark/benchmark.js | 3 +- .../stats/iter/cumean/benchmark/benchmark.js | 3 +- .../iter/cumeanabs/benchmark/benchmark.js | 3 +- .../iter/cumeanabs2/benchmark/benchmark.js | 3 +- .../iter/cumidrange/benchmark/benchmark.js | 3 +- .../stats/iter/cumin/benchmark/benchmark.js | 3 +- .../iter/cuminabs/benchmark/benchmark.js | 3 +- .../stats/iter/cuprod/benchmark/benchmark.js | 3 +- .../stats/iter/curange/benchmark/benchmark.js | 3 +- .../stats/iter/cusum/benchmark/benchmark.js | 3 +- .../iter/cusumabs/benchmark/benchmark.js | 3 +- .../iter/cusumabs2/benchmark/benchmark.js | 3 +- .../stats/iter/mmax/benchmark/benchmark.js | 3 +- .../stats/iter/mmaxabs/benchmark/benchmark.js | 3 +- .../stats/iter/mmean/benchmark/benchmark.js | 3 +- .../iter/mmeanabs/benchmark/benchmark.js | 3 +- .../iter/mmeanabs2/benchmark/benchmark.js | 3 +- .../iter/mmidrange/benchmark/benchmark.js | 3 +- .../stats/iter/mmin/benchmark/benchmark.js | 3 +- .../stats/iter/mminabs/benchmark/benchmark.js | 3 +- .../stats/iter/mprod/benchmark/benchmark.js | 3 +- .../stats/iter/mrange/benchmark/benchmark.js | 3 +- .../stats/iter/msum/benchmark/benchmark.js | 3 +- .../stats/iter/msumabs/benchmark/benchmark.js | 3 +- .../iter/msumabs2/benchmark/benchmark.js | 3 +- .../stats/kruskal-test/benchmark/benchmark.js | 5 +- .../stats/levene-test/benchmark/benchmark.js | 5 +- .../stats/lowess/benchmark/benchmark.js | 13 +- .../stats/max/benchmark/benchmark.assign.js | 3 +- .../@stdlib/stats/max/benchmark/benchmark.js | 3 +- .../meankbn/benchmark/benchmark.assign.js | 3 +- .../stats/meankbn/benchmark/benchmark.js | 3 +- .../meankbn2/benchmark/benchmark.assign.js | 3 +- .../stats/meankbn2/benchmark/benchmark.js | 3 +- .../meanors/benchmark/benchmark.assign.js | 3 +- .../stats/meanors/benchmark/benchmark.js | 3 +- .../meanpn/benchmark/benchmark.assign.js | 3 +- .../stats/meanpn/benchmark/benchmark.js | 3 +- .../meanpw/benchmark/benchmark.assign.js | 3 +- .../stats/meanpw/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.assign.js | 3 +- .../stats/mediansorted/benchmark/benchmark.js | 3 +- .../stats/min/benchmark/benchmark.assign.js | 3 +- .../@stdlib/stats/min/benchmark/benchmark.js | 3 +- .../minabs/benchmark/benchmark.assign.js | 3 +- .../stats/minabs/benchmark/benchmark.js | 3 +- .../minsorted/benchmark/benchmark.assign.js | 3 +- .../stats/minsorted/benchmark/benchmark.js | 3 +- .../nanmax-by/benchmark/benchmark.assign.js | 6 +- .../stats/nanmax-by/benchmark/benchmark.js | 4 +- .../nanmax/benchmark/benchmark.assign.js | 3 +- .../stats/nanmax/benchmark/benchmark.js | 3 +- .../nanmaxabs/benchmark/benchmark.assign.js | 3 +- .../stats/nanmaxabs/benchmark/benchmark.js | 3 +- .../nanmean/benchmark/benchmark.assign.js | 3 +- .../stats/nanmean/benchmark/benchmark.js | 3 +- .../nanmeanors/benchmark/benchmark.assign.js | 3 +- .../stats/nanmeanors/benchmark/benchmark.js | 3 +- .../nanmeanpn/benchmark/benchmark.assign.js | 3 +- .../stats/nanmeanpn/benchmark/benchmark.js | 3 +- .../nanmeanwd/benchmark/benchmark.assign.js | 3 +- .../stats/nanmeanwd/benchmark/benchmark.js | 3 +- .../nanmin-by/benchmark/benchmark.assign.js | 3 +- .../stats/nanmin-by/benchmark/benchmark.js | 3 +- .../nanmin/benchmark/benchmark.assign.js | 3 +- .../stats/nanmin/benchmark/benchmark.js | 3 +- .../nanminabs/benchmark/benchmark.assign.js | 3 +- .../stats/nanminabs/benchmark/benchmark.js | 3 +- .../nanrange-by/benchmark/benchmark.assign.js | 3 +- .../stats/nanrange-by/benchmark/benchmark.js | 3 +- .../nanrange/benchmark/benchmark.assign.js | 3 +- .../stats/nanrange/benchmark/benchmark.js | 3 +- .../stats/pcorrtest/benchmark/benchmark.js | 7 +- .../range-by/benchmark/benchmark.assign.js | 3 +- .../stats/range-by/benchmark/benchmark.js | 3 +- .../stats/range/benchmark/benchmark.assign.js | 3 +- .../stats/range/benchmark/benchmark.js | 3 +- .../@stdlib/stats/strided/README.md | 33 + .../strided/dcovmatmtk/benchmark/benchmark.js | 3 +- .../dcovmatmtk/benchmark/benchmark.native.js | 3 +- .../dcovmatmtk/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dcumax/benchmark/benchmark.js | 3 +- .../dcumax/benchmark/benchmark.native.js | 3 +- .../dcumax/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dcumaxabs/benchmark/benchmark.js | 3 +- .../dcumaxabs/benchmark/benchmark.native.js | 3 +- .../dcumaxabs/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dcumin/benchmark/benchmark.js | 3 +- .../dcumin/benchmark/benchmark.native.js | 3 +- .../dcumin/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dcuminabs/benchmark/benchmark.js | 3 +- .../dcuminabs/benchmark/benchmark.native.js | 3 +- .../dcuminabs/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../stats/strided/dmax/benchmark/benchmark.js | 3 +- .../dmax/benchmark/benchmark.native.js | 3 +- .../dmax/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dmaxabs/benchmark/benchmark.js | 3 +- .../dmaxabs/benchmark/benchmark.native.js | 3 +- .../dmaxabs/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../benchmark/c/benchmark.length.c | 10 - .../strided/dmaxsorted/benchmark/benchmark.js | 3 +- .../dmaxsorted/benchmark/benchmark.native.js | 3 +- .../dmaxsorted/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dmean/benchmark/benchmark.js | 3 +- .../dmean/benchmark/benchmark.native.js | 3 +- .../dmean/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dmeankbn/benchmark/benchmark.js | 3 +- .../dmeankbn/benchmark/benchmark.native.js | 3 +- .../dmeankbn/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dmeankbn2/benchmark/benchmark.js | 3 +- .../dmeankbn2/benchmark/benchmark.native.js | 3 +- .../dmeankbn2/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dmeanli/benchmark/benchmark.js | 3 +- .../dmeanli/benchmark/benchmark.native.js | 3 +- .../dmeanli/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dmeanlipw/benchmark/benchmark.js | 3 +- .../dmeanlipw/benchmark/benchmark.native.js | 3 +- .../dmeanlipw/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dmeanors/benchmark/benchmark.js | 3 +- .../dmeanors/benchmark/benchmark.native.js | 3 +- .../dmeanors/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dmeanpn/benchmark/benchmark.js | 3 +- .../dmeanpn/benchmark/benchmark.native.js | 3 +- .../dmeanpn/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dmeanpw/benchmark/benchmark.js | 3 +- .../dmeanpw/benchmark/benchmark.native.js | 3 +- .../dmeanpw/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dmeanstdev/benchmark/benchmark.js | 3 +- .../dmeanstdev/benchmark/benchmark.native.js | 3 +- .../dmeanstdev/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../dmeanstdevpn/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dmeanvar/benchmark/benchmark.js | 3 +- .../dmeanvar/benchmark/benchmark.native.js | 3 +- .../dmeanvar/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../stats/strided/dmeanvarpn/README.md | 4 +- .../strided/dmeanvarpn/benchmark/benchmark.js | 3 +- .../dmeanvarpn/benchmark/benchmark.native.js | 3 +- .../dmeanvarpn/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dmeanwd/benchmark/benchmark.js | 3 +- .../dmeanwd/benchmark/benchmark.native.js | 3 +- .../dmeanwd/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../dmediansorted/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dmidrange/benchmark/benchmark.js | 3 +- .../dmidrange/benchmark/benchmark.native.js | 3 +- .../dmidrange/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../stats/strided/dmin/benchmark/benchmark.js | 3 +- .../dmin/benchmark/benchmark.native.js | 3 +- .../dmin/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dminabs/benchmark/benchmark.js | 3 +- .../dminabs/benchmark/benchmark.native.js | 3 +- .../dminabs/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dminsorted/benchmark/benchmark.js | 3 +- .../dminsorted/benchmark/benchmark.native.js | 3 +- .../dminsorted/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../@stdlib/stats/strided/dmskmin/README.md | 2 +- .../@stdlib/stats/strided/dmskrange/README.md | 2 +- .../@stdlib/stats/strided/dnancount/README.md | 290 +++++ .../strided/dnancount/benchmark/benchmark.js | 111 ++ .../dnancount/benchmark/benchmark.native.js | 120 ++ .../dnancount/benchmark/benchmark.ndarray.js | 111 ++ .../benchmark/benchmark.ndarray.native.js | 120 ++ .../strided/dnancount/benchmark/c/Makefile | 146 +++ .../dnancount/benchmark/c/benchmark.length.c | 209 ++++ .../stats/strided/dnancount/binding.gyp | 170 +++ .../stats/strided/dnancount/docs/repl.txt | 89 ++ .../strided/dnancount/docs/types/index.d.ts | 92 ++ .../strided/dnancount/docs/types/test.ts | 157 +++ .../strided/dnancount/examples/c/Makefile | 146 +++ .../strided/dnancount/examples/c/example.c | 38 + .../stats/strided/dnancount/examples/index.js | 37 + .../stats/strided/dnancount/include.gypi | 53 + .../include/stdlib/stats/strided/dnancount.h | 45 + .../stats/strided/dnancount/lib/dnancount.js | 52 + .../strided/dnancount/lib/dnancount.native.js | 51 + .../stats/strided/dnancount/lib/index.js | 68 ++ .../stats/strided/dnancount/lib/main.js | 35 + .../stats/strided/dnancount/lib/native.js | 35 + .../stats/strided/dnancount/lib/ndarray.js | 67 ++ .../strided/dnancount/lib/ndarray.native.js | 52 + .../stats/strided/dnancount/manifest.json | 103 ++ .../stats/strided/dnancount/package.json | 75 ++ .../stats/strided/dnancount/src/Makefile | 70 ++ .../stats/strided/dnancount/src/addon.c | 61 + .../stats/strided/dnancount/src/main.c | 63 + .../strided/dnancount/test/test.dnancount.js | 171 +++ .../dnancount/test/test.dnancount.native.js | 260 +++++ .../stats/strided/dnancount/test/test.js | 82 ++ .../strided/dnancount/test/test.ndarray.js | 148 +++ .../dnancount/test/test.ndarray.native.js | 173 +++ .../stats/strided/dnanmaxabs/README.md | 14 +- .../stats/strided/dnanmeanpn/README.md | 2 +- .../strided/dnanmeanpn/benchmark/benchmark.js | 3 +- .../dnanmeanpn/benchmark/benchmark.native.js | 3 +- .../dnanmeanpn/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dnanmeanpw/benchmark/benchmark.js | 3 +- .../dnanmeanpw/benchmark/benchmark.native.js | 3 +- .../dnanmeanpw/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dnanmeanwd/benchmark/benchmark.js | 3 +- .../dnanmeanwd/benchmark/benchmark.native.js | 3 +- .../dnanmeanwd/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../@stdlib/stats/strided/dnanmin/README.md | 4 +- .../strided/dnanmin/benchmark/benchmark.js | 3 +- .../dnanmin/benchmark/benchmark.native.js | 3 +- .../dnanmin/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dnanminabs/benchmark/benchmark.js | 3 +- .../dnanminabs/benchmark/benchmark.native.js | 3 +- .../dnanminabs/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dnanmskmax/benchmark/benchmark.js | 3 +- .../dnanmskmax/benchmark/benchmark.native.js | 3 +- .../dnanmskmax/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dnanmskmin/benchmark/benchmark.js | 3 +- .../dnanmskmin/benchmark/benchmark.native.js | 3 +- .../dnanmskmin/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../dnanmskrange/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dnanrange/benchmark/benchmark.js | 3 +- .../dnanrange/benchmark/benchmark.native.js | 3 +- .../dnanrange/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dnanstdev/benchmark/benchmark.js | 3 +- .../dnanstdev/benchmark/benchmark.native.js | 3 +- .../dnanstdev/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../dnanstdevch/benchmark/benchmark.js | 3 +- .../dnanstdevch/benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../dnanstdevpn/benchmark/benchmark.js | 3 +- .../dnanstdevpn/benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../dnanstdevtk/benchmark/benchmark.js | 3 +- .../dnanstdevtk/benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../dnanstdevwd/benchmark/benchmark.js | 3 +- .../dnanstdevwd/benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../dnanstdevyc/benchmark/benchmark.js | 3 +- .../dnanstdevyc/benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../dnanvariance/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../dnanvariancech/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../dnanvariancepn/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../dnanvariancetk/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../dnanvariancewd/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../dnanvarianceyc/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../@stdlib/stats/strided/dpcorrwd/README.md | 347 ++++++ .../strided/dpcorrwd/benchmark/benchmark.js | 104 ++ .../dpcorrwd/benchmark/benchmark.native.js | 109 ++ .../dpcorrwd/benchmark/benchmark.ndarray.js | 104 ++ .../benchmark/benchmark.ndarray.native.js | 109 ++ .../strided/dpcorrwd/benchmark/c/Makefile | 146 +++ .../dpcorrwd/benchmark/c/benchmark.length.c | 209 ++++ .../stats/strided/dpcorrwd/binding.gyp | 170 +++ .../stats/strided/dpcorrwd/docs/repl.txt | 112 ++ .../strided/dpcorrwd/docs/types/index.d.ts | 103 ++ .../stats/strided/dpcorrwd/docs/types/test.ts | 249 ++++ .../strided/dpcorrwd/examples/c/Makefile | 146 +++ .../strided/dpcorrwd/examples/c/example.c | 45 + .../stats/strided/dpcorrwd/examples/index.js | 34 + .../stats/strided/dpcorrwd/include.gypi | 53 + .../include/stdlib/stats/strided/dpcorrwd.h | 45 + .../stats/strided/dpcorrwd/lib/dpcorrwd.js | 57 + .../strided/dpcorrwd/lib/dpcorrwd.native.js | 54 + .../stats/strided/dpcorrwd/lib/index.js | 70 ++ .../stats/strided/dpcorrwd/lib/main.js | 35 + .../stats/strided/dpcorrwd/lib/native.js | 35 + .../stats/strided/dpcorrwd/lib/ndarray.js | 206 ++++ .../strided/dpcorrwd/lib/ndarray.native.js | 56 + .../stats/strided/dpcorrwd/manifest.json | 107 ++ .../stats/strided/dpcorrwd/package.json | 76 ++ .../stats/strided/dpcorrwd/src/Makefile | 70 ++ .../stats/strided/dpcorrwd/src/addon.c | 66 ++ .../@stdlib/stats/strided/dpcorrwd/src/main.c | 204 ++++ .../strided/dpcorrwd/test/test.dpcorrwd.js | 217 ++++ .../dpcorrwd/test/test.dpcorrwd.native.js | 226 ++++ .../stats/strided/dpcorrwd/test/test.js | 82 ++ .../strided/dpcorrwd/test/test.ndarray.js | 240 ++++ .../dpcorrwd/test/test.ndarray.native.js | 249 ++++ .../@stdlib/stats/strided/drange/README.md | 2 +- .../strided/drange/benchmark/benchmark.js | 3 +- .../drange/benchmark/benchmark.native.js | 3 +- .../drange/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../stats/strided/dsem/benchmark/benchmark.js | 3 +- .../dsem/benchmark/benchmark.native.js | 3 +- .../dsem/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dsemch/benchmark/benchmark.js | 3 +- .../dsemch/benchmark/benchmark.native.js | 3 +- .../dsemch/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dsempn/benchmark/benchmark.js | 3 +- .../dsempn/benchmark/benchmark.native.js | 3 +- .../dsempn/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dsemtk/benchmark/benchmark.js | 3 +- .../dsemtk/benchmark/benchmark.native.js | 3 +- .../dsemtk/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dsemwd/benchmark/benchmark.js | 3 +- .../dsemwd/benchmark/benchmark.native.js | 3 +- .../dsemwd/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dsemyc/benchmark/benchmark.js | 3 +- .../dsemyc/benchmark/benchmark.native.js | 3 +- .../dsemyc/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dsmean/benchmark/benchmark.js | 3 +- .../dsmean/benchmark/benchmark.native.js | 3 +- .../dsmean/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dsmeanors/benchmark/benchmark.js | 3 +- .../dsmeanors/benchmark/benchmark.native.js | 3 +- .../dsmeanors/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dsmeanpn/benchmark/benchmark.js | 3 +- .../dsmeanpn/benchmark/benchmark.native.js | 3 +- .../dsmeanpn/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dsmeanpw/benchmark/benchmark.js | 3 +- .../dsmeanpw/benchmark/benchmark.native.js | 3 +- .../dsmeanpw/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dsmeanwd/benchmark/benchmark.js | 3 +- .../dsmeanwd/benchmark/benchmark.native.js | 3 +- .../dsmeanwd/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dsnanmean/benchmark/benchmark.js | 3 +- .../dsnanmean/benchmark/benchmark.native.js | 3 +- .../dsnanmean/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../dsnanmeanors/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../dsnanmeanpn/benchmark/benchmark.js | 3 +- .../dsnanmeanpn/benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../dsnanmeanwd/benchmark/benchmark.js | 3 +- .../dsnanmeanwd/benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../@stdlib/stats/strided/dstdev/README.md | 4 +- .../strided/dstdev/benchmark/benchmark.js | 3 +- .../dstdev/benchmark/benchmark.native.js | 3 +- .../dstdev/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dstdevch/benchmark/benchmark.js | 3 +- .../dstdevch/benchmark/benchmark.native.js | 3 +- .../dstdevch/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dstdevpn/benchmark/benchmark.js | 3 +- .../dstdevpn/benchmark/benchmark.native.js | 3 +- .../dstdevpn/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dstdevtk/benchmark/benchmark.js | 3 +- .../dstdevtk/benchmark/benchmark.native.js | 3 +- .../dstdevtk/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dstdevwd/benchmark/benchmark.js | 3 +- .../dstdevwd/benchmark/benchmark.native.js | 3 +- .../dstdevwd/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dstdevyc/benchmark/benchmark.js | 3 +- .../dstdevyc/benchmark/benchmark.native.js | 3 +- .../dstdevyc/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../stats/strided/dsvariance/README.md | 4 +- .../strided/dsvariance/benchmark/benchmark.js | 3 +- .../dsvariance/benchmark/benchmark.native.js | 3 +- .../dsvariance/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../dsvariancepn/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../@stdlib/stats/strided/dvariance/README.md | 4 +- .../strided/dvariance/benchmark/benchmark.js | 3 +- .../dvariance/benchmark/benchmark.native.js | 3 +- .../dvariance/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../dvariancech/benchmark/benchmark.js | 3 +- .../dvariancech/benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../stats/strided/dvariancepn/README.md | 4 +- .../dvariancepn/benchmark/benchmark.js | 3 +- .../dvariancepn/benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../dvariancetk/benchmark/benchmark.js | 3 +- .../dvariancetk/benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../dvariancewd/benchmark/benchmark.js | 3 +- .../dvariancewd/benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../dvarianceyc/benchmark/benchmark.js | 3 +- .../dvarianceyc/benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dvarm/benchmark/benchmark.js | 3 +- .../dvarm/benchmark/benchmark.native.js | 3 +- .../dvarm/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../@stdlib/stats/strided/dvarmpn/README.md | 2 +- .../strided/dvarmpn/benchmark/benchmark.js | 3 +- .../dvarmpn/benchmark/benchmark.native.js | 3 +- .../dvarmpn/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/dvarmtk/benchmark/benchmark.js | 3 +- .../dvarmtk/benchmark/benchmark.native.js | 3 +- .../dvarmtk/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../@stdlib/stats/strided/lib/index.js | 99 ++ .../strided/max-by/benchmark/benchmark.js | 3 +- .../max-by/benchmark/benchmark.ndarray.js | 3 +- .../stats/strided/max/benchmark/benchmark.js | 3 +- .../max/benchmark/benchmark.ndarray.js | 3 +- .../strided/maxabs/benchmark/benchmark.js | 3 +- .../maxabs/benchmark/benchmark.ndarray.js | 3 +- .../strided/maxsorted/benchmark/benchmark.js | 3 +- .../maxsorted/benchmark/benchmark.ndarray.js | 3 +- .../stats/strided/mean/benchmark/benchmark.js | 3 +- .../mean/benchmark/benchmark.ndarray.js | 3 +- .../strided/meankbn/benchmark/benchmark.js | 3 +- .../meankbn/benchmark/benchmark.ndarray.js | 3 +- .../strided/meankbn2/benchmark/benchmark.js | 3 +- .../meankbn2/benchmark/benchmark.ndarray.js | 3 +- .../strided/meanors/benchmark/benchmark.js | 3 +- .../meanors/benchmark/benchmark.ndarray.js | 3 +- .../strided/meanpn/benchmark/benchmark.js | 3 +- .../meanpn/benchmark/benchmark.ndarray.js | 3 +- .../strided/meanpw/benchmark/benchmark.js | 3 +- .../meanpw/benchmark/benchmark.ndarray.js | 3 +- .../strided/meanwd/benchmark/benchmark.js | 3 +- .../meanwd/benchmark/benchmark.ndarray.js | 3 +- .../mediansorted/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../stats/strided/midrangeabs/README.md | 170 +++ .../midrangeabs/benchmark/benchmark.js | 103 ++ .../benchmark/benchmark.ndarray.js | 103 ++ .../stats/strided/midrangeabs/docs/repl.txt | 89 ++ .../strided/midrangeabs/docs/types/index.d.ts | 93 ++ .../strided/midrangeabs/docs/types/test.ts | 156 +++ .../strided/midrangeabs/examples/index.js | 30 + .../strided/midrangeabs/lib/accessors.js | 89 ++ .../stats/strided/midrangeabs/lib/index.js | 59 + .../stats/strided/midrangeabs/lib/main.js | 50 + .../stats/strided/midrangeabs/lib/ndarray.js | 85 ++ .../stats/strided/midrangeabs/package.json | 74 ++ .../stats/strided/midrangeabs/test/test.js | 38 + .../midrangeabs/test/test.midrangeabs.js | 336 ++++++ .../strided/midrangeabs/test/test.ndarray.js | 327 ++++++ .../strided/min-by/benchmark/benchmark.js | 3 +- .../min-by/benchmark/benchmark.ndarray.js | 3 +- .../stats/strided/min/benchmark/benchmark.js | 3 +- .../min/benchmark/benchmark.ndarray.js | 3 +- .../strided/minabs/benchmark/benchmark.js | 3 +- .../minabs/benchmark/benchmark.ndarray.js | 3 +- .../strided/minsorted/benchmark/benchmark.js | 3 +- .../minsorted/benchmark/benchmark.ndarray.js | 3 +- .../strided/mskmax/benchmark/benchmark.js | 3 +- .../mskmax/benchmark/benchmark.ndarray.js | 3 +- .../strided/mskmin/benchmark/benchmark.js | 5 +- .../mskmin/benchmark/benchmark.ndarray.js | 3 +- .../strided/mskrange/benchmark/benchmark.js | 5 +- .../mskrange/benchmark/benchmark.ndarray.js | 3 +- .../@stdlib/stats/strided/nancount/README.md | 173 +++ .../strided/nancount/benchmark/benchmark.js | 111 ++ .../nancount/benchmark/benchmark.ndarray.js | 111 ++ .../stats/strided/nancount/docs/repl.txt | 88 ++ .../strided/nancount/docs/types/index.d.ts | 93 ++ .../stats/strided/nancount/docs/types/test.ts | 158 +++ .../stats/strided/nancount/examples/index.js | 37 + .../stats/strided/nancount/lib/accessors.js | 77 ++ .../stats/strided/nancount/lib/index.js | 59 + .../stats/strided/nancount/lib/main.js | 50 + .../stats/strided/nancount/lib/ndarray.js | 76 ++ .../stats/strided/nancount/package.json | 68 ++ .../stats/strided/nancount/test/test.js | 38 + .../stats/strided/nancount/test/test.main.js | 264 +++++ .../strided/nancount/test/test.ndarray.js | 264 +++++ .../strided/nanmax-by/benchmark/benchmark.js | 3 +- .../nanmax-by/benchmark/benchmark.ndarray.js | 3 +- .../strided/nanmax/benchmark/benchmark.js | 3 +- .../nanmax/benchmark/benchmark.ndarray.js | 3 +- .../strided/nanmaxabs/benchmark/benchmark.js | 3 +- .../nanmaxabs/benchmark/benchmark.ndarray.js | 3 +- .../strided/nanmean/benchmark/benchmark.js | 3 +- .../nanmean/benchmark/benchmark.ndarray.js | 3 +- .../strided/nanmeanors/benchmark/benchmark.js | 3 +- .../nanmeanors/benchmark/benchmark.ndarray.js | 3 +- .../strided/nanmeanpn/benchmark/benchmark.js | 3 +- .../nanmeanpn/benchmark/benchmark.ndarray.js | 3 +- .../strided/nanmeanwd/benchmark/benchmark.js | 3 +- .../nanmeanwd/benchmark/benchmark.ndarray.js | 3 +- .../strided/nanmin-by/benchmark/benchmark.js | 3 +- .../nanmin-by/benchmark/benchmark.ndarray.js | 3 +- .../strided/nanmin/benchmark/benchmark.js | 3 +- .../nanmin/benchmark/benchmark.ndarray.js | 3 +- .../strided/nanminabs/benchmark/benchmark.js | 3 +- .../nanminabs/benchmark/benchmark.ndarray.js | 3 +- .../strided/nanmskmax/benchmark/benchmark.js | 3 +- .../nanmskmax/benchmark/benchmark.ndarray.js | 3 +- .../strided/nanmskmin/benchmark/benchmark.js | 3 +- .../nanmskmin/benchmark/benchmark.ndarray.js | 3 +- .../nanmskrange/benchmark/benchmark.js | 5 +- .../benchmark/benchmark.ndarray.js | 3 +- .../nanrange-by/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../strided/nanrange/benchmark/benchmark.js | 3 +- .../nanrange/benchmark/benchmark.ndarray.js | 3 +- .../strided/nanstdev/benchmark/benchmark.js | 3 +- .../nanstdev/benchmark/benchmark.ndarray.js | 3 +- .../strided/nanstdevch/benchmark/benchmark.js | 3 +- .../nanstdevch/benchmark/benchmark.ndarray.js | 3 +- .../strided/nanstdevpn/benchmark/benchmark.js | 3 +- .../nanstdevpn/benchmark/benchmark.ndarray.js | 3 +- .../strided/nanstdevtk/benchmark/benchmark.js | 3 +- .../nanstdevtk/benchmark/benchmark.ndarray.js | 3 +- .../strided/nanstdevwd/benchmark/benchmark.js | 3 +- .../nanstdevwd/benchmark/benchmark.ndarray.js | 3 +- .../strided/nanstdevyc/benchmark/benchmark.js | 3 +- .../nanstdevyc/benchmark/benchmark.ndarray.js | 3 +- .../nanvariance/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../nanvariancech/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../nanvariancepn/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../nanvariancetk/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../nanvariancewd/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../nanvarianceyc/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../strided/range-by/benchmark/benchmark.js | 3 +- .../range-by/benchmark/benchmark.ndarray.js | 3 +- .../strided/range/benchmark/benchmark.js | 3 +- .../range/benchmark/benchmark.ndarray.js | 3 +- .../strided/scovarmtk/benchmark/benchmark.js | 3 +- .../scovarmtk/benchmark/benchmark.native.js | 3 +- .../scovarmtk/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/scumax/benchmark/benchmark.js | 3 +- .../scumax/benchmark/benchmark.native.js | 3 +- .../scumax/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/scumaxabs/benchmark/benchmark.js | 3 +- .../scumaxabs/benchmark/benchmark.native.js | 3 +- .../scumaxabs/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/scumin/benchmark/benchmark.js | 3 +- .../scumin/benchmark/benchmark.native.js | 3 +- .../scumin/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/scuminabs/benchmark/benchmark.js | 3 +- .../scuminabs/benchmark/benchmark.native.js | 3 +- .../scuminabs/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/sdsmean/benchmark/benchmark.js | 3 +- .../sdsmean/benchmark/benchmark.native.js | 3 +- .../sdsmean/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/sdsmeanors/benchmark/benchmark.js | 3 +- .../sdsmeanors/benchmark/benchmark.native.js | 3 +- .../sdsmeanors/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../stats/strided/sdsnanmeanors/README.md | 4 +- .../sdsnanmeanors/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../stats/strided/smax/benchmark/benchmark.js | 3 +- .../smax/benchmark/benchmark.native.js | 3 +- .../smax/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/smaxabs/benchmark/benchmark.js | 3 +- .../smaxabs/benchmark/benchmark.native.js | 3 +- .../smaxabs/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../smaxabssorted/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/smaxsorted/benchmark/benchmark.js | 3 +- .../smaxsorted/benchmark/benchmark.native.js | 3 +- .../smaxsorted/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/smean/benchmark/benchmark.js | 3 +- .../smean/benchmark/benchmark.native.js | 3 +- .../smean/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/smeankbn/benchmark/benchmark.js | 3 +- .../smeankbn/benchmark/benchmark.native.js | 3 +- .../smeankbn/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/smeankbn2/benchmark/benchmark.js | 3 +- .../smeankbn2/benchmark/benchmark.native.js | 3 +- .../smeankbn2/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/smeanli/benchmark/benchmark.js | 3 +- .../smeanli/benchmark/benchmark.native.js | 3 +- .../smeanli/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/smeanlipw/benchmark/benchmark.js | 3 +- .../smeanlipw/benchmark/benchmark.native.js | 3 +- .../smeanlipw/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/smeanors/benchmark/benchmark.js | 3 +- .../smeanors/benchmark/benchmark.native.js | 3 +- .../smeanors/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/smeanpn/benchmark/benchmark.js | 3 +- .../smeanpn/benchmark/benchmark.native.js | 3 +- .../smeanpn/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/smeanpw/benchmark/benchmark.js | 3 +- .../smeanpw/benchmark/benchmark.native.js | 3 +- .../smeanpw/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/smeanwd/benchmark/benchmark.js | 3 +- .../smeanwd/benchmark/benchmark.native.js | 3 +- .../smeanwd/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../smediansorted/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../@stdlib/stats/strided/smidrange/README.md | 4 +- .../strided/smidrange/benchmark/benchmark.js | 3 +- .../smidrange/benchmark/benchmark.native.js | 3 +- .../smidrange/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../@stdlib/stats/strided/smin/README.md | 4 +- .../stats/strided/smin/benchmark/benchmark.js | 3 +- .../smin/benchmark/benchmark.native.js | 3 +- .../smin/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../@stdlib/stats/strided/sminabs/README.md | 2 +- .../strided/sminabs/benchmark/benchmark.js | 3 +- .../sminabs/benchmark/benchmark.native.js | 3 +- .../sminabs/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/sminsorted/benchmark/benchmark.js | 3 +- .../sminsorted/benchmark/benchmark.native.js | 3 +- .../sminsorted/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../@stdlib/stats/strided/smskmax/README.md | 2 +- .../strided/smskmax/benchmark/benchmark.js | 3 +- .../smskmax/benchmark/benchmark.native.js | 3 +- .../smskmax/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../@stdlib/stats/strided/smskmin/README.md | 2 +- .../strided/smskmin/benchmark/benchmark.js | 3 +- .../smskmin/benchmark/benchmark.native.js | 3 +- .../smskmin/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../@stdlib/stats/strided/smskrange/README.md | 2 +- .../strided/smskrange/benchmark/benchmark.js | 3 +- .../smskrange/benchmark/benchmark.native.js | 3 +- .../smskrange/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../@stdlib/stats/strided/snancount/README.md | 301 +++++ .../strided/snancount/benchmark/benchmark.js | 111 ++ .../snancount/benchmark/benchmark.native.js | 120 ++ .../snancount/benchmark/benchmark.ndarray.js | 111 ++ .../benchmark/benchmark.ndarray.native.js | 120 ++ .../strided/snancount/benchmark/c/Makefile | 146 +++ .../snancount/benchmark/c/benchmark.length.c | 205 ++++ .../stats/strided/snancount/binding.gyp | 170 +++ .../stats/strided/snancount/docs/repl.txt | 89 ++ .../strided/snancount/docs/types/index.d.ts | 92 ++ .../strided/snancount/docs/types/test.ts | 157 +++ .../strided/snancount/examples/c/Makefile | 146 +++ .../strided/snancount/examples/c/example.c | 37 + .../stats/strided/snancount/examples/index.js | 37 + .../stats/strided/snancount/include.gypi | 53 + .../include/stdlib/stats/strided/snancount.h | 45 + .../stats/strided/snancount/lib/index.js | 68 ++ .../stats/strided/snancount/lib/main.js | 35 + .../stats/strided/snancount/lib/native.js | 35 + .../stats/strided/snancount/lib/ndarray.js | 67 ++ .../strided/snancount/lib/ndarray.native.js | 52 + .../stats/strided/snancount/lib/snancount.js | 52 + .../strided/snancount/lib/snancount.native.js | 51 + .../stats/strided/snancount/manifest.json | 103 ++ .../stats/strided/snancount/package.json | 76 ++ .../stats/strided/snancount/src/Makefile | 70 ++ .../stats/strided/snancount/src/addon.c | 61 + .../stats/strided/snancount/src/main.c | 63 + .../stats/strided/snancount/test/test.js | 82 ++ .../strided/snancount/test/test.ndarray.js | 163 +++ .../snancount/test/test.ndarray.native.js | 173 +++ .../strided/snancount/test/test.snancount.js | 171 +++ .../snancount/test/test.snancount.native.js | 260 +++++ .../strided/snanmax/benchmark/benchmark.js | 3 +- .../snanmax/benchmark/benchmark.native.js | 3 +- .../snanmax/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/snanmaxabs/benchmark/benchmark.js | 3 +- .../snanmaxabs/benchmark/benchmark.native.js | 3 +- .../snanmaxabs/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/snanmean/benchmark/benchmark.js | 3 +- .../snanmean/benchmark/benchmark.native.js | 3 +- .../snanmean/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../snanmeanors/benchmark/benchmark.js | 3 +- .../snanmeanors/benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../stats/strided/snanmeanpn/README.md | 12 +- .../strided/snanmeanpn/benchmark/benchmark.js | 3 +- .../snanmeanpn/benchmark/benchmark.native.js | 3 +- .../snanmeanpn/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/snanmeanwd/benchmark/benchmark.js | 3 +- .../snanmeanwd/benchmark/benchmark.native.js | 3 +- .../snanmeanwd/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/snanmin/benchmark/benchmark.js | 3 +- .../snanmin/benchmark/benchmark.native.js | 3 +- .../snanmin/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/snanminabs/benchmark/benchmark.js | 3 +- .../snanminabs/benchmark/benchmark.native.js | 3 +- .../snanminabs/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/snanmskmax/benchmark/benchmark.js | 3 +- .../snanmskmax/benchmark/benchmark.native.js | 3 +- .../snanmskmax/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/snanmskmin/benchmark/benchmark.js | 3 +- .../snanmskmin/benchmark/benchmark.native.js | 3 +- .../snanmskmin/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../snanmskrange/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/snanrange/benchmark/benchmark.js | 3 +- .../snanrange/benchmark/benchmark.native.js | 3 +- .../snanrange/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/srange/benchmark/benchmark.js | 3 +- .../srange/benchmark/benchmark.native.js | 3 +- .../srange/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/sstdev/benchmark/benchmark.js | 3 +- .../sstdev/benchmark/benchmark.native.js | 3 +- .../sstdev/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/sstdevch/benchmark/benchmark.js | 3 +- .../sstdevch/benchmark/benchmark.native.js | 3 +- .../sstdevch/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/sstdevpn/benchmark/benchmark.js | 3 +- .../sstdevpn/benchmark/benchmark.native.js | 3 +- .../sstdevpn/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/sstdevtk/benchmark/benchmark.js | 3 +- .../sstdevtk/benchmark/benchmark.native.js | 3 +- .../sstdevtk/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/sstdevwd/benchmark/benchmark.js | 3 +- .../sstdevwd/benchmark/benchmark.native.js | 3 +- .../sstdevwd/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/sstdevyc/benchmark/benchmark.js | 3 +- .../sstdevyc/benchmark/benchmark.native.js | 3 +- .../sstdevyc/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/stdev/benchmark/benchmark.js | 3 +- .../stdev/benchmark/benchmark.ndarray.js | 3 +- .../strided/stdevch/benchmark/benchmark.js | 3 +- .../stdevch/benchmark/benchmark.ndarray.js | 3 +- .../strided/stdevpn/benchmark/benchmark.js | 3 +- .../stdevpn/benchmark/benchmark.ndarray.js | 3 +- .../strided/stdevtk/benchmark/benchmark.js | 3 +- .../stdevtk/benchmark/benchmark.ndarray.js | 3 +- .../strided/stdevwd/benchmark/benchmark.js | 3 +- .../stdevwd/benchmark/benchmark.ndarray.js | 3 +- .../strided/stdevyc/benchmark/benchmark.js | 3 +- .../stdevyc/benchmark/benchmark.ndarray.js | 3 +- .../@stdlib/stats/strided/svariance/README.md | 2 +- .../strided/svariance/benchmark/benchmark.js | 3 +- .../svariance/benchmark/benchmark.native.js | 3 +- .../svariance/benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../svariancech/benchmark/benchmark.js | 3 +- .../svariancech/benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../svariancepn/benchmark/benchmark.js | 3 +- .../svariancepn/benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../svariancetk/benchmark/benchmark.js | 3 +- .../svariancetk/benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../svariancewd/benchmark/benchmark.js | 3 +- .../svariancewd/benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../stats/strided/svarianceyc/README.md | 2 +- .../svarianceyc/benchmark/benchmark.js | 3 +- .../svarianceyc/benchmark/benchmark.native.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.native.js | 3 +- .../strided/variance/benchmark/benchmark.js | 3 +- .../variance/benchmark/benchmark.ndarray.js | 3 +- .../strided/variancech/benchmark/benchmark.js | 3 +- .../variancech/benchmark/benchmark.ndarray.js | 3 +- .../strided/variancepn/benchmark/benchmark.js | 3 +- .../variancepn/benchmark/benchmark.ndarray.js | 3 +- .../strided/variancetk/benchmark/benchmark.js | 3 +- .../variancetk/benchmark/benchmark.ndarray.js | 3 +- .../strided/variancewd/benchmark/benchmark.js | 3 +- .../variancewd/benchmark/benchmark.ndarray.js | 3 +- .../strided/varianceyc/benchmark/benchmark.js | 3 +- .../varianceyc/benchmark/benchmark.ndarray.js | 3 +- .../wasm/dmeanors/benchmark/benchmark.js | 3 +- .../dmeanors/benchmark/benchmark.module.js | 3 +- .../benchmark/benchmark.module.main.js | 3 +- .../benchmark/benchmark.module.ndarray.js | 3 +- .../dmeanors/benchmark/benchmark.ndarray.js | 3 +- .../wasm/dmeanpw/benchmark/benchmark.js | 3 +- .../dmeanpw/benchmark/benchmark.module.js | 3 +- .../benchmark/benchmark.module.main.js | 3 +- .../benchmark/benchmark.module.ndarray.js | 3 +- .../dmeanpw/benchmark/benchmark.ndarray.js | 3 +- .../wasm/dmeanwd/benchmark/benchmark.js | 3 +- .../dmeanwd/benchmark/benchmark.module.js | 3 +- .../benchmark/benchmark.module.main.js | 3 +- .../benchmark/benchmark.module.ndarray.js | 3 +- .../dmeanwd/benchmark/benchmark.ndarray.js | 3 +- .../dnanvariancewd/benchmark/benchmark.js | 3 +- .../benchmark/benchmark.module.js | 3 +- .../benchmark/benchmark.module.main.js | 3 +- .../benchmark/benchmark.module.ndarray.js | 3 +- .../benchmark/benchmark.ndarray.js | 3 +- .../stats/ttest/benchmark/benchmark.js | 13 +- .../stats/ttest2/benchmark/benchmark.js | 9 +- .../stats/vartest/benchmark/benchmark.js | 5 +- .../stats/wilcoxon/benchmark/benchmark.js | 9 +- .../stats/ztest/benchmark/benchmark.js | 5 +- .../stats/ztest2/benchmark/benchmark.js | 5 +- .../strided/base/dmap/examples/c/example.c | 8 +- .../@stdlib/strided/base/dmap/src/main.c | 4 +- .../strided/base/stride2offset/README.md | 2 +- .../include/stdlib/strided/common/quinary.h | 18 +- .../@stdlib/strided/common/src/quinary.c | 18 +- .../utils/group-by/benchmark/benchmark.js | 73 +- tools/git/hooks/pre-push | 7 +- tools/snippets/benchmark/benchmark.length.js | 2 +- tools/snippets/benchmark/benchmark.native.js | 3 +- tools/snippets/benchmark/benchmark.wasm.js | 3 +- 4061 files changed, 73570 insertions(+), 8242 deletions(-) create mode 100644 lib/node_modules/@stdlib/blas/base/ndarray/daxpy/README.md create mode 100644 lib/node_modules/@stdlib/blas/base/ndarray/daxpy/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/blas/base/ndarray/daxpy/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/blas/base/ndarray/daxpy/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/blas/base/ndarray/daxpy/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/blas/base/ndarray/daxpy/examples/index.js create mode 100644 lib/node_modules/@stdlib/blas/base/ndarray/daxpy/lib/index.js create mode 100644 lib/node_modules/@stdlib/blas/base/ndarray/daxpy/lib/main.js create mode 100644 lib/node_modules/@stdlib/blas/base/ndarray/daxpy/package.json create mode 100644 lib/node_modules/@stdlib/blas/base/ndarray/daxpy/test/test.js create mode 100644 lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/README.md create mode 100644 lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/examples/index.js create mode 100644 lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/lib/index.js create mode 100644 lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/lib/main.js create mode 100644 lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/package.json create mode 100644 lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/test/test.js create mode 100644 lib/node_modules/@stdlib/blas/base/ndarray/saxpy/README.md create mode 100644 lib/node_modules/@stdlib/blas/base/ndarray/saxpy/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/blas/base/ndarray/saxpy/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/blas/base/ndarray/saxpy/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/blas/base/ndarray/saxpy/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/blas/base/ndarray/saxpy/examples/index.js create mode 100644 lib/node_modules/@stdlib/blas/base/ndarray/saxpy/lib/index.js create mode 100644 lib/node_modules/@stdlib/blas/base/ndarray/saxpy/lib/main.js create mode 100644 lib/node_modules/@stdlib/blas/base/ndarray/saxpy/package.json create mode 100644 lib/node_modules/@stdlib/blas/base/ndarray/saxpy/test/test.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/greplicate/README.md create mode 100644 lib/node_modules/@stdlib/blas/ext/base/greplicate/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/greplicate/benchmark/benchmark.ndarray.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/greplicate/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/blas/ext/base/greplicate/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/blas/ext/base/greplicate/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/blas/ext/base/greplicate/examples/index.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/greplicate/lib/accessors.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/greplicate/lib/index.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/greplicate/lib/main.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/greplicate/lib/ndarray.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/greplicate/package.json create mode 100644 lib/node_modules/@stdlib/blas/ext/base/greplicate/test/test.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/greplicate/test/test.main.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/greplicate/test/test.ndarray.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/gvander/README.md create mode 100644 lib/node_modules/@stdlib/blas/ext/base/gvander/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/gvander/benchmark/benchmark.ndarray.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/gvander/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/blas/ext/base/gvander/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/blas/ext/base/gvander/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/blas/ext/base/gvander/examples/index.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/gvander/lib/accessors.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/gvander/lib/base.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/gvander/lib/index.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/gvander/lib/main.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/gvander/lib/ndarray.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/gvander/package.json create mode 100644 lib/node_modules/@stdlib/blas/ext/base/gvander/test/test.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/gvander/test/test.main.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/gvander/test/test.ndarray.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/gwhere/README.md create mode 100644 lib/node_modules/@stdlib/blas/ext/base/gwhere/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/gwhere/benchmark/benchmark.ndarray.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/gwhere/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/blas/ext/base/gwhere/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/blas/ext/base/gwhere/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/blas/ext/base/gwhere/examples/index.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/gwhere/lib/accessors.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/gwhere/lib/index.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/gwhere/lib/main.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/gwhere/lib/ndarray.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/gwhere/package.json create mode 100644 lib/node_modules/@stdlib/blas/ext/base/gwhere/test/test.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/gwhere/test/test.main.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/gwhere/test/test.ndarray.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/cone-to/README.md create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/cone-to/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/cone-to/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/cone-to/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/cone-to/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/cone-to/examples/index.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/cone-to/lib/index.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/cone-to/lib/main.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/cone-to/package.json create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/cone-to/test/test.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/csum/benchmark/benchmark.native.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/csum/benchmark/c/Makefile create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/csum/benchmark/c/benchmark.length.c create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/csum/binding.gyp create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/csum/examples/c/Makefile create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/csum/examples/c/example.c create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/csum/include.gypi create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/csum/include/stdlib/blas/ext/base/ndarray/csum.h create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/csum/lib/native.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/csum/manifest.json create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/csum/src/Makefile create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/csum/src/addon.c create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/csum/src/main.c create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/csum/test/test.main.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/csum/test/test.native.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/dnansum/benchmark/benchmark.native.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/dnansum/benchmark/c/Makefile create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/dnansum/benchmark/c/benchmark.length.c create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/dnansum/binding.gyp create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/dnansum/examples/c/Makefile create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/dnansum/examples/c/example.c create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/dnansum/include.gypi create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/dnansum/include/stdlib/blas/ext/base/ndarray/dnansum.h create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/dnansum/lib/native.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/dnansum/manifest.json create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/dnansum/src/Makefile create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/dnansum/src/addon.c create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/dnansum/src/main.c create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/dnansum/test/test.main.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/dnansum/test/test.native.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/dsort/README.md create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/dsort/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/dsort/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/dsort/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/dsort/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/dsort/examples/index.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/dsort/lib/index.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/dsort/lib/main.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/dsort/package.json create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/dsort/test/test.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/snansum/benchmark/benchmark.native.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/snansum/benchmark/c/Makefile create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/snansum/benchmark/c/benchmark.length.c create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/snansum/binding.gyp create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/snansum/examples/c/Makefile create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/snansum/examples/c/example.c create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/snansum/include.gypi create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/snansum/include/stdlib/blas/ext/base/ndarray/snansum.h create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/snansum/lib/native.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/snansum/manifest.json create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/snansum/src/Makefile create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/snansum/src/addon.c create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/snansum/src/main.c create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/snansum/test/test.main.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/snansum/test/test.native.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/ssort/README.md create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/ssort/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/ssort/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/ssort/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/ssort/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/ssort/examples/index.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/ssort/lib/index.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/ssort/lib/main.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/ssort/package.json create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/ssort/test/test.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/zone-to/README.md create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/zone-to/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/zone-to/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/zone-to/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/zone-to/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/zone-to/examples/index.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/zone-to/lib/index.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/zone-to/lib/main.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/zone-to/package.json create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/zone-to/test/test.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/zsum/benchmark/benchmark.native.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/zsum/benchmark/c/Makefile create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/zsum/benchmark/c/benchmark.length.c create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/zsum/binding.gyp create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/zsum/examples/c/Makefile create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/zsum/examples/c/example.c create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/zsum/include.gypi create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/zsum/include/stdlib/blas/ext/base/ndarray/zsum.h create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/zsum/lib/native.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/zsum/manifest.json create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/zsum/src/Makefile create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/zsum/src/addon.c create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/zsum/src/main.c create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/zsum/test/test.main.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ndarray/zsum/test/test.native.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ssort/README.md create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ssort/benchmark/benchmark.unsorted_random.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ssort/benchmark/benchmark.unsorted_random.native.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ssort/benchmark/benchmark.unsorted_random.ndarray.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ssort/benchmark/benchmark.unsorted_random.ndarray.native.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ssort/benchmark/c/unsorted-random/Makefile create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ssort/benchmark/c/unsorted-random/benchmark.length.c create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ssort/binding.gyp create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ssort/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ssort/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ssort/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ssort/examples/c/Makefile create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ssort/examples/c/example.c create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ssort/examples/index.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ssort/include.gypi create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ssort/include/stdlib/blas/ext/base/ssort.h create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ssort/lib/index.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ssort/lib/main.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ssort/lib/native.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ssort/lib/ndarray.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ssort/lib/ndarray.native.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ssort/lib/ssort.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ssort/lib/ssort.native.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ssort/manifest.json create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ssort/package.json create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ssort/src/Makefile create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ssort/src/addon.c create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ssort/src/main.c create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ssort/test/fixtures/ascending.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ssort/test/fixtures/num2str.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ssort/test/test.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ssort/test/test.ndarray.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ssort/test/test.ndarray.native.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ssort/test/test.ssort.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ssort/test/test.ssort.native.js create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ssorthp/benchmark/c/unsorted-random/Makefile create mode 100644 lib/node_modules/@stdlib/blas/ext/base/ssorthp/benchmark/c/unsorted-random/benchmark.length.c rename lib/node_modules/@stdlib/blas/ext/base/ssorthp/src/{ssorthp.c => main.c} (63%) create mode 100644 lib/node_modules/@stdlib/blas/ext/zero-to/README.md create mode 100644 lib/node_modules/@stdlib/blas/ext/zero-to/benchmark/benchmark.assign.js create mode 100644 lib/node_modules/@stdlib/blas/ext/zero-to/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/blas/ext/zero-to/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/blas/ext/zero-to/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/blas/ext/zero-to/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/blas/ext/zero-to/examples/index.js create mode 100644 lib/node_modules/@stdlib/blas/ext/zero-to/lib/assign.js create mode 100644 lib/node_modules/@stdlib/blas/ext/zero-to/lib/base.js create mode 100644 lib/node_modules/@stdlib/blas/ext/zero-to/lib/defaults.js create mode 100644 lib/node_modules/@stdlib/blas/ext/zero-to/lib/dtypes.js create mode 100644 lib/node_modules/@stdlib/blas/ext/zero-to/lib/index.js create mode 100644 lib/node_modules/@stdlib/blas/ext/zero-to/lib/main.js create mode 100644 lib/node_modules/@stdlib/blas/ext/zero-to/package.json create mode 100644 lib/node_modules/@stdlib/blas/ext/zero-to/test/test.assign.js create mode 100644 lib/node_modules/@stdlib/blas/ext/zero-to/test/test.js create mode 100644 lib/node_modules/@stdlib/blas/ext/zero-to/test/test.main.js rename lib/node_modules/@stdlib/math/base/special/fast/pow-int/include/stdlib/math/base/special/fast/{pow.h => pow_int.h} (86%) create mode 100644 lib/node_modules/@stdlib/math/base/special/hyp2f1/lib/hyp2f1negcequalbc.js create mode 100644 lib/node_modules/@stdlib/math/base/special/hyp2f1/test/fixtures/python/edge_cases5.json create mode 100644 lib/node_modules/@stdlib/math/base/special/hyp2f1/test/fixtures/python/edge_cases6.json create mode 100644 lib/node_modules/@stdlib/math/base/tools/chebyshev-series/LICENSE create mode 100644 lib/node_modules/@stdlib/math/base/tools/chebyshev-series/README.md create mode 100644 lib/node_modules/@stdlib/math/base/tools/chebyshev-series/benchmark/benchmark.factory.js create mode 100644 lib/node_modules/@stdlib/math/base/tools/chebyshev-series/benchmark/benchmark.factory.length.js create mode 100644 lib/node_modules/@stdlib/math/base/tools/chebyshev-series/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/math/base/tools/chebyshev-series/benchmark/benchmark.length.js create mode 100644 lib/node_modules/@stdlib/math/base/tools/chebyshev-series/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/math/base/tools/chebyshev-series/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/math/base/tools/chebyshev-series/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/math/base/tools/chebyshev-series/examples/index.js create mode 100644 lib/node_modules/@stdlib/math/base/tools/chebyshev-series/lib/factory.js create mode 100644 lib/node_modules/@stdlib/math/base/tools/chebyshev-series/lib/index.js create mode 100644 lib/node_modules/@stdlib/math/base/tools/chebyshev-series/lib/main.js create mode 100644 lib/node_modules/@stdlib/math/base/tools/chebyshev-series/package.json create mode 100644 lib/node_modules/@stdlib/math/base/tools/chebyshev-series/test/test.factory.js create mode 100644 lib/node_modules/@stdlib/math/base/tools/chebyshev-series/test/test.js create mode 100644 lib/node_modules/@stdlib/math/base/tools/chebyshev-series/test/test.main.js create mode 100644 lib/node_modules/@stdlib/ndarray/base/full-by/README.md create mode 100644 lib/node_modules/@stdlib/ndarray/base/full-by/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/ndarray/base/full-by/benchmark/benchmark.size.bool.js create mode 100644 lib/node_modules/@stdlib/ndarray/base/full-by/benchmark/benchmark.size.complex128.js create mode 100644 lib/node_modules/@stdlib/ndarray/base/full-by/benchmark/benchmark.size.complex64.js create mode 100644 lib/node_modules/@stdlib/ndarray/base/full-by/benchmark/benchmark.size.float32.js create mode 100644 lib/node_modules/@stdlib/ndarray/base/full-by/benchmark/benchmark.size.float64.js create mode 100644 lib/node_modules/@stdlib/ndarray/base/full-by/benchmark/benchmark.size.generic.js create mode 100644 lib/node_modules/@stdlib/ndarray/base/full-by/benchmark/benchmark.size.int16.js create mode 100644 lib/node_modules/@stdlib/ndarray/base/full-by/benchmark/benchmark.size.int32.js create mode 100644 lib/node_modules/@stdlib/ndarray/base/full-by/benchmark/benchmark.size.int8.js create mode 100644 lib/node_modules/@stdlib/ndarray/base/full-by/benchmark/benchmark.size.uint16.js create mode 100644 lib/node_modules/@stdlib/ndarray/base/full-by/benchmark/benchmark.size.uint32.js create mode 100644 lib/node_modules/@stdlib/ndarray/base/full-by/benchmark/benchmark.size.uint8.js create mode 100644 lib/node_modules/@stdlib/ndarray/base/full-by/benchmark/benchmark.size.uint8c.js create mode 100644 lib/node_modules/@stdlib/ndarray/base/full-by/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/ndarray/base/full-by/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/ndarray/base/full-by/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/ndarray/base/full-by/examples/index.js create mode 100644 lib/node_modules/@stdlib/ndarray/base/full-by/lib/index.js create mode 100644 lib/node_modules/@stdlib/ndarray/base/full-by/lib/main.js create mode 100644 lib/node_modules/@stdlib/ndarray/base/full-by/package.json create mode 100644 lib/node_modules/@stdlib/ndarray/base/full-by/test/test.js create mode 100644 lib/node_modules/@stdlib/ndarray/base/rotr90/README.md create mode 100644 lib/node_modules/@stdlib/ndarray/base/rotr90/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/ndarray/base/rotr90/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/ndarray/base/rotr90/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/ndarray/base/rotr90/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/ndarray/base/rotr90/examples/index.js create mode 100644 lib/node_modules/@stdlib/ndarray/base/rotr90/lib/index.js create mode 100644 lib/node_modules/@stdlib/ndarray/base/rotr90/lib/main.js create mode 100644 lib/node_modules/@stdlib/ndarray/base/rotr90/package.json create mode 100644 lib/node_modules/@stdlib/ndarray/base/rotr90/test/test.js create mode 100644 lib/node_modules/@stdlib/ndarray/base/to-unflattened/README.md create mode 100644 lib/node_modules/@stdlib/ndarray/base/to-unflattened/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/ndarray/base/to-unflattened/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/ndarray/base/to-unflattened/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/ndarray/base/to-unflattened/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/ndarray/base/to-unflattened/examples/index.js create mode 100644 lib/node_modules/@stdlib/ndarray/base/to-unflattened/lib/index.js create mode 100644 lib/node_modules/@stdlib/ndarray/base/to-unflattened/lib/main.js create mode 100644 lib/node_modules/@stdlib/ndarray/base/to-unflattened/package.json create mode 100644 lib/node_modules/@stdlib/ndarray/base/to-unflattened/test/test.js create mode 100644 lib/node_modules/@stdlib/ndarray/base/unflatten/README.md create mode 100644 lib/node_modules/@stdlib/ndarray/base/unflatten/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/ndarray/base/unflatten/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/ndarray/base/unflatten/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/ndarray/base/unflatten/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/ndarray/base/unflatten/examples/index.js create mode 100644 lib/node_modules/@stdlib/ndarray/base/unflatten/lib/index.js create mode 100644 lib/node_modules/@stdlib/ndarray/base/unflatten/lib/main.js create mode 100644 lib/node_modules/@stdlib/ndarray/base/unflatten/package.json create mode 100644 lib/node_modules/@stdlib/ndarray/base/unflatten/test/test.js create mode 100644 lib/node_modules/@stdlib/ndarray/remove-singleton-dimensions/README.md create mode 100644 lib/node_modules/@stdlib/ndarray/remove-singleton-dimensions/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/ndarray/remove-singleton-dimensions/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/ndarray/remove-singleton-dimensions/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/ndarray/remove-singleton-dimensions/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/ndarray/remove-singleton-dimensions/examples/index.js create mode 100644 lib/node_modules/@stdlib/ndarray/remove-singleton-dimensions/lib/index.js create mode 100644 lib/node_modules/@stdlib/ndarray/remove-singleton-dimensions/lib/main.js create mode 100644 lib/node_modules/@stdlib/ndarray/remove-singleton-dimensions/package.json create mode 100644 lib/node_modules/@stdlib/ndarray/remove-singleton-dimensions/test/test.js create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/dmeanlipw/benchmark/benchmark.native.js create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/dmeanlipw/benchmark/c/Makefile create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/dmeanlipw/benchmark/c/benchmark.length.c create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/dmeanlipw/binding.gyp create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/dmeanlipw/examples/c/Makefile create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/dmeanlipw/examples/c/example.c create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/dmeanlipw/include.gypi create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/dmeanlipw/include/stdlib/stats/base/ndarray/dmeanlipw.h create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/dmeanlipw/lib/native.js create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/dmeanlipw/manifest.json create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/dmeanlipw/src/Makefile create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/dmeanlipw/src/addon.c create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/dmeanlipw/src/main.c create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/dmeanlipw/test/test.main.js create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/dmeanlipw/test/test.native.js create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/drangeabs/benchmark/benchmark.native.js create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/drangeabs/benchmark/c/Makefile create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/drangeabs/benchmark/c/benchmark.length.c create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/drangeabs/binding.gyp create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/drangeabs/examples/c/Makefile create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/drangeabs/examples/c/example.c create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/drangeabs/include.gypi create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/drangeabs/include/stdlib/stats/base/ndarray/drangeabs.h create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/drangeabs/lib/native.js create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/drangeabs/manifest.json create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/drangeabs/src/Makefile create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/drangeabs/src/addon.c create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/drangeabs/src/main.c create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/drangeabs/test/test.main.js create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/drangeabs/test/test.native.js create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/midrangeabs/README.md create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/midrangeabs/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/midrangeabs/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/midrangeabs/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/midrangeabs/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/midrangeabs/examples/index.js create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/midrangeabs/lib/index.js create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/midrangeabs/lib/main.js create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/midrangeabs/package.json create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/midrangeabs/test/test.js create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/smaxsorted/benchmark/benchmark.native.js create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/smaxsorted/benchmark/c/Makefile create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/smaxsorted/benchmark/c/benchmark.length.c create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/smaxsorted/binding.gyp create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/smaxsorted/examples/c/Makefile create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/smaxsorted/examples/c/example.c create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/smaxsorted/include.gypi create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/smaxsorted/include/stdlib/stats/base/ndarray/smaxsorted.h create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/smaxsorted/lib/native.js create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/smaxsorted/manifest.json create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/smaxsorted/src/Makefile create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/smaxsorted/src/addon.c create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/smaxsorted/src/main.c create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/smaxsorted/test/test.main.js create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/smaxsorted/test/test.native.js create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/variancepn/README.md create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/variancepn/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/variancepn/docs/img/equation_sample_mean.svg create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/variancepn/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/variancepn/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/variancepn/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/variancepn/examples/index.js create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/variancepn/lib/index.js create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/variancepn/lib/main.js create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/variancepn/package.json create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/variancepn/test/test.js create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/variancetk/README.md create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/variancetk/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/variancetk/docs/img/equation_sample_mean.svg create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/variancetk/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/variancetk/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/variancetk/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/variancetk/examples/index.js create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/variancetk/lib/index.js create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/variancetk/lib/main.js create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/variancetk/package.json create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/variancetk/test/test.js create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/varianceyc/README.md create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/varianceyc/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/varianceyc/docs/img/equation_sample_mean.svg create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/varianceyc/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/varianceyc/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/varianceyc/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/varianceyc/examples/index.js create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/varianceyc/lib/index.js create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/varianceyc/lib/main.js create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/varianceyc/package.json create mode 100644 lib/node_modules/@stdlib/stats/base/ndarray/varianceyc/test/test.js create mode 100644 lib/node_modules/@stdlib/stats/strided/dnancount/README.md create mode 100644 lib/node_modules/@stdlib/stats/strided/dnancount/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/stats/strided/dnancount/benchmark/benchmark.native.js create mode 100644 lib/node_modules/@stdlib/stats/strided/dnancount/benchmark/benchmark.ndarray.js create mode 100644 lib/node_modules/@stdlib/stats/strided/dnancount/benchmark/benchmark.ndarray.native.js create mode 100644 lib/node_modules/@stdlib/stats/strided/dnancount/benchmark/c/Makefile create mode 100644 lib/node_modules/@stdlib/stats/strided/dnancount/benchmark/c/benchmark.length.c create mode 100644 lib/node_modules/@stdlib/stats/strided/dnancount/binding.gyp create mode 100644 lib/node_modules/@stdlib/stats/strided/dnancount/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/stats/strided/dnancount/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/stats/strided/dnancount/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/stats/strided/dnancount/examples/c/Makefile create mode 100644 lib/node_modules/@stdlib/stats/strided/dnancount/examples/c/example.c create mode 100644 lib/node_modules/@stdlib/stats/strided/dnancount/examples/index.js create mode 100644 lib/node_modules/@stdlib/stats/strided/dnancount/include.gypi create mode 100644 lib/node_modules/@stdlib/stats/strided/dnancount/include/stdlib/stats/strided/dnancount.h create mode 100644 lib/node_modules/@stdlib/stats/strided/dnancount/lib/dnancount.js create mode 100644 lib/node_modules/@stdlib/stats/strided/dnancount/lib/dnancount.native.js create mode 100644 lib/node_modules/@stdlib/stats/strided/dnancount/lib/index.js create mode 100644 lib/node_modules/@stdlib/stats/strided/dnancount/lib/main.js create mode 100644 lib/node_modules/@stdlib/stats/strided/dnancount/lib/native.js create mode 100644 lib/node_modules/@stdlib/stats/strided/dnancount/lib/ndarray.js create mode 100644 lib/node_modules/@stdlib/stats/strided/dnancount/lib/ndarray.native.js create mode 100644 lib/node_modules/@stdlib/stats/strided/dnancount/manifest.json create mode 100644 lib/node_modules/@stdlib/stats/strided/dnancount/package.json create mode 100644 lib/node_modules/@stdlib/stats/strided/dnancount/src/Makefile create mode 100644 lib/node_modules/@stdlib/stats/strided/dnancount/src/addon.c create mode 100644 lib/node_modules/@stdlib/stats/strided/dnancount/src/main.c create mode 100644 lib/node_modules/@stdlib/stats/strided/dnancount/test/test.dnancount.js create mode 100644 lib/node_modules/@stdlib/stats/strided/dnancount/test/test.dnancount.native.js create mode 100644 lib/node_modules/@stdlib/stats/strided/dnancount/test/test.js create mode 100644 lib/node_modules/@stdlib/stats/strided/dnancount/test/test.ndarray.js create mode 100644 lib/node_modules/@stdlib/stats/strided/dnancount/test/test.ndarray.native.js create mode 100644 lib/node_modules/@stdlib/stats/strided/dpcorrwd/README.md create mode 100644 lib/node_modules/@stdlib/stats/strided/dpcorrwd/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/stats/strided/dpcorrwd/benchmark/benchmark.native.js create mode 100644 lib/node_modules/@stdlib/stats/strided/dpcorrwd/benchmark/benchmark.ndarray.js create mode 100644 lib/node_modules/@stdlib/stats/strided/dpcorrwd/benchmark/benchmark.ndarray.native.js create mode 100644 lib/node_modules/@stdlib/stats/strided/dpcorrwd/benchmark/c/Makefile create mode 100644 lib/node_modules/@stdlib/stats/strided/dpcorrwd/benchmark/c/benchmark.length.c create mode 100644 lib/node_modules/@stdlib/stats/strided/dpcorrwd/binding.gyp create mode 100644 lib/node_modules/@stdlib/stats/strided/dpcorrwd/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/stats/strided/dpcorrwd/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/stats/strided/dpcorrwd/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/stats/strided/dpcorrwd/examples/c/Makefile create mode 100644 lib/node_modules/@stdlib/stats/strided/dpcorrwd/examples/c/example.c create mode 100644 lib/node_modules/@stdlib/stats/strided/dpcorrwd/examples/index.js create mode 100644 lib/node_modules/@stdlib/stats/strided/dpcorrwd/include.gypi create mode 100644 lib/node_modules/@stdlib/stats/strided/dpcorrwd/include/stdlib/stats/strided/dpcorrwd.h create mode 100644 lib/node_modules/@stdlib/stats/strided/dpcorrwd/lib/dpcorrwd.js create mode 100644 lib/node_modules/@stdlib/stats/strided/dpcorrwd/lib/dpcorrwd.native.js create mode 100644 lib/node_modules/@stdlib/stats/strided/dpcorrwd/lib/index.js create mode 100644 lib/node_modules/@stdlib/stats/strided/dpcorrwd/lib/main.js create mode 100644 lib/node_modules/@stdlib/stats/strided/dpcorrwd/lib/native.js create mode 100644 lib/node_modules/@stdlib/stats/strided/dpcorrwd/lib/ndarray.js create mode 100644 lib/node_modules/@stdlib/stats/strided/dpcorrwd/lib/ndarray.native.js create mode 100644 lib/node_modules/@stdlib/stats/strided/dpcorrwd/manifest.json create mode 100644 lib/node_modules/@stdlib/stats/strided/dpcorrwd/package.json create mode 100644 lib/node_modules/@stdlib/stats/strided/dpcorrwd/src/Makefile create mode 100644 lib/node_modules/@stdlib/stats/strided/dpcorrwd/src/addon.c create mode 100644 lib/node_modules/@stdlib/stats/strided/dpcorrwd/src/main.c create mode 100644 lib/node_modules/@stdlib/stats/strided/dpcorrwd/test/test.dpcorrwd.js create mode 100644 lib/node_modules/@stdlib/stats/strided/dpcorrwd/test/test.dpcorrwd.native.js create mode 100644 lib/node_modules/@stdlib/stats/strided/dpcorrwd/test/test.js create mode 100644 lib/node_modules/@stdlib/stats/strided/dpcorrwd/test/test.ndarray.js create mode 100644 lib/node_modules/@stdlib/stats/strided/dpcorrwd/test/test.ndarray.native.js create mode 100644 lib/node_modules/@stdlib/stats/strided/midrangeabs/README.md create mode 100644 lib/node_modules/@stdlib/stats/strided/midrangeabs/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/stats/strided/midrangeabs/benchmark/benchmark.ndarray.js create mode 100644 lib/node_modules/@stdlib/stats/strided/midrangeabs/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/stats/strided/midrangeabs/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/stats/strided/midrangeabs/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/stats/strided/midrangeabs/examples/index.js create mode 100644 lib/node_modules/@stdlib/stats/strided/midrangeabs/lib/accessors.js create mode 100644 lib/node_modules/@stdlib/stats/strided/midrangeabs/lib/index.js create mode 100644 lib/node_modules/@stdlib/stats/strided/midrangeabs/lib/main.js create mode 100644 lib/node_modules/@stdlib/stats/strided/midrangeabs/lib/ndarray.js create mode 100644 lib/node_modules/@stdlib/stats/strided/midrangeabs/package.json create mode 100644 lib/node_modules/@stdlib/stats/strided/midrangeabs/test/test.js create mode 100644 lib/node_modules/@stdlib/stats/strided/midrangeabs/test/test.midrangeabs.js create mode 100644 lib/node_modules/@stdlib/stats/strided/midrangeabs/test/test.ndarray.js create mode 100644 lib/node_modules/@stdlib/stats/strided/nancount/README.md create mode 100644 lib/node_modules/@stdlib/stats/strided/nancount/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/stats/strided/nancount/benchmark/benchmark.ndarray.js create mode 100644 lib/node_modules/@stdlib/stats/strided/nancount/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/stats/strided/nancount/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/stats/strided/nancount/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/stats/strided/nancount/examples/index.js create mode 100644 lib/node_modules/@stdlib/stats/strided/nancount/lib/accessors.js create mode 100644 lib/node_modules/@stdlib/stats/strided/nancount/lib/index.js create mode 100644 lib/node_modules/@stdlib/stats/strided/nancount/lib/main.js create mode 100644 lib/node_modules/@stdlib/stats/strided/nancount/lib/ndarray.js create mode 100644 lib/node_modules/@stdlib/stats/strided/nancount/package.json create mode 100644 lib/node_modules/@stdlib/stats/strided/nancount/test/test.js create mode 100644 lib/node_modules/@stdlib/stats/strided/nancount/test/test.main.js create mode 100644 lib/node_modules/@stdlib/stats/strided/nancount/test/test.ndarray.js create mode 100644 lib/node_modules/@stdlib/stats/strided/snancount/README.md create mode 100644 lib/node_modules/@stdlib/stats/strided/snancount/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/stats/strided/snancount/benchmark/benchmark.native.js create mode 100644 lib/node_modules/@stdlib/stats/strided/snancount/benchmark/benchmark.ndarray.js create mode 100644 lib/node_modules/@stdlib/stats/strided/snancount/benchmark/benchmark.ndarray.native.js create mode 100644 lib/node_modules/@stdlib/stats/strided/snancount/benchmark/c/Makefile create mode 100644 lib/node_modules/@stdlib/stats/strided/snancount/benchmark/c/benchmark.length.c create mode 100644 lib/node_modules/@stdlib/stats/strided/snancount/binding.gyp create mode 100644 lib/node_modules/@stdlib/stats/strided/snancount/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/stats/strided/snancount/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/stats/strided/snancount/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/stats/strided/snancount/examples/c/Makefile create mode 100644 lib/node_modules/@stdlib/stats/strided/snancount/examples/c/example.c create mode 100644 lib/node_modules/@stdlib/stats/strided/snancount/examples/index.js create mode 100644 lib/node_modules/@stdlib/stats/strided/snancount/include.gypi create mode 100644 lib/node_modules/@stdlib/stats/strided/snancount/include/stdlib/stats/strided/snancount.h create mode 100644 lib/node_modules/@stdlib/stats/strided/snancount/lib/index.js create mode 100644 lib/node_modules/@stdlib/stats/strided/snancount/lib/main.js create mode 100644 lib/node_modules/@stdlib/stats/strided/snancount/lib/native.js create mode 100644 lib/node_modules/@stdlib/stats/strided/snancount/lib/ndarray.js create mode 100644 lib/node_modules/@stdlib/stats/strided/snancount/lib/ndarray.native.js create mode 100644 lib/node_modules/@stdlib/stats/strided/snancount/lib/snancount.js create mode 100644 lib/node_modules/@stdlib/stats/strided/snancount/lib/snancount.native.js create mode 100644 lib/node_modules/@stdlib/stats/strided/snancount/manifest.json create mode 100644 lib/node_modules/@stdlib/stats/strided/snancount/package.json create mode 100644 lib/node_modules/@stdlib/stats/strided/snancount/src/Makefile create mode 100644 lib/node_modules/@stdlib/stats/strided/snancount/src/addon.c create mode 100644 lib/node_modules/@stdlib/stats/strided/snancount/src/main.c create mode 100644 lib/node_modules/@stdlib/stats/strided/snancount/test/test.js create mode 100644 lib/node_modules/@stdlib/stats/strided/snancount/test/test.ndarray.js create mode 100644 lib/node_modules/@stdlib/stats/strided/snancount/test/test.ndarray.native.js create mode 100644 lib/node_modules/@stdlib/stats/strided/snancount/test/test.snancount.js create mode 100644 lib/node_modules/@stdlib/stats/strided/snancount/test/test.snancount.native.js diff --git a/.eslintignore b/.eslintignore index 0203f7e1345c..d12b55493cbd 100644 --- a/.eslintignore +++ b/.eslintignore @@ -30,7 +30,7 @@ reports/ # Node.js # ########### /node_modules/ -!/**/node_modules/* + # Git # ####### diff --git a/.github/workflows/check_pr_issue_references.lock.yml b/.github/workflows/check_pr_issue_references.lock.yml index fa1ac6f40ef8..be6d42926cc8 100644 --- a/.github/workflows/check_pr_issue_references.lock.yml +++ b/.github/workflows/check_pr_issue_references.lock.yml @@ -56,7 +56,7 @@ jobs: secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }} steps: - name: Setup Scripts - uses: github/gh-aw-actions/setup@71cfb3cbe2002225f9d5afa180669fff36b86ea2 # v0.61.2 + uses: github/gh-aw-actions/setup@cb2bf21eadb070848fd3fe6edfa4a5af2e73e93a # v0.61.2 with: destination: ${{ runner.temp }}/gh-aw/actions - name: Generate agentic run info @@ -264,7 +264,7 @@ jobs: output_types: ${{ steps.collect_output.outputs.output_types }} steps: - name: Setup Scripts - uses: github/gh-aw-actions/setup@71cfb3cbe2002225f9d5afa180669fff36b86ea2 # v0.61.2 + uses: github/gh-aw-actions/setup@cb2bf21eadb070848fd3fe6edfa4a5af2e73e93a # v0.61.2 with: destination: ${{ runner.temp }}/gh-aw/actions - name: Set runtime paths @@ -840,7 +840,7 @@ jobs: total_count: ${{ steps.missing_tool.outputs.total_count }} steps: - name: Setup Scripts - uses: github/gh-aw-actions/setup@71cfb3cbe2002225f9d5afa180669fff36b86ea2 # v0.61.2 + uses: github/gh-aw-actions/setup@cb2bf21eadb070848fd3fe6edfa4a5af2e73e93a # v0.61.2 with: destination: ${{ runner.temp }}/gh-aw/actions - name: Download agent output artifact @@ -951,7 +951,7 @@ jobs: process_safe_outputs_temporary_id_map: ${{ steps.process_safe_outputs.outputs.temporary_id_map }} steps: - name: Setup Scripts - uses: github/gh-aw-actions/setup@71cfb3cbe2002225f9d5afa180669fff36b86ea2 # v0.61.2 + uses: github/gh-aw-actions/setup@cb2bf21eadb070848fd3fe6edfa4a5af2e73e93a # v0.61.2 with: destination: ${{ runner.temp }}/gh-aw/actions - name: Download agent output artifact diff --git a/.github/workflows/generate_monthly_changelog.yml b/.github/workflows/generate_monthly_changelog.yml index e382eb7b3ecc..47b12df5e887 100644 --- a/.github/workflows/generate_monthly_changelog.yml +++ b/.github/workflows/generate_monthly_changelog.yml @@ -106,7 +106,7 @@ jobs: # Import GPG key to sign commits: - name: 'Import GPG key to sign commits' # Pin action to full length commit SHA - uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0 + uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0 with: gpg_private_key: ${{ secrets.STDLIB_BOT_GPG_PRIVATE_KEY }} passphrase: ${{ secrets.STDLIB_BOT_GPG_PASSPHRASE }} diff --git a/.github/workflows/git_note_amend_message.yml b/.github/workflows/git_note_amend_message.yml index 39a1b8afd176..74d036a289d1 100644 --- a/.github/workflows/git_note_amend_message.yml +++ b/.github/workflows/git_note_amend_message.yml @@ -120,7 +120,7 @@ jobs: # Import GPG key to sign commits: - name: 'Import GPG key to sign commits' # Pin action to full length commit SHA - uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0 + uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0 with: gpg_private_key: ${{ secrets.STDLIB_BOT_GPG_PRIVATE_KEY }} passphrase: ${{ secrets.STDLIB_BOT_GPG_PASSPHRASE }} diff --git a/.github/workflows/git_note_filter_packages.yml b/.github/workflows/git_note_filter_packages.yml index 41812622487d..704343aca584 100644 --- a/.github/workflows/git_note_filter_packages.yml +++ b/.github/workflows/git_note_filter_packages.yml @@ -129,7 +129,7 @@ jobs: # Import GPG key to sign commits: - name: 'Import GPG key to sign commits' # Pin action to full length commit SHA - uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0 + uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0 with: gpg_private_key: ${{ secrets.STDLIB_BOT_GPG_PRIVATE_KEY }} passphrase: ${{ secrets.STDLIB_BOT_GPG_PASSPHRASE }} diff --git a/.github/workflows/lint_autofix.yml b/.github/workflows/lint_autofix.yml index d56e90b1b132..5e24bed3e8e9 100644 --- a/.github/workflows/lint_autofix.yml +++ b/.github/workflows/lint_autofix.yml @@ -161,7 +161,7 @@ jobs: # Import GPG key to sign commits: - name: 'Import GPG key to sign commits' # Pin action to full length commit SHA - uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0 + uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0 with: gpg_private_key: ${{ secrets.STDLIB_BOT_GPG_PRIVATE_KEY }} passphrase: ${{ secrets.STDLIB_BOT_GPG_PASSPHRASE }} diff --git a/.github/workflows/lint_changed_files.yml b/.github/workflows/lint_changed_files.yml index c5da1b28f6f3..9cba3c45d358 100644 --- a/.github/workflows/lint_changed_files.yml +++ b/.github/workflows/lint_changed_files.yml @@ -75,7 +75,7 @@ jobs: # Restore cache if up-to-date: - name: 'Restore cache if up-to-date' # Pin action to full length commit SHA - uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 + uses: actions/cache/restore@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 id: cache with: path: | @@ -138,7 +138,7 @@ jobs: # Save cache after editorconfig-checker binary has been downloaded: - name: 'Save cache after editorconfig-checker binary has been downloaded' if: always() && steps.cache.outputs.cache-hit != 'true' - uses: actions/cache/save@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 + uses: actions/cache/save@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 with: path: ${{ github.workspace }}/node_modules key: ${{ steps.cache.outputs.cache-primary-key }} @@ -274,7 +274,7 @@ jobs: # Pin action to full length commit SHA uses: r-lib/actions/setup-r@6f6e5bc62fba3a704f74e7ad7ef7676c5c6a2590 # v2.11.4 with: - r-version: '4.2.0' + r-version: '4.3.3' # Lint R files: - name: 'Lint R files' @@ -341,6 +341,43 @@ jobs: make lint-typescript-declarations-files FILES="${files}" fi + # Lint TypeScript declarations test files: + - name: 'Lint TypeScript declarations test files' + if: success() || failure() + run: | + # Determine root directory: + root=$(git rev-parse --show-toplevel) + + # Define the path to ESLint configuration file for linting TypeScript tests: + eslint_typescript_tests_conf="${root}/etc/eslint/.eslintrc.typescript.tests.js" + + # Get changed files: + changed_files=$(echo "${{ steps.changed-files.outputs.files }}" | tr ' ' '\n') + + # Get directly changed `test.ts` files: + files=$(echo "${changed_files}" | grep '/docs/types/test\.ts$' | tr '\n' ' ' | sed 's/ $//') + + # Also get `test.ts` files corresponding to changed `index.d.ts` files... + declaration_files=$(echo "${changed_files}" | grep '/docs/types/.*\.d\.ts$' | sed 's/ $//') + if [[ -n "${declaration_files}" ]]; then + while IFS= read -r decl_file; do + # Only process index.d.ts files (skip other .d.ts files) + if [[ "${decl_file}" == */index.d.ts ]]; then + # Replace `index.d.ts` with `test.ts` to get the test file path: + test_file="${decl_file%index.d.ts}test.ts" + + # Check if the test file exists and isn't already in the list: + if [[ -f "${test_file}" ]] && [[ ! " ${files} " =~ [[:space:]]${test_file}[[:space:]] ]]; then + files="${files} ${test_file}" + fi + fi + done <<< "${declaration_files}" + fi + + if [[ -n "${files}" ]]; then + make lint-typescript-declarations-files FILES="${files}" ESLINT_TS_CONF="${eslint_typescript_tests_conf}" + fi + # Lint license headers: - name: 'Lint license headers' if: success() || failure() diff --git a/.github/workflows/lint_random_files.yml b/.github/workflows/lint_random_files.yml index 03666d36eea8..80946001ac9a 100644 --- a/.github/workflows/lint_random_files.yml +++ b/.github/workflows/lint_random_files.yml @@ -374,7 +374,7 @@ jobs: # Pin action to full length commit SHA uses: r-lib/actions/setup-r@6f6e5bc62fba3a704f74e7ad7ef7676c5c6a2590 # v2.11.4 with: - r-version: '4.2.0' + r-version: '4.3.3' # Lint R files: - name: 'Lint R files' @@ -573,7 +573,7 @@ jobs: - name: 'Import GPG key to sign commits' if: ${{ github.event.inputs.fix == 'true' }} && ( success() || failure() ) # Pin action to full length commit SHA - uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0 + uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0 with: gpg_private_key: ${{ secrets.STDLIB_BOT_GPG_PRIVATE_KEY }} passphrase: ${{ secrets.STDLIB_BOT_GPG_PASSPHRASE }} diff --git a/.github/workflows/markdown_equations.yml b/.github/workflows/markdown_equations.yml index 9659a1910523..11ed079c31ca 100644 --- a/.github/workflows/markdown_equations.yml +++ b/.github/workflows/markdown_equations.yml @@ -99,7 +99,7 @@ jobs: # Import GPG key to sign commits: - name: 'Import GPG key to sign commits' # Pin action to full length commit SHA - uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0 + uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0 with: gpg_private_key: ${{ secrets.STDLIB_BOT_GPG_PRIVATE_KEY }} passphrase: ${{ secrets.STDLIB_BOT_GPG_PASSPHRASE }} diff --git a/.github/workflows/markdown_pkg_urls.yml b/.github/workflows/markdown_pkg_urls.yml index 8e1611252e6f..03ab56c91be9 100644 --- a/.github/workflows/markdown_pkg_urls.yml +++ b/.github/workflows/markdown_pkg_urls.yml @@ -111,7 +111,7 @@ jobs: # Import GPG key to sign commits: - name: 'Import GPG key to sign commits' # Pin action to full length commit SHA - uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0 + uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0 with: gpg_private_key: ${{ secrets.STDLIB_BOT_GPG_PRIVATE_KEY }} passphrase: ${{ secrets.STDLIB_BOT_GPG_PASSPHRASE }} diff --git a/.github/workflows/markdown_related_packages.yml b/.github/workflows/markdown_related_packages.yml index acf28e8dbf32..f1a3777f1449 100644 --- a/.github/workflows/markdown_related_packages.yml +++ b/.github/workflows/markdown_related_packages.yml @@ -108,7 +108,7 @@ jobs: # Import GPG key to sign commits: - name: 'Import GPG key to sign commits' # Pin action to full length commit SHA - uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0 + uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0 with: gpg_private_key: ${{ secrets.STDLIB_BOT_GPG_PRIVATE_KEY }} passphrase: ${{ secrets.STDLIB_BOT_GPG_PASSPHRASE }} diff --git a/.github/workflows/markdown_tocs.yml b/.github/workflows/markdown_tocs.yml index b49d93d7f9b2..15cf624cee4b 100644 --- a/.github/workflows/markdown_tocs.yml +++ b/.github/workflows/markdown_tocs.yml @@ -110,7 +110,7 @@ jobs: # Import GPG key to sign commits: - name: 'Import GPG key to sign commits' # Pin action to full length commit SHA - uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0 + uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0 with: gpg_private_key: ${{ secrets.STDLIB_BOT_GPG_PRIVATE_KEY }} passphrase: ${{ secrets.STDLIB_BOT_GPG_PASSPHRASE }} diff --git a/.github/workflows/merge_ready_prs.yml b/.github/workflows/merge_ready_prs.yml index 5c88ee1522f5..f11dc5ca07e9 100644 --- a/.github/workflows/merge_ready_prs.yml +++ b/.github/workflows/merge_ready_prs.yml @@ -49,7 +49,7 @@ jobs: # Import GPG key to sign commits: - name: 'Import GPG key to sign commits' - uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0 + uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0 with: gpg_private_key: ${{ secrets.STDLIB_BOT_GPG_PRIVATE_KEY }} passphrase: ${{ secrets.STDLIB_BOT_GPG_PASSPHRASE }} diff --git a/.github/workflows/namespace_declarations.yml b/.github/workflows/namespace_declarations.yml index 62dac30e1d4f..dbad891ab426 100644 --- a/.github/workflows/namespace_declarations.yml +++ b/.github/workflows/namespace_declarations.yml @@ -94,7 +94,7 @@ jobs: # Import GPG key to sign commits: - name: 'Import GPG key to sign commits' # Pin action to full length commit SHA - uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0 + uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0 with: gpg_private_key: ${{ secrets.STDLIB_BOT_GPG_PRIVATE_KEY }} passphrase: ${{ secrets.STDLIB_BOT_GPG_PASSPHRASE }} diff --git a/.github/workflows/namespace_exports.yml b/.github/workflows/namespace_exports.yml index a112221c5420..0f6a3313f6ec 100644 --- a/.github/workflows/namespace_exports.yml +++ b/.github/workflows/namespace_exports.yml @@ -117,7 +117,7 @@ jobs: # Import GPG key to sign commits: - name: 'Import GPG key to sign commits' # Pin action to full length commit SHA - uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0 + uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0 with: gpg_private_key: ${{ secrets.STDLIB_BOT_GPG_PRIVATE_KEY }} passphrase: ${{ secrets.STDLIB_BOT_GPG_PASSPHRASE }} diff --git a/.github/workflows/pr_merge_develop.yml b/.github/workflows/pr_merge_develop.yml index 0b5d48fcc37d..fa123410f52f 100644 --- a/.github/workflows/pr_merge_develop.yml +++ b/.github/workflows/pr_merge_develop.yml @@ -89,7 +89,7 @@ jobs: # Import GPG key to sign commits: - name: 'Import GPG key to sign commits' # Pin action to full length commit SHA - uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0 + uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0 with: gpg_private_key: ${{ secrets.STDLIB_BOT_GPG_PRIVATE_KEY }} passphrase: ${{ secrets.STDLIB_BOT_GPG_PASSPHRASE }} diff --git a/.github/workflows/pr_rebase_develop.yml b/.github/workflows/pr_rebase_develop.yml index 52c527699cf8..684e3edfab23 100644 --- a/.github/workflows/pr_rebase_develop.yml +++ b/.github/workflows/pr_rebase_develop.yml @@ -90,7 +90,7 @@ jobs: # Import GPG key to sign commits: - name: 'Import GPG key to sign commits' # Pin action to full length commit SHA - uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0 + uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0 with: gpg_private_key: ${{ secrets.STDLIB_BOT_GPG_PRIVATE_KEY }} passphrase: ${{ secrets.STDLIB_BOT_GPG_PASSPHRASE }} diff --git a/.github/workflows/publish_coverage_pr.yml b/.github/workflows/publish_coverage_pr.yml index 3897aad3e2b0..2c4eeedf01a0 100644 --- a/.github/workflows/publish_coverage_pr.yml +++ b/.github/workflows/publish_coverage_pr.yml @@ -53,7 +53,7 @@ jobs: - name: 'Download PR metadata' id: download-metadata # Pin action to full length commit SHA - uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0 + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 with: name: pr-metadata path: pr-metadata/ @@ -110,7 +110,7 @@ jobs: - name: 'Download coverage artifacts' id: download-coverage # Pin action to full length commit SHA - uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0 + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 with: name: coverage-artifacts path: artifacts/ @@ -180,7 +180,7 @@ jobs: - name: 'Import GPG key to sign commits' if: steps.download-coverage.outcome == 'success' # Pin action to full length commit SHA - uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0 + uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0 with: gpg_private_key: ${{ secrets.STDLIB_BOT_GPG_PRIVATE_KEY }} passphrase: ${{ secrets.STDLIB_BOT_GPG_PASSPHRASE }} diff --git a/.github/workflows/run_affected_benchmarks.yml b/.github/workflows/run_affected_benchmarks.yml index 557830ce68ae..9a6a9a0b83f6 100644 --- a/.github/workflows/run_affected_benchmarks.yml +++ b/.github/workflows/run_affected_benchmarks.yml @@ -91,7 +91,7 @@ jobs: # Cache dependencies: - name: 'Cache dependencies' # Pin action to full length commit SHA - uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 + uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 id: cache with: path: | diff --git a/.github/workflows/run_affected_examples.yml b/.github/workflows/run_affected_examples.yml index 263448cd0195..e2ea282631bb 100644 --- a/.github/workflows/run_affected_examples.yml +++ b/.github/workflows/run_affected_examples.yml @@ -88,7 +88,7 @@ jobs: # Cache dependencies: - name: 'Cache dependencies' # Pin action to full length commit SHA - uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 + uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 id: cache with: path: | diff --git a/.github/workflows/run_affected_tests.yml b/.github/workflows/run_affected_tests.yml index 3e47485c817e..f75ab32f8370 100644 --- a/.github/workflows/run_affected_tests.yml +++ b/.github/workflows/run_affected_tests.yml @@ -123,7 +123,7 @@ jobs: # Cache dependencies: - name: 'Cache dependencies' # Pin action to full length commit SHA - uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 + uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 id: cache with: path: | diff --git a/.github/workflows/run_tests_coverage.yml b/.github/workflows/run_tests_coverage.yml index 5ee3143ea928..c6a50a5a09c3 100644 --- a/.github/workflows/run_tests_coverage.yml +++ b/.github/workflows/run_tests_coverage.yml @@ -100,7 +100,7 @@ jobs: # Cache dependencies: - name: 'Cache dependencies' # Pin action to full length commit SHA - uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 + uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 id: cache with: path: | @@ -263,7 +263,7 @@ jobs: - name: 'Import GPG key to sign commits' if: steps.check-changed.outputs.skip == 'false' # Pin action to full length commit SHA - uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0 + uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0 with: gpg_private_key: ${{ secrets.STDLIB_BOT_GPG_PRIVATE_KEY }} passphrase: ${{ secrets.STDLIB_BOT_GPG_PASSPHRASE }} diff --git a/.github/workflows/run_tests_coverage_pr.yml b/.github/workflows/run_tests_coverage_pr.yml index 47505aadb85d..a121a8bf3bb4 100644 --- a/.github/workflows/run_tests_coverage_pr.yml +++ b/.github/workflows/run_tests_coverage_pr.yml @@ -93,7 +93,7 @@ jobs: # Cache dependencies: - name: 'Cache dependencies' # Pin action to full length commit SHA - uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 + uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 id: cache with: path: | diff --git a/.github/workflows/terminal.yml b/.github/workflows/terminal.yml index d50dc83cc04e..05652535d4ba 100644 --- a/.github/workflows/terminal.yml +++ b/.github/workflows/terminal.yml @@ -80,7 +80,7 @@ jobs: # Import GPG key to sign commits: - name: 'Import GPG key to sign commits' # Pin action to full length commit SHA - uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0 + uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0 with: gpg_private_key: ${{ secrets.STDLIB_BOT_GPG_PRIVATE_KEY }} passphrase: ${{ secrets.STDLIB_BOT_GPG_PASSPHRASE }} diff --git a/.github/workflows/update_cli_permissions.yml b/.github/workflows/update_cli_permissions.yml index 83ead730ad00..0c83e9a43d9d 100644 --- a/.github/workflows/update_cli_permissions.yml +++ b/.github/workflows/update_cli_permissions.yml @@ -86,7 +86,7 @@ jobs: # Import GPG key to sign commits: - name: 'Import GPG key to sign commits' # Pin action to full length commit SHA - uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0 + uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0 with: gpg_private_key: ${{ secrets.STDLIB_BOT_GPG_PRIVATE_KEY }} passphrase: ${{ secrets.STDLIB_BOT_GPG_PASSPHRASE }} diff --git a/.github/workflows/update_contributors.yml b/.github/workflows/update_contributors.yml index 7e99d2c07ced..da79bbc6ec17 100644 --- a/.github/workflows/update_contributors.yml +++ b/.github/workflows/update_contributors.yml @@ -93,7 +93,7 @@ jobs: # Import GPG key to sign commits: - name: 'Import GPG key to sign commits' # Pin action to full length commit SHA - uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0 + uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0 with: gpg_private_key: ${{ secrets.STDLIB_BOT_GPG_PRIVATE_KEY }} passphrase: ${{ secrets.STDLIB_BOT_GPG_PASSPHRASE }} diff --git a/.github/workflows/update_error_databases.yml b/.github/workflows/update_error_databases.yml index a85d3e7a75d7..92ed022d03aa 100644 --- a/.github/workflows/update_error_databases.yml +++ b/.github/workflows/update_error_databases.yml @@ -147,7 +147,7 @@ jobs: - name: 'Import GPG key to sign commits' if: steps.check_changes.outputs.has_changes == 'true' # Pin action to full length commit SHA - uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0 + uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0 with: gpg_private_key: ${{ secrets.STDLIB_BOT_GPG_PRIVATE_KEY }} passphrase: ${{ secrets.STDLIB_BOT_GPG_PASSPHRASE }} diff --git a/.github/workflows/update_math_scaffold_databases.yml b/.github/workflows/update_math_scaffold_databases.yml index 539ae4f7cbc1..181eea992482 100644 --- a/.github/workflows/update_math_scaffold_databases.yml +++ b/.github/workflows/update_math_scaffold_databases.yml @@ -112,7 +112,7 @@ jobs: - name: 'Import GPG key to sign commits' if: steps.check_changes.outputs.has_changes == 'true' # Pin action to full length commit SHA - uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0 + uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0 with: gpg_private_key: ${{ secrets.STDLIB_BOT_GPG_PRIVATE_KEY }} passphrase: ${{ secrets.STDLIB_BOT_GPG_PASSPHRASE }} diff --git a/.github/workflows/update_package_meta_data.yml b/.github/workflows/update_package_meta_data.yml index 0e81772b01eb..cca3b4c2ad5c 100644 --- a/.github/workflows/update_package_meta_data.yml +++ b/.github/workflows/update_package_meta_data.yml @@ -97,7 +97,7 @@ jobs: # Import GPG key to sign commits: - name: 'Import GPG key to sign commits' # Pin action to full length commit SHA - uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0 + uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0 with: gpg_private_key: ${{ secrets.STDLIB_BOT_GPG_PRIVATE_KEY }} passphrase: ${{ secrets.STDLIB_BOT_GPG_PASSPHRASE }} diff --git a/.github/workflows/update_pr_copyright_years.yml b/.github/workflows/update_pr_copyright_years.yml index 327340773220..16107ccf1514 100644 --- a/.github/workflows/update_pr_copyright_years.yml +++ b/.github/workflows/update_pr_copyright_years.yml @@ -128,7 +128,7 @@ jobs: # Import GPG key to sign commits: - name: 'Import GPG key to sign commits' # Pin action to full length commit SHA - uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0 + uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0 with: gpg_private_key: ${{ secrets.STDLIB_BOT_GPG_PRIVATE_KEY }} passphrase: ${{ secrets.STDLIB_BOT_GPG_PASSPHRASE }} diff --git a/.github/workflows/update_repl_docs.yml b/.github/workflows/update_repl_docs.yml index 5b2ca37def1f..17bd3d4df2f2 100644 --- a/.github/workflows/update_repl_docs.yml +++ b/.github/workflows/update_repl_docs.yml @@ -102,7 +102,7 @@ jobs: # Import GPG key to sign commits: - name: 'Import GPG key to sign commits' # Pin action to full length commit SHA - uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0 + uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0 with: gpg_private_key: ${{ secrets.STDLIB_BOT_GPG_PRIVATE_KEY }} passphrase: ${{ secrets.STDLIB_BOT_GPG_PASSPHRASE }} diff --git a/.github/workflows/windows_test_npm_install.yml b/.github/workflows/windows_test_npm_install.yml index 2b70267419ab..106a6cd8f253 100644 --- a/.github/workflows/windows_test_npm_install.yml +++ b/.github/workflows/windows_test_npm_install.yml @@ -155,7 +155,7 @@ jobs: # Install MSYS2: - name: 'Install MSYS2' # Pin action to full length commit SHA - uses: msys2/setup-msys2@4f806de0a5a7294ffabaff804b38a9b435a73bda # v2.30.0 + uses: msys2/setup-msys2@cafece8e6baf9247cf9b1bf95097b0b983cc558d # v2.31.0 with: # Set the MSYS system: msystem: MINGW64 diff --git a/docs/migration-guides/mathjs/package.json b/docs/migration-guides/mathjs/package.json index c2e382e4adb2..4d4db648f9dc 100644 --- a/docs/migration-guides/mathjs/package.json +++ b/docs/migration-guides/mathjs/package.json @@ -31,7 +31,7 @@ "url": "https://github.com/stdlib-js/stdlib/issues" }, "dependencies": { - "mathjs": "^14.7.0" + "mathjs": "^15.2.0" }, "devDependencies": {}, "engines": {}, diff --git a/etc/r/requirements.txt b/etc/r/requirements.txt index 1cbc269e46f9..2f422e21a8d0 100644 --- a/etc/r/requirements.txt +++ b/etc/r/requirements.txt @@ -1,5 +1,9 @@ +car +distr +jsonlite lintr +MASS microbenchmark -jsonlite +pracma +statmod VGAM -distr diff --git a/lib/node_modules/@stdlib/_tools/lint/pkg-json-names/test/test.lint.js b/lib/node_modules/@stdlib/_tools/lint/pkg-json-names/test/test.lint.js index 77e0346c205b..d3ab578d487b 100644 --- a/lib/node_modules/@stdlib/_tools/lint/pkg-json-names/test/test.lint.js +++ b/lib/node_modules/@stdlib/_tools/lint/pkg-json-names/test/test.lint.js @@ -25,6 +25,7 @@ var resolve = require( 'path' ).resolve; var tape = require( 'tape' ); var isObjectArray = require( '@stdlib/assert/is-object-array' ); var contains = require( '@stdlib/assert/contains' ); +var lint = require( './../lib/lint.js' ); // FIXTURES // @@ -35,8 +36,6 @@ var missingNamePath = join( __dirname, 'fixtures', 'missing-name.json' ); var wrongScopePath = join( __dirname, 'fixtures', 'wrong-scope.json' ); var nameMismatchPath = join( __dirname, 'fixtures', 'name-mismatch.json' ); -var lint = require( './../lib/lint.js' ); - // TESTS // diff --git a/lib/node_modules/@stdlib/_tools/lint/pkg-json/test/fixtures/invalid.json b/lib/node_modules/@stdlib/_tools/lint/pkg-json/test/fixtures/invalid.json index a9b4f29cf8bf..4a3533ea2482 100644 --- a/lib/node_modules/@stdlib/_tools/lint/pkg-json/test/fixtures/invalid.json +++ b/lib/node_modules/@stdlib/_tools/lint/pkg-json/test/fixtures/invalid.json @@ -1,3 +1,3 @@ { - "name": "beep + "name": "beep } diff --git a/lib/node_modules/@stdlib/_tools/scaffold/math-strided-real-typed-mskunary/data/docs/types/index__d__ts.txt b/lib/node_modules/@stdlib/_tools/scaffold/math-strided-real-typed-mskunary/data/docs/types/index__d__ts.txt index 62676200b397..17c511c1ee70 100644 --- a/lib/node_modules/@stdlib/_tools/scaffold/math-strided-real-typed-mskunary/data/docs/types/index__d__ts.txt +++ b/lib/node_modules/@stdlib/_tools/scaffold/math-strided-real-typed-mskunary/data/docs/types/index__d__ts.txt @@ -35,8 +35,8 @@ interface Routine { * @returns `y` * * @example - * var {{TYPED_ARRAY_CTOR}} = require( `@stdlib/array/{{TYPED_ARRAY_DTYPE}}` ); - * var Uint8Array = require( `@stdlib/array/uint8` ); + * var {{TYPED_ARRAY_CTOR}} = require( '@stdlib/array/{{TYPED_ARRAY_DTYPE}}' ); + * var Uint8Array = require( '@stdlib/array/uint8' ); * * var x = new {{TYPED_ARRAY_CTOR}}( [ {{X_VALUES_LEN_5}} ] ); * var m = new Uint8Array( [ {{MASK_VALUES_LEN_5}} ] ); @@ -63,8 +63,8 @@ interface Routine { * @returns `y` * * @example - * var {{TYPED_ARRAY_CTOR}} = require( `@stdlib/array/{{TYPED_ARRAY_DTYPE}}` ); - * var Uint8Array = require( `@stdlib/array/uint8` ); + * var {{TYPED_ARRAY_CTOR}} = require( '@stdlib/array/{{TYPED_ARRAY_DTYPE}}' ); + * var Uint8Array = require( '@stdlib/array/uint8' ); * * var x = new {{TYPED_ARRAY_CTOR}}( [ {{X_VALUES_LEN_5}} ] ); * var m = new Uint8Array( [ {{MASK_VALUES_LEN_5}} ] ); @@ -89,8 +89,8 @@ interface Routine { * @returns `y` * * @example -* var {{TYPED_ARRAY_CTOR}} = require( `@stdlib/array/{{TYPED_ARRAY_DTYPE}}` ); -* var Uint8Array = require( `@stdlib/array/uint8` ); +* var {{TYPED_ARRAY_CTOR}} = require( '@stdlib/array/{{TYPED_ARRAY_DTYPE}}' ); +* var Uint8Array = require( '@stdlib/array/uint8' ); * * var x = new {{TYPED_ARRAY_CTOR}}( [ {{X_VALUES_LEN_5}} ] ); * var m = new Uint8Array( [ {{MASK_VALUES_LEN_5}} ] ); @@ -100,8 +100,8 @@ interface Routine { * // y => <{{TYPED_ARRAY_CTOR}}>[ {{EXPECTED_LEN_5}} ] * * @example -* var {{TYPED_ARRAY_CTOR}} = require( `@stdlib/array/{{TYPED_ARRAY_DTYPE}}` ); -* var Uint8Array = require( `@stdlib/array/uint8` ); +* var {{TYPED_ARRAY_CTOR}} = require( '@stdlib/array/{{TYPED_ARRAY_DTYPE}}' ); +* var Uint8Array = require( '@stdlib/array/uint8' ); * * var x = new {{TYPED_ARRAY_CTOR}}( [ {{X_VALUES_LEN_5}} ] ); * var m = new Uint8Array( [ {{MASK_VALUES_LEN_5}} ] ); diff --git a/lib/node_modules/@stdlib/_tools/scaffold/math-strided-real-typed-unary-by/data/docs/types/index__d__ts.txt b/lib/node_modules/@stdlib/_tools/scaffold/math-strided-real-typed-unary-by/data/docs/types/index__d__ts.txt index 77c3920bd1d8..ca95875549a8 100644 --- a/lib/node_modules/@stdlib/_tools/scaffold/math-strided-real-typed-unary-by/data/docs/types/index__d__ts.txt +++ b/lib/node_modules/@stdlib/_tools/scaffold/math-strided-real-typed-unary-by/data/docs/types/index__d__ts.txt @@ -91,7 +91,7 @@ interface Routine { * @returns destination array * * @example - * var {{TYPED_ARRAY_CTOR}} = require( `@stdlib/array/{{TYPED_ARRAY_DTYPE}}` ); + * var {{TYPED_ARRAY_CTOR}} = require( '@stdlib/array/{{TYPED_ARRAY_DTYPE}}' ); * * function accessor( v ) { * return v; @@ -120,7 +120,7 @@ interface Routine { * @returns destination array * * @example - * var {{TYPED_ARRAY_CTOR}} = require( `@stdlib/array/{{TYPED_ARRAY_DTYPE}}` ); + * var {{TYPED_ARRAY_CTOR}} = require( '@stdlib/array/{{TYPED_ARRAY_DTYPE}}' ); * * function accessor( v ) { * return v; @@ -148,7 +148,7 @@ interface Routine { * @returns destination array * * @example -* var {{TYPED_ARRAY_CTOR}} = require( `@stdlib/array/{{TYPED_ARRAY_DTYPE}}` ); +* var {{TYPED_ARRAY_CTOR}} = require( '@stdlib/array/{{TYPED_ARRAY_DTYPE}}' ); * * function accessor( v ) { * return v; @@ -161,7 +161,7 @@ interface Routine { * // out => <{{TYPED_ARRAY_CTOR}}>[ {{EXPECTED_LEN_5}} ] * * @example -* var {{TYPED_ARRAY_CTOR}} = require( `@stdlib/array/{{TYPED_ARRAY_DTYPE}}` ); +* var {{TYPED_ARRAY_CTOR}} = require( '@stdlib/array/{{TYPED_ARRAY_DTYPE}}' ); * * function accessor( v ) { * return v; diff --git a/lib/node_modules/@stdlib/_tools/scaffold/math-strided-real-typed-unary/data/docs/types/index__d__ts.txt b/lib/node_modules/@stdlib/_tools/scaffold/math-strided-real-typed-unary/data/docs/types/index__d__ts.txt index 381379d8bf7b..eda20e169bb9 100644 --- a/lib/node_modules/@stdlib/_tools/scaffold/math-strided-real-typed-unary/data/docs/types/index__d__ts.txt +++ b/lib/node_modules/@stdlib/_tools/scaffold/math-strided-real-typed-unary/data/docs/types/index__d__ts.txt @@ -33,7 +33,7 @@ interface Routine { * @returns `y` * * @example - * var {{TYPED_ARRAY_CTOR}} = require( `@stdlib/array/{{TYPED_ARRAY_DTYPE}}` ); + * var {{TYPED_ARRAY_CTOR}} = require( '@stdlib/array/{{TYPED_ARRAY_DTYPE}}' ); * * var x = new {{TYPED_ARRAY_CTOR}}( [ {{X_VALUES_LEN_5}} ] ); * var y = new {{TYPED_ARRAY_CTOR}}( [ 0.0, 0.0, 0.0, 0.0, 0.0 ] ); @@ -56,7 +56,7 @@ interface Routine { * @returns `y` * * @example - * var {{TYPED_ARRAY_CTOR}} = require( `@stdlib/array/{{TYPED_ARRAY_DTYPE}}` ); + * var {{TYPED_ARRAY_CTOR}} = require( '@stdlib/array/{{TYPED_ARRAY_DTYPE}}' ); * * var x = new {{TYPED_ARRAY_CTOR}}( [ {{X_VALUES_LEN_5}} ] ); * var y = new {{TYPED_ARRAY_CTOR}}( [ 0.0, 0.0, 0.0, 0.0, 0.0 ] ); @@ -78,7 +78,7 @@ interface Routine { * @returns `y` * * @example -* var {{TYPED_ARRAY_CTOR}} = require( `@stdlib/array/{{TYPED_ARRAY_DTYPE}}` ); +* var {{TYPED_ARRAY_CTOR}} = require( '@stdlib/array/{{TYPED_ARRAY_DTYPE}}' ); * * var x = new {{TYPED_ARRAY_CTOR}}( [ {{X_VALUES_LEN_5}} ] ); * var y = new {{TYPED_ARRAY_CTOR}}( [ 0.0, 0.0, 0.0, 0.0, 0.0 ] ); @@ -87,7 +87,7 @@ interface Routine { * // y => <{{TYPED_ARRAY_CTOR}}>[ {{EXPECTED_LEN_5}} ] * * @example -* var {{TYPED_ARRAY_CTOR}} = require( `@stdlib/array/{{TYPED_ARRAY_DTYPE}}` ); +* var {{TYPED_ARRAY_CTOR}} = require( '@stdlib/array/{{TYPED_ARRAY_DTYPE}}' ); * * var x = new {{TYPED_ARRAY_CTOR}}( [ {{X_VALUES_LEN_5}} ] ); * var y = new {{TYPED_ARRAY_CTOR}}( [ 0.0, 0.0, 0.0, 0.0, 0.0 ] ); diff --git a/lib/node_modules/@stdlib/_tools/scaffold/math-strided-unary/data/docs/types/index__d__ts.txt b/lib/node_modules/@stdlib/_tools/scaffold/math-strided-unary/data/docs/types/index__d__ts.txt index 297782ef3408..18d0acdbb530 100644 --- a/lib/node_modules/@stdlib/_tools/scaffold/math-strided-unary/data/docs/types/index__d__ts.txt +++ b/lib/node_modules/@stdlib/_tools/scaffold/math-strided-unary/data/docs/types/index__d__ts.txt @@ -42,7 +42,7 @@ interface Routine { * @returns `y` * * @example - * var {{TYPED_ARRAY_CTOR}} = require( `@stdlib/array/{{TYPED_ARRAY_DTYPE}}` ); + * var {{TYPED_ARRAY_CTOR}} = require( '@stdlib/array/{{TYPED_ARRAY_DTYPE}}' ); * * var x = new {{TYPED_ARRAY_CTOR}}( [ {{X_VALUES_LEN_5}} ] ); * var y = new {{TYPED_ARRAY_CTOR}}( [ 0.0, 0.0, 0.0, 0.0, 0.0 ] ); @@ -70,7 +70,7 @@ interface Routine { * @returns `y` * * @example - * var {{TYPED_ARRAY_CTOR}} = require( `@stdlib/array/{{TYPED_ARRAY_DTYPE}}` ); + * var {{TYPED_ARRAY_CTOR}} = require( '@stdlib/array/{{TYPED_ARRAY_DTYPE}}' ); * * var x = new {{TYPED_ARRAY_CTOR}}( [ {{X_VALUES_LEN_5}}] ); * var y = new {{TYPED_ARRAY_CTOR}}( [ 0.0, 0.0, 0.0, 0.0, 0.0 ] ); @@ -97,7 +97,7 @@ interface Routine { * @returns `y` * * @example -* var {{TYPED_ARRAY_CTOR}} = require( `@stdlib/array/{{TYPED_ARRAY_DTYPE}}` ); +* var {{TYPED_ARRAY_CTOR}} = require( '@stdlib/array/{{TYPED_ARRAY_DTYPE}}' ); * * var x = new {{TYPED_ARRAY_CTOR}}( [ {{X_VALUES_LEN_5}}] ); * var y = new {{TYPED_ARRAY_CTOR}}( [ 0.0, 0.0, 0.0, 0.0, 0.0 ] ); @@ -106,7 +106,7 @@ interface Routine { * // y => <{{TYPED_ARRAY_CTOR}}>[ {{EXPECTED_LEN_5}} ] * * @example -* var {{TYPED_ARRAY_CTOR}} = require( `@stdlib/array/{{TYPED_ARRAY_DTYPE}}` ); +* var {{TYPED_ARRAY_CTOR}} = require( '@stdlib/array/{{TYPED_ARRAY_DTYPE}}' ); * * var x = new {{TYPED_ARRAY_CTOR}}( [ {{X_VALUES_LEN_5}}] ); * var y = new {{TYPED_ARRAY_CTOR}}( [ 0.0, 0.0, 0.0, 0.0, 0.0 ] ); diff --git a/lib/node_modules/@stdlib/array/base/assert/is-sorted-ascending/benchmark/benchmark.accessors.length.js b/lib/node_modules/@stdlib/array/base/assert/is-sorted-ascending/benchmark/benchmark.accessors.length.js index 7ac5504885b3..d7117ede8bc5 100644 --- a/lib/node_modules/@stdlib/array/base/assert/is-sorted-ascending/benchmark/benchmark.accessors.length.js +++ b/lib/node_modules/@stdlib/array/base/assert/is-sorted-ascending/benchmark/benchmark.accessors.length.js @@ -91,7 +91,7 @@ function main() { len = pow( 10, i ); f = createBenchmark( len ); - bench( format( '%s::accessors:len=%s', pkg, len ), f ); + bench( format( '%s::accessors:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/base/assert/is-sorted-ascending/benchmark/benchmark.length.js b/lib/node_modules/@stdlib/array/base/assert/is-sorted-ascending/benchmark/benchmark.length.js index 083f916c8a22..cc63b070042e 100644 --- a/lib/node_modules/@stdlib/array/base/assert/is-sorted-ascending/benchmark/benchmark.length.js +++ b/lib/node_modules/@stdlib/array/base/assert/is-sorted-ascending/benchmark/benchmark.length.js @@ -90,7 +90,7 @@ function main() { len = pow( 10, i ); f = createBenchmark( len ); - bench( format( '%s:len=%s', pkg, len ), f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/base/join/benchmark/benchmark.length.js b/lib/node_modules/@stdlib/array/base/join/benchmark/benchmark.length.js index 4b759371223d..77973c2fdd6d 100644 --- a/lib/node_modules/@stdlib/array/base/join/benchmark/benchmark.length.js +++ b/lib/node_modules/@stdlib/array/base/join/benchmark/benchmark.length.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var pow = require( '@stdlib/math/base/special/pow' ); var isString = require( '@stdlib/assert/is-string' ).isPrimitive; var ones = require( '@stdlib/array/base/ones' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var join = require( './../lib' ); @@ -89,7 +90,7 @@ function main() { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':dtype=generic,len='+len, f ); + bench( format( '%s:dtype=generic,len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/base/last-index-of-same-value/benchmark/benchmark.length.js b/lib/node_modules/@stdlib/array/base/last-index-of-same-value/benchmark/benchmark.length.js index 731272fc3738..a2d7428b62fd 100644 --- a/lib/node_modules/@stdlib/array/base/last-index-of-same-value/benchmark/benchmark.length.js +++ b/lib/node_modules/@stdlib/array/base/last-index-of-same-value/benchmark/benchmark.length.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var pow = require( '@stdlib/math/base/special/pow' ); var isInteger = require( '@stdlib/assert/is-integer' ).isPrimitive; var zeroTo = require( '@stdlib/array/base/zero-to' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var lastIndexOfSameValue = require( './../lib' ); @@ -89,7 +90,7 @@ function main() { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':dtype=generic,len='+len, f ); + bench( format( '%s:dtype=generic,len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/base/last-index-of/benchmark/benchmark.length.js b/lib/node_modules/@stdlib/array/base/last-index-of/benchmark/benchmark.length.js index 91a1e314f8ea..fa6ceb26745d 100644 --- a/lib/node_modules/@stdlib/array/base/last-index-of/benchmark/benchmark.length.js +++ b/lib/node_modules/@stdlib/array/base/last-index-of/benchmark/benchmark.length.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var pow = require( '@stdlib/math/base/special/pow' ); var isInteger = require( '@stdlib/assert/is-integer' ).isPrimitive; var zeroTo = require( '@stdlib/array/base/zero-to' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var lastIndexOf = require( './../lib' ); @@ -89,7 +90,7 @@ function main() { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':dtype=generic,len='+len, f ); + bench( format( '%s:dtype=generic,len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/base/last/benchmark/benchmark.js b/lib/node_modules/@stdlib/array/base/last/benchmark/benchmark.js index 3d18c8efd26d..127dc23bcd4a 100644 --- a/lib/node_modules/@stdlib/array/base/last/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/array/base/last/benchmark/benchmark.js @@ -25,6 +25,7 @@ var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory; var pow = require( '@stdlib/math/base/special/pow' ); var filledBy = require( '@stdlib/array/filled-by' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var last = require( './../lib' ); @@ -95,7 +96,7 @@ function main() { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/base/linspace/benchmark/benchmark.length.js b/lib/node_modules/@stdlib/array/base/linspace/benchmark/benchmark.length.js index f9120de2205b..62a766287b7d 100644 --- a/lib/node_modules/@stdlib/array/base/linspace/benchmark/benchmark.length.js +++ b/lib/node_modules/@stdlib/array/base/linspace/benchmark/benchmark.length.js @@ -23,6 +23,7 @@ var bench = require( '@stdlib/bench' ); var pow = require( '@stdlib/math/base/special/pow' ); var isArray = require( '@stdlib/assert/is-array' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var linspace = require( './../lib' ); @@ -86,7 +87,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/base/linspace2d/benchmark/benchmark.size.js b/lib/node_modules/@stdlib/array/base/linspace2d/benchmark/benchmark.size.js index 997c4ac02238..c2c3b07828f9 100644 --- a/lib/node_modules/@stdlib/array/base/linspace2d/benchmark/benchmark.size.js +++ b/lib/node_modules/@stdlib/array/base/linspace2d/benchmark/benchmark.size.js @@ -25,6 +25,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); var isArrayArray = require( '@stdlib/assert/is-array-array' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var linspace2d = require( './../lib' ); @@ -88,7 +89,7 @@ function main() { for ( i = min; i <= max; i++ ) { N = floor( sqrt( pow( 10, i ) ) ); f = createBenchmark( N ); - bench( pkg+'::square_matrix:size='+(N*N), f ); + bench( format( '%s::square_matrix:size=%d', pkg, N*N ), f ); } } diff --git a/lib/node_modules/@stdlib/array/base/logspace/benchmark/benchmark.length.js b/lib/node_modules/@stdlib/array/base/logspace/benchmark/benchmark.length.js index b157c093b9d7..7e2f47cc5439 100644 --- a/lib/node_modules/@stdlib/array/base/logspace/benchmark/benchmark.length.js +++ b/lib/node_modules/@stdlib/array/base/logspace/benchmark/benchmark.length.js @@ -23,6 +23,7 @@ var bench = require( '@stdlib/bench' ); var pow = require( '@stdlib/math/base/special/pow' ); var isArray = require( '@stdlib/assert/is-array' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var logspace = require( './../lib' ); @@ -86,7 +87,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/base/map/benchmark/benchmark.assign.js b/lib/node_modules/@stdlib/array/base/map/benchmark/benchmark.assign.js index ad4b356656fa..84ce624f1c2f 100644 --- a/lib/node_modules/@stdlib/array/base/map/benchmark/benchmark.assign.js +++ b/lib/node_modules/@stdlib/array/base/map/benchmark/benchmark.assign.js @@ -26,6 +26,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var uniform = require( '@stdlib/random/array/uniform' ); var identity = require( '@stdlib/number/float64/base/identity' ); var zeros = require( '@stdlib/array/base/zeros' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var map = require( './../lib' ).assign; @@ -99,7 +100,7 @@ function main() { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':assign:dtype=generic,len='+len, f ); + bench( format( '%s:assign:dtype=generic,len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/base/map/benchmark/benchmark.js b/lib/node_modules/@stdlib/array/base/map/benchmark/benchmark.js index c57bee8baba3..146c34de14a7 100644 --- a/lib/node_modules/@stdlib/array/base/map/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/array/base/map/benchmark/benchmark.js @@ -25,6 +25,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var uniform = require( '@stdlib/random/array/uniform' ); var identity = require( '@stdlib/number/float64/base/identity' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var map = require( './../lib' ); @@ -93,7 +94,7 @@ function main() { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':dtype=generic,len='+len, f ); + bench( format( '%s:dtype=generic,len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/base/map2d/benchmark/benchmark.assign.js b/lib/node_modules/@stdlib/array/base/map2d/benchmark/benchmark.assign.js index c2064dc5847c..42bdf76b76c8 100644 --- a/lib/node_modules/@stdlib/array/base/map2d/benchmark/benchmark.assign.js +++ b/lib/node_modules/@stdlib/array/base/map2d/benchmark/benchmark.assign.js @@ -29,6 +29,7 @@ var identity = require( '@stdlib/number/float64/base/identity' ); var filled2dBy = require( '@stdlib/array/base/filled2d-by' ); var zeros2d = require( '@stdlib/array/base/zeros2d' ); var numel = require( '@stdlib/ndarray/base/numel' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var map2d = require( './../lib' ).assign; @@ -107,7 +108,7 @@ function main() { N = floor( pow( pow( 10, i ), 1.0/2.0 ) ); sh = [ N, N ]; f = createBenchmark( sh ); - bench( pkg+'::square_matrix:assign:size='+numel( sh ), f ); + bench( format( '%s::square_matrix:assign:size=%d', pkg, numel( sh ) ), f ); } } diff --git a/lib/node_modules/@stdlib/array/base/map2d/benchmark/benchmark.js b/lib/node_modules/@stdlib/array/base/map2d/benchmark/benchmark.js index 45307f0ae0a9..51b51b9c551e 100644 --- a/lib/node_modules/@stdlib/array/base/map2d/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/array/base/map2d/benchmark/benchmark.js @@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var identity = require( '@stdlib/number/float64/base/identity' ); var filled2dBy = require( '@stdlib/array/base/filled2d-by' ); var numel = require( '@stdlib/ndarray/base/numel' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var map2d = require( './../lib' ); @@ -101,7 +102,7 @@ function main() { N = floor( pow( pow( 10, i ), 1.0/2.0 ) ); sh = [ N, N ]; f = createBenchmark( sh ); - bench( pkg+'::square_matrix:size='+numel( sh ), f ); + bench( format( '%s::square_matrix:size=%d', pkg, numel( sh ) ), f ); } } diff --git a/lib/node_modules/@stdlib/array/base/map3d/benchmark/benchmark.assign.js b/lib/node_modules/@stdlib/array/base/map3d/benchmark/benchmark.assign.js index 93227fde0bc7..c087291143a1 100644 --- a/lib/node_modules/@stdlib/array/base/map3d/benchmark/benchmark.assign.js +++ b/lib/node_modules/@stdlib/array/base/map3d/benchmark/benchmark.assign.js @@ -29,6 +29,7 @@ var identity = require( '@stdlib/number/float64/base/identity' ); var filled3dBy = require( '@stdlib/array/base/filled3d-by' ); var zeros3d = require( '@stdlib/array/base/zeros3d' ); var numel = require( '@stdlib/ndarray/base/numel' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var map3d = require( './../lib' ).assign; @@ -110,7 +111,7 @@ function main() { N = floor( pow( pow( 10, i ), 1.0/3.0 ) ); sh = [ N, N, N ]; f = createBenchmark( sh ); - bench( pkg+'::equidimensional:assign:size='+numel( sh ), f ); + bench( format( '%s::equidimensional:assign:size=%d', pkg, numel( sh ) ), f ); } } diff --git a/lib/node_modules/@stdlib/array/base/map3d/benchmark/benchmark.js b/lib/node_modules/@stdlib/array/base/map3d/benchmark/benchmark.js index 7bc687669dbd..f44c277c646b 100644 --- a/lib/node_modules/@stdlib/array/base/map3d/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/array/base/map3d/benchmark/benchmark.js @@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var identity = require( '@stdlib/number/float64/base/identity' ); var filled3dBy = require( '@stdlib/array/base/filled3d-by' ); var numel = require( '@stdlib/ndarray/base/numel' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var map3d = require( './../lib' ); @@ -104,7 +105,7 @@ function main() { N = floor( pow( pow( 10, i ), 1.0/3.0 ) ); sh = [ N, N, N ]; f = createBenchmark( sh ); - bench( pkg+'::equidimensional:size='+numel( sh ), f ); + bench( format( '%s::equidimensional:size=%d', pkg, numel( sh ) ), f ); } } diff --git a/lib/node_modules/@stdlib/array/base/map4d/benchmark/benchmark.assign.js b/lib/node_modules/@stdlib/array/base/map4d/benchmark/benchmark.assign.js index a6d5c570cb2d..af2996603f1e 100644 --- a/lib/node_modules/@stdlib/array/base/map4d/benchmark/benchmark.assign.js +++ b/lib/node_modules/@stdlib/array/base/map4d/benchmark/benchmark.assign.js @@ -29,6 +29,7 @@ var identity = require( '@stdlib/number/float64/base/identity' ); var filled4dBy = require( '@stdlib/array/base/filled4d-by' ); var zeros4d = require( '@stdlib/array/base/zeros4d' ); var numel = require( '@stdlib/ndarray/base/numel' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var map4d = require( './../lib' ).assign; @@ -113,7 +114,7 @@ function main() { N = floor( pow( pow( 10, i ), 1.0/4.0 ) ); sh = [ N, N, N, N ]; f = createBenchmark( sh ); - bench( pkg+'::equidimensional:assign:size='+numel( sh ), f ); + bench( format( '%s::equidimensional:assign:size=%d', pkg, numel( sh ) ), f ); } } diff --git a/lib/node_modules/@stdlib/array/base/map4d/benchmark/benchmark.js b/lib/node_modules/@stdlib/array/base/map4d/benchmark/benchmark.js index 16aa08344732..d75b86ecb204 100644 --- a/lib/node_modules/@stdlib/array/base/map4d/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/array/base/map4d/benchmark/benchmark.js @@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var identity = require( '@stdlib/number/float64/base/identity' ); var filled4dBy = require( '@stdlib/array/base/filled4d-by' ); var numel = require( '@stdlib/ndarray/base/numel' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var map4d = require( './../lib' ); @@ -107,7 +108,7 @@ function main() { N = floor( pow( pow( 10, i ), 1.0/4.0 ) ); sh = [ N, N, N, N ]; f = createBenchmark( sh ); - bench( pkg+'::equidimensional:size='+numel( sh ), f ); + bench( format( '%s::equidimensional:size=%d', pkg, numel( sh ) ), f ); } } diff --git a/lib/node_modules/@stdlib/array/base/map5d/benchmark/benchmark.assign.js b/lib/node_modules/@stdlib/array/base/map5d/benchmark/benchmark.assign.js index 915590ae9657..a9393d7d0ac4 100644 --- a/lib/node_modules/@stdlib/array/base/map5d/benchmark/benchmark.assign.js +++ b/lib/node_modules/@stdlib/array/base/map5d/benchmark/benchmark.assign.js @@ -29,6 +29,7 @@ var identity = require( '@stdlib/number/float64/base/identity' ); var filled5dBy = require( '@stdlib/array/base/filled5d-by' ); var zeros5d = require( '@stdlib/array/base/zeros5d' ); var numel = require( '@stdlib/ndarray/base/numel' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var map5d = require( './../lib' ).assign; @@ -116,7 +117,7 @@ function main() { N = floor( pow( pow( 10, i ), 1.0/5.0 ) ); sh = [ N, N, N, N, N ]; f = createBenchmark( sh ); - bench( pkg+'::equidimensional:assign:size='+numel( sh ), f ); + bench( format( '%s::equidimensional:assign:size=%d', pkg, numel( sh ) ), f ); } } diff --git a/lib/node_modules/@stdlib/array/base/map5d/benchmark/benchmark.js b/lib/node_modules/@stdlib/array/base/map5d/benchmark/benchmark.js index 64c86d57176a..39c4d29b2620 100644 --- a/lib/node_modules/@stdlib/array/base/map5d/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/array/base/map5d/benchmark/benchmark.js @@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var identity = require( '@stdlib/number/float64/base/identity' ); var filled5dBy = require( '@stdlib/array/base/filled5d-by' ); var numel = require( '@stdlib/ndarray/base/numel' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var map5d = require( './../lib' ); @@ -110,7 +111,7 @@ function main() { N = floor( pow( pow( 10, i ), 1.0/5.0 ) ); sh = [ N, N, N, N, N ]; f = createBenchmark( sh ); - bench( pkg+'::equidimensional:size='+numel( sh ), f ); + bench( format( '%s::equidimensional:size=%d', pkg, numel( sh ) ), f ); } } diff --git a/lib/node_modules/@stdlib/array/base/mskbinary2d/benchmark/benchmark.js b/lib/node_modules/@stdlib/array/base/mskbinary2d/benchmark/benchmark.js index fa8fa7ad9051..e13f7a85b6a0 100644 --- a/lib/node_modules/@stdlib/array/base/mskbinary2d/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/array/base/mskbinary2d/benchmark/benchmark.js @@ -30,6 +30,7 @@ var add = require( '@stdlib/number/float64/base/add' ); var filled2dBy = require( '@stdlib/array/base/filled2d-by' ); var zeros2d = require( '@stdlib/array/base/zeros2d' ); var numel = require( '@stdlib/ndarray/base/numel' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var mskbinary2d = require( './../lib' ); @@ -114,7 +115,7 @@ function main() { N = floor( pow( pow( 10, i ), 1.0/2.0 ) ); sh = [ N, N ]; f = createBenchmark( sh ); - bench( pkg+'::square_matrix:size='+numel( sh ), f ); + bench( format( '%s::square_matrix:size=%d', pkg, numel( sh ) ), f ); } } diff --git a/lib/node_modules/@stdlib/array/base/mskbinary3d/benchmark/benchmark.js b/lib/node_modules/@stdlib/array/base/mskbinary3d/benchmark/benchmark.js index 6557280b10cb..3fbe224a09ec 100644 --- a/lib/node_modules/@stdlib/array/base/mskbinary3d/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/array/base/mskbinary3d/benchmark/benchmark.js @@ -30,6 +30,7 @@ var add = require( '@stdlib/number/float64/base/add' ); var filled3dBy = require( '@stdlib/array/base/filled3d-by' ); var zeros3d = require( '@stdlib/array/base/zeros3d' ); var numel = require( '@stdlib/ndarray/base/numel' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var mskbinary3d = require( './../lib' ); @@ -117,7 +118,7 @@ function main() { N = floor( pow( pow( 10, i ), 1.0/3.0 ) ); sh = [ N, N, N ]; f = createBenchmark( sh ); - bench( pkg+'::equidimensional:size='+numel( sh ), f ); + bench( format( '%s::equidimensional:size=%d', pkg, numel( sh ) ), f ); } } diff --git a/lib/node_modules/@stdlib/array/base/mskbinary4d/benchmark/benchmark.js b/lib/node_modules/@stdlib/array/base/mskbinary4d/benchmark/benchmark.js index 3cd35efb3df7..5c4498f96ade 100644 --- a/lib/node_modules/@stdlib/array/base/mskbinary4d/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/array/base/mskbinary4d/benchmark/benchmark.js @@ -30,6 +30,7 @@ var add = require( '@stdlib/number/float64/base/add' ); var filled4dBy = require( '@stdlib/array/base/filled4d-by' ); var zeros4d = require( '@stdlib/array/base/zeros4d' ); var numel = require( '@stdlib/ndarray/base/numel' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var mskbinary4d = require( './../lib' ); @@ -120,7 +121,7 @@ function main() { N = floor( pow( pow( 10, i ), 1.0/4.0 ) ); sh = [ N, N, N, N ]; f = createBenchmark( sh ); - bench( pkg+'::equidimensional:size='+numel( sh ), f ); + bench( format( '%s::equidimensional:size=%d', pkg, numel( sh ) ), f ); } } diff --git a/lib/node_modules/@stdlib/array/base/mskbinary5d/benchmark/benchmark.js b/lib/node_modules/@stdlib/array/base/mskbinary5d/benchmark/benchmark.js index b38ba45985a7..42b8336a20f3 100644 --- a/lib/node_modules/@stdlib/array/base/mskbinary5d/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/array/base/mskbinary5d/benchmark/benchmark.js @@ -30,6 +30,7 @@ var add = require( '@stdlib/number/float64/base/add' ); var filled5dBy = require( '@stdlib/array/base/filled5d-by' ); var zeros5d = require( '@stdlib/array/base/zeros5d' ); var numel = require( '@stdlib/ndarray/base/numel' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var mskbinary5d = require( './../lib' ); @@ -123,7 +124,7 @@ function main() { N = floor( pow( pow( 10, i ), 1.0/5.0 ) ); sh = [ N, N, N, N, N ]; f = createBenchmark( sh ); - bench( pkg+'::equidimensional:size='+numel( sh ), f ); + bench( format( '%s::equidimensional:size=%d', pkg, numel( sh ) ), f ); } } diff --git a/lib/node_modules/@stdlib/array/base/mskfilter-map/benchmark/benchmark.assign.length.js b/lib/node_modules/@stdlib/array/base/mskfilter-map/benchmark/benchmark.assign.length.js index 1ce5e32f264c..075000ff01b7 100644 --- a/lib/node_modules/@stdlib/array/base/mskfilter-map/benchmark/benchmark.assign.length.js +++ b/lib/node_modules/@stdlib/array/base/mskfilter-map/benchmark/benchmark.assign.length.js @@ -28,6 +28,7 @@ var ones = require( '@stdlib/array/ones' ); var isArray = require( '@stdlib/assert/is-array' ); var isnan = require( '@stdlib/assert/is-nan' ).isPrimitive; var identity = require( '@stdlib/utils/identity-function' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var mskfilterMap = require( './../lib' ); @@ -99,7 +100,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':assign:len='+len, f ); + bench( format( '%s:assign:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/base/mskfilter-map/benchmark/benchmark.js b/lib/node_modules/@stdlib/array/base/mskfilter-map/benchmark/benchmark.js index 86c146b031db..2067a6d086f7 100644 --- a/lib/node_modules/@stdlib/array/base/mskfilter-map/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/array/base/mskfilter-map/benchmark/benchmark.js @@ -25,13 +25,14 @@ var isArray = require( '@stdlib/assert/is-array' ); var zeroTo = require( '@stdlib/array/base/zero-to' ); var ones = require( '@stdlib/array/base/ones' ); var identity = require( '@stdlib/utils/identity-function' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var mskfilterMap = require( './../lib' ); // MAIN // -bench( pkg+'::copy:len=100', function benchmark( b ) { +bench( format( '%s::copy:len=100', pkg ), function benchmark( b ) { var x; var y; var i; diff --git a/lib/node_modules/@stdlib/array/base/mskfilter-map/benchmark/benchmark.length.js b/lib/node_modules/@stdlib/array/base/mskfilter-map/benchmark/benchmark.length.js index e095ad90d077..30314e501478 100644 --- a/lib/node_modules/@stdlib/array/base/mskfilter-map/benchmark/benchmark.length.js +++ b/lib/node_modules/@stdlib/array/base/mskfilter-map/benchmark/benchmark.length.js @@ -26,6 +26,7 @@ var zeroTo = require( '@stdlib/array/base/zero-to' ); var ones = require( '@stdlib/array/base/ones' ); var isArray = require( '@stdlib/assert/is-array' ); var identity = require( '@stdlib/utils/identity-function' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var mskfilterMap = require( './../lib' ); @@ -91,7 +92,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/base/mskfilter/benchmark/benchmark.assign.length.js b/lib/node_modules/@stdlib/array/base/mskfilter/benchmark/benchmark.assign.length.js index 3f2fb20db1bd..9b53922339b7 100644 --- a/lib/node_modules/@stdlib/array/base/mskfilter/benchmark/benchmark.assign.length.js +++ b/lib/node_modules/@stdlib/array/base/mskfilter/benchmark/benchmark.assign.length.js @@ -27,6 +27,7 @@ var zeros = require( '@stdlib/array/zeros' ); var ones = require( '@stdlib/array/ones' ); var isArray = require( '@stdlib/assert/is-array' ); var isnan = require( '@stdlib/assert/is-nan' ).isPrimitive; +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var mskfilter = require( './../lib' ); @@ -98,7 +99,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':assign:len='+len, f ); + bench( format( '%s:assign:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/base/mskfilter/benchmark/benchmark.js b/lib/node_modules/@stdlib/array/base/mskfilter/benchmark/benchmark.js index 66641ff16d9e..58ac776e8eb6 100644 --- a/lib/node_modules/@stdlib/array/base/mskfilter/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/array/base/mskfilter/benchmark/benchmark.js @@ -24,13 +24,14 @@ var bench = require( '@stdlib/bench' ); var isArray = require( '@stdlib/assert/is-array' ); var zeroTo = require( '@stdlib/array/base/zero-to' ); var ones = require( '@stdlib/array/base/ones' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var mskfilter = require( './../lib' ); // MAIN // -bench( pkg+'::copy:len=100', function benchmark( b ) { +bench( format( '%s::copy:len=100', pkg ), function benchmark( b ) { var x; var y; var i; diff --git a/lib/node_modules/@stdlib/array/base/mskfilter/benchmark/benchmark.length.js b/lib/node_modules/@stdlib/array/base/mskfilter/benchmark/benchmark.length.js index f9f890632a17..9f2c5c2f1048 100644 --- a/lib/node_modules/@stdlib/array/base/mskfilter/benchmark/benchmark.length.js +++ b/lib/node_modules/@stdlib/array/base/mskfilter/benchmark/benchmark.length.js @@ -25,6 +25,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var zeroTo = require( '@stdlib/array/base/zero-to' ); var ones = require( '@stdlib/array/base/ones' ); var isArray = require( '@stdlib/assert/is-array' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var mskfilter = require( './../lib' ); @@ -90,7 +91,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/base/mskfilter2/benchmark/benchmark.js b/lib/node_modules/@stdlib/array/base/mskfilter2/benchmark/benchmark.js index 62a2b7786d5f..039a88592e50 100644 --- a/lib/node_modules/@stdlib/array/base/mskfilter2/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/array/base/mskfilter2/benchmark/benchmark.js @@ -24,13 +24,14 @@ var bench = require( '@stdlib/bench' ); var isArrayArray = require( '@stdlib/assert/is-array-array' ); var zeroTo = require( '@stdlib/array/base/zero-to' ); var ones = require( '@stdlib/array/base/ones' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var mskfilter2 = require( './../lib' ); // MAIN // -bench( pkg+'::copy:len=100', function benchmark( b ) { +bench( format( '%s::copy:len=100', pkg ), function benchmark( b ) { var x; var y; var i; diff --git a/lib/node_modules/@stdlib/array/base/mskfilter2/benchmark/benchmark.length.js b/lib/node_modules/@stdlib/array/base/mskfilter2/benchmark/benchmark.length.js index 90a7c730cfe6..9655095b581f 100644 --- a/lib/node_modules/@stdlib/array/base/mskfilter2/benchmark/benchmark.length.js +++ b/lib/node_modules/@stdlib/array/base/mskfilter2/benchmark/benchmark.length.js @@ -25,6 +25,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var zeroTo = require( '@stdlib/array/base/zero-to' ); var ones = require( '@stdlib/array/base/ones' ); var isArrayArray = require( '@stdlib/assert/is-array-array' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var mskfilter2 = require( './../lib' ); @@ -90,7 +91,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/base/mskfiltern/benchmark/benchmark.js b/lib/node_modules/@stdlib/array/base/mskfiltern/benchmark/benchmark.js index a2f993868ec0..b445eac6e733 100644 --- a/lib/node_modules/@stdlib/array/base/mskfiltern/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/array/base/mskfiltern/benchmark/benchmark.js @@ -24,13 +24,14 @@ var bench = require( '@stdlib/bench' ); var isArrayArray = require( '@stdlib/assert/is-array-array' ); var zeroTo = require( '@stdlib/array/base/zero-to' ); var ones = require( '@stdlib/array/base/ones' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var mskfiltern = require( './../lib' ); // MAIN // -bench( pkg+'::copy:num_arrays=2,len=100', function benchmark( b ) { +bench( format( '%s::copy:num_arrays=2,len=100', pkg ), function benchmark( b ) { var x; var y; var i; diff --git a/lib/node_modules/@stdlib/array/base/mskfiltern/benchmark/benchmark.length.js b/lib/node_modules/@stdlib/array/base/mskfiltern/benchmark/benchmark.length.js index b0c53e10b5ee..f538c25e64ef 100644 --- a/lib/node_modules/@stdlib/array/base/mskfiltern/benchmark/benchmark.length.js +++ b/lib/node_modules/@stdlib/array/base/mskfiltern/benchmark/benchmark.length.js @@ -25,6 +25,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var zeroTo = require( '@stdlib/array/base/zero-to' ); var ones = require( '@stdlib/array/base/ones' ); var isArrayArray = require( '@stdlib/assert/is-array-array' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var mskfiltern = require( './../lib' ); @@ -90,7 +91,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':num_arrays=2,len='+len, f ); + bench( format( '%s:num_arrays=2,len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/base/mskput/benchmark/benchmark.js b/lib/node_modules/@stdlib/array/base/mskput/benchmark/benchmark.js index 652b5447aa2d..924f4fe91ec0 100644 --- a/lib/node_modules/@stdlib/array/base/mskput/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/array/base/mskput/benchmark/benchmark.js @@ -24,13 +24,14 @@ var bench = require( '@stdlib/bench' ); var isArray = require( '@stdlib/assert/is-array' ); var zeroTo = require( '@stdlib/array/base/zero-to' ); var zeros = require( '@stdlib/array/base/zeros' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var mskput = require( './../lib' ); // MAIN // -bench( pkg+'::no_broadcasting:len=100', function benchmark( b ) { +bench( format( '%s::no_broadcasting:len=100', pkg ), function benchmark( b ) { var mask; var x; var i; @@ -54,7 +55,7 @@ bench( pkg+'::no_broadcasting:len=100', function benchmark( b ) { b.end(); }); -bench( pkg+'::broadcasting:len=100', function benchmark( b ) { +bench( format( '%s::broadcasting:len=100', pkg ), function benchmark( b ) { var mask; var x; var i; diff --git a/lib/node_modules/@stdlib/array/base/mskput/benchmark/benchmark.length.js b/lib/node_modules/@stdlib/array/base/mskput/benchmark/benchmark.length.js index ce6bba354872..a40491fd9c84 100644 --- a/lib/node_modules/@stdlib/array/base/mskput/benchmark/benchmark.length.js +++ b/lib/node_modules/@stdlib/array/base/mskput/benchmark/benchmark.length.js @@ -25,6 +25,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); var zeros = require( '@stdlib/array/base/zeros' ); var isArray = require( '@stdlib/assert/is-array' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var mskput = require( './../lib' ); @@ -106,7 +107,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/base/mskreject-map/benchmark/benchmark.assign.length.js b/lib/node_modules/@stdlib/array/base/mskreject-map/benchmark/benchmark.assign.length.js index 70d168ed480d..fabc87b13799 100644 --- a/lib/node_modules/@stdlib/array/base/mskreject-map/benchmark/benchmark.assign.length.js +++ b/lib/node_modules/@stdlib/array/base/mskreject-map/benchmark/benchmark.assign.length.js @@ -26,6 +26,7 @@ var zeroTo = require( '@stdlib/array/base/zero-to' ); var zeros = require( '@stdlib/array/zeros' ); var isArray = require( '@stdlib/assert/is-array' ); var isnan = require( '@stdlib/assert/is-nan' ).isPrimitive; +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var mskrejectMap = require( './../lib' ); @@ -99,7 +100,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':assign:len='+len, f ); + bench( format( '%s:assign:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/base/mskreject-map/benchmark/benchmark.js b/lib/node_modules/@stdlib/array/base/mskreject-map/benchmark/benchmark.js index fe825af1b4db..c346fe331357 100644 --- a/lib/node_modules/@stdlib/array/base/mskreject-map/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/array/base/mskreject-map/benchmark/benchmark.js @@ -24,13 +24,14 @@ var bench = require( '@stdlib/bench' ); var isArray = require( '@stdlib/assert/is-array' ); var zeroTo = require( '@stdlib/array/base/zero-to' ); var zeros = require( '@stdlib/array/base/zeros' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var mskrejectMap = require( './../lib' ); // MAIN // -bench( pkg+'::copy:len=100', function benchmark( b ) { +bench( format( '%s::copy:len=100', pkg ), function benchmark( b ) { var x; var y; var i; diff --git a/lib/node_modules/@stdlib/array/base/mskreject-map/benchmark/benchmark.length.js b/lib/node_modules/@stdlib/array/base/mskreject-map/benchmark/benchmark.length.js index b7ae1eb1e116..c42fa9e1476d 100644 --- a/lib/node_modules/@stdlib/array/base/mskreject-map/benchmark/benchmark.length.js +++ b/lib/node_modules/@stdlib/array/base/mskreject-map/benchmark/benchmark.length.js @@ -25,6 +25,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var zeroTo = require( '@stdlib/array/base/zero-to' ); var zeros = require( '@stdlib/array/base/zeros' ); var isArray = require( '@stdlib/assert/is-array' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var mskrejectMap = require( './../lib' ); @@ -92,7 +93,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/base/mskreject/benchmark/benchmark.assign.length.js b/lib/node_modules/@stdlib/array/base/mskreject/benchmark/benchmark.assign.length.js index 0d4aa67626e4..a2d118616019 100644 --- a/lib/node_modules/@stdlib/array/base/mskreject/benchmark/benchmark.assign.length.js +++ b/lib/node_modules/@stdlib/array/base/mskreject/benchmark/benchmark.assign.length.js @@ -26,6 +26,7 @@ var zeroTo = require( '@stdlib/array/base/zero-to' ); var zeros = require( '@stdlib/array/zeros' ); var isArray = require( '@stdlib/assert/is-array' ); var isnan = require( '@stdlib/assert/is-nan' ).isPrimitive; +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var mskreject = require( './../lib' ); @@ -97,7 +98,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':assign:len='+len, f ); + bench( format( '%s:assign:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/base/mskreject/benchmark/benchmark.js b/lib/node_modules/@stdlib/array/base/mskreject/benchmark/benchmark.js index ba6fbf639468..57f9374186f9 100644 --- a/lib/node_modules/@stdlib/array/base/mskreject/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/array/base/mskreject/benchmark/benchmark.js @@ -24,13 +24,14 @@ var bench = require( '@stdlib/bench' ); var isArray = require( '@stdlib/assert/is-array' ); var zeroTo = require( '@stdlib/array/base/zero-to' ); var zeros = require( '@stdlib/array/base/zeros' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var mskreject = require( './../lib' ); // MAIN // -bench( pkg+'::copy:len=100', function benchmark( b ) { +bench( format( '%s::copy:len=100', pkg ), function benchmark( b ) { var x; var y; var i; diff --git a/lib/node_modules/@stdlib/array/base/mskreject/benchmark/benchmark.length.js b/lib/node_modules/@stdlib/array/base/mskreject/benchmark/benchmark.length.js index df920c3830ac..6995228dbd2d 100644 --- a/lib/node_modules/@stdlib/array/base/mskreject/benchmark/benchmark.length.js +++ b/lib/node_modules/@stdlib/array/base/mskreject/benchmark/benchmark.length.js @@ -25,6 +25,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var zeroTo = require( '@stdlib/array/base/zero-to' ); var zeros = require( '@stdlib/array/base/zeros' ); var isArray = require( '@stdlib/assert/is-array' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var mskreject = require( './../lib' ); @@ -90,7 +91,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/base/mskunary2d/benchmark/benchmark.js b/lib/node_modules/@stdlib/array/base/mskunary2d/benchmark/benchmark.js index a1cb6e2f292b..8dd2c26b2e81 100644 --- a/lib/node_modules/@stdlib/array/base/mskunary2d/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/array/base/mskunary2d/benchmark/benchmark.js @@ -30,6 +30,7 @@ var identity = require( '@stdlib/number/float64/base/identity' ); var filled2dBy = require( '@stdlib/array/base/filled2d-by' ); var zeros2d = require( '@stdlib/array/base/zeros2d' ); var numel = require( '@stdlib/ndarray/base/numel' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var mskunary2d = require( './../lib' ); @@ -112,7 +113,7 @@ function main() { N = floor( pow( pow( 10, i ), 1.0/2.0 ) ); sh = [ N, N ]; f = createBenchmark( sh ); - bench( pkg+'::square_matrix:size='+numel( sh ), f ); + bench( format( '%s::square_matrix:size=%d', pkg, numel( sh ) ), f ); } } diff --git a/lib/node_modules/@stdlib/array/base/mskunary3d/benchmark/benchmark.js b/lib/node_modules/@stdlib/array/base/mskunary3d/benchmark/benchmark.js index 7cd954b4c01e..e7374aa85399 100644 --- a/lib/node_modules/@stdlib/array/base/mskunary3d/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/array/base/mskunary3d/benchmark/benchmark.js @@ -30,6 +30,7 @@ var identity = require( '@stdlib/number/float64/base/identity' ); var filled3dBy = require( '@stdlib/array/base/filled3d-by' ); var zeros3d = require( '@stdlib/array/base/zeros3d' ); var numel = require( '@stdlib/ndarray/base/numel' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var mskunary3d = require( './../lib' ); @@ -115,7 +116,7 @@ function main() { N = floor( pow( pow( 10, i ), 1.0/3.0 ) ); sh = [ N, N, N ]; f = createBenchmark( sh ); - bench( pkg+'::equidimensional:size='+numel( sh ), f ); + bench( format( '%s::equidimensional:size=%d', pkg, numel( sh ) ), f ); } } diff --git a/lib/node_modules/@stdlib/array/base/mskunary4d/benchmark/benchmark.js b/lib/node_modules/@stdlib/array/base/mskunary4d/benchmark/benchmark.js index 92006f49974f..cef401c7ef41 100644 --- a/lib/node_modules/@stdlib/array/base/mskunary4d/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/array/base/mskunary4d/benchmark/benchmark.js @@ -30,6 +30,7 @@ var identity = require( '@stdlib/number/float64/base/identity' ); var filled4dBy = require( '@stdlib/array/base/filled4d-by' ); var zeros4d = require( '@stdlib/array/base/zeros4d' ); var numel = require( '@stdlib/ndarray/base/numel' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var mskunary4d = require( './../lib' ); @@ -118,7 +119,7 @@ function main() { N = floor( pow( pow( 10, i ), 1.0/4.0 ) ); sh = [ N, N, N, N ]; f = createBenchmark( sh ); - bench( pkg+'::equidimensional:size='+numel( sh ), f ); + bench( format( '%s::equidimensional:size=%d', pkg, numel( sh ) ), f ); } } diff --git a/lib/node_modules/@stdlib/array/base/mskunary5d/benchmark/benchmark.js b/lib/node_modules/@stdlib/array/base/mskunary5d/benchmark/benchmark.js index 003f89f0286e..ec9a2b1d0aef 100644 --- a/lib/node_modules/@stdlib/array/base/mskunary5d/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/array/base/mskunary5d/benchmark/benchmark.js @@ -30,6 +30,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var filled5dBy = require( '@stdlib/array/base/filled5d-by' ); var zeros5d = require( '@stdlib/array/base/zeros5d' ); var numel = require( '@stdlib/ndarray/base/numel' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var mskunary5d = require( './../lib' ); @@ -121,7 +122,7 @@ function main() { N = floor( pow( pow( 10, i ), 1.0/5.0 ) ); sh = [ N, N, N, N, N ]; f = createBenchmark( sh ); - bench( pkg+'::equidimensional:size='+numel( sh ), f ); + bench( format( '%s::equidimensional:size=%d', pkg, numel( sh ) ), f ); } } diff --git a/lib/node_modules/@stdlib/array/base/n-cartesian-product/benchmark/benchmark.js b/lib/node_modules/@stdlib/array/base/n-cartesian-product/benchmark/benchmark.js index c1ed87f27c18..87b22be8b24f 100644 --- a/lib/node_modules/@stdlib/array/base/n-cartesian-product/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/array/base/n-cartesian-product/benchmark/benchmark.js @@ -23,13 +23,14 @@ var bench = require( '@stdlib/bench' ); var isArrayArray = require( '@stdlib/assert/is-array-array' ); var zeroTo = require( '@stdlib/array/base/zero-to' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var nCartesianProduct = require( './../lib' ); // MAIN // -bench( pkg+':narrays=2,len=100', function benchmark( b ) { +bench( format( '%s:narrays=2,len=100', pkg ), function benchmark( b ) { var x; var i; var v; @@ -51,7 +52,7 @@ bench( pkg+':narrays=2,len=100', function benchmark( b ) { b.end(); }); -bench( pkg+':narrays=3,len=100', function benchmark( b ) { +bench( format( '%s:narrays=3,len=100', pkg ), function benchmark( b ) { var x; var y; var i; @@ -75,7 +76,7 @@ bench( pkg+':narrays=3,len=100', function benchmark( b ) { b.end(); }); -bench( pkg+':narrays=4,len=100', function benchmark( b ) { +bench( format( '%s:narrays=4,len=100', pkg ), function benchmark( b ) { var x; var y; var i; @@ -99,7 +100,7 @@ bench( pkg+':narrays=4,len=100', function benchmark( b ) { b.end(); }); -bench( pkg+':narrays=5,len=100', function benchmark( b ) { +bench( format( '%s:narrays=5,len=100', pkg ), function benchmark( b ) { var x; var y; var i; @@ -123,7 +124,7 @@ bench( pkg+':narrays=5,len=100', function benchmark( b ) { b.end(); }); -bench( pkg+':narrays=6,len=100', function benchmark( b ) { +bench( format( '%s:narrays=6,len=100', pkg ), function benchmark( b ) { var x; var y; var i; @@ -147,7 +148,7 @@ bench( pkg+':narrays=6,len=100', function benchmark( b ) { b.end(); }); -bench( pkg+':narrays=7,len=100', function benchmark( b ) { +bench( format( '%s:narrays=7,len=100', pkg ), function benchmark( b ) { var x; var y; var i; @@ -171,7 +172,7 @@ bench( pkg+':narrays=7,len=100', function benchmark( b ) { b.end(); }); -bench( pkg+':narrays=8,len=100', function benchmark( b ) { +bench( format( '%s:narrays=8,len=100', pkg ), function benchmark( b ) { var x; var y; var i; @@ -195,7 +196,7 @@ bench( pkg+':narrays=8,len=100', function benchmark( b ) { b.end(); }); -bench( pkg+':narrays=9,len=100', function benchmark( b ) { +bench( format( '%s:narrays=9,len=100', pkg ), function benchmark( b ) { var x; var y; var i; @@ -219,7 +220,7 @@ bench( pkg+':narrays=9,len=100', function benchmark( b ) { b.end(); }); -bench( pkg+':narrays=10,len=100', function benchmark( b ) { +bench( format( '%s:narrays=10,len=100', pkg ), function benchmark( b ) { var x; var y; var i; diff --git a/lib/node_modules/@stdlib/array/base/n-cartesian-product/benchmark/benchmark.length.js b/lib/node_modules/@stdlib/array/base/n-cartesian-product/benchmark/benchmark.length.js index d41f981bc10a..3a4beeb2de36 100644 --- a/lib/node_modules/@stdlib/array/base/n-cartesian-product/benchmark/benchmark.length.js +++ b/lib/node_modules/@stdlib/array/base/n-cartesian-product/benchmark/benchmark.length.js @@ -25,6 +25,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var filledBy = require( '@stdlib/array/base/filled-by' ); var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory; var isArrayArray = require( '@stdlib/assert/is-array-array' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var nCartesianProduct = require( './../lib' ); @@ -91,7 +92,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':narrays=3,len='+len, f ); + bench( format( '%s:narrays=3,len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/base/nested2objects/benchmark/benchmark.js b/lib/node_modules/@stdlib/array/base/nested2objects/benchmark/benchmark.js index be401a1f16a1..29821e2999a9 100644 --- a/lib/node_modules/@stdlib/array/base/nested2objects/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/array/base/nested2objects/benchmark/benchmark.js @@ -23,13 +23,14 @@ var bench = require( '@stdlib/bench' ); var isArray = require( '@stdlib/assert/is-array' ); var filled2d = require( '@stdlib/array/base/filled2d' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var nested2objects = require( './../lib' ); // MAIN // -bench( pkg+':size=100', function benchmark( b ) { +bench( format( '%s:size=100', pkg ), function benchmark( b ) { var fields; var x; var i; diff --git a/lib/node_modules/@stdlib/array/base/nested2views/benchmark/benchmark.js b/lib/node_modules/@stdlib/array/base/nested2views/benchmark/benchmark.js index 8fbd66c176c2..92a4f60e9259 100644 --- a/lib/node_modules/@stdlib/array/base/nested2views/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/array/base/nested2views/benchmark/benchmark.js @@ -23,13 +23,14 @@ var bench = require( '@stdlib/bench' ); var isArray = require( '@stdlib/assert/is-array' ); var filled2d = require( '@stdlib/array/base/filled2d' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var nested2views = require( './../lib' ); // MAIN // -bench( pkg+':size=100', function benchmark( b ) { +bench( format( '%s:size=100', pkg ), function benchmark( b ) { var fields; var x; var i; diff --git a/lib/node_modules/@stdlib/array/complex128/README.md b/lib/node_modules/@stdlib/array/complex128/README.md index 2f1c930424d0..f700318485c0 100644 --- a/lib/node_modules/@stdlib/array/complex128/README.md +++ b/lib/node_modules/@stdlib/array/complex128/README.md @@ -282,8 +282,6 @@ The iterator returned by an iterable must return either a complex number or an a ```javascript var ITERATOR_SYMBOL = require( '@stdlib/symbol/iterator' ); var Float64Array = require( '@stdlib/array/float64' ); -var real = require( '@stdlib/complex/float64/real' ); -var imag = require( '@stdlib/complex/float64/imag' ); var iter; var arr; @@ -331,13 +329,7 @@ if ( ITERATOR_SYMBOL === null ) { // returns 2 z = arr.get( 0 ); - // returns - - re = real( z ); - // returns 1.0 - - im = imag( z ); - // returns -1.0 + // returns [ 1.0, -1.0 ] } ``` @@ -363,13 +355,7 @@ var len = arr.length; // returns 1 var z = arr.get( 0 ); -// returns - -var re = real( z ); -// returns 2.0 - -var im = imag( z ); -// returns -2.0 +// returns [ 2.0, -2.0 ] ``` or an array-like object containing real and imaginary components @@ -403,22 +389,10 @@ var len = arr.length; // returns 2 var z = arr.get( 0 ); -// returns - -var re = real( z ); -// returns 2.0 - -var im = imag( z ); -// returns -2.0 +// returns [ 2.0, -2.0 ] z = arr.get( 1 ); -// returns - -re = real( z ); -// returns 4.0 - -im = imag( z ); -// returns -4.0 +// returns [ 4.0, -4.0 ] ``` If `src` is an array-like object containing interleaved real and imaginary components, the callback is invoked for each component and should return the transformed component value. @@ -426,8 +400,6 @@ If `src` is an array-like object containing interleaved real and imaginary compo ```javascript var Float64Array = require( '@stdlib/array/float64' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/float64/real' ); -var imag = require( '@stdlib/complex/float64/imag' ); function map( v ) { return v * 2.0; @@ -444,13 +416,7 @@ var len = arr.length; // returns 1 var z = arr.get( 0 ); -// returns - -var re = real( z ); -// returns 2.0 - -var im = imag( z ); -// returns -2.0 +// returns [ 2.0, -2.0 ] ``` A callback function is provided two arguments: @@ -521,9 +487,6 @@ len = arr.length; Returns an array element located at integer position (index) `i`, with support for both nonnegative and negative integer positions. ```javascript -var real = require( '@stdlib/complex/float64/real' ); -var imag = require( '@stdlib/complex/float64/imag' ); - var arr = new Complex128Array( 10 ); // Set the first, second, and last elements: @@ -533,23 +496,11 @@ arr.set( [ 9.0, -9.0 ], 9 ); // Get the first element: var z = arr.at( 0 ); -// returns - -var re = real( z ); -// returns 1.0 - -var im = imag( z ); -// returns -1.0 +// returns [ 1.0, -1.0 ] // Get the last element: z = arr.at( -1 ); -// returns - -re = real( z ); -// returns 9.0 - -im = imag( z ); -// returns -9.0 +// returns [ 9.0, -9.0 ] ``` If provided an out-of-bounds index, the method returns `undefined`. @@ -572,8 +523,6 @@ Copies a sequence of elements within the array starting at `start` and ending at ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/float64/real' ); -var imag = require( '@stdlib/complex/float64/imag' ); var arr = new Complex128Array( 4 ); @@ -585,54 +534,28 @@ arr.set( new Complex128( 4.0, -4.0 ), 3 ); // Get the first array element: var z = arr.get( 0 ); -// returns - -var re = real( z ); -// returns 1.0 - -var im = imag( z ); -// returns -1.0 +// returns [ 1.0, -1.0 ] // Get the second array element: z = arr.get( 1 ); -// returns - -re = real( z ); -// returns 2.0 - -im = imag( z ); -// returns -2.0 +// returns [ 2.0, -2.0 ] // Copy the last two elements to the first two elements: arr.copyWithin( 0, 2 ); // Get the first array element: z = arr.get( 0 ); -// returns - -re = real( z ); -// returns 3.0 - -im = imag( z ); -// returns -3.0 +// returns [ 3.0, -3.0 ] // Get the second array element: z = arr.get( 1 ); -// returns - -re = real( z ); -// returns 4.0 - -im = imag( z ); -// returns -4.0 +// returns [ 4.0, -4.0 ] ``` By default, `end` equals the number of array elements (i.e., one more than the last array index). To limit the sequence length, provide an `end` argument. ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/float64/real' ); -var imag = require( '@stdlib/complex/float64/imag' ); var arr = new Complex128Array( 4 ); @@ -644,54 +567,28 @@ arr.set( new Complex128( 4.0, -4.0 ), 3 ); // Get the third array element: var z = arr.get( 2 ); -// returns - -var re = real( z ); -// returns 3.0 - -var im = imag( z ); -// returns -3.0 +// returns [ 3.0, -3.0 ] // Get the last array element: z = arr.get( 3 ); -// returns - -re = real( z ); -// returns 4.0 - -im = imag( z ); -// returns -4.0 +// returns [ 4.0, -4.0 ] // Copy the first two elements to the last two elements: arr.copyWithin( 2, 0, 2 ); // Get the third array element: z = arr.get( 2 ); -// returns - -re = real( z ); -// returns 1.0 - -im = imag( z ); -// returns -1.0 +// returns [ 1.0, -1.0 ] // Get the last array element: z = arr.get( 3 ); -// returns - -re = real( z ); -// returns 2.0 - -im = imag( z ); -// returns -2.0 +// returns [ 2.0, -2.0 ] ``` When a `target`, `start`, and/or `end` index is negative, the respective index is determined relative to the last array element. The following example achieves the same behavior as the previous example: ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/float64/real' ); -var imag = require( '@stdlib/complex/float64/imag' ); var arr = new Complex128Array( 4 ); @@ -703,46 +600,22 @@ arr.set( new Complex128( 4.0, -4.0 ), 3 ); // Get the third array element: var z = arr.get( 2 ); -// returns - -var re = real( z ); -// returns 3.0 - -var im = imag( z ); -// returns -3.0 +// returns [ 3.0, -3.0 ] // Get the last array element: z = arr.get( 3 ); -// returns - -re = real( z ); -// returns 4.0 - -im = imag( z ); -// returns -4.0 +// returns [ 4.0, -4.0 ] // Copy the first two elements to the last two elements using negative indices: arr.copyWithin( -2, -4, -2 ); // Get the third array element: z = arr.get( 2 ); -// returns - -re = real( z ); -// returns 1.0 - -im = imag( z ); -// returns -1.0 +// returns [ 1.0, -1.0 ] // Get the last array element: z = arr.get( 3 ); -// returns - -re = real( z ); -// returns 2.0 - -im = imag( z ); -// returns -2.0 +// returns [ 2.0, -2.0 ] ``` @@ -753,8 +626,6 @@ Returns an iterator for iterating over array key-value pairs. ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/float64/real' ); -var imag = require( '@stdlib/complex/float64/imag' ); var arr = [ new Complex128( 1.0, -1.0 ), @@ -768,31 +639,13 @@ var it = arr.entries(); // Iterate over the key-value pairs... var v = it.next().value; -// returns [ 0, ] - -var re = real( v[ 1 ] ); -// returns 1.0 - -var im = imag( v[ 1 ] ); -// returns -1.0 +// returns [ 0, [ 1.0, -1.0 ] ] v = it.next().value; -// returns [ 1, ] - -re = real( v[ 1 ] ); -// returns 2.0 - -im = imag( v[ 1 ] ); -// returns -2.0 +// returns [ 1, [ 2.0, -2.0 ] ] v = it.next().value; -// returns [ 2, ] - -re = real( v[ 1 ] ); -// returns 3.0 - -im = imag( v[ 1 ] ); -// returns -3.0 +// returns [ 2, [ 3.0, -3.0 ] ] var bool = it.next().done; // returns true @@ -864,8 +717,6 @@ Returns a modified typed array filled with a fill value. ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/float64/real' ); -var imag = require( '@stdlib/complex/float64/imag' ); var arr = new Complex128Array( 3 ); @@ -873,72 +724,34 @@ var arr = new Complex128Array( 3 ); arr.fill( new Complex128( 1.0, 1.0 ) ); var z = arr.get( 0 ); -// returns - -var re = real( z ); -// returns 1.0 - -var im = imag( z ); -// returns 1.0 +// returns [ 1.0, 1.0 ] z = arr.get( 2 ); -// returns - -re = real( z ); -// returns 1.0 - -im = imag( z ); -// returns 1.0 +// returns [ 1.0, 1.0 ] // Fill all elements starting from the second element: arr.fill( new Complex128( 2.0, 2.0 ), 1 ); z = arr.get( 1 ); -// returns - -re = real( z ); -// returns 2.0 - -im = imag( z ); -// returns 2.0 +// returns [ 2.0, 2.0 ] z = arr.get( 2 ); -// returns - -re = real( z ); -// returns 2.0 - -im = imag( z ); -// returns 2.0 +// returns [ 2.0, 2.0 ] // Fill all elements from first element until the second-to-last element: arr.fill( new Complex128( 3.0, 3.0 ), 0, 2 ); z = arr.get( 0 ); -// returns - -re = real( z ); -// returns 3.0 - -im = imag( z ); -// returns 3.0 +// returns [ 3.0, 3.0 ] z = arr.get( 1 ); -// returns - -re = real( z ); -// returns 3.0 - -im = imag( z ); -// returns 3.0 +// returns [ 3.0, 3.0 ] ``` When a `start` and/or `end` index is negative, the respective index is determined relative to the last array element. ```javascript var Complex128 = require( '@stdlib/complex/float64/ctor' ); -var real = require( '@stdlib/complex/float64/real' ); -var imag = require( '@stdlib/complex/float64/imag' ); var arr = new Complex128Array( 3 ); @@ -946,22 +759,10 @@ var arr = new Complex128Array( 3 ); arr.fill( new Complex128( 1.0, 1.0 ), 0, -1 ); var z = arr.get( 0 ); -// returns - -var re = real( z ); -// returns 1.0 - -var im = imag( z ); -// returns 1.0 +// returns [ 1.0, 1.0 ] z = arr.get( arr.length - 1 ); -// returns - -re = real( z ); -// returns 0.0 - -im = imag( z ); -// returns 0.0 +// returns [ 0.0, 0.0 ] ``` @@ -992,13 +793,7 @@ var len = out.length; // returns 1 var z = out.get( 0 ); -// returns - -var re = real( z ); -// returns 2.0 - -var im = imag( z ); -// returns 2.0 +// returns [ 2.0, 2.0 ] ``` The `predicate` function is provided three arguments: @@ -1061,13 +856,7 @@ arr.set( [ 2.0, 2.0 ], 1 ); arr.set( [ 3.0, 3.0 ], 2 ); var z = arr.find( predicate ); -// returns - -var re = real( z ); -// returns 1.0 - -var im = imag( z ); -// returns 1.0 +// returns [ 1.0, 1.0 ] ``` The `predicate` function is provided three arguments: @@ -1099,13 +888,7 @@ arr.set( [ 2.0, 2.0 ], 1 ); arr.set( [ 3.0, 3.0 ], 2 ); var z = arr.find( predicate, context ); -// returns - -var re = real( z ); -// returns 2.0 - -var im = imag( z ); -// returns 2.0 +// returns [ 2.0, 2.0 ] var count = context.count; // returns 2 @@ -1193,13 +976,7 @@ arr.set( [ 2.0, 2.0 ], 1 ); arr.set( [ 3.0, 3.0 ], 2 ); var z = arr.findLast( predicate ); -// returns - -var re = real( z ); -// returns 3.0 - -var im = imag( z ); -// returns 3.0 +// returns [ 3.0, 3.0 ] ``` The `predicate` function is provided three arguments: @@ -1231,13 +1008,7 @@ arr.set( [ 2.0, 2.0 ], 1 ); arr.set( [ 3.0, -3.0 ], 2 ); var z = arr.findLast( predicate, context ); -// returns - -var re = real( z ); -// returns 2.0 - -var im = imag( z ); -// returns 2.0 +// returns [ 2.0, 2.0 ] var count = context.count; // returns 2 diff --git a/lib/node_modules/@stdlib/array/complex128/docs/repl.txt b/lib/node_modules/@stdlib/array/complex128/docs/repl.txt index 0d99f99501cc..ef7ad30e5ce7 100644 --- a/lib/node_modules/@stdlib/array/complex128/docs/repl.txt +++ b/lib/node_modules/@stdlib/array/complex128/docs/repl.txt @@ -82,7 +82,7 @@ {{alias}}( obj ) - Creates a 128-bit complex number array from an array-like object or + Creates a 128-bit complex number array from an array-like object or iterable. Parameters @@ -165,12 +165,11 @@ thisArg: Any (optional) Callback execution context. - Returns ------- out: Complex128Array A typed array. - + Examples -------- > function clbkFcn( v ) { return v * 2.0 }; @@ -179,11 +178,7 @@ > var len = arr.length 2 > var z = arr.get( 0 ) - - > var re = {{alias:@stdlib/complex/float64/real}}( z ) - 2.0 - > var im = {{alias:@stdlib/complex/float64/imag}}( z ) - -2.0 + [ 2.0, -2.0 ] {{alias}}.of( element0[, element1[, ...elementN]] ) @@ -219,11 +214,7 @@ > len = arr.length 2 > var z = arr.get( 0 ) - - > var re = {{alias:@stdlib/complex/float64/real}}( z ) - 1.0 - > var im = {{alias:@stdlib/complex/float64/imag}}( z ) - -1.0 + [ 1.0, -1.0 ] {{alias}}.BYTES_PER_ELEMENT @@ -327,11 +318,7 @@ > var arr = new {{alias}}( [ 1.0, -1.0, 2.0, -2.0 ] ) > var z = arr.at( 1 ) - - > var re = {{alias:@stdlib/complex/float64/real}}( z ) - 2.0 - > var im = {{alias:@stdlib/complex/float64/imag}}( z ) - -2.0 + [ 2.0, -2.0 ] {{alias}}.prototype.copyWithin( target, start[, end] ) @@ -342,10 +329,10 @@ ---------- target: integer Target start index position. - + start: integer Source start index position. - + end: integer (optional) Source end index position. Default: out.length. @@ -353,7 +340,7 @@ ------- out: Complex128Array Modified array. - + Examples -------- > var arr = new {{alias}}( [ 1.0, -1.0, 2.0, -2.0, 3.0, -3.0, 4.0, -4.0 ] ) @@ -361,11 +348,7 @@ > arr.copyWithin( 0, 2 ) > var z = arr.get( 0 ) - - > var re = {{alias:@stdlib/complex/float64/real}}( z ) - 3.0 - > var im = {{alias:@stdlib/complex/float64/imag}}( z ) - -3.0 + [ 3.0, -3.0 ] {{alias}}.prototype.entries() @@ -382,23 +365,11 @@ > var it = arr.entries(); > var v = it.next().value - [ 0, ] - > var re = {{alias:@stdlib/complex/float64/real}}( v[ 1 ] ) - 1.0 - > var im = {{alias:@stdlib/complex/float64/imag}}( v[ 1 ] ) - -1.0 + [ 0, [ 1.0, -1.0 ] ] > v = it.next().value - [ 1, ] - > re = {{alias:@stdlib/complex/float64/real}}( v[ 1 ] ) - 2.0 - > im = {{alias:@stdlib/complex/float64/imag}}( v[ 1 ] ) - -2.0 + [ 1, [ 2.0, -2.0 ] ] > v = it.next().value - [ 2, ] - > re = {{alias:@stdlib/complex/float64/real}}( v[ 1 ] ) - 3.0 - > im = {{alias:@stdlib/complex/float64/imag}}( v[ 1 ] ) - -3.0 + [ 2, [ 3.0, -3.0 ] ] > var bool = it.next().done true @@ -456,30 +427,18 @@ ------- out: Complex128Array Modified array. - + Examples -------- > var arr = new {{alias}}( 3 ) > arr.fill( new {{alias:@stdlib/complex/float64/ctor}}( 1.0, 1.0 ) ); > var z = arr.get( 0 ) - - > var re = {{alias:@stdlib/complex/float64/real}}( z ) - 1.0 - > var im = {{alias:@stdlib/complex/float64/imag}}( z ) - 1.0 + [ 1.0, 1.0 ] > z = arr.get( 1 ) - - > re = {{alias:@stdlib/complex/float64/real}}( z ) - 1.0 - > im = {{alias:@stdlib/complex/float64/imag}}( z ) - 1.0 + [ 1.0, 1.0 ] > z = arr.get( 2 ) - - > re = {{alias:@stdlib/complex/float64/real}}( z ) - 1.0 - > im = {{alias:@stdlib/complex/float64/imag}}( z ) - 1.0 + [ 1.0, 1.0 ] {{alias}}.prototype.filter( predicate[, thisArg] ) @@ -508,7 +467,7 @@ ------- out: Complex128Array A new typed array. - + Examples -------- > function predicate( v ) { return ( {{alias:@stdlib/complex/float64/real}}( v ) === {{alias:@stdlib/complex/float64/imag}}( v ) ); }; @@ -519,11 +478,7 @@ > var len = out.length 1 > var z = out.get( 0 ) - - > var re = {{alias:@stdlib/complex/float64/real}}( z ) - 2.0 - > var im = {{alias:@stdlib/complex/float64/imag}}( z ) - 2.0 + [ 2.0, 2.0 ] {{alias}}.prototype.find( predicate[, thisArg] ) @@ -546,23 +501,19 @@ thisArg: Any (optional) Execution context. - + Returns ------- out: Complex128|void Array element or `undefined`. - + Examples -------- > function predicate( v ) { return ( {{alias:@stdlib/complex/float64/real}}( v ) === {{alias:@stdlib/complex/float64/imag}}( v ) ); }; > var arr = new {{alias}}( [ 1.0, 1.0, 2.0, 2.0, 3.0, -3.0 ] ) > var z = arr.find( predicate ) - - > var re = {{alias:@stdlib/complex/float64/real}}( z ) - 1.0 - > var im = {{alias:@stdlib/complex/float64/imag}}( z ) - 1.0 + [ 1.0, 1.0 ] {{alias}}.prototype.findIndex( predicate[, thisArg] ) @@ -585,12 +536,12 @@ thisArg: Any (optional) Execution context. - + Returns ------- out: integer Array index or `-1`. - + Examples -------- > function predicate( v ) { return ( {{alias:@stdlib/complex/float64/real}}( v ) === {{alias:@stdlib/complex/float64/imag}}( v ) ); }; @@ -619,24 +570,20 @@ Predicate function which tests array elements. thisArg: Any (optional) - Execution context. - + Execution context. + Returns ------- out: Complex128|void Array element or `undefined`. - + Examples -------- > function predicate( v ) { return ( {{alias:@stdlib/complex/float64/real}}( v ) === {{alias:@stdlib/complex/float64/imag}}( v ) ); }; > var arr = new {{alias}}( [ 1.0, 1.0, 2.0, 2.0, 3.0, -3.0 ] ) > var z = arr.findLast( predicate ) - - > var re = {{alias:@stdlib/complex/float64/real}}( z ) - 2.0 - > var im = {{alias:@stdlib/complex/float64/imag}}( z ) - 2.0 + [ 2.0, 2.0 ] {{alias}}.prototype.findLastIndex( predicate[, thisArg] ) @@ -664,7 +611,7 @@ ------- out: integer Array index or `-1`. - + Examples -------- > function predicate( v ) { return ( {{alias:@stdlib/complex/float64/real}}( v ) === {{alias:@stdlib/complex/float64/imag}}( v ) ); }; @@ -690,7 +637,7 @@ thisArg: Any (optional) Execution context. - + Examples -------- > var str = '%'; @@ -712,22 +659,18 @@ ---------- i: integer Element index. - + Returns ------- out: Complex128|void Array element or `undefined`. - + Examples -------- > var arr = new {{alias}}( [ 1.0, -1.0, 2.0, -2.0 ] ) > var z = arr.get( 1 ) - - > var re = {{alias:@stdlib/complex/float64/real}}( z ) - 2.0 - > var im = {{alias:@stdlib/complex/float64/imag}}( z ) - -2.0 + [ 2.0, -2.0 ] {{alias}}.prototype.includes( searchElement[, fromIndex] ) @@ -742,12 +685,12 @@ Array index at which to start the search. If provided a negative value, the method resolves the start index relative to the last array element. Default: 0. - + Returns ------- bool: boolean Boolean indicating whether an array includes a search element. - + Examples -------- > var arr = new {{alias}}( [ 1.0, -1.0, 2.0, -2.0, 3.0, -3.0, 4.0, -4.0 ] ) @@ -777,7 +720,7 @@ ------- out: integer Array index or `-1`. - + Examples -------- > var arr = new {{alias}}( [ 1.0, -1.0, 2.0, -2.0, 3.0, -3.0, 4.0, -4.0 ] ) @@ -796,12 +739,12 @@ ---------- separator: string (optional) Separator string. Default: ','. - + Returns ------- out: string Array serialized as a string. - + Examples -------- > var arr = new {{alias}}( [ 1.0, -1.0, 2.0, -2.0 ] ) @@ -819,7 +762,7 @@ ------- iterator: Iterator Iterator for iterating over array index keys. - + Examples -------- > var arr = new {{alias}}( [ 1.0, -1.0, 2.0, -2.0 ] ) @@ -847,12 +790,12 @@ Array index at which to start the search. If provided a negative value, the method resolves the start index relative to the last array element. Default: out.length-1. - + Returns ------- out: integer Array index or `-1`. - + Examples -------- > var arr = new {{alias}}( [ 1.0, -1.0, 2.0, -2.0, 3.0, -3.0, 1.0, -1.0 ] ) @@ -887,7 +830,7 @@ ------- out: Complex128Array A new typed array. - + Examples -------- > function clbk( v ) { return v; }; @@ -896,17 +839,9 @@ > var out = arr.map( clbk ) > var z = out.get( 0 ) - - > var re = {{alias:@stdlib/complex/float64/real}}( z ) - 1.0 - > var im = {{alias:@stdlib/complex/float64/imag}}( z ) - -1.0 + [ 1.0, -1.0 ] > z = out.get( 1 ) - - > re = {{alias:@stdlib/complex/float64/real}}( z ) - 2.0 - > im = {{alias:@stdlib/complex/float64/imag}}( z ) - -2.0 + [ 2.0, -2.0 ] {{alias}}.prototype.reduce( reducerFn[, initialValue] ) @@ -932,26 +867,22 @@ Parameters ---------- reducerFn: Function - Function to apply to each array element. + Function to apply to each array element. initialValue: any (optional) Initial accumulation value. - + Returns ------- out: any Accumulated result. - + Examples -------- > var arr = new {{alias}}( [ 1.0, -1.0, 2.0, -2.0 ] ) > var z = arr.reduce( {{alias:@stdlib/complex/float64/base/add}} ) - - > var re = {{alias:@stdlib/complex/float64/real}}( z ) - 3.0 - > var im = {{alias:@stdlib/complex/float64/imag}}( z ) - -3.0 + [ 3.0, -3.0 ] {{alias}}.prototype.reduceRight( reducerFn[, initialValue] ) @@ -981,22 +912,18 @@ initialValue: any (optional) Initial accumulation value. - + Returns ------- out: any Accumulated result. - + Examples -------- > var arr = new {{alias}}( [ 1.0, -1.0, 2.0, -2.0 ] ) > var z = arr.reduceRight( {{alias:@stdlib/complex/float64/base/add}} ) - - > var re = {{alias:@stdlib/complex/float64/real}}( z ) - 3.0 - > var im = {{alias:@stdlib/complex/float64/imag}}( z ) - -3.0 + [ 3.0, -3.0 ] {{alias}}.prototype.reverse() @@ -1015,23 +942,11 @@ > arr.reverse(); > var z = arr.get( 0 ) - - > var re = {{alias:@stdlib/complex/float64/real}}( z ) - 3.0 - > var im = {{alias:@stdlib/complex/float64/imag}}( z ) - -3.0 + [ 3.0, -3.0 ] > z = arr.get( 1 ) - - > re = {{alias:@stdlib/complex/float64/real}}( z ) - 2.0 - > im = {{alias:@stdlib/complex/float64/imag}}( z ) - -2.0 + [ 2.0, -2.0 ] > z = arr.get( 2 ) - - > re = {{alias:@stdlib/complex/float64/real}}( z ) - 1.0 - > im = {{alias:@stdlib/complex/float64/imag}}( z ) - -1.0 + [ 1.0, -1.0 ] {{alias}}.prototype.set( z[, i] ) @@ -1058,18 +973,10 @@ > arr.set( new {{alias:@stdlib/complex/float64/ctor}}( 1.0, -1.0 ) ); > var z = arr.get( 0 ) - - > var re = {{alias:@stdlib/complex/float64/real}}( z ) - 1.0 - > var im = {{alias:@stdlib/complex/float64/imag}}( z ) - -1.0 + [ 1.0, -1.0 ] > arr.set( new {{alias:@stdlib/complex/float64/ctor}}( 2.0, -2.0 ), 1 ); > z = arr.get( 1 ) - - > re = {{alias:@stdlib/complex/float64/real}}( z ) - 2.0 - > im = {{alias:@stdlib/complex/float64/imag}}( z ) - -2.0 + [ 2.0, -2.0 ] {{alias}}.prototype.slice( [start[, end]] ) @@ -1084,12 +991,12 @@ end: integer (optional) End index (non-inclusive). If less than zero, the end index is resolved relative to the last array element. Default: out.length. - + Returns ------- out: Complex128Array New typed array. - + Examples -------- > var arr = new {{alias}}( [ 1.0, -1.0, 2.0, -2.0, 3.0, -3.0 ] ) @@ -1099,17 +1006,9 @@ > var len = out.length 2 > var z = out.get( 0 ) - - > var re = {{alias:@stdlib/complex/float64/real}}( z ) - 2.0 - > var im = {{alias:@stdlib/complex/float64/imag}}( z ) - -2.0 + [ 2.0, -2.0 ] > z = out.get( 1 ) - - > re = {{alias:@stdlib/complex/float64/real}}( z ) - 3.0 - > im = {{alias:@stdlib/complex/float64/imag}}( z ) - -3.0 + [ 3.0, -3.0 ] {{alias}}.prototype.some( predicate[, thisArg] ) @@ -1127,15 +1026,15 @@ Predicate function which tests array elements. If a predicate function returns a truthy value, an array element passes; otherwise, an array element fails. - + thisArg: Any (optional) Execution context. - + Returns ------- bool: boolean Boolean indicating whether at least one element passes the test. - + Examples -------- > function predicate( v ) { return ( {{alias:@stdlib/complex/float64/real}}( v ) === {{alias:@stdlib/complex/float64/imag}}( v ) ); }; @@ -1162,12 +1061,12 @@ ---------- compareFunction: Function Comparison function. - + Returns ------- out: Complex128Array Modified array. - + Examples -------- > function compare( a, b ) { return ( {{alias:@stdlib/complex/float64/real}}( a ) - {{alias:@stdlib/complex/float64/real}}( b ) ); }; @@ -1175,23 +1074,11 @@ > arr.sort( compare ); > var z = arr.get( 0 ) - - > var re = {{alias:@stdlib/complex/float64/real}}( z ) - 1.0 - > var im = {{alias:@stdlib/complex/float64/imag}}( z ) - -1.0 + [ 1.0, -1.0 ] > z = arr.get( 1 ) - - > re = {{alias:@stdlib/complex/float64/real}}( z ) - 2.0 - > im = {{alias:@stdlib/complex/float64/imag}}( z ) - -2.0 + [ 2.0, -2.0 ] > z = arr.get( 2 ) - - > re = {{alias:@stdlib/complex/float64/real}}( z ) - 3.0 - > im = {{alias:@stdlib/complex/float64/imag}}( z ) - -3.0 + [ 3.0, -3.0 ] {{alias}}.prototype.subarray( [begin[, end]] ) @@ -1242,10 +1129,10 @@ ---------- locales: string|Array (optional) Locale identifier(s). - + options: Object (optional) An object containing serialization options. - + Returns ------- str: string @@ -1266,7 +1153,7 @@ ------- out: Complex128Array New typed array. - + Examples -------- > var arr = new {{alias}}( [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ] ) @@ -1310,12 +1197,12 @@ ---------- compareFcn: Function Comparison function. - + Returns ------- out: Complex128Array New typed array. - + Examples -------- > function compare( a, b ) { return ( {{alias:@stdlib/complex/float64/real}}( a ) - {{alias:@stdlib/complex/float64/real}}( b ) ); }; @@ -1349,7 +1236,7 @@ ------- str: string String serialization of the array. - + Examples -------- > var arr = new {{alias}}( [ 1.0, 1.0, 2.0, -2.0, 3.0, 3.0 ] ) @@ -1365,7 +1252,7 @@ ------- iterator: Iterator Iterator for iterating over array values. - + Examples -------- > var arr = new {{alias}}( [ 1.0, -1.0, 2.0, -2.0 ] ) @@ -1395,15 +1282,15 @@ ---------- index: integer Element index. - + value: Complex128 - Element value. + Element value. Returns ------- out: Complex128Array New typed array. - + Examples -------- > var arr = new {{alias}}( [ 1.0, -1.0, 2.0, -2.0 ] ) diff --git a/lib/node_modules/@stdlib/array/complex128/lib/main.js b/lib/node_modules/@stdlib/array/complex128/lib/main.js index d46359f10ec5..49bd1f0ac59c 100644 --- a/lib/node_modules/@stdlib/array/complex128/lib/main.js +++ b/lib/node_modules/@stdlib/array/complex128/lib/main.js @@ -550,41 +550,20 @@ setReadOnly( Complex128Array, 'of', function of() { * @returns {(Complex128|void)} array element * * @example -* var real = require( '@stdlib/complex/float64/real' ); -* var imag = require( '@stdlib/complex/float64/imag' ); -* * var arr = new Complex128Array( 10 ); * * var z = arr.at( 0 ); -* // returns -* -* var re = real( z ); -* // returns 0.0 -* -* var im = imag( z ); -* // returns 0.0 +* // returns [ 0.0, 0.0 ] * * arr.set( [ 1.0, -1.0 ], 0 ); * arr.set( [ 2.0, -2.0 ], 1 ); * arr.set( [ 9.0, -9.0 ], 9 ); * * z = arr.at( 0 ); -* // returns -* -* re = real( z ); -* // returns 1.0 -* -* im = imag( z ); -* // returns -1.0 +* // returns [ 1.0, -1.0 ] * * z = arr.at( -1 ); -* // returns -* -* re = real( z ); -* // returns 9.0 -* -* im = imag( z ); -* // returns -9.0 +* // returns [ 9.0, -9.0 ] * * z = arr.at( 100 ); * // returns undefined @@ -693,8 +672,6 @@ setReadOnly( Complex128Array.prototype, 'BYTES_PER_ELEMENT', Complex128Array.BYT * * @example * var Complex128 = require( '@stdlib/complex/float64/ctor' ); -* var real = require( '@stdlib/complex/float64/real' ); -* var imag = require( '@stdlib/complex/float64/imag' ); * * var arr = new Complex128Array( 4 ); * @@ -709,12 +686,7 @@ setReadOnly( Complex128Array.prototype, 'BYTES_PER_ELEMENT', Complex128Array.BYT * * // Get the last array element: * var z = arr.get( 3 ); -* -* var re = real( z ); -* // returns 2.0 -* -* var im = imag( z ); -* // returns 2.0 +* // returns [ 2.0, 2.0 ] */ setReadOnly( Complex128Array.prototype, 'copyWithin', function copyWithin( target, start ) { if ( !isComplexArray( this ) ) { @@ -909,30 +881,15 @@ setReadOnly( Complex128Array.prototype, 'every', function every( predicate, this * @returns {Complex128Array} modified array * * @example -* var real = require( '@stdlib/complex/float64/real' ); -* var imag = require( '@stdlib/complex/float64/imag' ); -* * var arr = new Complex128Array( 3 ); * * arr.fill( new Complex128( 1.0, 1.0 ), 1 ); * * var z = arr.get( 1 ); -* // returns -* -* var re = real( z ); -* // returns 1.0 -* -* var im = imag( z ); -* // returns 1.0 +* // returns [ 1.0, 1.0 ] * * z = arr.get( 2 ); -* // returns -* -* re = real( z ); -* // returns 1.0 -* -* im = imag( z ); -* // returns 1.0 +* // returns [ 1.0, 1.0 ] */ setReadOnly( Complex128Array.prototype, 'fill', function fill( value, start, end ) { var buf; @@ -1002,9 +959,6 @@ setReadOnly( Complex128Array.prototype, 'fill', function fill( value, start, end * @returns {Complex128Array} complex number array * * @example -* var real = require( '@stdlib/complex/float64/real' ); -* var imag = require( '@stdlib/complex/float64/imag' ); -* * function predicate( v ) { * return ( real( v ) === imag( v ) ); * } @@ -1022,13 +976,7 @@ setReadOnly( Complex128Array.prototype, 'fill', function fill( value, start, end * // returns 1 * * var z = out.get( 0 ); -* // returns -* -* var re = real( z ); -* // returns 2.0 -* -* var im = imag( z ); -* // returns 2.0 +* // returns [ 2.0, 2.0 ] */ setReadOnly( Complex128Array.prototype, 'filter', function filter( predicate, thisArg ) { var buf; @@ -1065,9 +1013,6 @@ setReadOnly( Complex128Array.prototype, 'filter', function filter( predicate, th * @returns {(Complex128|void)} array element or undefined * * @example -* var real = require( '@stdlib/complex/float64/real' ); -* var imag = require( '@stdlib/complex/float64/imag' ); -* * function predicate( v ) { * return ( real( v ) === imag( v ) ); * } @@ -1079,13 +1024,7 @@ setReadOnly( Complex128Array.prototype, 'filter', function filter( predicate, th * arr.set( [ 3.0, 3.0 ], 2 ); * * var z = arr.find( predicate ); -* // returns -* -* var re = real( z ); -* // returns 1.0 -* -* var im = imag( z ); -* // returns 1.0 +* // returns [ 1.0, 1.0 ] */ setReadOnly( Complex128Array.prototype, 'find', function find( predicate, thisArg ) { var buf; diff --git a/lib/node_modules/@stdlib/array/empty/lib/polyfill.js b/lib/node_modules/@stdlib/array/empty/lib/polyfill.js index 1d66e8cc4a7d..dc55fa3b62ef 100644 --- a/lib/node_modules/@stdlib/array/empty/lib/polyfill.js +++ b/lib/node_modules/@stdlib/array/empty/lib/polyfill.js @@ -20,6 +20,7 @@ // MODULES // +var BooleanArray = require( '@stdlib/array/bool' ); var zeros = require( '@stdlib/array/zeros' ); @@ -44,8 +45,14 @@ var zeros = require( '@stdlib/array/zeros' ); * // returns */ function empty( length ) { + var dt; if ( arguments.length > 1 ) { - return zeros( length, arguments[ 1 ] ); + dt = arguments[ 1 ]; + if ( dt === 'bool' ) { + // Special handle boolean arrays as `zeros` only supports numeric data types: + return new BooleanArray( length ); + } + return zeros( length, dt ); } return zeros( length ); } diff --git a/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.assign.complex128_complex.length.js b/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.assign.complex128_complex.length.js index b5b2976a5718..b3a0d58b9774 100644 --- a/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.assign.complex128_complex.length.js +++ b/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.assign.complex128_complex.length.js @@ -25,6 +25,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var isArrayLikeObject = require( '@stdlib/assert/is-array-like-object' ); var Complex128Array = require( '@stdlib/array/complex128' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var linspace = require( './../lib' ); @@ -94,7 +95,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::complex:assign:dtype=complex128,len='+len, f ); + bench( format( '%s::complex:assign:dtype=complex128,len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.assign.complex128_real.length.js b/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.assign.complex128_real.length.js index 2dd12338150f..124986165b25 100644 --- a/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.assign.complex128_real.length.js +++ b/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.assign.complex128_real.length.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var pow = require( '@stdlib/math/base/special/pow' ); var isArrayLikeObject = require( '@stdlib/assert/is-array-like-object' ); var Complex128Array = require( '@stdlib/array/complex128' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var linspace = require( './../lib' ); @@ -88,7 +89,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::real:assign:dtype=complex128,len='+len, f ); + bench( format( '%s::real:assign:dtype=complex128,len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.assign.complex64_complex.length.js b/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.assign.complex64_complex.length.js index a66c2b2050b5..1a88eab89b63 100644 --- a/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.assign.complex64_complex.length.js +++ b/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.assign.complex64_complex.length.js @@ -25,6 +25,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var isArrayLikeObject = require( '@stdlib/assert/is-array-like-object' ); var Complex64Array = require( '@stdlib/array/complex64' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var linspace = require( './../lib' ); @@ -94,7 +95,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::complex:assign:dtype=complex64,len='+len, f ); + bench( format( '%s::complex:assign:dtype=complex64,len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.assign.complex64_real.length.js b/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.assign.complex64_real.length.js index 2f4626042293..b765372fcda9 100644 --- a/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.assign.complex64_real.length.js +++ b/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.assign.complex64_real.length.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var pow = require( '@stdlib/math/base/special/pow' ); var isArrayLikeObject = require( '@stdlib/assert/is-array-like-object' ); var Complex64Array = require( '@stdlib/array/complex64' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var linspace = require( './../lib' ); @@ -88,7 +89,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::real:assign:dtype=complex64,len='+len, f ); + bench( format( '%s::real:assign:dtype=complex64,len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.assign.float32_real.length.js b/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.assign.float32_real.length.js index 1fd54f13c88e..a63ded7b4365 100644 --- a/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.assign.float32_real.length.js +++ b/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.assign.float32_real.length.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var pow = require( '@stdlib/math/base/special/pow' ); var isArrayLikeObject = require( '@stdlib/assert/is-array-like-object' ); var Float32Array = require( '@stdlib/array/float32' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var linspace = require( './../lib' ); @@ -88,7 +89,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::real:assign:dtype=float32,len='+len, f ); + bench( format( '%s::real:assign:dtype=float32,len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.assign.float64_real.length.js b/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.assign.float64_real.length.js index 870eb17e3602..38d9c6ecf003 100644 --- a/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.assign.float64_real.length.js +++ b/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.assign.float64_real.length.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var pow = require( '@stdlib/math/base/special/pow' ); var isArrayLikeObject = require( '@stdlib/assert/is-array-like-object' ); var Float64Array = require( '@stdlib/array/float64' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var linspace = require( './../lib' ); @@ -88,7 +89,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::real:assign:dtype=float64,len='+len, f ); + bench( format( '%s::real:assign:dtype=float64,len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.assign.generic_complex.length.js b/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.assign.generic_complex.length.js index e3fb500ffe03..b400003605b6 100644 --- a/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.assign.generic_complex.length.js +++ b/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.assign.generic_complex.length.js @@ -25,6 +25,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var isArrayLikeObject = require( '@stdlib/assert/is-array-like-object' ); var zeros = require( '@stdlib/array/base/zeros' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var linspace = require( './../lib' ); @@ -94,7 +95,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::complex:assign:dtype=generic,len='+len, f ); + bench( format( '%s::complex:assign:dtype=generic,len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.assign.generic_real.length.js b/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.assign.generic_real.length.js index a6982b39ed4f..1bcb72749720 100644 --- a/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.assign.generic_real.length.js +++ b/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.assign.generic_real.length.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var pow = require( '@stdlib/math/base/special/pow' ); var isArrayLikeObject = require( '@stdlib/assert/is-array-like-object' ); var zeros = require( '@stdlib/array/base/zeros' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var linspace = require( './../lib' ); @@ -88,7 +89,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::real:assign:dtype=generic,len='+len, f ); + bench( format( '%s::real:assign:dtype=generic,len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.assign.js b/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.assign.js index a5b169cd4db4..3d5eeb2c0e02 100644 --- a/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.assign.js +++ b/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.assign.js @@ -29,13 +29,14 @@ var Complex64Array = require( '@stdlib/array/complex64' ); var Float64Array = require( '@stdlib/array/float64' ); var Float32Array = require( '@stdlib/array/float32' ); var zeros = require( '@stdlib/array/base/zeros' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var linspace = require( './../lib' ); // MAIN // -bench( pkg+'::real:assign:dtype=float64', function benchmark( b ) { +bench( format( '%s::real:assign:dtype=float64', pkg ), function benchmark( b ) { var out; var v; var i; @@ -57,7 +58,7 @@ bench( pkg+'::real:assign:dtype=float64', function benchmark( b ) { b.end(); }); -bench( pkg+'::real:assign:dtype=float32', function benchmark( b ) { +bench( format( '%s::real:assign:dtype=float32', pkg ), function benchmark( b ) { var out; var v; var i; @@ -79,7 +80,7 @@ bench( pkg+'::real:assign:dtype=float32', function benchmark( b ) { b.end(); }); -bench( pkg+'::real:assign:dtype=generic', function benchmark( b ) { +bench( format( '%s::real:assign:dtype=generic', pkg ), function benchmark( b ) { var out; var v; var i; @@ -101,7 +102,7 @@ bench( pkg+'::real:assign:dtype=generic', function benchmark( b ) { b.end(); }); -bench( pkg+'::complex:assign:dtype=generic', function benchmark( b ) { +bench( format( '%s::complex:assign:dtype=generic', pkg ), function benchmark( b ) { var out; var x1; var x2; @@ -128,7 +129,7 @@ bench( pkg+'::complex:assign:dtype=generic', function benchmark( b ) { b.end(); }); -bench( pkg+'::real:assign:dtype=complex128', function benchmark( b ) { +bench( format( '%s::real:assign:dtype=complex128', pkg ), function benchmark( b ) { var out; var v; var i; @@ -150,7 +151,7 @@ bench( pkg+'::real:assign:dtype=complex128', function benchmark( b ) { b.end(); }); -bench( pkg+'::complex:assign:dtype=complex128', function benchmark( b ) { +bench( format( '%s::complex:assign:dtype=complex128', pkg ), function benchmark( b ) { var out; var x1; var x2; @@ -177,7 +178,7 @@ bench( pkg+'::complex:assign:dtype=complex128', function benchmark( b ) { b.end(); }); -bench( pkg+'::real:assign:dtype=complex64', function benchmark( b ) { +bench( format( '%s::real:assign:dtype=complex64', pkg ), function benchmark( b ) { var out; var v; var i; @@ -199,7 +200,7 @@ bench( pkg+'::real:assign:dtype=complex64', function benchmark( b ) { b.end(); }); -bench( pkg+'::complex:assign:dtype=complex64', function benchmark( b ) { +bench( format( '%s::complex:assign:dtype=complex64', pkg ), function benchmark( b ) { var out; var x1; var x2; diff --git a/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.complex128_complex.length.js b/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.complex128_complex.length.js index 0f7355ef80f9..56c5a41cbe78 100644 --- a/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.complex128_complex.length.js +++ b/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.complex128_complex.length.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var pow = require( '@stdlib/math/base/special/pow' ); var isArrayLikeObject = require( '@stdlib/assert/is-array-like-object' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var linspace = require( './../lib' ); @@ -97,7 +98,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::complex:dtype=complex128,len='+len, f ); + bench( format( '%s::complex:dtype=complex128,len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.complex128_real.length.js b/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.complex128_real.length.js index dd99221a9f6b..1b90e9f1a172 100644 --- a/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.complex128_real.length.js +++ b/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.complex128_real.length.js @@ -23,6 +23,7 @@ var bench = require( '@stdlib/bench' ); var pow = require( '@stdlib/math/base/special/pow' ); var isArrayLikeObject = require( '@stdlib/assert/is-array-like-object' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var linspace = require( './../lib' ); @@ -91,7 +92,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::real:dtype=complex128,len='+len, f ); + bench( format( '%s::real:dtype=complex128,len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.complex64_complex.length.js b/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.complex64_complex.length.js index 7645306a41b8..1f382e6ee398 100644 --- a/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.complex64_complex.length.js +++ b/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.complex64_complex.length.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var pow = require( '@stdlib/math/base/special/pow' ); var isArrayLikeObject = require( '@stdlib/assert/is-array-like-object' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var linspace = require( './../lib' ); @@ -97,7 +98,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::complex:dtype=complex64,len='+len, f ); + bench( format( '%s::complex:dtype=complex64,len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.complex64_real.length.js b/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.complex64_real.length.js index 555079cbe08c..64b61e463688 100644 --- a/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.complex64_real.length.js +++ b/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.complex64_real.length.js @@ -23,6 +23,7 @@ var bench = require( '@stdlib/bench' ); var pow = require( '@stdlib/math/base/special/pow' ); var isArrayLikeObject = require( '@stdlib/assert/is-array-like-object' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var linspace = require( './../lib' ); @@ -91,7 +92,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::real:dtype=complex64,len='+len, f ); + bench( format( '%s::real:dtype=complex64,len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.default_complex.length.js b/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.default_complex.length.js index c62d1ea6df4f..9933d704a16e 100644 --- a/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.default_complex.length.js +++ b/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.default_complex.length.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var pow = require( '@stdlib/math/base/special/pow' ); var isArrayLikeObject = require( '@stdlib/assert/is-array-like-object' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var linspace = require( './../lib' ); @@ -92,7 +93,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::default,complex:len='+len, f ); + bench( format( '%s::default,complex:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.default_real.length.js b/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.default_real.length.js index 3f6c47f1e534..d157a4e090da 100644 --- a/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.default_real.length.js +++ b/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.default_real.length.js @@ -23,6 +23,7 @@ var bench = require( '@stdlib/bench' ); var pow = require( '@stdlib/math/base/special/pow' ); var isArrayLikeObject = require( '@stdlib/assert/is-array-like-object' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var linspace = require( './../lib' ); @@ -86,7 +87,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::default,real:len='+len, f ); + bench( format( '%s::default,real:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.float32_real.length.js b/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.float32_real.length.js index 6060169cca00..2d0b79f170b9 100644 --- a/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.float32_real.length.js +++ b/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.float32_real.length.js @@ -23,6 +23,7 @@ var bench = require( '@stdlib/bench' ); var pow = require( '@stdlib/math/base/special/pow' ); var isArrayLikeObject = require( '@stdlib/assert/is-array-like-object' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var linspace = require( './../lib' ); @@ -91,7 +92,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::real:dtype=float32,len='+len, f ); + bench( format( '%s::real:dtype=float32,len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.float64_real.length.js b/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.float64_real.length.js index c872cad4e070..8e29232b7b15 100644 --- a/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.float64_real.length.js +++ b/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.float64_real.length.js @@ -23,6 +23,7 @@ var bench = require( '@stdlib/bench' ); var pow = require( '@stdlib/math/base/special/pow' ); var isArrayLikeObject = require( '@stdlib/assert/is-array-like-object' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var linspace = require( './../lib' ); @@ -91,7 +92,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::real:dtype=float64,len='+len, f ); + bench( format( '%s::real:dtype=float64,len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.generic_complex.length.js b/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.generic_complex.length.js index fb184b7fa9d4..dba4d937c6dd 100644 --- a/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.generic_complex.length.js +++ b/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.generic_complex.length.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var pow = require( '@stdlib/math/base/special/pow' ); var isArrayLikeObject = require( '@stdlib/assert/is-array-like-object' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var linspace = require( './../lib' ); @@ -97,7 +98,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::complex:dtype=generic,len='+len, f ); + bench( format( '%s::complex:dtype=generic,len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.generic_real.length.js b/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.generic_real.length.js index edfc25d1d2b0..957281a2e713 100644 --- a/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.generic_real.length.js +++ b/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.generic_real.length.js @@ -23,6 +23,7 @@ var bench = require( '@stdlib/bench' ); var pow = require( '@stdlib/math/base/special/pow' ); var isArrayLikeObject = require( '@stdlib/assert/is-array-like-object' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var linspace = require( './../lib' ); @@ -91,7 +92,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::real:dtype=generic,len='+len, f ); + bench( format( '%s::real:dtype=generic,len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.js b/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.js index 79dd2a47dd29..e9bde16f0701 100644 --- a/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/array/linspace/benchmark/benchmark.js @@ -24,13 +24,14 @@ var bench = require( '@stdlib/bench' ); var isArrayLikeObject = require( '@stdlib/assert/is-array-like-object' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var linspace = require( './../lib' ); // MAIN // -bench( pkg+'::default,real', function benchmark( b ) { +bench( format( '%s::default,real', pkg ), function benchmark( b ) { var v; var i; @@ -49,7 +50,7 @@ bench( pkg+'::default,real', function benchmark( b ) { b.end(); }); -bench( pkg+'::default,complex', function benchmark( b ) { +bench( format( '%s::default,complex', pkg ), function benchmark( b ) { var x1; var x2; var v; @@ -73,7 +74,7 @@ bench( pkg+'::default,complex', function benchmark( b ) { b.end(); }); -bench( pkg+'::real:dtype=float64', function benchmark( b ) { +bench( format( '%s::real:dtype=float64', pkg ), function benchmark( b ) { var opts; var v; var i; @@ -97,7 +98,7 @@ bench( pkg+'::real:dtype=float64', function benchmark( b ) { b.end(); }); -bench( pkg+'::real:dtype=float32', function benchmark( b ) { +bench( format( '%s::real:dtype=float32', pkg ), function benchmark( b ) { var opts; var v; var i; @@ -121,7 +122,7 @@ bench( pkg+'::real:dtype=float32', function benchmark( b ) { b.end(); }); -bench( pkg+'::real:dtype=generic', function benchmark( b ) { +bench( format( '%s::real:dtype=generic', pkg ), function benchmark( b ) { var opts; var v; var i; @@ -145,7 +146,7 @@ bench( pkg+'::real:dtype=generic', function benchmark( b ) { b.end(); }); -bench( pkg+'::complex:dtype=generic', function benchmark( b ) { +bench( format( '%s::complex:dtype=generic', pkg ), function benchmark( b ) { var opts; var x1; var x2; @@ -174,7 +175,7 @@ bench( pkg+'::complex:dtype=generic', function benchmark( b ) { b.end(); }); -bench( pkg+'::real:dtype=complex128', function benchmark( b ) { +bench( format( '%s::real:dtype=complex128', pkg ), function benchmark( b ) { var opts; var v; var i; @@ -198,7 +199,7 @@ bench( pkg+'::real:dtype=complex128', function benchmark( b ) { b.end(); }); -bench( pkg+'::complex:dtype=complex128', function benchmark( b ) { +bench( format( '%s::complex:dtype=complex128', pkg ), function benchmark( b ) { var opts; var x1; var x2; @@ -227,7 +228,7 @@ bench( pkg+'::complex:dtype=complex128', function benchmark( b ) { b.end(); }); -bench( pkg+'::real:dtype=complex64', function benchmark( b ) { +bench( format( '%s::real:dtype=complex64', pkg ), function benchmark( b ) { var opts; var v; var i; @@ -251,7 +252,7 @@ bench( pkg+'::real:dtype=complex64', function benchmark( b ) { b.end(); }); -bench( pkg+'::complex:dtype=complex64', function benchmark( b ) { +bench( format( '%s::complex:dtype=complex64', pkg ), function benchmark( b ) { var opts; var x1; var x2; diff --git a/lib/node_modules/@stdlib/array/little-endian-float32/benchmark/benchmark.from.js b/lib/node_modules/@stdlib/array/little-endian-float32/benchmark/benchmark.from.js index 7045afda885c..7a04aabe851a 100644 --- a/lib/node_modules/@stdlib/array/little-endian-float32/benchmark/benchmark.from.js +++ b/lib/node_modules/@stdlib/array/little-endian-float32/benchmark/benchmark.from.js @@ -23,6 +23,7 @@ var bench = require( '@stdlib/bench' ); var Float32Array = require( '@stdlib/array/float32' ); var ITERATOR_SYMBOL = require( '@stdlib/symbol/iterator' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var Float32ArrayLE = require( './../lib' ); @@ -36,7 +37,7 @@ var opts = { // MAIN // -bench( pkg+'::typed_array:from', function benchmark( b ) { +bench( format( '%s::typed_array:from', pkg ), function benchmark( b ) { var buf; var arr; var i; @@ -58,7 +59,7 @@ bench( pkg+'::typed_array:from', function benchmark( b ) { b.end(); }); -bench( pkg+'::typed_array:from:len=5', function benchmark( b ) { +bench( format( '%s::typed_array:from:len=5', pkg ), function benchmark( b ) { var buf; var arr; var i; @@ -80,7 +81,7 @@ bench( pkg+'::typed_array:from:len=5', function benchmark( b ) { b.end(); }); -bench( pkg+'::typed_array,clbk:from:len=5', function benchmark( b ) { +bench( format( '%s::typed_array,clbk:from:len=5', pkg ), function benchmark( b ) { var buf; var arr; var i; @@ -106,7 +107,7 @@ bench( pkg+'::typed_array,clbk:from:len=5', function benchmark( b ) { } }); -bench( pkg+'::array:from', function benchmark( b ) { +bench( format( '%s::array:from', pkg ), function benchmark( b ) { var buf; var arr; var i; @@ -128,7 +129,7 @@ bench( pkg+'::array:from', function benchmark( b ) { b.end(); }); -bench( pkg+'::array:from:len=5', function benchmark( b ) { +bench( format( '%s::array:from:len=5', pkg ), function benchmark( b ) { var buf; var arr; var i; @@ -150,7 +151,7 @@ bench( pkg+'::array:from:len=5', function benchmark( b ) { b.end(); }); -bench( pkg+'::array,clbk:from:len=5', function benchmark( b ) { +bench( format( '%s::array,clbk:from:len=5', pkg ), function benchmark( b ) { var buf; var arr; var i; @@ -176,7 +177,7 @@ bench( pkg+'::array,clbk:from:len=5', function benchmark( b ) { } }); -bench( pkg+'::iterable:from', opts, function benchmark( b ) { +bench( format( '%s::iterable:from', pkg ), opts, function benchmark( b ) { var arr; var i; @@ -213,7 +214,7 @@ bench( pkg+'::iterable:from', opts, function benchmark( b ) { } }); -bench( pkg+'::iterable:from:len=5', opts, function benchmark( b ) { +bench( format( '%s::iterable:from:len=5', pkg ), opts, function benchmark( b ) { var arr; var i; @@ -259,7 +260,7 @@ bench( pkg+'::iterable:from:len=5', opts, function benchmark( b ) { } }); -bench( pkg+'::iterable,clbk:from:len=5', opts, function benchmark( b ) { +bench( format( '%s::iterable,clbk:from:len=5', pkg ), opts, function benchmark( b ) { var arr; var i; diff --git a/lib/node_modules/@stdlib/array/little-endian-float32/benchmark/benchmark.get.js b/lib/node_modules/@stdlib/array/little-endian-float32/benchmark/benchmark.get.js index 753a76288fa0..9871358a0d28 100644 --- a/lib/node_modules/@stdlib/array/little-endian-float32/benchmark/benchmark.get.js +++ b/lib/node_modules/@stdlib/array/little-endian-float32/benchmark/benchmark.get.js @@ -22,13 +22,14 @@ var bench = require( '@stdlib/bench' ); var isNumber = require( '@stdlib/assert/is-number' ).isPrimitive; +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var Float32ArrayLE = require( './../lib' ); // MAIN // -bench( pkg+':get', function benchmark( b ) { +bench( format( '%s:get', pkg ), function benchmark( b ) { var arr; var N; var v; diff --git a/lib/node_modules/@stdlib/array/little-endian-float32/benchmark/benchmark.js b/lib/node_modules/@stdlib/array/little-endian-float32/benchmark/benchmark.js index da6a622ffbd7..a54ea76b8393 100644 --- a/lib/node_modules/@stdlib/array/little-endian-float32/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/array/little-endian-float32/benchmark/benchmark.js @@ -26,6 +26,7 @@ var Float32Array = require( '@stdlib/array/float32' ); var isArrayBuffer = require( '@stdlib/assert/is-arraybuffer' ); var isNonNegativeInteger = require( '@stdlib/assert/is-nonnegative-integer' ).isPrimitive; var ITERATOR_SYMBOL = require( '@stdlib/symbol/iterator' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var Float32ArrayLE = require( './../lib' ); @@ -66,7 +67,7 @@ function createIterable() { // MAIN // -bench( pkg+'::instantiation,new', function benchmark( b ) { +bench( format( '%s::instantiation,new', pkg ), function benchmark( b ) { var arr; var i; b.tic(); @@ -84,7 +85,7 @@ bench( pkg+'::instantiation,new', function benchmark( b ) { b.end(); }); -bench( pkg+'::instantiation,no_new', function benchmark( b ) { +bench( format( '%s::instantiation,no_new', pkg ), function benchmark( b ) { var ctor; var arr; var i; @@ -106,7 +107,7 @@ bench( pkg+'::instantiation,no_new', function benchmark( b ) { b.end(); }); -bench( pkg+'::instantiation,length', function benchmark( b ) { +bench( format( '%s::instantiation,length', pkg ), function benchmark( b ) { var arr; var i; b.tic(); @@ -124,7 +125,7 @@ bench( pkg+'::instantiation,length', function benchmark( b ) { b.end(); }); -bench( pkg+'::instantiation,typed_array', function benchmark( b ) { +bench( format( '%s::instantiation,typed_array', pkg ), function benchmark( b ) { var buf; var arr; var i; @@ -146,7 +147,7 @@ bench( pkg+'::instantiation,typed_array', function benchmark( b ) { b.end(); }); -bench( pkg+'::instantiation,array', function benchmark( b ) { +bench( format( '%s::instantiation,array', pkg ), function benchmark( b ) { var buf; var arr; var i; @@ -168,7 +169,7 @@ bench( pkg+'::instantiation,array', function benchmark( b ) { b.end(); }); -bench( pkg+'::instantiation,iterable', opts, function benchmark( b ) { +bench( format( '%s::instantiation,iterable', pkg ), opts, function benchmark( b ) { var arr; var i; @@ -187,7 +188,7 @@ bench( pkg+'::instantiation,iterable', opts, function benchmark( b ) { b.end(); }); -bench( pkg+'::instantiation,arraybuffer', function benchmark( b ) { +bench( format( '%s::instantiation,arraybuffer', pkg ), function benchmark( b ) { var buf; var arr; var i; @@ -209,7 +210,7 @@ bench( pkg+'::instantiation,arraybuffer', function benchmark( b ) { b.end(); }); -bench( pkg+'::instantiation,arraybuffer,byte_offset', function benchmark( b ) { +bench( format( '%s::instantiation,arraybuffer,byte_offset', pkg ), function benchmark( b ) { var buf; var arr; var i; @@ -231,7 +232,7 @@ bench( pkg+'::instantiation,arraybuffer,byte_offset', function benchmark( b ) { b.end(); }); -bench( pkg+'::instantiation,arraybuffer,byte_offset,length', function benchmark( b ) { +bench( format( '%s::instantiation,arraybuffer,byte_offset,length', pkg ), function benchmark( b ) { var buf; var arr; var i; @@ -253,7 +254,7 @@ bench( pkg+'::instantiation,arraybuffer,byte_offset,length', function benchmark( b.end(); }); -bench( pkg+'::get:buffer', function benchmark( b ) { +bench( format( '%s::get:buffer', pkg ), function benchmark( b ) { var arr; var v; var i; @@ -276,7 +277,7 @@ bench( pkg+'::get:buffer', function benchmark( b ) { b.end(); }); -bench( pkg+'::get:byteLength', function benchmark( b ) { +bench( format( '%s::get:byteLength', pkg ), function benchmark( b ) { var arr; var v; var i; @@ -299,7 +300,7 @@ bench( pkg+'::get:byteLength', function benchmark( b ) { b.end(); }); -bench( pkg+'::get:byteOffset', function benchmark( b ) { +bench( format( '%s::get:byteOffset', pkg ), function benchmark( b ) { var arr; var v; var i; @@ -322,7 +323,7 @@ bench( pkg+'::get:byteOffset', function benchmark( b ) { b.end(); }); -bench( pkg+'::get:length', function benchmark( b ) { +bench( format( '%s::get:length', pkg ), function benchmark( b ) { var arr; var v; var i; diff --git a/lib/node_modules/@stdlib/array/little-endian-float32/benchmark/benchmark.of.js b/lib/node_modules/@stdlib/array/little-endian-float32/benchmark/benchmark.of.js index d0d1b40a9902..e1d1db90d339 100644 --- a/lib/node_modules/@stdlib/array/little-endian-float32/benchmark/benchmark.of.js +++ b/lib/node_modules/@stdlib/array/little-endian-float32/benchmark/benchmark.of.js @@ -21,13 +21,14 @@ // MODULES // var bench = require( '@stdlib/bench' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var Float32ArrayLE = require( './../lib' ); // MAIN // -bench( pkg+':of', function benchmark( b ) { +bench( format( '%s:of', pkg ), function benchmark( b ) { var arr; var i; @@ -46,7 +47,7 @@ bench( pkg+':of', function benchmark( b ) { b.end(); }); -bench( pkg+':len=5', function benchmark( b ) { +bench( format( '%s:of:len=5', pkg ), function benchmark( b ) { var buf; var arr; var i; diff --git a/lib/node_modules/@stdlib/array/little-endian-float32/benchmark/benchmark.set.js b/lib/node_modules/@stdlib/array/little-endian-float32/benchmark/benchmark.set.js index 611c7413b289..3c8d7061b140 100644 --- a/lib/node_modules/@stdlib/array/little-endian-float32/benchmark/benchmark.set.js +++ b/lib/node_modules/@stdlib/array/little-endian-float32/benchmark/benchmark.set.js @@ -22,13 +22,14 @@ var bench = require( '@stdlib/bench' ); var Float32Array = require( '@stdlib/array/float32' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var Float32ArrayLE = require( './../lib' ); // MAIN // -bench( pkg+'::number:set', function benchmark( b ) { +bench( format( '%s::number:set', pkg ), function benchmark( b ) { var values; var arr; var N; @@ -57,7 +58,7 @@ bench( pkg+'::number:set', function benchmark( b ) { b.end(); }); -bench( pkg+'::array:set', function benchmark( b ) { +bench( format( '%s::array:set', pkg ), function benchmark( b ) { var values; var arr; var N; @@ -86,7 +87,7 @@ bench( pkg+'::array:set', function benchmark( b ) { b.end(); }); -bench( pkg+'::typed_array:set', function benchmark( b ) { +bench( format( '%s::typed_array:set', pkg ), function benchmark( b ) { var values; var arr; var buf; diff --git a/lib/node_modules/@stdlib/array/little-endian-float32/benchmark/benchmark.set.length.js b/lib/node_modules/@stdlib/array/little-endian-float32/benchmark/benchmark.set.length.js index 052841da0741..de41916d60d0 100644 --- a/lib/node_modules/@stdlib/array/little-endian-float32/benchmark/benchmark.set.length.js +++ b/lib/node_modules/@stdlib/array/little-endian-float32/benchmark/benchmark.set.length.js @@ -23,6 +23,7 @@ var bench = require( '@stdlib/bench' ); var pow = require( '@stdlib/math/base/special/pow' ); var randu = require( '@stdlib/random/array/randu' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var Float32ArrayLE = require( './../lib' ); @@ -103,7 +104,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':set:len='+len, f ); + bench( format( '%s:set:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/little-endian-float32/benchmark/benchmark.to_string.js b/lib/node_modules/@stdlib/array/little-endian-float32/benchmark/benchmark.to_string.js index 198b9663cee1..cc9ff4a40f82 100644 --- a/lib/node_modules/@stdlib/array/little-endian-float32/benchmark/benchmark.to_string.js +++ b/lib/node_modules/@stdlib/array/little-endian-float32/benchmark/benchmark.to_string.js @@ -21,13 +21,14 @@ // MODULES // var bench = require( '@stdlib/bench' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var Float32ArrayLE = require( './../lib' ); // MAIN // -bench( pkg+':toString', function benchmark( b ) { +bench( format( '%s:toString', pkg ), function benchmark( b ) { var out; var arr; var i; diff --git a/lib/node_modules/@stdlib/array/little-endian-float32/benchmark/benchmark.to_string.length.js b/lib/node_modules/@stdlib/array/little-endian-float32/benchmark/benchmark.to_string.length.js index c63c245058bc..2a1b7d931d04 100644 --- a/lib/node_modules/@stdlib/array/little-endian-float32/benchmark/benchmark.to_string.length.js +++ b/lib/node_modules/@stdlib/array/little-endian-float32/benchmark/benchmark.to_string.length.js @@ -23,6 +23,7 @@ var bench = require( '@stdlib/bench' ); var pow = require( '@stdlib/math/base/special/pow' ); var zeroTo = require( '@stdlib/array/zero-to' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var Float32ArrayLE = require( './../lib' ); @@ -87,7 +88,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':toString:len='+len, f ); + bench( format( '%s:toString:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/little-endian-float64/benchmark/benchmark.from.js b/lib/node_modules/@stdlib/array/little-endian-float64/benchmark/benchmark.from.js index 2cd64477a5b3..aa16a2559693 100644 --- a/lib/node_modules/@stdlib/array/little-endian-float64/benchmark/benchmark.from.js +++ b/lib/node_modules/@stdlib/array/little-endian-float64/benchmark/benchmark.from.js @@ -23,6 +23,7 @@ var bench = require( '@stdlib/bench' ); var Float64Array = require( '@stdlib/array/float64' ); var ITERATOR_SYMBOL = require( '@stdlib/symbol/iterator' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var Float64ArrayLE = require( './../lib' ); @@ -36,7 +37,7 @@ var opts = { // MAIN // -bench( pkg+'::typed_array:from', function benchmark( b ) { +bench( format( '%s::typed_array:from', pkg ), function benchmark( b ) { var buf; var arr; var i; @@ -58,7 +59,7 @@ bench( pkg+'::typed_array:from', function benchmark( b ) { b.end(); }); -bench( pkg+'::typed_array:from:len=5', function benchmark( b ) { +bench( format( '%s::typed_array:from:len=5', pkg ), function benchmark( b ) { var buf; var arr; var i; @@ -80,7 +81,7 @@ bench( pkg+'::typed_array:from:len=5', function benchmark( b ) { b.end(); }); -bench( pkg+'::typed_array,clbk:from:len=5', function benchmark( b ) { +bench( format( '%s::typed_array,clbk:from:len=5', pkg ), function benchmark( b ) { var buf; var arr; var i; @@ -106,7 +107,7 @@ bench( pkg+'::typed_array,clbk:from:len=5', function benchmark( b ) { } }); -bench( pkg+'::array:from', function benchmark( b ) { +bench( format( '%s::array:from', pkg ), function benchmark( b ) { var buf; var arr; var i; @@ -128,7 +129,7 @@ bench( pkg+'::array:from', function benchmark( b ) { b.end(); }); -bench( pkg+'::array:from:len=5', function benchmark( b ) { +bench( format( '%s::array:from:len=5', pkg ), function benchmark( b ) { var buf; var arr; var i; @@ -150,7 +151,7 @@ bench( pkg+'::array:from:len=5', function benchmark( b ) { b.end(); }); -bench( pkg+'::array,clbk:from:len=5', function benchmark( b ) { +bench( format( '%s::array,clbk:from:len=5', pkg ), function benchmark( b ) { var buf; var arr; var i; @@ -176,7 +177,7 @@ bench( pkg+'::array,clbk:from:len=5', function benchmark( b ) { } }); -bench( pkg+'::iterable:from', opts, function benchmark( b ) { +bench( format( '%s::iterable:from', pkg ), opts, function benchmark( b ) { var arr; var i; @@ -213,7 +214,7 @@ bench( pkg+'::iterable:from', opts, function benchmark( b ) { } }); -bench( pkg+'::iterable:from:len=5', opts, function benchmark( b ) { +bench( format( '%s::iterable:from:len=5', pkg ), opts, function benchmark( b ) { var arr; var i; @@ -259,7 +260,7 @@ bench( pkg+'::iterable:from:len=5', opts, function benchmark( b ) { } }); -bench( pkg+'::iterable,clbk:from:len=5', opts, function benchmark( b ) { +bench( format( '%s::iterable,clbk:from:len=5', pkg ), opts, function benchmark( b ) { var arr; var i; diff --git a/lib/node_modules/@stdlib/array/little-endian-float64/benchmark/benchmark.get.js b/lib/node_modules/@stdlib/array/little-endian-float64/benchmark/benchmark.get.js index 127c09523b32..809e0f3fdeb4 100644 --- a/lib/node_modules/@stdlib/array/little-endian-float64/benchmark/benchmark.get.js +++ b/lib/node_modules/@stdlib/array/little-endian-float64/benchmark/benchmark.get.js @@ -22,13 +22,14 @@ var bench = require( '@stdlib/bench' ); var isNumber = require( '@stdlib/assert/is-number' ).isPrimitive; +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var Float64ArrayLE = require( './../lib' ); // MAIN // -bench( pkg+':get', function benchmark( b ) { +bench( format( '%s:get', pkg ), function benchmark( b ) { var arr; var N; var v; diff --git a/lib/node_modules/@stdlib/array/little-endian-float64/benchmark/benchmark.js b/lib/node_modules/@stdlib/array/little-endian-float64/benchmark/benchmark.js index 51dababfb749..b8b50410bab0 100644 --- a/lib/node_modules/@stdlib/array/little-endian-float64/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/array/little-endian-float64/benchmark/benchmark.js @@ -26,6 +26,7 @@ var Float64Array = require( '@stdlib/array/float64' ); var isArrayBuffer = require( '@stdlib/assert/is-arraybuffer' ); var isNonNegativeInteger = require( '@stdlib/assert/is-nonnegative-integer' ).isPrimitive; var ITERATOR_SYMBOL = require( '@stdlib/symbol/iterator' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var Float64ArrayLE = require( './../lib' ); @@ -66,7 +67,7 @@ function createIterable() { // MAIN // -bench( pkg+'::instantiation,new', function benchmark( b ) { +bench( format( '%s::instantiation,new', pkg ), function benchmark( b ) { var arr; var i; b.tic(); @@ -84,7 +85,7 @@ bench( pkg+'::instantiation,new', function benchmark( b ) { b.end(); }); -bench( pkg+'::instantiation,no_new', function benchmark( b ) { +bench( format( '%s::instantiation,no_new', pkg ), function benchmark( b ) { var ctor; var arr; var i; @@ -106,7 +107,7 @@ bench( pkg+'::instantiation,no_new', function benchmark( b ) { b.end(); }); -bench( pkg+'::instantiation,length', function benchmark( b ) { +bench( format( '%s::instantiation,length', pkg ), function benchmark( b ) { var arr; var i; b.tic(); @@ -124,7 +125,7 @@ bench( pkg+'::instantiation,length', function benchmark( b ) { b.end(); }); -bench( pkg+'::instantiation,typed_array', function benchmark( b ) { +bench( format( '%s::instantiation,typed_array', pkg ), function benchmark( b ) { var buf; var arr; var i; @@ -146,7 +147,7 @@ bench( pkg+'::instantiation,typed_array', function benchmark( b ) { b.end(); }); -bench( pkg+'::instantiation,array', function benchmark( b ) { +bench( format( '%s::instantiation,array', pkg ), function benchmark( b ) { var buf; var arr; var i; @@ -168,7 +169,7 @@ bench( pkg+'::instantiation,array', function benchmark( b ) { b.end(); }); -bench( pkg+'::instantiation,iterable', opts, function benchmark( b ) { +bench( format( '%s::instantiation,iterable', pkg ), opts, function benchmark( b ) { var arr; var i; @@ -187,7 +188,7 @@ bench( pkg+'::instantiation,iterable', opts, function benchmark( b ) { b.end(); }); -bench( pkg+'::instantiation,arraybuffer', function benchmark( b ) { +bench( format( '%s::instantiation,arraybuffer', pkg ), function benchmark( b ) { var buf; var arr; var i; @@ -209,7 +210,7 @@ bench( pkg+'::instantiation,arraybuffer', function benchmark( b ) { b.end(); }); -bench( pkg+'::instantiation,arraybuffer,byte_offset', function benchmark( b ) { +bench( format( '%s::instantiation,arraybuffer,byte_offset', pkg ), function benchmark( b ) { var buf; var arr; var i; @@ -231,7 +232,7 @@ bench( pkg+'::instantiation,arraybuffer,byte_offset', function benchmark( b ) { b.end(); }); -bench( pkg+'::instantiation,arraybuffer,byte_offset,length', function benchmark( b ) { +bench( format( '%s::instantiation,arraybuffer,byte_offset,length', pkg ), function benchmark( b ) { var buf; var arr; var i; @@ -253,7 +254,7 @@ bench( pkg+'::instantiation,arraybuffer,byte_offset,length', function benchmark( b.end(); }); -bench( pkg+'::get:buffer', function benchmark( b ) { +bench( format( '%s::get:buffer', pkg ), function benchmark( b ) { var arr; var v; var i; @@ -276,7 +277,7 @@ bench( pkg+'::get:buffer', function benchmark( b ) { b.end(); }); -bench( pkg+'::get:byteLength', function benchmark( b ) { +bench( format( '%s::get:byteLength', pkg ), function benchmark( b ) { var arr; var v; var i; @@ -299,7 +300,7 @@ bench( pkg+'::get:byteLength', function benchmark( b ) { b.end(); }); -bench( pkg+'::get:byteOffset', function benchmark( b ) { +bench( format( '%s::get:byteOffset', pkg ), function benchmark( b ) { var arr; var v; var i; @@ -322,7 +323,7 @@ bench( pkg+'::get:byteOffset', function benchmark( b ) { b.end(); }); -bench( pkg+'::get:length', function benchmark( b ) { +bench( format( '%s::get:length', pkg ), function benchmark( b ) { var arr; var v; var i; diff --git a/lib/node_modules/@stdlib/array/little-endian-float64/benchmark/benchmark.of.js b/lib/node_modules/@stdlib/array/little-endian-float64/benchmark/benchmark.of.js index ca9ef910707c..9678886d4f9e 100644 --- a/lib/node_modules/@stdlib/array/little-endian-float64/benchmark/benchmark.of.js +++ b/lib/node_modules/@stdlib/array/little-endian-float64/benchmark/benchmark.of.js @@ -21,13 +21,14 @@ // MODULES // var bench = require( '@stdlib/bench' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var Float64ArrayLE = require( './../lib' ); // MAIN // -bench( pkg+':of', function benchmark( b ) { +bench( format( '%s:of', pkg ), function benchmark( b ) { var arr; var i; @@ -46,7 +47,7 @@ bench( pkg+':of', function benchmark( b ) { b.end(); }); -bench( pkg+':len=5', function benchmark( b ) { +bench( format( '%s:of:len=5', pkg ), function benchmark( b ) { var buf; var arr; var i; diff --git a/lib/node_modules/@stdlib/array/little-endian-float64/benchmark/benchmark.set.js b/lib/node_modules/@stdlib/array/little-endian-float64/benchmark/benchmark.set.js index d2f705325547..3c545a995f6a 100644 --- a/lib/node_modules/@stdlib/array/little-endian-float64/benchmark/benchmark.set.js +++ b/lib/node_modules/@stdlib/array/little-endian-float64/benchmark/benchmark.set.js @@ -22,13 +22,14 @@ var bench = require( '@stdlib/bench' ); var Float64Array = require( '@stdlib/array/float64' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var Float64ArrayLE = require( './../lib' ); // MAIN // -bench( pkg+'::number:set', function benchmark( b ) { +bench( format( '%s::number:set', pkg ), function benchmark( b ) { var values; var arr; var N; @@ -57,7 +58,7 @@ bench( pkg+'::number:set', function benchmark( b ) { b.end(); }); -bench( pkg+'::array:set', function benchmark( b ) { +bench( format( '%s::array:set', pkg ), function benchmark( b ) { var values; var arr; var N; @@ -86,7 +87,7 @@ bench( pkg+'::array:set', function benchmark( b ) { b.end(); }); -bench( pkg+'::typed_array:set', function benchmark( b ) { +bench( format( '%s::typed_array:set', pkg ), function benchmark( b ) { var values; var arr; var buf; diff --git a/lib/node_modules/@stdlib/array/little-endian-float64/benchmark/benchmark.set.length.js b/lib/node_modules/@stdlib/array/little-endian-float64/benchmark/benchmark.set.length.js index 885f756b4b89..1b5fc83f9eeb 100644 --- a/lib/node_modules/@stdlib/array/little-endian-float64/benchmark/benchmark.set.length.js +++ b/lib/node_modules/@stdlib/array/little-endian-float64/benchmark/benchmark.set.length.js @@ -23,6 +23,7 @@ var bench = require( '@stdlib/bench' ); var pow = require( '@stdlib/math/base/special/pow' ); var randu = require( '@stdlib/random/array/randu' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var Float64ArrayLE = require( './../lib' ); @@ -103,7 +104,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':set:len='+len, f ); + bench( format( '%s:set:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/little-endian-float64/benchmark/benchmark.to_string.js b/lib/node_modules/@stdlib/array/little-endian-float64/benchmark/benchmark.to_string.js index c3ebf9c28393..3fe5a57320a8 100644 --- a/lib/node_modules/@stdlib/array/little-endian-float64/benchmark/benchmark.to_string.js +++ b/lib/node_modules/@stdlib/array/little-endian-float64/benchmark/benchmark.to_string.js @@ -21,13 +21,14 @@ // MODULES // var bench = require( '@stdlib/bench' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var Float64ArrayLE = require( './../lib' ); // MAIN // -bench( pkg+':toString', function benchmark( b ) { +bench( format( '%s:toString', pkg ), function benchmark( b ) { var out; var arr; var i; diff --git a/lib/node_modules/@stdlib/array/little-endian-float64/benchmark/benchmark.to_string.length.js b/lib/node_modules/@stdlib/array/little-endian-float64/benchmark/benchmark.to_string.length.js index 10a65c566271..e2b013f83738 100644 --- a/lib/node_modules/@stdlib/array/little-endian-float64/benchmark/benchmark.to_string.length.js +++ b/lib/node_modules/@stdlib/array/little-endian-float64/benchmark/benchmark.to_string.length.js @@ -23,6 +23,7 @@ var bench = require( '@stdlib/bench' ); var pow = require( '@stdlib/math/base/special/pow' ); var zeroTo = require( '@stdlib/array/zero-to' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var Float64ArrayLE = require( './../lib' ); @@ -87,7 +88,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':toString:len='+len, f ); + bench( format( '%s:toString:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/logspace/benchmark/benchmark.length.js b/lib/node_modules/@stdlib/array/logspace/benchmark/benchmark.length.js index caff56d56232..53fa6a237388 100644 --- a/lib/node_modules/@stdlib/array/logspace/benchmark/benchmark.length.js +++ b/lib/node_modules/@stdlib/array/logspace/benchmark/benchmark.length.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var pow = require( '@stdlib/math/base/special/pow' ); var randu = require( '@stdlib/random/base/randu' ); var isArray = require( '@stdlib/assert/is-array' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var logspace = require( './../lib' ); @@ -89,7 +90,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/mostly-safe-casts/benchmark/benchmark.js b/lib/node_modules/@stdlib/array/mostly-safe-casts/benchmark/benchmark.js index c33d252cdfb1..420d4877de16 100644 --- a/lib/node_modules/@stdlib/array/mostly-safe-casts/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/array/mostly-safe-casts/benchmark/benchmark.js @@ -23,6 +23,7 @@ var bench = require( '@stdlib/bench' ); var isStringArray = require( '@stdlib/assert/is-string-array' ).primitives; var dtypes = require( '@stdlib/array/dtypes' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var mostlySafeCasts = require( './../lib' ); @@ -48,7 +49,7 @@ bench( pkg, function benchmark( b ) { b.end(); }); -bench( pkg+'::dtype', function benchmark( b ) { +bench( format( '%s::dtype', pkg ), function benchmark( b ) { var out; var dt; var i; diff --git a/lib/node_modules/@stdlib/array/mskfilter/benchmark/benchmark.js b/lib/node_modules/@stdlib/array/mskfilter/benchmark/benchmark.js index 66641ff16d9e..58ac776e8eb6 100644 --- a/lib/node_modules/@stdlib/array/mskfilter/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/array/mskfilter/benchmark/benchmark.js @@ -24,13 +24,14 @@ var bench = require( '@stdlib/bench' ); var isArray = require( '@stdlib/assert/is-array' ); var zeroTo = require( '@stdlib/array/base/zero-to' ); var ones = require( '@stdlib/array/base/ones' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var mskfilter = require( './../lib' ); // MAIN // -bench( pkg+'::copy:len=100', function benchmark( b ) { +bench( format( '%s::copy:len=100', pkg ), function benchmark( b ) { var x; var y; var i; diff --git a/lib/node_modules/@stdlib/array/mskfilter/benchmark/benchmark.length.js b/lib/node_modules/@stdlib/array/mskfilter/benchmark/benchmark.length.js index f9f890632a17..9f2c5c2f1048 100644 --- a/lib/node_modules/@stdlib/array/mskfilter/benchmark/benchmark.length.js +++ b/lib/node_modules/@stdlib/array/mskfilter/benchmark/benchmark.length.js @@ -25,6 +25,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var zeroTo = require( '@stdlib/array/base/zero-to' ); var ones = require( '@stdlib/array/base/ones' ); var isArray = require( '@stdlib/assert/is-array' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var mskfilter = require( './../lib' ); @@ -90,7 +91,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/mskput/benchmark/benchmark.js b/lib/node_modules/@stdlib/array/mskput/benchmark/benchmark.js index 31a8a03c4af1..0052fba4d726 100644 --- a/lib/node_modules/@stdlib/array/mskput/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/array/mskput/benchmark/benchmark.js @@ -24,13 +24,14 @@ var bench = require( '@stdlib/bench' ); var isArray = require( '@stdlib/assert/is-array' ); var zeroTo = require( '@stdlib/array/base/zero-to' ); var zeros = require( '@stdlib/array/base/zeros' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var mskput = require( './../lib' ); // MAIN // -bench( pkg+'::no_broadcasting:len=100', function benchmark( b ) { +bench( format( '%s::no_broadcasting:len=100', pkg ), function benchmark( b ) { var mask; var x; var i; @@ -54,7 +55,7 @@ bench( pkg+'::no_broadcasting:len=100', function benchmark( b ) { b.end(); }); -bench( pkg+'::broadcasting:len=100', function benchmark( b ) { +bench( format( '%s::broadcasting:len=100', pkg ), function benchmark( b ) { var mask; var x; var i; diff --git a/lib/node_modules/@stdlib/array/mskput/benchmark/benchmark.length.js b/lib/node_modules/@stdlib/array/mskput/benchmark/benchmark.length.js index 30b1a4785953..2251769273d0 100644 --- a/lib/node_modules/@stdlib/array/mskput/benchmark/benchmark.length.js +++ b/lib/node_modules/@stdlib/array/mskput/benchmark/benchmark.length.js @@ -25,6 +25,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); var zeros = require( '@stdlib/array/base/zeros' ); var isArray = require( '@stdlib/assert/is-array' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var mskput = require( './../lib' ); @@ -106,7 +107,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/mskreject/benchmark/benchmark.js b/lib/node_modules/@stdlib/array/mskreject/benchmark/benchmark.js index ba6fbf639468..57f9374186f9 100644 --- a/lib/node_modules/@stdlib/array/mskreject/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/array/mskreject/benchmark/benchmark.js @@ -24,13 +24,14 @@ var bench = require( '@stdlib/bench' ); var isArray = require( '@stdlib/assert/is-array' ); var zeroTo = require( '@stdlib/array/base/zero-to' ); var zeros = require( '@stdlib/array/base/zeros' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var mskreject = require( './../lib' ); // MAIN // -bench( pkg+'::copy:len=100', function benchmark( b ) { +bench( format( '%s::copy:len=100', pkg ), function benchmark( b ) { var x; var y; var i; diff --git a/lib/node_modules/@stdlib/array/mskreject/benchmark/benchmark.length.js b/lib/node_modules/@stdlib/array/mskreject/benchmark/benchmark.length.js index df920c3830ac..6995228dbd2d 100644 --- a/lib/node_modules/@stdlib/array/mskreject/benchmark/benchmark.length.js +++ b/lib/node_modules/@stdlib/array/mskreject/benchmark/benchmark.length.js @@ -25,6 +25,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var zeroTo = require( '@stdlib/array/base/zero-to' ); var zeros = require( '@stdlib/array/base/zeros' ); var isArray = require( '@stdlib/assert/is-array' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var mskreject = require( './../lib' ); @@ -90,7 +91,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/array/next-dtype/benchmark/benchmark.js b/lib/node_modules/@stdlib/array/next-dtype/benchmark/benchmark.js index 87a8c4b8bcdf..4fe76fc5fee1 100644 --- a/lib/node_modules/@stdlib/array/next-dtype/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/array/next-dtype/benchmark/benchmark.js @@ -23,6 +23,7 @@ var bench = require( '@stdlib/bench' ); var isString = require( '@stdlib/assert/is-string' ).isPrimitive; var dtypes = require( '@stdlib/array/dtypes' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var nextDataType = require( './../lib' ); @@ -48,7 +49,7 @@ bench( pkg, function benchmark( b ) { b.end(); }); -bench( pkg+'::dtype', function benchmark( b ) { +bench( format( '%s::dtype', pkg ), function benchmark( b ) { var out; var dt; var i; diff --git a/lib/node_modules/@stdlib/assert/is-readable-property-in/benchmark/benchmark.js b/lib/node_modules/@stdlib/assert/is-readable-property-in/benchmark/benchmark.js index 63a39eb62326..c337b6b08758 100644 --- a/lib/node_modules/@stdlib/assert/is-readable-property-in/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/assert/is-readable-property-in/benchmark/benchmark.js @@ -18,6 +18,8 @@ 'use strict'; +'use strict'; + // MODULES // var bench = require( '@stdlib/bench' ); @@ -33,7 +35,8 @@ bench( pkg, function benchmark( b ) { var arr; var i; - arr = new Array( 100 ); + arr = []; + arr.length = 100; b.tic(); for ( i = 0; i < b.iterations; i++ ) { diff --git a/lib/node_modules/@stdlib/blas/base/dcabs1/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/base/dcabs1/benchmark/benchmark.native.js index 9aa8bd307d43..87aa54e4ca3b 100644 --- a/lib/node_modules/@stdlib/blas/base/dcabs1/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/blas/base/dcabs1/benchmark/benchmark.native.js @@ -26,6 +26,7 @@ var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory; var isnan = require( '@stdlib/math/base/assert/is-nan' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -40,7 +41,7 @@ var rand = discreteUniform( -500.0, 500.0 ); // MAIN // -bench( pkg+'::native', opts, function benchmark( b ) { +bench( format( '%s::native', pkg ), opts, function benchmark( b ) { var values; var y; var i; diff --git a/lib/node_modules/@stdlib/blas/base/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/base/docs/types/index.d.ts index 855c6d22d5aa..55cce5dc9f4a 100644 --- a/lib/node_modules/@stdlib/blas/base/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/blas/base/docs/types/index.d.ts @@ -466,12 +466,12 @@ interface Namespace { * @param K - number of columns in the matrix `op(A)` and number of rows in the matrix `op(B)` * @param alpha - scalar constant * @param A - first matrix - * @param LDA - stride of the first dimension of `A` (a.k.a., leading dimension of the matrix `A`) + * @param LDA - stride between successive contiguous vectors of the matrix `A` (a.k.a., leading dimension of the matrix `A`) * @param B - second matrix - * @param LDB - stride of the first dimension of `B` (a.k.a., leading dimension of the matrix `B`) + * @param LDB - stride between successive contiguous vectors of the matrix `B` (a.k.a., leading dimension of the matrix `B`) * @param beta - scalar constant * @param C - third matrix - * @param LDC - stride of the first dimension of `C` (a.k.a., leading dimension of the matrix `C`) + * @param LDC - stride between successive contiguous vectors of the matrix `C` (a.k.a., leading dimension of the matrix `C`) * @returns `C` * * @example diff --git a/lib/node_modules/@stdlib/blas/base/drotg/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/drotg/benchmark/benchmark.js index c4193eda5229..e96f650ecdcc 100644 --- a/lib/node_modules/@stdlib/blas/base/drotg/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/drotg/benchmark/benchmark.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var Float64Array = require( '@stdlib/array/float64' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var drotg = require( './../lib' ); @@ -61,7 +62,7 @@ bench( pkg, function benchmark( b ) { b.end(); }); -bench( pkg+':assign', function benchmark( b ) { +bench( format( '%s:assign', pkg ), function benchmark( b ) { var out; var x; var y; diff --git a/lib/node_modules/@stdlib/blas/base/drotm/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/drotm/benchmark/benchmark.js index 58bc64efa902..2a59369a9516 100644 --- a/lib/node_modules/@stdlib/blas/base/drotm/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/drotm/benchmark/benchmark.js @@ -25,6 +25,7 @@ var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var Float64Array = require( '@stdlib/array/float64' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var drotm = require( './../lib/drotm.js' ); @@ -98,7 +99,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/drotm/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/base/drotm/benchmark/benchmark.native.js index c5d4f7b3e91a..05eef1f50171 100644 --- a/lib/node_modules/@stdlib/blas/base/drotm/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/blas/base/drotm/benchmark/benchmark.native.js @@ -27,6 +27,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var Float64Array = require( '@stdlib/array/float64' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -103,7 +104,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::native:len='+len, opts, f ); + bench( format( '%s::native:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/drotm/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/drotm/benchmark/benchmark.ndarray.js index dcffeb06bbe0..2f4467f86fd5 100644 --- a/lib/node_modules/@stdlib/blas/base/drotm/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/drotm/benchmark/benchmark.ndarray.js @@ -25,6 +25,7 @@ var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var Float64Array = require( '@stdlib/array/float64' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var drotm = require( './../lib/ndarray.js' ); @@ -98,7 +99,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/drotm/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/base/drotm/benchmark/benchmark.ndarray.native.js index c9f7bbddb295..280a0137005a 100644 --- a/lib/node_modules/@stdlib/blas/base/drotm/benchmark/benchmark.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/base/drotm/benchmark/benchmark.ndarray.native.js @@ -27,6 +27,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var Float64Array = require( '@stdlib/array/float64' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -103,7 +104,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::native:ndarray:len='+len, opts, f ); + bench( format( '%s::native:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/dsyr/README.md b/lib/node_modules/@stdlib/blas/base/dsyr/README.md index 2c37c5482c79..e20d2152f1d1 100644 --- a/lib/node_modules/@stdlib/blas/base/dsyr/README.md +++ b/lib/node_modules/@stdlib/blas/base/dsyr/README.md @@ -307,7 +307,7 @@ int main( void ) { // Print the result: for ( int i = 0; i < N*N; i++ ) { - printf( "A2[ %i ] = %lf\n", i, A[ i ] ); + printf( "A2[ %i ] = %lf\n", i, A2[ i ] ); } } ``` diff --git a/lib/node_modules/@stdlib/blas/base/dsyr/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/dsyr/benchmark/benchmark.js index d8b526ca4682..c6536498a4e5 100644 --- a/lib/node_modules/@stdlib/blas/base/dsyr/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/dsyr/benchmark/benchmark.js @@ -25,6 +25,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var ones = require( '@stdlib/array/ones' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsyr = require( './../lib/dsyr.js' ); @@ -97,7 +98,7 @@ function main() { for ( i = min; i <= max; i++ ) { N = floor( pow( pow( 10, i ), 1.0/2.0 ) ); f = createBenchmark( N ); - bench( pkg+':size='+(N*N), f ); + bench( format( '%s:size=%d', pkg, N*N ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/dsyr/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/base/dsyr/benchmark/benchmark.native.js index ec7bf95c8b72..4ccb1102cb1c 100644 --- a/lib/node_modules/@stdlib/blas/base/dsyr/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/blas/base/dsyr/benchmark/benchmark.native.js @@ -27,6 +27,7 @@ var ones = require( '@stdlib/array/ones' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -102,7 +103,7 @@ function main() { for ( i = min; i <= max; i++ ) { N = floor( pow( pow( 10, i ), 1.0/2.0 ) ); f = createBenchmark( N ); - bench( pkg+'::native:size='+(N*N), opts, f ); + bench( format( '%s::native:size=%d', pkg, N*N ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/dsyr/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/dsyr/benchmark/benchmark.ndarray.js index 7d1a7e3c9ad1..cfdbb8e27b87 100644 --- a/lib/node_modules/@stdlib/blas/base/dsyr/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/dsyr/benchmark/benchmark.ndarray.js @@ -25,6 +25,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var ones = require( '@stdlib/array/ones' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsyr = require( './../lib/ndarray.js' ); @@ -97,7 +98,7 @@ function main() { for ( i = min; i <= max; i++ ) { N = floor( pow( pow( 10, i ), 1.0/2.0 ) ); f = createBenchmark( N ); - bench( pkg+':ndarray:size='+(N*N), f ); + bench( format( '%s:ndarray:size=%d', pkg, N*N ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/dsyr/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/base/dsyr/benchmark/benchmark.ndarray.native.js index d9c133e73870..d5a035b146b0 100644 --- a/lib/node_modules/@stdlib/blas/base/dsyr/benchmark/benchmark.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/base/dsyr/benchmark/benchmark.ndarray.native.js @@ -27,6 +27,7 @@ var ones = require( '@stdlib/array/ones' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -102,7 +103,7 @@ function main() { for ( i = min; i <= max; i++ ) { N = floor( pow( pow( 10, i ), 1.0/2.0 ) ); f = createBenchmark( N ); - bench( pkg+'::native:ndarray:size='+(N*N), opts, f ); + bench( format( '%s::native:ndarray:size=%d', pkg, N*N ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/dsyr2/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/dsyr2/benchmark/benchmark.js index 1ed4902b29e4..32ae734a5efe 100644 --- a/lib/node_modules/@stdlib/blas/base/dsyr2/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/dsyr2/benchmark/benchmark.js @@ -25,6 +25,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var ones = require( '@stdlib/array/ones' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsyr2 = require( './../lib/dsyr2.js' ); @@ -98,7 +99,7 @@ function main() { for ( i = min; i <= max; i++ ) { N = floor( pow( pow( 10, i ), 1.0/2.0 ) ); f = createBenchmark( N ); - bench( pkg+':size='+(N*N), f ); + bench( format( '%s:size=%d', pkg, N*N ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/dsyr2/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/base/dsyr2/benchmark/benchmark.native.js index 0ce3799353f6..610ad0779f2f 100644 --- a/lib/node_modules/@stdlib/blas/base/dsyr2/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/blas/base/dsyr2/benchmark/benchmark.native.js @@ -27,6 +27,7 @@ var ones = require( '@stdlib/array/ones' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -103,7 +104,7 @@ function main() { for ( i = min; i <= max; i++ ) { N = floor( pow( pow( 10, i ), 1.0/2.0 ) ); f = createBenchmark( N ); - bench( pkg+'::native:size='+(N*N), opts, f ); + bench( format( '%s::native:size=%d', pkg, N*N ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/dsyr2/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/dsyr2/benchmark/benchmark.ndarray.js index 3685431ce0d1..0f1683704d33 100644 --- a/lib/node_modules/@stdlib/blas/base/dsyr2/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/dsyr2/benchmark/benchmark.ndarray.js @@ -25,6 +25,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var ones = require( '@stdlib/array/ones' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsyr2 = require( './../lib/ndarray.js' ); @@ -98,7 +99,7 @@ function main() { for ( i = min; i <= max; i++ ) { N = floor( pow( pow( 10, i ), 1.0/2.0 ) ); f = createBenchmark( N ); - bench( pkg+':ndarray:size='+(N*N), f ); + bench( format( '%s:ndarray:size=%d', pkg, N*N ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/dsyr2/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/base/dsyr2/benchmark/benchmark.ndarray.native.js index 534af4370389..522b0d96d7c7 100644 --- a/lib/node_modules/@stdlib/blas/base/dsyr2/benchmark/benchmark.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/base/dsyr2/benchmark/benchmark.ndarray.native.js @@ -27,6 +27,7 @@ var ones = require( '@stdlib/array/ones' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -103,7 +104,7 @@ function main() { for ( i = min; i <= max; i++ ) { N = floor( pow( pow( 10, i ), 1.0/2.0 ) ); f = createBenchmark( N ); - bench( pkg+'::native:ndarray:size='+(N*N), opts, f ); + bench( format( '%s::native:ndarray:size=%d', pkg, N*N ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/dtrsv/test/test.ndarray.js b/lib/node_modules/@stdlib/blas/base/dtrsv/test/test.ndarray.js index 6738f6b22dca..3c5f0cec0d3c 100644 --- a/lib/node_modules/@stdlib/blas/base/dtrsv/test/test.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/dtrsv/test/test.ndarray.js @@ -46,7 +46,6 @@ var rsa1nsa2 = require( './fixtures/row_major_sa1n_sa2.json' ); var rsa1sa2n = require( './fixtures/row_major_sa1_sa2n.json' ); var rsa1nsa2n = require( './fixtures/row_major_sa1n_sa2n.json' ); var rcap = require( './fixtures/row_major_complex_access_pattern.json' ); - var clntnu = require( './fixtures/column_major_l_nt_nu.json' ); var cltnu = require( './fixtures/column_major_l_t_nu.json' ); var clntu = require( './fixtures/column_major_l_nt_u.json' ); @@ -62,7 +61,7 @@ var cox = require( './fixtures/column_major_ox.json' ); var csa1sa2 = require( './fixtures/column_major_sa1_sa2.json' ); var csa1nsa2 = require( './fixtures/column_major_sa1n_sa2.json' ); var csa1sa2n = require( './fixtures/column_major_sa1_sa2n.json' ); -var csa1nsa2n = require( './fixtures/column_major_sa1_sa2n.json' ); +var csa1nsa2n = require( './fixtures/column_major_sa1n_sa2n.json' ); var ccap = require( './fixtures/column_major_complex_access_pattern.json' ); diff --git a/lib/node_modules/@stdlib/blas/base/gaxpy/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/gaxpy/benchmark/benchmark.js index 8abc989b8969..1ef50cf10fd0 100644 --- a/lib/node_modules/@stdlib/blas/base/gaxpy/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/gaxpy/benchmark/benchmark.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gaxpy = require( './../lib' ); @@ -96,7 +97,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/gaxpy/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/gaxpy/benchmark/benchmark.ndarray.js index 2eaab7a2e02e..f469d255f9b7 100644 --- a/lib/node_modules/@stdlib/blas/base/gaxpy/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/gaxpy/benchmark/benchmark.ndarray.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gaxpy = require( './../lib' ).ndarray; @@ -96,7 +97,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/gcopy/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/gcopy/benchmark/benchmark.js index c5ccae93c66a..27a71bed9066 100644 --- a/lib/node_modules/@stdlib/blas/base/gcopy/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/gcopy/benchmark/benchmark.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gcopy = require( './../lib' ); @@ -99,7 +100,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/gcopy/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/gcopy/benchmark/benchmark.ndarray.js index 913c2d5cb445..b382d5b09ac9 100644 --- a/lib/node_modules/@stdlib/blas/base/gcopy/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/gcopy/benchmark/benchmark.ndarray.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gcopy = require( './../lib' ).ndarray; @@ -99,7 +100,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/gsyr/test/test.ndarray.js b/lib/node_modules/@stdlib/blas/base/gsyr/test/test.ndarray.js index 38f2b3c5a394..51312eaa0853 100644 --- a/lib/node_modules/@stdlib/blas/base/gsyr/test/test.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/gsyr/test/test.ndarray.js @@ -41,7 +41,6 @@ var rsa1nsa2 = require( './fixtures/row_major_sa1n_sa2.json' ); var rsa1sa2n = require( './fixtures/row_major_sa1_sa2n.json' ); var rsa1nsa2n = require( './fixtures/row_major_sa1n_sa2n.json' ); var rcap = require( './fixtures/row_major_complex_access_pattern.json' ); - var cu = require( './fixtures/column_major_u.json' ); var cl = require( './fixtures/column_major_l.json' ); var cxp = require( './fixtures/column_major_xp.json' ); diff --git a/lib/node_modules/@stdlib/blas/base/matrix-orientation-resolve-enum/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/matrix-orientation-resolve-enum/benchmark/benchmark.js index 39d5f6915895..8318a6ea5478 100644 --- a/lib/node_modules/@stdlib/blas/base/matrix-orientation-resolve-enum/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/matrix-orientation-resolve-enum/benchmark/benchmark.js @@ -23,13 +23,14 @@ var bench = require( '@stdlib/bench' ); var isInteger = require( '@stdlib/assert/is-integer' ).isPrimitive; var str2enum = require( '@stdlib/blas/base/matrix-orientation-str2enum' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var resolve = require( './../lib' ); // MAIN // -bench( pkg+'::string', function benchmark( b ) { +bench( format( '%s::string', pkg ), function benchmark( b ) { var values; var out; var i; @@ -54,7 +55,7 @@ bench( pkg+'::string', function benchmark( b ) { b.end(); }); -bench( pkg+'::integer', function benchmark( b ) { +bench( format( '%s::integer', pkg ), function benchmark( b ) { var values; var out; var i; diff --git a/lib/node_modules/@stdlib/blas/base/matrix-triangle-resolve-enum/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/matrix-triangle-resolve-enum/benchmark/benchmark.js index f7c84bd1d15b..be906655d271 100644 --- a/lib/node_modules/@stdlib/blas/base/matrix-triangle-resolve-enum/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/matrix-triangle-resolve-enum/benchmark/benchmark.js @@ -23,13 +23,14 @@ var bench = require( '@stdlib/bench' ); var isInteger = require( '@stdlib/assert/is-integer' ).isPrimitive; var str2enum = require( '@stdlib/blas/base/matrix-triangle-str2enum' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var resolve = require( './../lib' ); // MAIN // -bench( pkg+'::string', function benchmark( b ) { +bench( format( '%s::string', pkg ), function benchmark( b ) { var values; var out; var i; @@ -54,7 +55,7 @@ bench( pkg+'::string', function benchmark( b ) { b.end(); }); -bench( pkg+'::integer', function benchmark( b ) { +bench( format( '%s::integer', pkg ), function benchmark( b ) { var values; var out; var i; diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/README.md b/lib/node_modules/@stdlib/blas/base/ndarray/README.md index f29b88ecb016..80aa93d66b8b 100644 --- a/lib/node_modules/@stdlib/blas/base/ndarray/README.md +++ b/lib/node_modules/@stdlib/blas/base/ndarray/README.md @@ -46,10 +46,13 @@ The namespace exposes the following APIs:
- [`dasum( arrays )`][@stdlib/blas/base/ndarray/dasum]: calculate the sum of absolute values for all elements in a one-dimensional double-precision floating-point ndarray. +- [`daxpy( arrays )`][@stdlib/blas/base/ndarray/daxpy]: multiply a one-dimensional double-precision floating-point ndarray `x` by a constant `alpha` and add the result to a one-dimensional double-precision floating-point ndarray `y`. - [`ddot( arrays )`][@stdlib/blas/base/ndarray/ddot]: calculate the dot product of two one-dimensional double-precision floating-point ndarrays. - [`gasum( arrays )`][@stdlib/blas/base/ndarray/gasum]: calculate the sum of absolute values for all elements in a one-dimensional ndarray. +- [`gaxpy( arrays )`][@stdlib/blas/base/ndarray/gaxpy]: multiply a one-dimensional ndarray `x` by a constant `alpha` and add the result to a one-dimensional ndarray `y`. - [`gdot( arrays )`][@stdlib/blas/base/ndarray/gdot]: calculate the dot product of two one-dimensional ndarrays. - [`sasum( arrays )`][@stdlib/blas/base/ndarray/sasum]: calculate the sum of absolute values for all elements in a one-dimensional single-precision floating-point ndarray. +- [`saxpy( arrays )`][@stdlib/blas/base/ndarray/saxpy]: multiply a one-dimensional single-precision floating-point ndarray `x` by a constant `alpha` and add the result to a one-dimensional single-precision floating-point ndarray `y`. - [`sdot( arrays )`][@stdlib/blas/base/ndarray/sdot]: calculate the dot product of two one-dimensional single-precision floating-point ndarrays.
@@ -95,14 +98,20 @@ console.log( objectKeys( ns ) ); [@stdlib/blas/base/ndarray/dasum]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/ndarray/dasum +[@stdlib/blas/base/ndarray/daxpy]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/ndarray/daxpy + [@stdlib/blas/base/ndarray/ddot]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/ndarray/ddot [@stdlib/blas/base/ndarray/gasum]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/ndarray/gasum +[@stdlib/blas/base/ndarray/gaxpy]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/ndarray/gaxpy + [@stdlib/blas/base/ndarray/gdot]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/ndarray/gdot [@stdlib/blas/base/ndarray/sasum]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/ndarray/sasum +[@stdlib/blas/base/ndarray/saxpy]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/ndarray/saxpy + [@stdlib/blas/base/ndarray/sdot]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/ndarray/sdot diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/daxpy/README.md b/lib/node_modules/@stdlib/blas/base/ndarray/daxpy/README.md new file mode 100644 index 000000000000..17f3ba791032 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ndarray/daxpy/README.md @@ -0,0 +1,124 @@ + + +# daxpy + +> Multiply a one-dimensional double-precision floating-point ndarray `x` by a constant `alpha` and add the result to a one-dimensional double-precision floating-point ndarray `y`. + +
+ +
+ + + +
+ +## Usage + +```javascript +var daxpy = require( '@stdlib/blas/base/ndarray/daxpy' ); +``` + +#### daxpy( arrays ) + +Multiplies a one-dimensional double-precision floating-point ndarray `x` by a constant `alpha` and adds the result to a one-dimensional double-precision floating-point ndarray `y`. + +```javascript +var Float64Array = require( '@stdlib/array/float64' ); +var scalar2ndarray = require( '@stdlib/ndarray/base/from-scalar' ); +var ndarray = require( '@stdlib/ndarray/base/ctor' ); + +var xbuf = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] ); +var x = new ndarray( 'float64', xbuf, [ 5 ], [ 1 ], 0, 'row-major' ); + +var ybuf = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0 ] ); +var y = new ndarray( 'float64', ybuf, [ 5 ], [ 1 ], 0, 'row-major' ); + +var alpha = scalar2ndarray( 5.0, 'float64', 'row-major' ); +var z = daxpy( [ x, y, alpha ] ); +// returns [ 6.0, 11.0, 16.0, 21.0, 26.0 ] + +var bool = ( y === z ); +// returns true +``` + +The function has the following parameters: + +- **arrays**: array-like object containing an input ndarray, an output ndarray, and a zero-dimensional ndarray containing a scalar constant. + +
+ + + +
+ +
+ + + +
+ +## Examples + + + +```javascript +var discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); +var scalar2ndarray = require( '@stdlib/ndarray/from-scalar' ); +var ndarray = require( '@stdlib/ndarray/base/ctor' ); +var ndarray2array = require( '@stdlib/ndarray/to-array' ); +var daxpy = require( '@stdlib/blas/base/ndarray/daxpy' ); + +var opts = { + 'dtype': 'float64' +}; + +var xbuf = discreteUniform( 10, 0, 100, opts ); +var x = new ndarray( opts.dtype, xbuf, [ xbuf.length ], [ 1 ], 0, 'row-major' ); +console.log( ndarray2array( x ) ); + +var ybuf = discreteUniform( xbuf.length, 0, 10, opts ); +var y = new ndarray( opts.dtype, ybuf, [ ybuf.length ], [ 1 ], 0, 'row-major' ); +console.log( ndarray2array( y ) ); + +var alpha = scalar2ndarray( 5.0, opts ); +var out = daxpy( [ x, y, alpha ] ); +console.log( ndarray2array( out ) ); +``` + +
+ + + + + + + + + + + + + + diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/daxpy/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/ndarray/daxpy/benchmark/benchmark.js new file mode 100644 index 000000000000..c8e1e3533e21 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ndarray/daxpy/benchmark/benchmark.js @@ -0,0 +1,118 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var bench = require( '@stdlib/bench' ); +var uniform = require( '@stdlib/random/array/uniform' ); +var isnan = require( '@stdlib/math/base/assert/is-nan' ); +var pow = require( '@stdlib/math/base/special/pow' ); +var ndarray = require( '@stdlib/ndarray/base/ctor' ); +var scalar2ndarray = require( '@stdlib/ndarray/base/from-scalar' ); +var format = require( '@stdlib/string/format' ); +var pkg = require( './../package.json' ).name; +var daxpy = require( './../lib' ); + + +// VARIABLES // + +var options = { + 'dtype': 'float64' +}; + + +// FUNCTIONS // + +/** +* Creates a benchmark function. +* +* @private +* @param {PositiveInteger} len - array length +* @returns {Function} benchmark function +*/ +function createBenchmark( len ) { + var alpha; + var xbuf; + var ybuf; + var x; + var y; + + xbuf = uniform( len, -100.0, 100.0, options ); + x = new ndarray( options.dtype, xbuf, [ len ], [ 1 ], 0, 'row-major' ); + + ybuf = uniform( len, -100.0, 100.0, options ); + y = new ndarray( options.dtype, ybuf, [ len ], [ 1 ], 0, 'row-major' ); + + alpha = scalar2ndarray( 5.0, options.dtype, 'row-major' ); + + 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 = daxpy( [ x, y, alpha ] ); + if ( typeof z !== 'object' ) { + b.fail( 'should not return NaN' ); + } + } + b.toc(); + if ( isnan( z.get( i%len ) ) ) { + 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 = pow( 10, i ); + f = createBenchmark( len ); + bench( format( '%s:len=%d', pkg, len ), f ); + } +} + +main(); diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/daxpy/docs/repl.txt b/lib/node_modules/@stdlib/blas/base/ndarray/daxpy/docs/repl.txt new file mode 100644 index 000000000000..025ad5db6efe --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ndarray/daxpy/docs/repl.txt @@ -0,0 +1,40 @@ + +{{alias}}( arrays ) + Multiplies a one-dimensional double-precision floating-point ndarray `x` + by a constant `alpha` and adds the result to a one-dimensional double- + precision floating-point ndarray `y`. + + If provided an empty input ndarray, the function returns the output ndarray + unchanged. + + Parameters + ---------- + arrays: ArrayLikeObject + Array-like object containing an input ndarray, an output ndarray, and + a zero-dimensional ndarray containing a scalar constant `alpha`. + + Returns + ------- + out: ndarray + Output ndarray. + + Examples + -------- + > var xbuf = new {{alias:@stdlib/array/float64}}( [ 4.0, 2.0, -3.0, 5.0, -1.0 ] ); + > var ybuf = new {{alias:@stdlib/array/float64}}( [ 2.0, 6.0, -1.0, -4.0, 8.0 ] ); + > var dt = 'float64'; + > var sh = [ xbuf.length ]; + > var st = [ 1 ]; + > var oo = 0; + > var ord = 'row-major'; + > var x = new {{alias:@stdlib/ndarray/ctor}}( dt, xbuf, sh, st, oo, ord ); + > var y = new {{alias:@stdlib/ndarray/ctor}}( dt, ybuf, sh, st, oo, ord ); + > var alpha = {{alias:@stdlib/ndarray/base/from-scalar}}( 5.0, dt, ord ); + + > {{alias}}( [ x, y, alpha ] ); + > y + [ 22.0, 16.0, -16.0, 21.0, 3.0 ] + + See Also + -------- + diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/daxpy/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/base/ndarray/daxpy/docs/types/index.d.ts new file mode 100644 index 000000000000..faf2d1ff5d89 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ndarray/daxpy/docs/types/index.d.ts @@ -0,0 +1,55 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2026 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 { float64ndarray } from '@stdlib/types/ndarray'; + +/** +* Multiplies a one-dimensional double-precision floating-point ndarray `x` by a constant `alpha` and adds the result to a one-dimensional double-precision floating-point ndarray `y`. +* +* @param arrays - array-like object containing an input ndarray, an output ndarray, and a zero-dimensional ndarray containing a scalar constant +* @returns output ndarray +* +* @example +* var Float64Array = require( '@stdlib/array/float64' ); +* var scalar2ndarray = require( '@stdlib/ndarray/base/from-scalar' ); +* var ndarray = require( '@stdlib/ndarray/base/ctor' ); +* +* var xbuf = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] ); +* var x = new ndarray( 'float64', xbuf, [ 5 ], [ 1 ], 0, 'row-major' ); +* +* var ybuf = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0 ] ); +* var y = new ndarray( 'float64', ybuf, [ 5 ], [ 1 ], 0, 'row-major' ); +* +* var alpha = scalar2ndarray( 5.0, 'float64', 'row-major' ); +* +* var z = daxpy( [ x, y, alpha ] ); +* // returns [ 6.0, 11.0, 16.0, 21.0, 26.0 ] +* +* var bool = ( z === y ); +* // returns true +*/ +declare function daxpy( arrays: [ float64ndarray, float64ndarray, float64ndarray ] ): float64ndarray; + + +// EXPORTS // + +export = daxpy; diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/daxpy/docs/types/test.ts b/lib/node_modules/@stdlib/blas/base/ndarray/daxpy/docs/types/test.ts new file mode 100644 index 000000000000..d81e6e3f8a30 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ndarray/daxpy/docs/types/test.ts @@ -0,0 +1,69 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2026 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 space-in-parens */ + +import zeros = require( '@stdlib/ndarray/zeros' ); +import daxpy = require( './index' ); + + +// TESTS // + +// The function returns an ndarray... +{ + const x = zeros( [ 10 ], { + 'dtype': 'float64' + }); + const y = zeros( [ 10 ], { + 'dtype': 'float64' + }); + const alpha = zeros( [], { + 'dtype': 'float64' + }); + + daxpy( [ x, y, alpha ] ); // $ExpectType float64ndarray +} + +// The compiler throws an error if the function is provided a first argument which is not an array of ndarrays... +{ + daxpy( '10' ); // $ExpectError + daxpy( 10 ); // $ExpectError + daxpy( true ); // $ExpectError + daxpy( false ); // $ExpectError + daxpy( null ); // $ExpectError + daxpy( undefined ); // $ExpectError + daxpy( [] ); // $ExpectError + daxpy( {} ); // $ExpectError + daxpy( ( x: number ): number => x ); // $ExpectError +} + +// The compiler throws an error if the function is provided an unsupported number of arguments... +{ + const x = zeros( [ 10 ], { + 'dtype': 'float64' + }); + const y = zeros( [ 10 ], { + 'dtype': 'float64' + }); + const alpha = zeros( [], { + 'dtype': 'float64' + }); + + daxpy(); // $ExpectError + daxpy( [ x, y, alpha ], {} ); // $ExpectError +} diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/daxpy/examples/index.js b/lib/node_modules/@stdlib/blas/base/ndarray/daxpy/examples/index.js new file mode 100644 index 000000000000..4f094f632d67 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ndarray/daxpy/examples/index.js @@ -0,0 +1,41 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 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 scalar2ndarray = require( '@stdlib/ndarray/from-scalar' ); +var ndarray = require( '@stdlib/ndarray/base/ctor' ); +var ndarray2array = require( '@stdlib/ndarray/to-array' ); +var daxpy = require( './../lib' ); + +var opts = { + 'dtype': 'float64' +}; + +var xbuf = discreteUniform( 10, 0, 100, opts ); +var x = new ndarray( opts.dtype, xbuf, [ xbuf.length ], [ 1 ], 0, 'row-major' ); +console.log( ndarray2array( x ) ); + +var ybuf = discreteUniform( xbuf.length, 0, 10, opts ); +var y = new ndarray( opts.dtype, ybuf, [ ybuf.length ], [ 1 ], 0, 'row-major' ); +console.log( ndarray2array( y ) ); + +var alpha = scalar2ndarray( 5.0, opts ); +var out = daxpy( [ x, y, alpha ] ); +console.log( ndarray2array( out ) ); diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/daxpy/lib/index.js b/lib/node_modules/@stdlib/blas/base/ndarray/daxpy/lib/index.js new file mode 100644 index 000000000000..8d71d0e054e4 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ndarray/daxpy/lib/index.js @@ -0,0 +1,54 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +/** +* BLAS level 1 routine to multiply a one-dimensional double-precision floating-point ndarray `x` by a constant `alpha` and add the result to a one-dimensional double-precision floating-point ndarray `y`. +* +* @module @stdlib/blas/base/ndarray/daxpy +* +* @example +* var Float64Array = require( '@stdlib/array/float64' ); +* var scalar2ndarray = require( '@stdlib/ndarray/base/from-scalar' ); +* var ndarray = require( '@stdlib/ndarray/base/ctor' ); +* var daxpy = require( '@stdlib/blas/base/ndarray/daxpy' ); +* +* var xbuf = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] ); +* var x = new ndarray( 'float64', xbuf, [ 5 ], [ 1 ], 0, 'row-major' ); +* +* var ybuf = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0 ] ); +* var y = new ndarray( 'float64', ybuf, [ 5 ], [ 1 ], 0, 'row-major' ); +* +* var alpha = scalar2ndarray( 5.0, 'float64', 'row-major' ); +* +* var z = daxpy( [ x, y, alpha ] ); +* // returns [ 6.0, 11.0, 16.0, 21.0, 26.0 ] +* +* var bool = ( z === y ); +* // returns true +*/ + +// MODULES // + +var main = require( './main.js' ); + + +// EXPORTS // + +module.exports = main; diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/daxpy/lib/main.js b/lib/node_modules/@stdlib/blas/base/ndarray/daxpy/lib/main.js new file mode 100644 index 000000000000..a849e320e624 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ndarray/daxpy/lib/main.js @@ -0,0 +1,69 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 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 numelDimension = require( '@stdlib/ndarray/base/numel-dimension' ); +var getStride = require( '@stdlib/ndarray/base/stride' ); +var getOffset = require( '@stdlib/ndarray/base/offset' ); +var getData = require( '@stdlib/ndarray/base/data-buffer' ); +var ndarraylike2scalar = require( '@stdlib/ndarray/base/ndarraylike2scalar' ); +var strided = require( '@stdlib/blas/base/daxpy' ).ndarray; + + +// MAIN // + +/** +* Multiplies a one-dimensional double-precision floating-point ndarray `x` by a constant `alpha` and adds the result to a one-dimensional double-precision floating-point ndarray `y`. +* +* @param {ArrayLikeObject} arrays - array-like object containing an input ndarray, an output ndarray, and a zero-dimensional ndarray containing a scalar constant +* @returns {Object} output ndarray +* +* @example +* var Float64Array = require( '@stdlib/array/float64' ); +* var scalar2ndarray = require( '@stdlib/ndarray/base/from-scalar' ); +* var ndarray = require( '@stdlib/ndarray/base/ctor' ); +* +* var xbuf = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] ); +* var x = new ndarray( 'float64', xbuf, [ 5 ], [ 1 ], 0, 'row-major' ); +* +* var ybuf = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0 ] ); +* var y = new ndarray( 'float64', ybuf, [ 5 ], [ 1 ], 0, 'row-major' ); +* +* var alpha = scalar2ndarray( 5.0, 'float64', 'row-major' ); +* +* var z = daxpy( [ x, y, alpha ] ); +* // returns [ 6.0, 11.0, 16.0, 21.0, 26.0 ] +* +* var bool = ( z === y ); +* // returns true +*/ +function daxpy( arrays ) { + var alpha = ndarraylike2scalar( arrays[ 2 ] ); + var x = arrays[ 0 ]; + var y = arrays[ 1 ]; + strided( numelDimension( x, 0 ), alpha, getData( x ), getStride( x, 0 ), getOffset( x ), getData( y ), getStride( y, 0 ), getOffset( y ) ); // eslint-disable-line max-len + return y; +} + + +// EXPORTS // + +module.exports = daxpy; diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/daxpy/package.json b/lib/node_modules/@stdlib/blas/base/ndarray/daxpy/package.json new file mode 100644 index 000000000000..063e2a0aa167 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ndarray/daxpy/package.json @@ -0,0 +1,73 @@ +{ + "name": "@stdlib/blas/base/ndarray/daxpy", + "version": "0.0.0", + "description": "Multiply a one-dimensional double-precision floating-point ndarray `x` by a constant `alpha` and add the result to a one-dimensional double-precision floating-point ndarray `y`.", + "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 1", + "daxpy", + "linear", + "algebra", + "subroutines", + "saxpy", + "gaxpy", + "add", + "alpha", + "vector", + "array", + "ndarray", + "float64", + "double", + "float64array" + ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/daxpy/test/test.js b/lib/node_modules/@stdlib/blas/base/ndarray/daxpy/test/test.js new file mode 100644 index 000000000000..7537ba315a48 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ndarray/daxpy/test/test.js @@ -0,0 +1,234 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 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 isSameFloat64Array = require( '@stdlib/assert/is-same-float64array' ); +var Float64Array = require( '@stdlib/array/float64' ); +var scalar2ndarray = require( '@stdlib/ndarray/base/from-scalar' ); +var ndarray = require( '@stdlib/ndarray/base/ctor' ); +var getData = require( '@stdlib/ndarray/data-buffer' ); +var daxpy = require( './../lib' ); + + +// FUNCTIONS // + +/** +* Returns a one-dimensional ndarray. +* +* @private +* @param {Collection} buffer - underlying data buffer +* @param {NonNegativeInteger} length - number of indexed elements +* @param {integer} stride - stride length +* @param {NonNegativeInteger} offset - index offset +* @returns {ndarray} one-dimensional ndarray +*/ +function vector( buffer, length, stride, offset ) { + return new ndarray( 'float64', buffer, [ length ], [ stride ], offset, 'row-major' ); +} + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof daxpy, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function has an arity of 1', function test( t ) { + t.strictEqual( daxpy.length, 1, 'has expected arity' ); + t.end(); +}); + +tape( 'the function multiplies one-dimensional ndarray `x` by a constant `alpha` and adds the result to one-dimensional ndarray `y`', function test( t ) { + var expected; + var alpha; + var xbuf; + var ybuf; + var x; + var y; + var v; + + xbuf = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] ); + ybuf = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0 ] ); + x = vector( xbuf, 5, 1, 0 ); + y = vector( ybuf, 5, 1, 0 ); + alpha = scalar2ndarray( 2.0, 'float64', 'row-major' ); + + v = daxpy( [ x, y, alpha ] ); + + expected = new Float64Array( [ 3.0, 5.0, 7.0, 9.0, 11.0 ] ); + t.strictEqual( v, y, 'returns expected value' ); + t.strictEqual( isSameFloat64Array( getData( v ), expected ), true, 'returns expected value' ); + + xbuf = new Float64Array( [ 1.0, 2.0 ] ); + ybuf = new Float64Array( [ 1.0, 1.0 ] ); + x = vector( xbuf, 2, 1, 0 ); + y = vector( ybuf, 2, 1, 0 ); + alpha = scalar2ndarray( 2.0, 'float64', 'row-major' ); + + v = daxpy( [ x, y, alpha ] ); + + expected = new Float64Array( [ 3.0, 5.0 ] ); + t.strictEqual( v, y, 'returns expected value' ); + t.strictEqual( isSameFloat64Array( getData( v ), expected ), true, 'returns expected value' ); + + t.end(); +}); + +tape( 'if provided empty ndarrays, the function returns the output ndarray unchanged', function test( t ) { + var expected; + var alpha; + var xbuf; + var ybuf; + var x; + var y; + var v; + + xbuf = new Float64Array( [] ); + ybuf = new Float64Array( [] ); + x = vector( xbuf, 0, 1, 0 ); + y = vector( ybuf, 0, 1, 0 ); + alpha = scalar2ndarray( 5.0, 'float64', 'row-major' ); + + v = daxpy( [ x, y, alpha ] ); + + expected = new Float64Array( [] ); + t.strictEqual( v, y, 'returns expected value' ); + t.strictEqual( isSameFloat64Array( getData( v ), expected ), true, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports one-dimensional ndarrays having non-unit strides', function test( t ) { + var expected; + var alpha; + var xbuf; + var ybuf; + var x; + var y; + var v; + + xbuf = new Float64Array([ + 1.0, // 0 + 2.0, + 3.0, // 1 + 4.0, + 5.0 // 2 + ]); + x = vector( xbuf, 3, 2, 0 ); + + ybuf = new Float64Array([ + 1.0, // 0 + 1.0, // 1 + 1.0, // 2 + 1.0, + 1.0 + ]); + y = vector( ybuf, 3, 1, 0 ); + alpha = scalar2ndarray( 2.0, 'float64', 'row-major' ); + + v = daxpy( [ x, y, alpha ] ); + + expected = new Float64Array( [ 3.0, 7.0, 11.0, 1.0, 1.0 ] ); + t.strictEqual( v, y, 'returns expected value' ); + t.strictEqual( isSameFloat64Array( getData( v ), expected ), true, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports one-dimensional ndarrays having negative strides', function test( t ) { + var expected; + var alpha; + var xbuf; + var ybuf; + var x; + var y; + var v; + + xbuf = new Float64Array([ + 1.0, // 2 + 2.0, + 3.0, // 1 + 4.0, + 5.0 // 0 + ]); + x = vector( xbuf, 3, -2, 4 ); + + ybuf = new Float64Array([ + 6.0, // 2 + 7.0, // 1 + 8.0, // 0 + 9.0, + 10.0 + ]); + y = vector( ybuf, 3, -1, 2 ); + alpha = scalar2ndarray( 3.0, 'float64', 'row-major' ); + + v = daxpy( [ x, y, alpha ] ); + + expected = new Float64Array( [ 9.0, 16.0, 23.0, 9.0, 10.0 ] ); + t.strictEqual( v, y, 'returns expected value' ); + t.strictEqual( isSameFloat64Array( getData( v ), expected ), true, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports one-dimensional ndarrays having non-zero offsets', function test( t ) { + var expected; + var alpha; + var xbuf; + var ybuf; + var x; + var y; + var v; + + xbuf = new Float64Array([ + 2.0, + 1.0, // 0 + 2.0, + -2.0, // 1 + -2.0, + 2.0, // 2 + 3.0, + 4.0 // 3 + ]); + x = vector( xbuf, 4, 2, 1 ); + + ybuf = new Float64Array([ + 1.0, + 2.0, + 3.0, // 0 + 4.0, // 1 + 5.0, // 2 + 6.0, // 3 + 7.0, + 8.0 + ]); + y = vector( ybuf, 4, 1, 2 ); + alpha = scalar2ndarray( 3.0, 'float64', 'row-major' ); + + v = daxpy( [ x, y, alpha ] ); + + expected = new Float64Array( [ 1.0, 2.0, 6.0, -2.0, 11.0, 18.0, 7.0, 8.0 ] ); + t.strictEqual( v, y, 'returns expected value' ); + t.strictEqual( isSameFloat64Array( getData( v ), expected ), true, 'returns expected value' ); + t.end(); +}); diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/ddot/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/ndarray/ddot/benchmark/benchmark.js index e30d9c133f22..b0f622b5c064 100644 --- a/lib/node_modules/@stdlib/blas/base/ndarray/ddot/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/ndarray/ddot/benchmark/benchmark.js @@ -25,6 +25,7 @@ var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var ndarray = require( '@stdlib/ndarray/base/ctor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var ddot = require( './../lib' ); @@ -106,7 +107,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/base/ndarray/docs/types/index.d.ts index db43a8ae4b05..4f192341f0f9 100644 --- a/lib/node_modules/@stdlib/blas/base/ndarray/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/blas/base/ndarray/docs/types/index.d.ts @@ -21,10 +21,13 @@ /* eslint-disable max-lines */ import dasum = require( '@stdlib/blas/base/ndarray/dasum' ); +import daxpy = require( '@stdlib/blas/base/ndarray/daxpy' ); import ddot = require( '@stdlib/blas/base/ndarray/ddot' ); import gasum = require( '@stdlib/blas/base/ndarray/gasum' ); +import gaxpy = require( '@stdlib/blas/base/ndarray/gaxpy' ); import gdot = require( '@stdlib/blas/base/ndarray/gdot' ); import sasum = require( '@stdlib/blas/base/ndarray/sasum' ); +import saxpy = require( '@stdlib/blas/base/ndarray/saxpy' ); import sdot = require( '@stdlib/blas/base/ndarray/sdot' ); /** @@ -49,6 +52,33 @@ interface Namespace { */ dasum: typeof dasum; + /** + * Multiplies a one-dimensional double-precision floating-point ndarray `x` by a constant `alpha` and adds the result to a one-dimensional double-precision floating-point ndarray `y`. + * + * @param arrays - array-like object containing an input ndarray, an output ndarray, and a zero-dimensional ndarray containing a scalar constant + * @returns output ndarray + * + * @example + * var Float64Array = require( '@stdlib/array/float64' ); + * var scalar2ndarray = require( '@stdlib/ndarray/base/from-scalar' ); + * var ndarray = require( '@stdlib/ndarray/base/ctor' ); + * + * var xbuf = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] ); + * var x = new ndarray( 'float64', xbuf, [ 5 ], [ 1 ], 0, 'row-major' ); + * + * var ybuf = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0 ] ); + * var y = new ndarray( 'float64', ybuf, [ 5 ], [ 1 ], 0, 'row-major' ); + * + * var alpha = scalar2ndarray( 5.0, 'float64', 'row-major' ); + * + * var z = ns.daxpy( [ x, y, alpha ] ); + * // returns [ 6.0, 11.0, 16.0, 21.0, 26.0 ] + * + * var bool = ( z === y ); + * // returns true + */ + daxpy: typeof daxpy; + /** * Computes the dot product of two one-dimensional double-precision floating-point ndarrays. * @@ -87,6 +117,32 @@ interface Namespace { */ gasum: typeof gasum; + /** + * Multiplies a one-dimensional ndarray `x` by a constant `alpha` and adds the result to a one-dimensional ndarray `y`. + * + * @param arrays - array-like object containing an input ndarray, an output ndarray, and a zero-dimensional ndarray containing a scalar constant + * @returns output ndarray + * + * @example + * var scalar2ndarray = require( '@stdlib/ndarray/base/from-scalar' ); + * var ndarray = require( '@stdlib/ndarray/base/ctor' ); + * + * var xbuf = [ 1.0, 2.0, 3.0, 4.0, 5.0 ]; + * var x = new ndarray( 'generic', xbuf, [ 5 ], [ 1 ], 0, 'row-major' ); + * + * var ybuf = [ 1.0, 1.0, 1.0, 1.0, 1.0 ]; + * var y = new ndarray( 'generic', ybuf, [ 5 ], [ 1 ], 0, 'row-major' ); + * + * var alpha = scalar2ndarray( 5.0, 'generic', 'row-major' ); + * + * var z = ns.gaxpy( [ x, y, alpha ] ); + * // returns [ 6.0, 11.0, 16.0, 21.0, 26.0 ] + * + * var bool = ( z === y ); + * // returns true + */ + gaxpy: typeof gaxpy; + /** * Computes the dot product of two one-dimensional ndarrays. * @@ -125,6 +181,33 @@ interface Namespace { */ sasum: typeof sasum; + /** + * Multiplies a one-dimensional single-precision floating-point ndarray `x` by a constant `alpha` and adds the result to a one-dimensional single-precision floating-point ndarray `y`. + * + * @param arrays - array-like object containing an input ndarray, an output ndarray, and a zero-dimensional ndarray containing a scalar constant + * @returns output ndarray + * + * @example + * var Float32Array = require( '@stdlib/array/float32' ); + * var scalar2ndarray = require( '@stdlib/ndarray/base/from-scalar' ); + * var ndarray = require( '@stdlib/ndarray/base/ctor' ); + * + * var xbuf = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] ); + * var x = new ndarray( 'float32', xbuf, [ 5 ], [ 1 ], 0, 'row-major' ); + * + * var ybuf = new Float32Array( [ 1.0, 1.0, 1.0, 1.0, 1.0 ] ); + * var y = new ndarray( 'float32', ybuf, [ 5 ], [ 1 ], 0, 'row-major' ); + * + * var alpha = scalar2ndarray( 5.0, 'float32', 'row-major' ); + * + * var z = ns.saxpy( [ x, y, alpha ] ); + * // returns [ 6.0, 11.0, 16.0, 21.0, 26.0 ] + * + * var bool = ( z === y ); + * // returns true + */ + saxpy: typeof saxpy; + /** * Computes the dot product of two one-dimensional single-precision floating-point ndarrays. * diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/README.md b/lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/README.md new file mode 100644 index 000000000000..c55989bde0a6 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/README.md @@ -0,0 +1,123 @@ + + +# gaxpy + +> Multiply a one-dimensional ndarray `x` by a constant `alpha` and add the result to a one-dimensional ndarray `y`. + +
+ +
+ + + +
+ +## Usage + +```javascript +var gaxpy = require( '@stdlib/blas/base/ndarray/gaxpy' ); +``` + +#### gaxpy( arrays ) + +Multiplies a one-dimensional ndarray `x` by a constant `alpha` and adds the result to a one-dimensional ndarray `y`. + +```javascript +var scalar2ndarray = require( '@stdlib/ndarray/base/from-scalar' ); +var ndarray = require( '@stdlib/ndarray/base/ctor' ); + +var xbuf = [ 1.0, 2.0, 3.0, 4.0, 5.0 ]; +var x = new ndarray( 'generic', xbuf, [ 5 ], [ 1 ], 0, 'row-major' ); + +var ybuf = [ 1.0, 1.0, 1.0, 1.0, 1.0 ]; +var y = new ndarray( 'generic', ybuf, [ 5 ], [ 1 ], 0, 'row-major' ); + +var alpha = scalar2ndarray( 5.0, 'generic', 'row-major' ); +var z = gaxpy( [ x, y, alpha ] ); +// returns [ 6.0, 11.0, 16.0, 21.0, 26.0 ] + +var bool = ( y === z ); +// returns true +``` + +The function has the following parameters: + +- **arrays**: array-like object containing an input ndarray, an output ndarray, and a zero-dimensional ndarray containing a scalar constant. + +
+ + + +
+ +
+ + + +
+ +## Examples + + + +```javascript +var discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); +var scalar2ndarray = require( '@stdlib/ndarray/from-scalar' ); +var ndarray = require( '@stdlib/ndarray/base/ctor' ); +var ndarray2array = require( '@stdlib/ndarray/to-array' ); +var gaxpy = require( '@stdlib/blas/base/ndarray/gaxpy' ); + +var opts = { + 'dtype': 'generic' +}; + +var xbuf = discreteUniform( 10, 0, 100, opts ); +var x = new ndarray( opts.dtype, xbuf, [ xbuf.length ], [ 1 ], 0, 'row-major' ); +console.log( ndarray2array( x ) ); + +var ybuf = discreteUniform( xbuf.length, 0, 10, opts ); +var y = new ndarray( opts.dtype, ybuf, [ ybuf.length ], [ 1 ], 0, 'row-major' ); +console.log( ndarray2array( y ) ); + +var alpha = scalar2ndarray( 5.0, opts ); +var out = gaxpy( [ x, y, alpha ] ); +console.log( ndarray2array( out ) ); +``` + +
+ + + + + + + + + + + + + + diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/benchmark/benchmark.js new file mode 100644 index 000000000000..76c66e65493f --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/benchmark/benchmark.js @@ -0,0 +1,118 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var bench = require( '@stdlib/bench' ); +var uniform = require( '@stdlib/random/array/uniform' ); +var isnan = require( '@stdlib/math/base/assert/is-nan' ); +var pow = require( '@stdlib/math/base/special/pow' ); +var ndarray = require( '@stdlib/ndarray/base/ctor' ); +var scalar2ndarray = require( '@stdlib/ndarray/base/from-scalar' ); +var format = require( '@stdlib/string/format' ); +var pkg = require( './../package.json' ).name; +var gaxpy = require( './../lib' ); + + +// VARIABLES // + +var options = { + 'dtype': 'generic' +}; + + +// FUNCTIONS // + +/** +* Creates a benchmark function. +* +* @private +* @param {PositiveInteger} len - array length +* @returns {Function} benchmark function +*/ +function createBenchmark( len ) { + var alpha; + var xbuf; + var ybuf; + var x; + var y; + + xbuf = uniform( len, -100.0, 100.0, options ); + x = new ndarray( options.dtype, xbuf, [ len ], [ 1 ], 0, 'row-major' ); + + ybuf = uniform( len, -100.0, 100.0, options ); + y = new ndarray( options.dtype, ybuf, [ len ], [ 1 ], 0, 'row-major' ); + + alpha = scalar2ndarray( 5.0, options.dtype, 'row-major' ); + + 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 = gaxpy( [ x, y, alpha ] ); + if ( typeof z !== 'object' ) { + b.fail( 'should not return NaN' ); + } + } + b.toc(); + if ( isnan( z.get( i%len ) ) ) { + 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 = pow( 10, i ); + f = createBenchmark( len ); + bench( format( '%s:len=%d', pkg, len ), f ); + } +} + +main(); diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/docs/repl.txt b/lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/docs/repl.txt new file mode 100644 index 000000000000..14005cb77fb5 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/docs/repl.txt @@ -0,0 +1,39 @@ + +{{alias}}( arrays ) + Multiplies a one-dimensional ndarray `x` by a constant `alpha` and adds the + result to a one-dimensional ndarray `y`. + + If provided an empty input ndarray, the function returns the output ndarray + unchanged. + + Parameters + ---------- + arrays: ArrayLikeObject + Array-like object containing an input ndarray, an output ndarray, and + a zero-dimensional ndarray containing a scalar constant `alpha`. + + Returns + ------- + out: ndarray + Output ndarray. + + Examples + -------- + > var xbuf = [ 4.0, 2.0, -3.0, 5.0, -1.0 ]; + > var ybuf = [ 2.0, 6.0, -1.0, -4.0, 8.0 ]; + > var dt = 'generic'; + > var sh = [ xbuf.length ]; + > var st = [ 1 ]; + > var oo = 0; + > var ord = 'row-major'; + > var x = new {{alias:@stdlib/ndarray/ctor}}( dt, xbuf, sh, st, oo, ord ); + > var y = new {{alias:@stdlib/ndarray/ctor}}( dt, ybuf, sh, st, oo, ord ); + > var alpha = {{alias:@stdlib/ndarray/base/from-scalar}}( 5.0, dt, ord ); + + > {{alias}}( [ x, y, alpha ] ); + > y + [ 22.0, 16.0, -16.0, 21.0, 3.0 ] + + See Also + -------- + diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/docs/types/index.d.ts new file mode 100644 index 000000000000..21ea94ac4241 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/docs/types/index.d.ts @@ -0,0 +1,54 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2026 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 { typedndarray } from '@stdlib/types/ndarray'; + +/** +* Multiplies a one-dimensional ndarray `x` by a constant `alpha` and adds the result to a one-dimensional ndarray `y`. +* +* @param arrays - array-like object containing an input ndarray, an output ndarray, and a zero-dimensional ndarray containing a scalar constant +* @returns output ndarray +* +* @example +* var scalar2ndarray = require( '@stdlib/ndarray/base/from-scalar' ); +* var ndarray = require( '@stdlib/ndarray/base/ctor' ); +* +* var xbuf = [ 1.0, 2.0, 3.0, 4.0, 5.0 ]; +* var x = new ndarray( 'generic', xbuf, [ 5 ], [ 1 ], 0, 'row-major' ); +* +* var ybuf = [ 1.0, 1.0, 1.0, 1.0, 1.0 ]; +* var y = new ndarray( 'generic', ybuf, [ 5 ], [ 1 ], 0, 'row-major' ); +* +* var alpha = scalar2ndarray( 5.0, 'generic', 'row-major' ); +* +* var z = gaxpy( [ x, y, alpha ] ); +* // returns [ 6.0, 11.0, 16.0, 21.0, 26.0 ] +* +* var bool = ( z === y ); +* // returns true +*/ +declare function gaxpy = typedndarray, U extends typedndarray = typedndarray>( arrays: [ T, U, T ] ): U; + + +// EXPORTS // + +export = gaxpy; diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/docs/types/test.ts b/lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/docs/types/test.ts new file mode 100644 index 000000000000..dd6d2e1c0849 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/docs/types/test.ts @@ -0,0 +1,69 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2026 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 space-in-parens */ + +import zeros = require( '@stdlib/ndarray/zeros' ); +import gaxpy = require( './index' ); + + +// TESTS // + +// The function returns an ndarray... +{ + const x = zeros( [ 10 ], { + 'dtype': 'generic' + }); + const y = zeros( [ 10 ], { + 'dtype': 'generic' + }); + const alpha = zeros( [], { + 'dtype': 'generic' + }); + + gaxpy( [ x, y, alpha ] ); // $ExpectType genericndarray +} + +// The compiler throws an error if the function is provided a first argument which is not an array of ndarrays... +{ + gaxpy( '10' ); // $ExpectError + gaxpy( 10 ); // $ExpectError + gaxpy( true ); // $ExpectError + gaxpy( false ); // $ExpectError + gaxpy( null ); // $ExpectError + gaxpy( undefined ); // $ExpectError + gaxpy( [] ); // $ExpectError + gaxpy( {} ); // $ExpectError + gaxpy( ( x: number ): number => x ); // $ExpectError +} + +// The compiler throws an error if the function is provided an unsupported number of arguments... +{ + const x = zeros( [ 10 ], { + 'dtype': 'generic' + }); + const y = zeros( [ 10 ], { + 'dtype': 'generic' + }); + const alpha = zeros( [], { + 'dtype': 'generic' + }); + + gaxpy(); // $ExpectError + gaxpy( [ x, y, alpha ], {} ); // $ExpectError +} diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/examples/index.js b/lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/examples/index.js new file mode 100644 index 000000000000..52af3298d776 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/examples/index.js @@ -0,0 +1,41 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 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 scalar2ndarray = require( '@stdlib/ndarray/from-scalar' ); +var ndarray = require( '@stdlib/ndarray/base/ctor' ); +var ndarray2array = require( '@stdlib/ndarray/to-array' ); +var gaxpy = require( './../lib' ); + +var opts = { + 'dtype': 'generic' +}; + +var xbuf = discreteUniform( 10, 0, 100, opts ); +var x = new ndarray( opts.dtype, xbuf, [ xbuf.length ], [ 1 ], 0, 'row-major' ); +console.log( ndarray2array( x ) ); + +var ybuf = discreteUniform( xbuf.length, 0, 10, opts ); +var y = new ndarray( opts.dtype, ybuf, [ ybuf.length ], [ 1 ], 0, 'row-major' ); +console.log( ndarray2array( y ) ); + +var alpha = scalar2ndarray( 5.0, opts ); +var out = gaxpy( [ x, y, alpha ] ); +console.log( ndarray2array( out ) ); diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/lib/index.js b/lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/lib/index.js new file mode 100644 index 000000000000..18dc54f5da68 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/lib/index.js @@ -0,0 +1,53 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +/** +* BLAS level 1 routine to multiply a one-dimensional ndarray `x` by a constant `alpha` and add the result to a one-dimensional ndarray `y`. +* +* @module @stdlib/blas/base/ndarray/gaxpy +* +* @example +* var scalar2ndarray = require( '@stdlib/ndarray/base/from-scalar' ); +* var ndarray = require( '@stdlib/ndarray/base/ctor' ); +* var gaxpy = require( '@stdlib/blas/base/ndarray/gaxpy' ); +* +* var xbuf = [ 1.0, 2.0, 3.0, 4.0, 5.0 ]; +* var x = new ndarray( 'generic', xbuf, [ 5 ], [ 1 ], 0, 'row-major' ); +* +* var ybuf = [ 1.0, 1.0, 1.0, 1.0, 1.0 ]; +* var y = new ndarray( 'generic', ybuf, [ 5 ], [ 1 ], 0, 'row-major' ); +* +* var alpha = scalar2ndarray( 5.0, 'generic', 'row-major' ); +* +* var z = gaxpy( [ x, y, alpha ] ); +* // returns [ 6.0, 11.0, 16.0, 21.0, 26.0 ] +* +* var bool = ( z === y ); +* // returns true +*/ + +// MODULES // + +var main = require( './main.js' ); + + +// EXPORTS // + +module.exports = main; diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/lib/main.js b/lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/lib/main.js new file mode 100644 index 000000000000..2057ba423f54 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/lib/main.js @@ -0,0 +1,68 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 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 numelDimension = require( '@stdlib/ndarray/base/numel-dimension' ); +var getStride = require( '@stdlib/ndarray/base/stride' ); +var getOffset = require( '@stdlib/ndarray/base/offset' ); +var getData = require( '@stdlib/ndarray/base/data-buffer' ); +var ndarraylike2scalar = require( '@stdlib/ndarray/base/ndarraylike2scalar' ); +var strided = require( '@stdlib/blas/base/gaxpy' ).ndarray; + + +// MAIN // + +/** +* Multiplies a one-dimensional ndarray `x` by a constant `alpha` and adds the result to a one-dimensional ndarray `y`. +* +* @param {ArrayLikeObject} arrays - array-like object containing an input ndarray, an output ndarray, and a zero-dimensional ndarray containing a scalar constant +* @returns {Object} output ndarray +* +* @example +* var scalar2ndarray = require( '@stdlib/ndarray/base/from-scalar' ); +* var ndarray = require( '@stdlib/ndarray/base/ctor' ); +* +* var xbuf = [ 1.0, 2.0, 3.0, 4.0, 5.0 ]; +* var x = new ndarray( 'generic', xbuf, [ 5 ], [ 1 ], 0, 'row-major' ); +* +* var ybuf = [ 1.0, 1.0, 1.0, 1.0, 1.0 ]; +* var y = new ndarray( 'generic', ybuf, [ 5 ], [ 1 ], 0, 'row-major' ); +* +* var alpha = scalar2ndarray( 5.0, 'generic', 'row-major' ); +* +* var z = gaxpy( [ x, y, alpha ] ); +* // returns [ 6.0, 11.0, 16.0, 21.0, 26.0 ] +* +* var bool = ( z === y ); +* // returns true +*/ +function gaxpy( arrays ) { + var alpha = ndarraylike2scalar( arrays[ 2 ] ); + var x = arrays[ 0 ]; + var y = arrays[ 1 ]; + strided( numelDimension( x, 0 ), alpha, getData( x ), getStride( x, 0 ), getOffset( x ), getData( y ), getStride( y, 0 ), getOffset( y ) ); // eslint-disable-line max-len + return y; +} + + +// EXPORTS // + +module.exports = gaxpy; diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/package.json b/lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/package.json new file mode 100644 index 000000000000..43b738d43677 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/package.json @@ -0,0 +1,72 @@ +{ + "name": "@stdlib/blas/base/ndarray/gaxpy", + "version": "0.0.0", + "description": "Multiply a one-dimensional ndarray `x` by a constant `alpha` and add the result to a one-dimensional ndarray `y`.", + "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 1", + "gaxpy", + "linear", + "algebra", + "subroutines", + "daxpy", + "add", + "alpha", + "vector", + "array", + "ndarray", + "generic", + "double", + "typedarray" + ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/test/test.js b/lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/test/test.js new file mode 100644 index 000000000000..61ba09572b6f --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ndarray/gaxpy/test/test.js @@ -0,0 +1,233 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 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 isSameArray = require( '@stdlib/assert/is-same-array' ); +var scalar2ndarray = require( '@stdlib/ndarray/base/from-scalar' ); +var ndarray = require( '@stdlib/ndarray/base/ctor' ); +var getData = require( '@stdlib/ndarray/data-buffer' ); +var gaxpy = require( './../lib' ); + + +// FUNCTIONS // + +/** +* Returns a one-dimensional ndarray. +* +* @private +* @param {Collection} buffer - underlying data buffer +* @param {NonNegativeInteger} length - number of indexed elements +* @param {integer} stride - stride length +* @param {NonNegativeInteger} offset - index offset +* @returns {ndarray} one-dimensional ndarray +*/ +function vector( buffer, length, stride, offset ) { + return new ndarray( 'generic', buffer, [ length ], [ stride ], offset, 'row-major' ); +} + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof gaxpy, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function has an arity of 1', function test( t ) { + t.strictEqual( gaxpy.length, 1, 'has expected arity' ); + t.end(); +}); + +tape( 'the function multiplies one-dimensional ndarray `x` by a constant `alpha` and adds the result to one-dimensional ndarray `y`', function test( t ) { + var expected; + var alpha; + var xbuf; + var ybuf; + var x; + var y; + var v; + + xbuf = [ 1.0, 2.0, 3.0, 4.0, 5.0 ]; + ybuf = [ 1.0, 1.0, 1.0, 1.0, 1.0 ]; + x = vector( xbuf, 5, 1, 0 ); + y = vector( ybuf, 5, 1, 0 ); + alpha = scalar2ndarray( 2.0, 'generic', 'row-major' ); + + v = gaxpy( [ x, y, alpha ] ); + + expected = [ 3.0, 5.0, 7.0, 9.0, 11.0 ]; + t.strictEqual( v, y, 'returns expected value' ); + t.strictEqual( isSameArray( getData( v ), expected ), true, 'returns expected value' ); + + xbuf = [ 1.0, 2.0 ]; + ybuf = [ 1.0, 1.0 ]; + x = vector( xbuf, 2, 1, 0 ); + y = vector( ybuf, 2, 1, 0 ); + alpha = scalar2ndarray( 2.0, 'generic', 'row-major' ); + + v = gaxpy( [ x, y, alpha ] ); + + expected = [ 3.0, 5.0 ]; + t.strictEqual( v, y, 'returns expected value' ); + t.strictEqual( isSameArray( getData( v ), expected ), true, 'returns expected value' ); + + t.end(); +}); + +tape( 'if provided empty ndarrays, the function returns the output ndarray unchanged', function test( t ) { + var expected; + var alpha; + var xbuf; + var ybuf; + var x; + var y; + var v; + + xbuf = []; + ybuf = []; + x = vector( xbuf, 0, 1, 0 ); + y = vector( ybuf, 0, 1, 0 ); + alpha = scalar2ndarray( 5.0, 'generic', 'row-major' ); + + v = gaxpy( [ x, y, alpha ] ); + + expected = []; + t.strictEqual( v, y, 'returns expected value' ); + t.strictEqual( isSameArray( getData( v ), expected ), true, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports one-dimensional ndarrays having non-unit strides', function test( t ) { + var expected; + var alpha; + var xbuf; + var ybuf; + var x; + var y; + var v; + + xbuf = [ + 1.0, // 0 + 2.0, + 3.0, // 1 + 4.0, + 5.0 // 2 + ]; + x = vector( xbuf, 3, 2, 0 ); + + ybuf = [ + 1.0, // 0 + 1.0, // 1 + 1.0, // 2 + 1.0, + 1.0 + ]; + y = vector( ybuf, 3, 1, 0 ); + alpha = scalar2ndarray( 2.0, 'generic', 'row-major' ); + + v = gaxpy( [ x, y, alpha ] ); + + expected = [ 3.0, 7.0, 11.0, 1.0, 1.0 ]; + t.strictEqual( v, y, 'returns expected value' ); + t.strictEqual( isSameArray( getData( v ), expected ), true, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports one-dimensional ndarrays having negative strides', function test( t ) { + var expected; + var alpha; + var xbuf; + var ybuf; + var x; + var y; + var v; + + xbuf = [ + 1.0, // 2 + 2.0, + 3.0, // 1 + 4.0, + 5.0 // 0 + ]; + x = vector( xbuf, 3, -2, 4 ); + + ybuf = [ + 6.0, // 2 + 7.0, // 1 + 8.0, // 0 + 9.0, + 10.0 + ]; + y = vector( ybuf, 3, -1, 2 ); + alpha = scalar2ndarray( 3.0, 'generic', 'row-major' ); + + v = gaxpy( [ x, y, alpha ] ); + + expected = [ 9.0, 16.0, 23.0, 9.0, 10.0 ]; + t.strictEqual( v, y, 'returns expected value' ); + t.strictEqual( isSameArray( getData( v ), expected ), true, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports one-dimensional ndarrays having non-zero offsets', function test( t ) { + var expected; + var alpha; + var xbuf; + var ybuf; + var x; + var y; + var v; + + xbuf = [ + 2.0, + 1.0, // 0 + 2.0, + -2.0, // 1 + -2.0, + 2.0, // 2 + 3.0, + 4.0 // 3 + ]; + x = vector( xbuf, 4, 2, 1 ); + + ybuf = [ + 1.0, + 2.0, + 3.0, // 0 + 4.0, // 1 + 5.0, // 2 + 6.0, // 3 + 7.0, + 8.0 + ]; + y = vector( ybuf, 4, 1, 2 ); + alpha = scalar2ndarray( 3.0, 'generic', 'row-major' ); + + v = gaxpy( [ x, y, alpha ] ); + + expected = [ 1.0, 2.0, 6.0, -2.0, 11.0, 18.0, 7.0, 8.0 ]; + t.strictEqual( v, y, 'returns expected value' ); + t.strictEqual( isSameArray( getData( v ), expected ), true, 'returns expected value' ); + t.end(); +}); diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/gdot/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/ndarray/gdot/benchmark/benchmark.js index 2e88dc9cad05..fae741f48077 100644 --- a/lib/node_modules/@stdlib/blas/base/ndarray/gdot/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/ndarray/gdot/benchmark/benchmark.js @@ -25,6 +25,7 @@ var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var ndarray = require( '@stdlib/ndarray/base/ctor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gdot = require( './../lib' ); @@ -106,7 +107,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/lib/index.js b/lib/node_modules/@stdlib/blas/base/ndarray/lib/index.js index 7a951b8152d3..5de30456a6e0 100644 --- a/lib/node_modules/@stdlib/blas/base/ndarray/lib/index.js +++ b/lib/node_modules/@stdlib/blas/base/ndarray/lib/index.js @@ -45,6 +45,15 @@ var ns = {}; */ setReadOnly( ns, 'dasum', require( '@stdlib/blas/base/ndarray/dasum' ) ); +/** +* @name daxpy +* @memberof ns +* @readonly +* @type {Function} +* @see {@link module:@stdlib/blas/base/ndarray/daxpy} +*/ +setReadOnly( ns, 'daxpy', require( '@stdlib/blas/base/ndarray/daxpy' ) ); + /** * @name ddot * @memberof ns @@ -63,6 +72,15 @@ setReadOnly( ns, 'ddot', require( '@stdlib/blas/base/ndarray/ddot' ) ); */ setReadOnly( ns, 'gasum', require( '@stdlib/blas/base/ndarray/gasum' ) ); +/** +* @name gaxpy +* @memberof ns +* @readonly +* @type {Function} +* @see {@link module:@stdlib/blas/base/ndarray/gaxpy} +*/ +setReadOnly( ns, 'gaxpy', require( '@stdlib/blas/base/ndarray/gaxpy' ) ); + /** * @name gdot * @memberof ns @@ -81,6 +99,15 @@ setReadOnly( ns, 'gdot', require( '@stdlib/blas/base/ndarray/gdot' ) ); */ setReadOnly( ns, 'sasum', require( '@stdlib/blas/base/ndarray/sasum' ) ); +/** +* @name saxpy +* @memberof ns +* @readonly +* @type {Function} +* @see {@link module:@stdlib/blas/base/ndarray/saxpy} +*/ +setReadOnly( ns, 'saxpy', require( '@stdlib/blas/base/ndarray/saxpy' ) ); + /** * @name sdot * @memberof ns diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/saxpy/README.md b/lib/node_modules/@stdlib/blas/base/ndarray/saxpy/README.md new file mode 100644 index 000000000000..9ef182459b66 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ndarray/saxpy/README.md @@ -0,0 +1,124 @@ + + +# saxpy + +> Multiply a one-dimensional single-precision floating-point ndarray `x` by a constant `alpha` and add the result to a one-dimensional single-precision floating-point ndarray `y`. + +
+ +
+ + + +
+ +## Usage + +```javascript +var saxpy = require( '@stdlib/blas/base/ndarray/saxpy' ); +``` + +#### saxpy( arrays ) + +Multiplies a one-dimensional single-precision floating-point ndarray `x` by a constant `alpha` and adds the result to a one-dimensional single-precision floating-point ndarray `y`. + +```javascript +var Float32Array = require( '@stdlib/array/float32' ); +var scalar2ndarray = require( '@stdlib/ndarray/base/from-scalar' ); +var ndarray = require( '@stdlib/ndarray/base/ctor' ); + +var xbuf = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] ); +var x = new ndarray( 'float32', xbuf, [ 5 ], [ 1 ], 0, 'row-major' ); + +var ybuf = new Float32Array( [ 1.0, 1.0, 1.0, 1.0, 1.0 ] ); +var y = new ndarray( 'float32', ybuf, [ 5 ], [ 1 ], 0, 'row-major' ); + +var alpha = scalar2ndarray( 5.0, 'float32', 'row-major' ); +var z = saxpy( [ x, y, alpha ] ); +// returns [ 6.0, 11.0, 16.0, 21.0, 26.0 ] + +var bool = ( y === z ); +// returns true +``` + +The function has the following parameters: + +- **arrays**: array-like object containing an input ndarray, an output ndarray, and a zero-dimensional ndarray containing a scalar constant. + +
+ + + +
+ +
+ + + +
+ +## Examples + + + +```javascript +var discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); +var scalar2ndarray = require( '@stdlib/ndarray/from-scalar' ); +var ndarray = require( '@stdlib/ndarray/base/ctor' ); +var ndarray2array = require( '@stdlib/ndarray/to-array' ); +var saxpy = require( '@stdlib/blas/base/ndarray/saxpy' ); + +var opts = { + 'dtype': 'float32' +}; + +var xbuf = discreteUniform( 10, 0, 100, opts ); +var x = new ndarray( opts.dtype, xbuf, [ xbuf.length ], [ 1 ], 0, 'row-major' ); +console.log( ndarray2array( x ) ); + +var ybuf = discreteUniform( xbuf.length, 0, 10, opts ); +var y = new ndarray( opts.dtype, ybuf, [ ybuf.length ], [ 1 ], 0, 'row-major' ); +console.log( ndarray2array( y ) ); + +var alpha = scalar2ndarray( 5.0, opts ); +var out = saxpy( [ x, y, alpha ] ); +console.log( ndarray2array( out ) ); +``` + +
+ + + + + + + + + + + + + + diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/saxpy/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/ndarray/saxpy/benchmark/benchmark.js new file mode 100644 index 000000000000..f9c12ff22473 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ndarray/saxpy/benchmark/benchmark.js @@ -0,0 +1,118 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var bench = require( '@stdlib/bench' ); +var uniform = require( '@stdlib/random/array/uniform' ); +var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); +var pow = require( '@stdlib/math/base/special/pow' ); +var ndarray = require( '@stdlib/ndarray/base/ctor' ); +var scalar2ndarray = require( '@stdlib/ndarray/base/from-scalar' ); +var format = require( '@stdlib/string/format' ); +var pkg = require( './../package.json' ).name; +var saxpy = require( './../lib' ); + + +// VARIABLES // + +var options = { + 'dtype': 'float32' +}; + + +// FUNCTIONS // + +/** +* Creates a benchmark function. +* +* @private +* @param {PositiveInteger} len - array length +* @returns {Function} benchmark function +*/ +function createBenchmark( len ) { + var alpha; + var xbuf; + var ybuf; + var x; + var y; + + xbuf = uniform( len, -100.0, 100.0, options ); + x = new ndarray( options.dtype, xbuf, [ len ], [ 1 ], 0, 'row-major' ); + + ybuf = uniform( len, -100.0, 100.0, options ); + y = new ndarray( options.dtype, ybuf, [ len ], [ 1 ], 0, 'row-major' ); + + alpha = scalar2ndarray( 5.0, options.dtype, 'row-major' ); + + 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 = saxpy( [ x, y, alpha ] ); + if ( typeof z !== 'object' ) { + b.fail( 'should not return NaN' ); + } + } + b.toc(); + if ( isnanf( z.get( i%len ) ) ) { + 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 = pow( 10, i ); + f = createBenchmark( len ); + bench( format( '%s:len=%d', pkg, len ), f ); + } +} + +main(); diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/saxpy/docs/repl.txt b/lib/node_modules/@stdlib/blas/base/ndarray/saxpy/docs/repl.txt new file mode 100644 index 000000000000..99683baffa8e --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ndarray/saxpy/docs/repl.txt @@ -0,0 +1,40 @@ + +{{alias}}( arrays ) + Multiplies a one-dimensional single-precision floating-point ndarray `x` + by a constant `alpha` and adds the result to a one-dimensional single- + precision floating-point ndarray `y`. + + If provided an empty input ndarray, the function returns the output ndarray + unchanged. + + Parameters + ---------- + arrays: ArrayLikeObject + Array-like object containing an input ndarray, an output ndarray, and + a zero-dimensional ndarray containing a scalar constant `alpha`. + + Returns + ------- + out: ndarray + Output ndarray. + + Examples + -------- + > var xbuf = new {{alias:@stdlib/array/float32}}( [ 4.0, 2.0, -3.0, 5.0, -1.0 ] ); + > var ybuf = new {{alias:@stdlib/array/float32}}( [ 2.0, 6.0, -1.0, -4.0, 8.0 ] ); + > var dt = 'float32'; + > var sh = [ xbuf.length ]; + > var st = [ 1 ]; + > var oo = 0; + > var ord = 'row-major'; + > var x = new {{alias:@stdlib/ndarray/ctor}}( dt, xbuf, sh, st, oo, ord ); + > var y = new {{alias:@stdlib/ndarray/ctor}}( dt, ybuf, sh, st, oo, ord ); + > var alpha = {{alias:@stdlib/ndarray/base/from-scalar}}( 5.0, dt, ord ); + + > {{alias}}( [ x, y, alpha ] ); + > y + [ 22.0, 16.0, -16.0, 21.0, 3.0 ] + + See Also + -------- + diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/saxpy/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/base/ndarray/saxpy/docs/types/index.d.ts new file mode 100644 index 000000000000..f34cf3064197 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ndarray/saxpy/docs/types/index.d.ts @@ -0,0 +1,55 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2026 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 { float32ndarray } from '@stdlib/types/ndarray'; + +/** +* Multiplies a one-dimensional single-precision floating-point ndarray `x` by a constant `alpha` and adds the result to a one-dimensional single-precision floating-point ndarray `y`. +* +* @param arrays - array-like object containing an input ndarray, an output ndarray, and a zero-dimensional ndarray containing a scalar constant +* @returns output ndarray +* +* @example +* var Float32Array = require( '@stdlib/array/float32' ); +* var scalar2ndarray = require( '@stdlib/ndarray/base/from-scalar' ); +* var ndarray = require( '@stdlib/ndarray/base/ctor' ); +* +* var xbuf = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] ); +* var x = new ndarray( 'float32', xbuf, [ 5 ], [ 1 ], 0, 'row-major' ); +* +* var ybuf = new Float32Array( [ 1.0, 1.0, 1.0, 1.0, 1.0 ] ); +* var y = new ndarray( 'float32', ybuf, [ 5 ], [ 1 ], 0, 'row-major' ); +* +* var alpha = scalar2ndarray( 5.0, 'float32', 'row-major' ); +* +* var z = saxpy( [ x, y, alpha ] ); +* // returns [ 6.0, 11.0, 16.0, 21.0, 26.0 ] +* +* var bool = ( z === y ); +* // returns true +*/ +declare function saxpy( arrays: [ float32ndarray, float32ndarray, float32ndarray ] ): float32ndarray; + + +// EXPORTS // + +export = saxpy; diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/saxpy/docs/types/test.ts b/lib/node_modules/@stdlib/blas/base/ndarray/saxpy/docs/types/test.ts new file mode 100644 index 000000000000..297729326ec7 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ndarray/saxpy/docs/types/test.ts @@ -0,0 +1,69 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2026 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 space-in-parens */ + +import zeros = require( '@stdlib/ndarray/zeros' ); +import saxpy = require( './index' ); + + +// TESTS // + +// The function returns an ndarray... +{ + const x = zeros( [ 10 ], { + 'dtype': 'float32' + }); + const y = zeros( [ 10 ], { + 'dtype': 'float32' + }); + const alpha = zeros( [], { + 'dtype': 'float32' + }); + + saxpy( [ x, y, alpha ] ); // $ExpectType float32ndarray +} + +// The compiler throws an error if the function is provided a first argument which is not an array of ndarrays... +{ + saxpy( '10' ); // $ExpectError + saxpy( 10 ); // $ExpectError + saxpy( true ); // $ExpectError + saxpy( false ); // $ExpectError + saxpy( null ); // $ExpectError + saxpy( undefined ); // $ExpectError + saxpy( [] ); // $ExpectError + saxpy( {} ); // $ExpectError + saxpy( ( x: number ): number => x ); // $ExpectError +} + +// The compiler throws an error if the function is provided an unsupported number of arguments... +{ + const x = zeros( [ 10 ], { + 'dtype': 'float32' + }); + const y = zeros( [ 10 ], { + 'dtype': 'float32' + }); + const alpha = zeros( [], { + 'dtype': 'float32' + }); + + saxpy(); // $ExpectError + saxpy( [ x, y, alpha ], {} ); // $ExpectError +} diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/saxpy/examples/index.js b/lib/node_modules/@stdlib/blas/base/ndarray/saxpy/examples/index.js new file mode 100644 index 000000000000..f19bcf77c010 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ndarray/saxpy/examples/index.js @@ -0,0 +1,41 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 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 scalar2ndarray = require( '@stdlib/ndarray/from-scalar' ); +var ndarray = require( '@stdlib/ndarray/base/ctor' ); +var ndarray2array = require( '@stdlib/ndarray/to-array' ); +var saxpy = require( './../lib' ); + +var opts = { + 'dtype': 'float32' +}; + +var xbuf = discreteUniform( 10, 0, 100, opts ); +var x = new ndarray( opts.dtype, xbuf, [ xbuf.length ], [ 1 ], 0, 'row-major' ); +console.log( ndarray2array( x ) ); + +var ybuf = discreteUniform( xbuf.length, 0, 10, opts ); +var y = new ndarray( opts.dtype, ybuf, [ ybuf.length ], [ 1 ], 0, 'row-major' ); +console.log( ndarray2array( y ) ); + +var alpha = scalar2ndarray( 5.0, opts ); +var out = saxpy( [ x, y, alpha ] ); +console.log( ndarray2array( out ) ); diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/saxpy/lib/index.js b/lib/node_modules/@stdlib/blas/base/ndarray/saxpy/lib/index.js new file mode 100644 index 000000000000..d688c6438419 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ndarray/saxpy/lib/index.js @@ -0,0 +1,54 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +/** +* BLAS level 1 routine to multiply a one-dimensional single-precision floating-point ndarray `x` by a constant `alpha` and add the result to a one-dimensional single-precision floating-point ndarray `y`. +* +* @module @stdlib/blas/base/ndarray/saxpy +* +* @example +* var Float32Array = require( '@stdlib/array/float32' ); +* var scalar2ndarray = require( '@stdlib/ndarray/base/from-scalar' ); +* var ndarray = require( '@stdlib/ndarray/base/ctor' ); +* var saxpy = require( '@stdlib/blas/base/ndarray/saxpy' ); +* +* var xbuf = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] ); +* var x = new ndarray( 'float32', xbuf, [ 5 ], [ 1 ], 0, 'row-major' ); +* +* var ybuf = new Float32Array( [ 1.0, 1.0, 1.0, 1.0, 1.0 ] ); +* var y = new ndarray( 'float32', ybuf, [ 5 ], [ 1 ], 0, 'row-major' ); +* +* var alpha = scalar2ndarray( 5.0, 'float32', 'row-major' ); +* +* var z = saxpy( [ x, y, alpha ] ); +* // returns [ 6.0, 11.0, 16.0, 21.0, 26.0 ] +* +* var bool = ( z === y ); +* // returns true +*/ + +// MODULES // + +var main = require( './main.js' ); + + +// EXPORTS // + +module.exports = main; diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/saxpy/lib/main.js b/lib/node_modules/@stdlib/blas/base/ndarray/saxpy/lib/main.js new file mode 100644 index 000000000000..ee18791b0aa1 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ndarray/saxpy/lib/main.js @@ -0,0 +1,69 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 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 numelDimension = require( '@stdlib/ndarray/base/numel-dimension' ); +var getStride = require( '@stdlib/ndarray/base/stride' ); +var getOffset = require( '@stdlib/ndarray/base/offset' ); +var getData = require( '@stdlib/ndarray/base/data-buffer' ); +var ndarraylike2scalar = require( '@stdlib/ndarray/base/ndarraylike2scalar' ); +var strided = require( '@stdlib/blas/base/saxpy' ).ndarray; + + +// MAIN // + +/** +* Multiplies a one-dimensional single-precision floating-point ndarray `x` by a constant `alpha` and adds the result to a one-dimensional single-precision floating-point ndarray `y`. +* +* @param {ArrayLikeObject} arrays - array-like object containing an input ndarray, an output ndarray, and a zero-dimensional ndarray containing a scalar constant +* @returns {Object} output ndarray +* +* @example +* var Float32Array = require( '@stdlib/array/float32' ); +* var scalar2ndarray = require( '@stdlib/ndarray/base/from-scalar' ); +* var ndarray = require( '@stdlib/ndarray/base/ctor' ); +* +* var xbuf = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] ); +* var x = new ndarray( 'float32', xbuf, [ 5 ], [ 1 ], 0, 'row-major' ); +* +* var ybuf = new Float32Array( [ 1.0, 1.0, 1.0, 1.0, 1.0 ] ); +* var y = new ndarray( 'float32', ybuf, [ 5 ], [ 1 ], 0, 'row-major' ); +* +* var alpha = scalar2ndarray( 5.0, 'float32', 'row-major' ); +* +* var z = saxpy( [ x, y, alpha ] ); +* // returns [ 6.0, 11.0, 16.0, 21.0, 26.0 ] +* +* var bool = ( z === y ); +* // returns true +*/ +function saxpy( arrays ) { + var alpha = ndarraylike2scalar( arrays[ 2 ] ); + var x = arrays[ 0 ]; + var y = arrays[ 1 ]; + strided( numelDimension( x, 0 ), alpha, getData( x ), getStride( x, 0 ), getOffset( x ), getData( y ), getStride( y, 0 ), getOffset( y ) ); // eslint-disable-line max-len + return y; +} + + +// EXPORTS // + +module.exports = saxpy; diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/saxpy/package.json b/lib/node_modules/@stdlib/blas/base/ndarray/saxpy/package.json new file mode 100644 index 000000000000..2537bfa75fbf --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ndarray/saxpy/package.json @@ -0,0 +1,73 @@ +{ + "name": "@stdlib/blas/base/ndarray/saxpy", + "version": "0.0.0", + "description": "Multiply a one-dimensional single-precision floating-point ndarray `x` by a constant `alpha` and add the result to a one-dimensional single-precision floating-point ndarray `y`.", + "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 1", + "saxpy", + "linear", + "algebra", + "subroutines", + "daxpy", + "gaxpy", + "add", + "alpha", + "vector", + "array", + "ndarray", + "float32", + "single", + "float32array" + ] +} diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/saxpy/test/test.js b/lib/node_modules/@stdlib/blas/base/ndarray/saxpy/test/test.js new file mode 100644 index 000000000000..8657d44ed577 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/base/ndarray/saxpy/test/test.js @@ -0,0 +1,234 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 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 isSameFloat32Array = require( '@stdlib/assert/is-same-float32array' ); +var Float32Array = require( '@stdlib/array/float32' ); +var scalar2ndarray = require( '@stdlib/ndarray/base/from-scalar' ); +var ndarray = require( '@stdlib/ndarray/base/ctor' ); +var getData = require( '@stdlib/ndarray/data-buffer' ); +var saxpy = require( './../lib' ); + + +// FUNCTIONS // + +/** +* Returns a one-dimensional ndarray. +* +* @private +* @param {Collection} buffer - underlying data buffer +* @param {NonNegativeInteger} length - number of indexed elements +* @param {integer} stride - stride length +* @param {NonNegativeInteger} offset - index offset +* @returns {ndarray} one-dimensional ndarray +*/ +function vector( buffer, length, stride, offset ) { + return new ndarray( 'float32', buffer, [ length ], [ stride ], offset, 'row-major' ); +} + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof saxpy, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function has an arity of 1', function test( t ) { + t.strictEqual( saxpy.length, 1, 'has expected arity' ); + t.end(); +}); + +tape( 'the function multiplies one-dimensional ndarray `x` by a constant `alpha` and adds the result to one-dimensional ndarray `y`', function test( t ) { + var expected; + var alpha; + var xbuf; + var ybuf; + var x; + var y; + var v; + + xbuf = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] ); + ybuf = new Float32Array( [ 1.0, 1.0, 1.0, 1.0, 1.0 ] ); + x = vector( xbuf, 5, 1, 0 ); + y = vector( ybuf, 5, 1, 0 ); + alpha = scalar2ndarray( 2.0, 'float32', 'row-major' ); + + v = saxpy( [ x, y, alpha ] ); + + expected = new Float32Array( [ 3.0, 5.0, 7.0, 9.0, 11.0 ] ); + t.strictEqual( v, y, 'returns expected value' ); + t.strictEqual( isSameFloat32Array( getData( v ), expected ), true, 'returns expected value' ); + + xbuf = new Float32Array( [ 1.0, 2.0 ] ); + ybuf = new Float32Array( [ 1.0, 1.0 ] ); + x = vector( xbuf, 2, 1, 0 ); + y = vector( ybuf, 2, 1, 0 ); + alpha = scalar2ndarray( 2.0, 'float32', 'row-major' ); + + v = saxpy( [ x, y, alpha ] ); + + expected = new Float32Array( [ 3.0, 5.0 ] ); + t.strictEqual( v, y, 'returns expected value' ); + t.strictEqual( isSameFloat32Array( getData( v ), expected ), true, 'returns expected value' ); + + t.end(); +}); + +tape( 'if provided empty ndarrays, the function returns the output ndarray unchanged', function test( t ) { + var expected; + var alpha; + var xbuf; + var ybuf; + var x; + var y; + var v; + + xbuf = new Float32Array( [] ); + ybuf = new Float32Array( [] ); + x = vector( xbuf, 0, 1, 0 ); + y = vector( ybuf, 0, 1, 0 ); + alpha = scalar2ndarray( 5.0, 'float32', 'row-major' ); + + v = saxpy( [ x, y, alpha ] ); + + expected = new Float32Array( [] ); + t.strictEqual( v, y, 'returns expected value' ); + t.strictEqual( isSameFloat32Array( getData( v ), expected ), true, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports one-dimensional ndarrays having non-unit strides', function test( t ) { + var expected; + var alpha; + var xbuf; + var ybuf; + var x; + var y; + var v; + + xbuf = new Float32Array([ + 1.0, // 0 + 2.0, + 3.0, // 1 + 4.0, + 5.0 // 2 + ]); + x = vector( xbuf, 3, 2, 0 ); + + ybuf = new Float32Array([ + 1.0, // 0 + 1.0, // 1 + 1.0, // 2 + 1.0, + 1.0 + ]); + y = vector( ybuf, 3, 1, 0 ); + alpha = scalar2ndarray( 2.0, 'float32', 'row-major' ); + + v = saxpy( [ x, y, alpha ] ); + + expected = new Float32Array( [ 3.0, 7.0, 11.0, 1.0, 1.0 ] ); + t.strictEqual( v, y, 'returns expected value' ); + t.strictEqual( isSameFloat32Array( getData( v ), expected ), true, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports one-dimensional ndarrays having negative strides', function test( t ) { + var expected; + var alpha; + var xbuf; + var ybuf; + var x; + var y; + var v; + + xbuf = new Float32Array([ + 1.0, // 2 + 2.0, + 3.0, // 1 + 4.0, + 5.0 // 0 + ]); + x = vector( xbuf, 3, -2, 4 ); + + ybuf = new Float32Array([ + 6.0, // 2 + 7.0, // 1 + 8.0, // 0 + 9.0, + 10.0 + ]); + y = vector( ybuf, 3, -1, 2 ); + alpha = scalar2ndarray( 3.0, 'float32', 'row-major' ); + + v = saxpy( [ x, y, alpha ] ); + + expected = new Float32Array( [ 9.0, 16.0, 23.0, 9.0, 10.0 ] ); + t.strictEqual( v, y, 'returns expected value' ); + t.strictEqual( isSameFloat32Array( getData( v ), expected ), true, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports one-dimensional ndarrays having non-zero offsets', function test( t ) { + var expected; + var alpha; + var xbuf; + var ybuf; + var x; + var y; + var v; + + xbuf = new Float32Array([ + 2.0, + 1.0, // 0 + 2.0, + -2.0, // 1 + -2.0, + 2.0, // 2 + 3.0, + 4.0 // 3 + ]); + x = vector( xbuf, 4, 2, 1 ); + + ybuf = new Float32Array([ + 1.0, + 2.0, + 3.0, // 0 + 4.0, // 1 + 5.0, // 2 + 6.0, // 3 + 7.0, + 8.0 + ]); + y = vector( ybuf, 4, 1, 2 ); + alpha = scalar2ndarray( 3.0, 'float32', 'row-major' ); + + v = saxpy( [ x, y, alpha ] ); + + expected = new Float32Array( [ 1.0, 2.0, 6.0, -2.0, 11.0, 18.0, 7.0, 8.0 ] ); + t.strictEqual( v, y, 'returns expected value' ); + t.strictEqual( isSameFloat32Array( getData( v ), expected ), true, 'returns expected value' ); + t.end(); +}); diff --git a/lib/node_modules/@stdlib/blas/base/ndarray/sdot/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/ndarray/sdot/benchmark/benchmark.js index 154d502c67dc..52f549719e82 100644 --- a/lib/node_modules/@stdlib/blas/base/ndarray/sdot/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/ndarray/sdot/benchmark/benchmark.js @@ -25,6 +25,7 @@ var uniform = require( '@stdlib/random/array/uniform' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); var ndarray = require( '@stdlib/ndarray/base/ctor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var sdot = require( './../lib' ); @@ -106,7 +107,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/operation-side-resolve-enum/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/operation-side-resolve-enum/benchmark/benchmark.js index ed9ce0b67047..5c0ff2788635 100644 --- a/lib/node_modules/@stdlib/blas/base/operation-side-resolve-enum/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/operation-side-resolve-enum/benchmark/benchmark.js @@ -23,13 +23,14 @@ var bench = require( '@stdlib/bench' ); var isInteger = require( '@stdlib/assert/is-integer' ).isPrimitive; var str2enum = require( '@stdlib/blas/base/operation-side-str2enum' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var resolve = require( './../lib' ); // MAIN // -bench( pkg+'::string', function benchmark( b ) { +bench( format( '%s::string', pkg ), function benchmark( b ) { var values; var out; var i; @@ -54,7 +55,7 @@ bench( pkg+'::string', function benchmark( b ) { b.end(); }); -bench( pkg+'::integer', function benchmark( b ) { +bench( format( '%s::integer', pkg ), function benchmark( b ) { var values; var out; var i; diff --git a/lib/node_modules/@stdlib/blas/base/operation-side-resolve-str/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/operation-side-resolve-str/benchmark/benchmark.js index 9ecb5bf480b4..f021e32c733a 100644 --- a/lib/node_modules/@stdlib/blas/base/operation-side-resolve-str/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/operation-side-resolve-str/benchmark/benchmark.js @@ -23,13 +23,14 @@ var bench = require( '@stdlib/bench' ); var isString = require( '@stdlib/assert/is-string' ).isPrimitive; var str2enum = require( '@stdlib/blas/base/operation-side-str2enum' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var resolve = require( './../lib' ); // MAIN // -bench( pkg+'::string', function benchmark( b ) { +bench( format( '%s::string', pkg ), function benchmark( b ) { var values; var out; var i; @@ -54,7 +55,7 @@ bench( pkg+'::string', function benchmark( b ) { b.end(); }); -bench( pkg+'::integer', function benchmark( b ) { +bench( format( '%s::integer', pkg ), function benchmark( b ) { var values; var out; var i; diff --git a/lib/node_modules/@stdlib/blas/base/scabs1/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/base/scabs1/benchmark/benchmark.native.js index 2d605f327e02..a158f4dc2c06 100644 --- a/lib/node_modules/@stdlib/blas/base/scabs1/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/blas/base/scabs1/benchmark/benchmark.native.js @@ -26,6 +26,7 @@ var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -39,7 +40,7 @@ var opts = { // MAIN // -bench( pkg+'::native', opts, function benchmark( b ) { +bench( format( '%s::native', pkg ), opts, function benchmark( b ) { var values; var y; var i; diff --git a/lib/node_modules/@stdlib/blas/base/sdsdot/README.md b/lib/node_modules/@stdlib/blas/base/sdsdot/README.md index d6b8f9131d58..c1eb8301d180 100644 --- a/lib/node_modules/@stdlib/blas/base/sdsdot/README.md +++ b/lib/node_modules/@stdlib/blas/base/sdsdot/README.md @@ -213,7 +213,7 @@ const float x[] = { 1.0f, -2.0f, 3.0f, -4.0f, 5.0f, -6.0f, 7.0f, -8.0f }; const float y[] = { 1.0f, -2.0f, 3.0f, -4.0f, 5.0f, -6.0f, 7.0f, -8.0f }; float v = c_sdsdot( 5, 0.0f, x, 1, y, -1 ); -// returns -120.0f +// returns 35.0f ``` The function accepts the following arguments: diff --git a/lib/node_modules/@stdlib/blas/base/sger/README.md b/lib/node_modules/@stdlib/blas/base/sger/README.md index 3220d4a0614c..737fe0646aee 100644 --- a/lib/node_modules/@stdlib/blas/base/sger/README.md +++ b/lib/node_modules/@stdlib/blas/base/sger/README.md @@ -335,7 +335,7 @@ int main( void ) { } // Perform operation using alternative indexing semantics: - c_sger( CblasRowMajor, M, N, 1.0f, x, strideX, 0, y, 0, strideY, A, N, 1, 0 ); + c_sger_ndarray( M, N, 1.0f, x, strideX, 0, y, strideY, 0, A, N, 1, 0 ); // Print the result: for ( int i = 0; i < M; i++ ) { diff --git a/lib/node_modules/@stdlib/blas/base/srotm/benchmark/c/benchmark.length.c b/lib/node_modules/@stdlib/blas/base/srotm/benchmark/c/benchmark.length.c index 424c0dec1688..d0c5b5c642e2 100644 --- a/lib/node_modules/@stdlib/blas/base/srotm/benchmark/c/benchmark.length.c +++ b/lib/node_modules/@stdlib/blas/base/srotm/benchmark/c/benchmark.length.c @@ -96,11 +96,13 @@ static float rand_float( void ) { */ static double benchmark1( int iterations, int len ) { double elapsed; - float x[ len ]; - float y[ len ]; + float *x; + float *y; double t; int i; + x = (float *) malloc( len * sizeof( float ) ); + y = (float *) malloc( len * sizeof( float ) ); const float param[5] = { 0.0f, 0.0f, 0.0f, 0.0f, 0.0f }; for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float()*200.0f ) - 100.0f; @@ -119,6 +121,8 @@ static double benchmark1( int iterations, int len ) { if ( y[ 0 ] != y[ 0 ] ) { printf( "should not return NaN\n" ); } + free( x ); + free( y ); return elapsed; } @@ -131,11 +135,13 @@ static double benchmark1( int iterations, int len ) { */ static double benchmark2( int iterations, int len ) { double elapsed; - float x[ len ]; - float y[ len ]; + float *x; + float *y; double t; int i; + x = (float *) malloc( len * sizeof( float ) ); + y = (float *) malloc( len * sizeof( float ) ); const float param[5] = { 0.0f, 0.0f, 0.0f, 0.0f, 0.0f }; for ( i = 0; i < len; i++ ) { x[ i ] = ( rand_float()*200.0f ) - 100.0f; @@ -154,6 +160,8 @@ static double benchmark2( int iterations, int len ) { if ( y[ 0 ] != y[ 0 ] ) { printf( "should not return NaN\n" ); } + free( x ); + free( y ); return elapsed; } diff --git a/lib/node_modules/@stdlib/blas/base/sspr/README.md b/lib/node_modules/@stdlib/blas/base/sspr/README.md index 0e5f73306609..85bd2f57a9e7 100644 --- a/lib/node_modules/@stdlib/blas/base/sspr/README.md +++ b/lib/node_modules/@stdlib/blas/base/sspr/README.md @@ -225,7 +225,7 @@ Performs the symmetric rank 1 operation `A = α*x*x^T + A` where `α` is a scala float AP[] = { 1.0f, 2.0f, 3.0f, 1.0f, 2.0f, 1.0f }; const float x[] = { 1.0f, 2.0f, 3.0f }; -c_sspr_ndarray( CblasColMajor, CblasUpper, 3, 1.0f, x, 1, AP, 1, 0 ); +c_sspr_ndarray( CblasColMajor, CblasUpper, 3, 1.0f, x, 1, 0, AP, 1, 0 ); ``` The function accepts the following arguments: diff --git a/lib/node_modules/@stdlib/blas/base/ssyr/README.md b/lib/node_modules/@stdlib/blas/base/ssyr/README.md index 0526eef6cb2a..1ed5fad234b1 100644 --- a/lib/node_modules/@stdlib/blas/base/ssyr/README.md +++ b/lib/node_modules/@stdlib/blas/base/ssyr/README.md @@ -307,7 +307,7 @@ int main( void ) { // Print the result: for ( int i = 0; i < N*N; i++ ) { - printf( "A2[ %i ] = %f\n", i, A[ i ] ); + printf( "A2[ %i ] = %f\n", i, A2[ i ] ); } } ``` diff --git a/lib/node_modules/@stdlib/blas/base/ssyr2/test/test.ssyr2.native.js b/lib/node_modules/@stdlib/blas/base/ssyr2/test/test.ssyr2.native.js index e740454aaf0d..8ced0286d918 100644 --- a/lib/node_modules/@stdlib/blas/base/ssyr2/test/test.ssyr2.native.js +++ b/lib/node_modules/@stdlib/blas/base/ssyr2/test/test.ssyr2.native.js @@ -37,7 +37,6 @@ var rxpyp = require( './fixtures/row_major_xpyp.json' ); var rxnyp = require( './fixtures/row_major_xnyp.json' ); var rxpyn = require( './fixtures/row_major_xpyn.json' ); var rxnyn = require( './fixtures/row_major_xnyn.json' ); - var cu = require( './fixtures/column_major_u.json' ); var cl = require( './fixtures/column_major_l.json' ); var cx0 = require( './fixtures/column_major_x0.json' ); diff --git a/lib/node_modules/@stdlib/blas/base/strsv/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/base/strsv/docs/types/index.d.ts index 3514179cb4c6..fde9864f4d52 100644 --- a/lib/node_modules/@stdlib/blas/base/strsv/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/blas/base/strsv/docs/types/index.d.ts @@ -60,7 +60,7 @@ interface Routine { * @param N - number of elements along each dimension in the matrix `A` * @param A - input matrix * @param strideA1 - stride of the first dimension of `A` - * @param strideA2 - stride of the first dimension of `A` + * @param strideA2 - stride of the second dimension of `A` * @param offsetA - starting index for `A` * @param x - input vector * @param strideX - `x` stride length @@ -73,7 +73,7 @@ interface Routine { * var A = new Float32Array( [ 1.0, 2.0, 3.0, 0.0, 1.0, 2.0, 0.0, 0.0, 1.0 ] ); // => [ [ 1.0, 2.0, 3.0 ], [ 0.0, 1.0, 2.0 ], [ 0.0, 0.0, 1.0 ] ] * var x = new Float32Array( [ 1.0, 2.0, 3.0 ] ); * - * strsv.ndarray( 'lower', 'no-transpose', 'unit', 3, A, 3, 1, 0, x, 1, 0 ); + * strsv.ndarray( 'upper', 'no-transpose', 'unit', 3, A, 3, 1, 0, x, 1, 0 ); * // x => [ 0.0, -4.0, 3.0 ] */ ndarray( uplo: MatrixTriangle, trans: TransposeOperation, diag: DiagonalType, N: number, A: Float32Array, strideA1: number, strideA2: number, offsetA: number, x: Float32Array, strideX: number, offsetX: number ): Float32Array; diff --git a/lib/node_modules/@stdlib/blas/base/strsv/test/test.ndarray.js b/lib/node_modules/@stdlib/blas/base/strsv/test/test.ndarray.js index 8d3dd06e365e..12e46c524e58 100644 --- a/lib/node_modules/@stdlib/blas/base/strsv/test/test.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/strsv/test/test.ndarray.js @@ -46,7 +46,6 @@ var rsa1nsa2 = require( './fixtures/row_major_sa1n_sa2.json' ); var rsa1sa2n = require( './fixtures/row_major_sa1_sa2n.json' ); var rsa1nsa2n = require( './fixtures/row_major_sa1n_sa2n.json' ); var rcap = require( './fixtures/row_major_complex_access_pattern.json' ); - var clntnu = require( './fixtures/column_major_l_nt_nu.json' ); var cltnu = require( './fixtures/column_major_l_t_nu.json' ); var clntu = require( './fixtures/column_major_l_nt_u.json' ); @@ -62,7 +61,7 @@ var cox = require( './fixtures/column_major_ox.json' ); var csa1sa2 = require( './fixtures/column_major_sa1_sa2.json' ); var csa1nsa2 = require( './fixtures/column_major_sa1n_sa2.json' ); var csa1sa2n = require( './fixtures/column_major_sa1_sa2n.json' ); -var csa1nsa2n = require( './fixtures/column_major_sa1_sa2n.json' ); +var csa1nsa2n = require( './fixtures/column_major_sa1n_sa2n.json' ); var ccap = require( './fixtures/column_major_complex_access_pattern.json' ); diff --git a/lib/node_modules/@stdlib/blas/base/transpose-operation-resolve-enum/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/transpose-operation-resolve-enum/benchmark/benchmark.js index 629ee35ed9a2..d015e1badff1 100644 --- a/lib/node_modules/@stdlib/blas/base/transpose-operation-resolve-enum/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/transpose-operation-resolve-enum/benchmark/benchmark.js @@ -23,13 +23,14 @@ var bench = require( '@stdlib/bench' ); var isInteger = require( '@stdlib/assert/is-integer' ).isPrimitive; var str2enum = require( '@stdlib/blas/base/transpose-operation-str2enum' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var resolve = require( './../lib' ); // MAIN // -bench( pkg+'::string', function benchmark( b ) { +bench( format( '%s::string', pkg ), function benchmark( b ) { var values; var out; var i; @@ -55,7 +56,7 @@ bench( pkg+'::string', function benchmark( b ) { b.end(); }); -bench( pkg+'::integer', function benchmark( b ) { +bench( format( '%s::integer', pkg ), function benchmark( b ) { var values; var out; var i; diff --git a/lib/node_modules/@stdlib/blas/base/transpose-operation-resolve-str/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/transpose-operation-resolve-str/benchmark/benchmark.js index 9183e09e24d7..662c11d44e96 100644 --- a/lib/node_modules/@stdlib/blas/base/transpose-operation-resolve-str/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/transpose-operation-resolve-str/benchmark/benchmark.js @@ -23,13 +23,14 @@ var bench = require( '@stdlib/bench' ); var isString = require( '@stdlib/assert/is-string' ).isPrimitive; var str2enum = require( '@stdlib/blas/base/transpose-operation-str2enum' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var resolve = require( './../lib' ); // MAIN // -bench( pkg+'::string', function benchmark( b ) { +bench( format( '%s::string', pkg ), function benchmark( b ) { var values; var out; var i; @@ -55,7 +56,7 @@ bench( pkg+'::string', function benchmark( b ) { b.end(); }); -bench( pkg+'::integer', function benchmark( b ) { +bench( format( '%s::integer', pkg ), function benchmark( b ) { var values; var out; var i; diff --git a/lib/node_modules/@stdlib/blas/base/wasm/cswap/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/wasm/cswap/benchmark/benchmark.js index e68d06c80345..30f4e9695257 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/cswap/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/cswap/benchmark/benchmark.js @@ -26,6 +26,7 @@ var uniform = require( '@stdlib/random/array/uniform' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); var Complex64Array = require( '@stdlib/array/complex64' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var cswap = require( './../lib' ); @@ -109,7 +110,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, opts, f ); + bench( format( '%s:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/cswap/benchmark/benchmark.module.js b/lib/node_modules/@stdlib/blas/base/wasm/cswap/benchmark/benchmark.module.js index fa5ed59f62eb..87b4fdc5f7b5 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/cswap/benchmark/benchmark.module.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/cswap/benchmark/benchmark.module.js @@ -23,6 +23,7 @@ var bench = require( '@stdlib/bench' ); var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' ); var Memory = require( '@stdlib/wasm/memory' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var cswap = require( './../lib' ); @@ -36,7 +37,7 @@ var opts = { // MAIN // -bench( pkg+':Module:constructor', opts, function benchmark( b ) { +bench( format( '%s:Module:constructor', pkg ), opts, function benchmark( b ) { var values; var o; var v; diff --git a/lib/node_modules/@stdlib/blas/base/wasm/cswap/benchmark/benchmark.module.main.js b/lib/node_modules/@stdlib/blas/base/wasm/cswap/benchmark/benchmark.module.main.js index 694903cbd106..3232e0dadb8f 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/cswap/benchmark/benchmark.module.main.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/cswap/benchmark/benchmark.module.main.js @@ -27,6 +27,7 @@ var bytesPerElement = require( '@stdlib/ndarray/base/bytes-per-element' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var cswap = require( './../lib' ); @@ -134,7 +135,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::module,pointers:len='+len, opts, f ); + bench( format( '%s::module,pointers:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/cswap/benchmark/benchmark.module.ndarray.js b/lib/node_modules/@stdlib/blas/base/wasm/cswap/benchmark/benchmark.module.ndarray.js index 13d8c23c7f58..7998237de377 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/cswap/benchmark/benchmark.module.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/cswap/benchmark/benchmark.module.ndarray.js @@ -27,6 +27,7 @@ var bytesPerElement = require( '@stdlib/ndarray/base/bytes-per-element' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var cswap = require( './../lib' ); @@ -134,7 +135,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::module,pointers:ndarray:len='+len, opts, f ); + bench( format( '%s::module,pointers:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/cswap/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/wasm/cswap/benchmark/benchmark.ndarray.js index d147fab5fb72..d5d3fb9887a7 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/cswap/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/cswap/benchmark/benchmark.ndarray.js @@ -26,6 +26,7 @@ var uniform = require( '@stdlib/random/array/uniform' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); var Complex64Array = require( '@stdlib/array/complex64' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var cswap = require( './../lib' ); @@ -109,7 +110,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, opts, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/idamax/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/wasm/idamax/benchmark/benchmark.js index afc46d660bea..feeec636900b 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/idamax/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/idamax/benchmark/benchmark.js @@ -25,6 +25,7 @@ var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var idamax = require( './../lib' ); @@ -99,7 +100,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, opts, f ); + bench( format( '%s:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/idamax/benchmark/benchmark.module.js b/lib/node_modules/@stdlib/blas/base/wasm/idamax/benchmark/benchmark.module.js index f2b3bd4880a7..eadaf5f79601 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/idamax/benchmark/benchmark.module.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/idamax/benchmark/benchmark.module.js @@ -23,6 +23,7 @@ var bench = require( '@stdlib/bench' ); var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' ); var Memory = require( '@stdlib/wasm/memory' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var idamax = require( './../lib' ); @@ -36,7 +37,7 @@ var opts = { // MAIN // -bench( pkg+':Module:constructor', opts, function benchmark( b ) { +bench( format( '%s:Module:constructor', pkg ), opts, function benchmark( b ) { var values; var o; var v; diff --git a/lib/node_modules/@stdlib/blas/base/wasm/idamax/benchmark/benchmark.module.main.js b/lib/node_modules/@stdlib/blas/base/wasm/idamax/benchmark/benchmark.module.main.js index 090d6319d3f9..a802d9315822 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/idamax/benchmark/benchmark.module.main.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/idamax/benchmark/benchmark.module.main.js @@ -27,6 +27,7 @@ var bytesPerElement = require( '@stdlib/ndarray/base/bytes-per-element' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var idamax = require( './../lib' ); @@ -123,7 +124,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::module,pointers:len='+len, opts, f ); + bench( format( '%s::module,pointers:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/idamax/benchmark/benchmark.module.ndarray.js b/lib/node_modules/@stdlib/blas/base/wasm/idamax/benchmark/benchmark.module.ndarray.js index eed0fdccae13..1c7245c662e7 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/idamax/benchmark/benchmark.module.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/idamax/benchmark/benchmark.module.ndarray.js @@ -27,6 +27,7 @@ var bytesPerElement = require( '@stdlib/ndarray/base/bytes-per-element' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var idamax = require( './../lib' ); @@ -123,7 +124,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::module,pointers:ndarray:len='+len, opts, f ); + bench( format( '%s::module,pointers:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/idamax/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/wasm/idamax/benchmark/benchmark.ndarray.js index 6704dc34298f..64bed682fc16 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/idamax/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/idamax/benchmark/benchmark.ndarray.js @@ -25,6 +25,7 @@ var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var idamax = require( './../lib' ); @@ -99,7 +100,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, opts, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/isamax/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/wasm/isamax/benchmark/benchmark.js index 369c60e6fe28..d9183d786166 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/isamax/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/isamax/benchmark/benchmark.js @@ -25,6 +25,7 @@ var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var isamax = require( './../lib' ); @@ -99,7 +100,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, opts, f ); + bench( format( '%s:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/isamax/benchmark/benchmark.module.js b/lib/node_modules/@stdlib/blas/base/wasm/isamax/benchmark/benchmark.module.js index 82b4db3d09e3..648204d7685f 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/isamax/benchmark/benchmark.module.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/isamax/benchmark/benchmark.module.js @@ -23,6 +23,7 @@ var bench = require( '@stdlib/bench' ); var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' ); var Memory = require( '@stdlib/wasm/memory' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var isamax = require( './../lib' ); @@ -36,7 +37,7 @@ var opts = { // MAIN // -bench( pkg+':Module:constructor', opts, function benchmark( b ) { +bench( format( '%s:Module:constructor', pkg ), opts, function benchmark( b ) { var values; var o; var v; diff --git a/lib/node_modules/@stdlib/blas/base/wasm/isamax/benchmark/benchmark.module.main.js b/lib/node_modules/@stdlib/blas/base/wasm/isamax/benchmark/benchmark.module.main.js index acdf26980367..40e0c6b43ebf 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/isamax/benchmark/benchmark.module.main.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/isamax/benchmark/benchmark.module.main.js @@ -27,6 +27,7 @@ var bytesPerElement = require( '@stdlib/ndarray/base/bytes-per-element' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var isamax = require( './../lib' ); @@ -123,7 +124,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::module,pointers:len='+len, opts, f ); + bench( format( '%s::module,pointers:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/isamax/benchmark/benchmark.module.ndarray.js b/lib/node_modules/@stdlib/blas/base/wasm/isamax/benchmark/benchmark.module.ndarray.js index 7cc34bd632f2..cc1bfb4ea007 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/isamax/benchmark/benchmark.module.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/isamax/benchmark/benchmark.module.ndarray.js @@ -27,6 +27,7 @@ var bytesPerElement = require( '@stdlib/ndarray/base/bytes-per-element' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var isamax = require( './../lib' ); @@ -123,7 +124,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::module,pointers:ndarray:len='+len, opts, f ); + bench( format( '%s::module,pointers:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/isamax/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/wasm/isamax/benchmark/benchmark.ndarray.js index 874f4d070708..955651ae068a 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/isamax/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/isamax/benchmark/benchmark.ndarray.js @@ -25,6 +25,7 @@ var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var isamax = require( './../lib' ); @@ -99,7 +100,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, opts, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/sasum/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/wasm/sasum/benchmark/benchmark.js index 597ab5a3efbf..e3921b197513 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/sasum/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/sasum/benchmark/benchmark.js @@ -25,6 +25,7 @@ var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var sasum = require( './../lib' ); @@ -99,7 +100,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, opts, f ); + bench( format( '%s:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/sasum/benchmark/benchmark.module.js b/lib/node_modules/@stdlib/blas/base/wasm/sasum/benchmark/benchmark.module.js index 90826f1239c8..c234d1794163 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/sasum/benchmark/benchmark.module.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/sasum/benchmark/benchmark.module.js @@ -23,6 +23,7 @@ var bench = require( '@stdlib/bench' ); var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' ); var Memory = require( '@stdlib/wasm/memory' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var sasum = require( './../lib' ); @@ -36,7 +37,7 @@ var opts = { // MAIN // -bench( pkg+':Module:constructor', opts, function benchmark( b ) { +bench( format( '%s:Module:constructor', pkg ), opts, function benchmark( b ) { var values; var o; var v; diff --git a/lib/node_modules/@stdlib/blas/base/wasm/sasum/benchmark/benchmark.module.main.js b/lib/node_modules/@stdlib/blas/base/wasm/sasum/benchmark/benchmark.module.main.js index a78f50ead285..660bbd3b29f2 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/sasum/benchmark/benchmark.module.main.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/sasum/benchmark/benchmark.module.main.js @@ -27,6 +27,7 @@ var bytesPerElement = require( '@stdlib/ndarray/base/bytes-per-element' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var sasum = require( './../lib' ); @@ -123,7 +124,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::module,pointers:len='+len, opts, f ); + bench( format( '%s::module,pointers:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/sasum/benchmark/benchmark.module.ndarray.js b/lib/node_modules/@stdlib/blas/base/wasm/sasum/benchmark/benchmark.module.ndarray.js index 18ef66e7ffc1..74a5f0298c06 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/sasum/benchmark/benchmark.module.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/sasum/benchmark/benchmark.module.ndarray.js @@ -27,6 +27,7 @@ var bytesPerElement = require( '@stdlib/ndarray/base/bytes-per-element' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var sasum = require( './../lib' ); @@ -123,7 +124,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::module,pointers:ndarray:len='+len, opts, f ); + bench( format( '%s::module,pointers:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/sasum/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/wasm/sasum/benchmark/benchmark.ndarray.js index e04b16eb085b..244467e34808 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/sasum/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/sasum/benchmark/benchmark.ndarray.js @@ -25,6 +25,7 @@ var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var sasum = require( './../lib' ); @@ -99,7 +100,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, opts, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/saxpy/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/wasm/saxpy/benchmark/benchmark.js index 1912ec86edfb..f615df158cab 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/saxpy/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/saxpy/benchmark/benchmark.js @@ -25,6 +25,7 @@ var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var saxpy = require( './../lib' ); @@ -99,7 +100,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, opts, f ); + bench( format( '%s:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/saxpy/benchmark/benchmark.module.js b/lib/node_modules/@stdlib/blas/base/wasm/saxpy/benchmark/benchmark.module.js index 698b93789b02..f2a30ad08452 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/saxpy/benchmark/benchmark.module.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/saxpy/benchmark/benchmark.module.js @@ -23,6 +23,7 @@ var bench = require( '@stdlib/bench' ); var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' ); var Memory = require( '@stdlib/wasm/memory' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var saxpy = require( './../lib' ); @@ -36,7 +37,7 @@ var opts = { // MAIN // -bench( pkg+':Module:constructor', opts, function benchmark( b ) { +bench( format( '%s:Module:constructor', pkg ), opts, function benchmark( b ) { var values; var o; var v; diff --git a/lib/node_modules/@stdlib/blas/base/wasm/saxpy/benchmark/benchmark.module.main.js b/lib/node_modules/@stdlib/blas/base/wasm/saxpy/benchmark/benchmark.module.main.js index 1772179a7cd8..d7d53cb5acf3 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/saxpy/benchmark/benchmark.module.main.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/saxpy/benchmark/benchmark.module.main.js @@ -27,6 +27,7 @@ var bytesPerElement = require( '@stdlib/ndarray/base/bytes-per-element' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var saxpy = require( './../lib' ); @@ -131,7 +132,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::module,pointers:len='+len, opts, f ); + bench( format( '%s::module,pointers:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/saxpy/benchmark/benchmark.module.ndarray.js b/lib/node_modules/@stdlib/blas/base/wasm/saxpy/benchmark/benchmark.module.ndarray.js index 26ceb38d823f..31d61b1b2219 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/saxpy/benchmark/benchmark.module.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/saxpy/benchmark/benchmark.module.ndarray.js @@ -27,6 +27,7 @@ var bytesPerElement = require( '@stdlib/ndarray/base/bytes-per-element' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var saxpy = require( './../lib' ); @@ -131,7 +132,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::module,pointers:ndarray:len='+len, opts, f ); + bench( format( '%s::module,pointers:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/saxpy/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/wasm/saxpy/benchmark/benchmark.ndarray.js index e0a489d9be5b..580d485ada07 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/saxpy/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/saxpy/benchmark/benchmark.ndarray.js @@ -25,6 +25,7 @@ var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var saxpy = require( './../lib' ); @@ -99,7 +100,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, opts, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/scasum/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/wasm/scasum/benchmark/benchmark.js index 35801f5e00f1..e019702476bc 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/scasum/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/scasum/benchmark/benchmark.js @@ -26,6 +26,7 @@ var uniform = require( '@stdlib/random/array/uniform' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); var Complex64Array = require( '@stdlib/array/complex64' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var scasum = require( './../lib' ); @@ -100,7 +101,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, opts, f ); + bench( format( '%s:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/scasum/benchmark/benchmark.module.js b/lib/node_modules/@stdlib/blas/base/wasm/scasum/benchmark/benchmark.module.js index 897c82ecc971..98852f38abfa 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/scasum/benchmark/benchmark.module.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/scasum/benchmark/benchmark.module.js @@ -23,6 +23,7 @@ var bench = require( '@stdlib/bench' ); var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' ); var Memory = require( '@stdlib/wasm/memory' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var scasum = require( './../lib' ); @@ -36,7 +37,7 @@ var opts = { // MAIN // -bench( pkg+':Module:constructor', opts, function benchmark( b ) { +bench( format( '%s:Module:constructor', pkg ), opts, function benchmark( b ) { var values; var o; var v; diff --git a/lib/node_modules/@stdlib/blas/base/wasm/scasum/benchmark/benchmark.module.main.js b/lib/node_modules/@stdlib/blas/base/wasm/scasum/benchmark/benchmark.module.main.js index 9c23527c9b7c..0da0effa20ff 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/scasum/benchmark/benchmark.module.main.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/scasum/benchmark/benchmark.module.main.js @@ -28,6 +28,7 @@ var uniform = require( '@stdlib/random/array/uniform' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var Complex64Array = require( '@stdlib/array/complex64' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var scasum = require( './../lib' ); @@ -131,7 +132,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::module,pointers:len='+len, opts, f ); + bench( format( '%s::module,pointers:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/scasum/benchmark/benchmark.module.ndarray.js b/lib/node_modules/@stdlib/blas/base/wasm/scasum/benchmark/benchmark.module.ndarray.js index 96ef18866120..d1dd3b8b1f56 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/scasum/benchmark/benchmark.module.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/scasum/benchmark/benchmark.module.ndarray.js @@ -28,6 +28,7 @@ var uniform = require( '@stdlib/random/array/uniform' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); var Complex64Array = require( '@stdlib/array/complex64' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var scasum = require( './../lib' ); @@ -131,7 +132,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::module,pointers:ndarray:len='+len, opts, f ); + bench( format( '%s::module,pointers:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/scasum/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/wasm/scasum/benchmark/benchmark.ndarray.js index cd77c51dd6ce..0d4393698057 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/scasum/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/scasum/benchmark/benchmark.ndarray.js @@ -26,6 +26,7 @@ var uniform = require( '@stdlib/random/array/uniform' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); var Complex64Array = require( '@stdlib/array/complex64' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var scasum = require( './../lib' ); @@ -100,7 +101,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, opts, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/scnrm2/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/wasm/scnrm2/benchmark/benchmark.js index fb43167155c4..f3a124115585 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/scnrm2/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/scnrm2/benchmark/benchmark.js @@ -26,6 +26,7 @@ var uniform = require( '@stdlib/random/array/uniform' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); var Complex64Array = require( '@stdlib/array/complex64' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var scnrm2 = require( './../lib' ); @@ -104,7 +105,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, opts, f ); + bench( format( '%s:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/scnrm2/benchmark/benchmark.module.js b/lib/node_modules/@stdlib/blas/base/wasm/scnrm2/benchmark/benchmark.module.js index 3489681a3e8f..a9760e76c5dc 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/scnrm2/benchmark/benchmark.module.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/scnrm2/benchmark/benchmark.module.js @@ -23,6 +23,7 @@ var bench = require( '@stdlib/bench' ); var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' ); var Memory = require( '@stdlib/wasm/memory' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var scnrm2 = require( './../lib' ); @@ -36,7 +37,7 @@ var opts = { // MAIN // -bench( pkg+':Module:constructor', opts, function benchmark( b ) { +bench( format( '%s:Module:constructor', pkg ), opts, function benchmark( b ) { var values; var o; var v; diff --git a/lib/node_modules/@stdlib/blas/base/wasm/scnrm2/benchmark/benchmark.module.main.js b/lib/node_modules/@stdlib/blas/base/wasm/scnrm2/benchmark/benchmark.module.main.js index 9c2317f0e8ca..280d91eb10df 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/scnrm2/benchmark/benchmark.module.main.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/scnrm2/benchmark/benchmark.module.main.js @@ -27,6 +27,7 @@ var bytesPerElement = require( '@stdlib/ndarray/base/bytes-per-element' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var scnrm2 = require( './../lib' ); @@ -131,7 +132,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::module,pointers:len='+len, opts, f ); + bench( format( '%s::module,pointers:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/scnrm2/benchmark/benchmark.module.ndarray.js b/lib/node_modules/@stdlib/blas/base/wasm/scnrm2/benchmark/benchmark.module.ndarray.js index 0e761b12e210..339e3ce0546f 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/scnrm2/benchmark/benchmark.module.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/scnrm2/benchmark/benchmark.module.ndarray.js @@ -27,6 +27,7 @@ var bytesPerElement = require( '@stdlib/ndarray/base/bytes-per-element' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var scnrm2 = require( './../lib' ); @@ -131,7 +132,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::module,pointers:ndarray:len='+len, opts, f ); + bench( format( '%s::module,pointers:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/scnrm2/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/wasm/scnrm2/benchmark/benchmark.ndarray.js index bf14cffee928..6a57833bb1db 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/scnrm2/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/scnrm2/benchmark/benchmark.ndarray.js @@ -26,6 +26,7 @@ var uniform = require( '@stdlib/random/array/uniform' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); var Complex64Array = require( '@stdlib/array/complex64' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var scnrm2 = require( './../lib' ); @@ -104,7 +105,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, opts, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/scopy/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/wasm/scopy/benchmark/benchmark.js index 2537749208ff..07226a09dfd7 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/scopy/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/scopy/benchmark/benchmark.js @@ -25,6 +25,7 @@ var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var scopy = require( './../lib' ); @@ -99,7 +100,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, opts, f ); + bench( format( '%s:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/scopy/benchmark/benchmark.module.js b/lib/node_modules/@stdlib/blas/base/wasm/scopy/benchmark/benchmark.module.js index 8e67a6330251..6558979b8985 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/scopy/benchmark/benchmark.module.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/scopy/benchmark/benchmark.module.js @@ -23,6 +23,7 @@ var bench = require( '@stdlib/bench' ); var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' ); var Memory = require( '@stdlib/wasm/memory' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var scopy = require( './../lib' ); @@ -36,7 +37,7 @@ var opts = { // MAIN // -bench( pkg+':Module:constructor', opts, function benchmark( b ) { +bench( format( '%s:Module:constructor', pkg ), opts, function benchmark( b ) { var values; var o; var v; diff --git a/lib/node_modules/@stdlib/blas/base/wasm/scopy/benchmark/benchmark.module.main.js b/lib/node_modules/@stdlib/blas/base/wasm/scopy/benchmark/benchmark.module.main.js index e9e73c28f515..1e8ca36350fe 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/scopy/benchmark/benchmark.module.main.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/scopy/benchmark/benchmark.module.main.js @@ -27,6 +27,7 @@ var bytesPerElement = require( '@stdlib/ndarray/base/bytes-per-element' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var scopy = require( './../lib' ); @@ -131,7 +132,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::module,pointers:len='+len, opts, f ); + bench( format( '%s::module,pointers:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/scopy/benchmark/benchmark.module.ndarray.js b/lib/node_modules/@stdlib/blas/base/wasm/scopy/benchmark/benchmark.module.ndarray.js index 7a4d8e79658d..9f00d24b83c4 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/scopy/benchmark/benchmark.module.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/scopy/benchmark/benchmark.module.ndarray.js @@ -27,6 +27,7 @@ var bytesPerElement = require( '@stdlib/ndarray/base/bytes-per-element' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var scopy = require( './../lib' ); @@ -131,7 +132,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::module,pointers:ndarray:len='+len, opts, f ); + bench( format( '%s::module,pointers:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/scopy/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/wasm/scopy/benchmark/benchmark.ndarray.js index 5dd09dc4e0e8..6b3537d2c219 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/scopy/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/scopy/benchmark/benchmark.ndarray.js @@ -25,6 +25,7 @@ var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var scopy = require( './../lib' ); @@ -99,7 +100,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, opts, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/sdot/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/wasm/sdot/benchmark/benchmark.js index 6393bb53fb96..5f01be86e229 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/sdot/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/sdot/benchmark/benchmark.js @@ -25,6 +25,7 @@ var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var sdot = require( './../lib' ); @@ -100,7 +101,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, opts, f ); + bench( format( '%s:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/sdot/benchmark/benchmark.module.js b/lib/node_modules/@stdlib/blas/base/wasm/sdot/benchmark/benchmark.module.js index ec6bd310f6e9..6b845ce8dc0f 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/sdot/benchmark/benchmark.module.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/sdot/benchmark/benchmark.module.js @@ -23,6 +23,7 @@ var bench = require( '@stdlib/bench' ); var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' ); var Memory = require( '@stdlib/wasm/memory' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var sdot = require( './../lib' ); @@ -36,7 +37,7 @@ var opts = { // MAIN // -bench( pkg+':Module:constructor', opts, function benchmark( b ) { +bench( format( '%s:Module:constructor', pkg ), opts, function benchmark( b ) { var values; var o; var v; diff --git a/lib/node_modules/@stdlib/blas/base/wasm/sdot/benchmark/benchmark.module.main.js b/lib/node_modules/@stdlib/blas/base/wasm/sdot/benchmark/benchmark.module.main.js index d5f39886e4a1..798ca112eb43 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/sdot/benchmark/benchmark.module.main.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/sdot/benchmark/benchmark.module.main.js @@ -27,6 +27,7 @@ var bytesPerElement = require( '@stdlib/ndarray/base/bytes-per-element' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var sdot = require( './../lib' ); @@ -126,7 +127,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::module,pointers:len='+len, opts, f ); + bench( format( '%s::module,pointers:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/sdot/benchmark/benchmark.module.ndarray.js b/lib/node_modules/@stdlib/blas/base/wasm/sdot/benchmark/benchmark.module.ndarray.js index 2655c3892de2..b8798d0f2166 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/sdot/benchmark/benchmark.module.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/sdot/benchmark/benchmark.module.ndarray.js @@ -27,6 +27,7 @@ var bytesPerElement = require( '@stdlib/ndarray/base/bytes-per-element' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var sdot = require( './../lib' ); @@ -126,7 +127,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::module,pointers:ndarray:len='+len, opts, f ); + bench( format( '%s::module,pointers:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/sdot/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/wasm/sdot/benchmark/benchmark.ndarray.js index 71e647f8e103..22eac22121c9 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/sdot/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/sdot/benchmark/benchmark.ndarray.js @@ -25,6 +25,7 @@ var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var sdot = require( './../lib' ); @@ -100,7 +101,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, opts, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/sdsdot/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/wasm/sdsdot/benchmark/benchmark.js index 631ebbeb93c3..de8bf8c6d0f7 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/sdsdot/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/sdsdot/benchmark/benchmark.js @@ -25,6 +25,7 @@ var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var sdsdot = require( './../lib' ); @@ -100,7 +101,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, opts, f ); + bench( format( '%s:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/sdsdot/benchmark/benchmark.module.js b/lib/node_modules/@stdlib/blas/base/wasm/sdsdot/benchmark/benchmark.module.js index a9410d0e5929..0c01e0cb1d95 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/sdsdot/benchmark/benchmark.module.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/sdsdot/benchmark/benchmark.module.js @@ -23,6 +23,7 @@ var bench = require( '@stdlib/bench' ); var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' ); var Memory = require( '@stdlib/wasm/memory' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var sdsdot = require( './../lib' ); @@ -36,7 +37,7 @@ var opts = { // MAIN // -bench( pkg+':Module:constructor', opts, function benchmark( b ) { +bench( format( '%s:Module:constructor', pkg ), opts, function benchmark( b ) { var values; var o; var v; diff --git a/lib/node_modules/@stdlib/blas/base/wasm/sdsdot/benchmark/benchmark.module.main.js b/lib/node_modules/@stdlib/blas/base/wasm/sdsdot/benchmark/benchmark.module.main.js index 934cec779fb0..3a045e13dccd 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/sdsdot/benchmark/benchmark.module.main.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/sdsdot/benchmark/benchmark.module.main.js @@ -27,6 +27,7 @@ var bytesPerElement = require( '@stdlib/ndarray/base/bytes-per-element' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var sdsdot = require( './../lib' ); @@ -126,7 +127,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::module,pointers:len='+len, opts, f ); + bench( format( '%s::module,pointers:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/sdsdot/benchmark/benchmark.module.ndarray.js b/lib/node_modules/@stdlib/blas/base/wasm/sdsdot/benchmark/benchmark.module.ndarray.js index 4f0665d632f1..b33f6f1b7d62 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/sdsdot/benchmark/benchmark.module.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/sdsdot/benchmark/benchmark.module.ndarray.js @@ -27,6 +27,7 @@ var bytesPerElement = require( '@stdlib/ndarray/base/bytes-per-element' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var sdsdot = require( './../lib' ); @@ -126,7 +127,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::module,pointers:ndarray:len='+len, opts, f ); + bench( format( '%s::module,pointers:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/sdsdot/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/wasm/sdsdot/benchmark/benchmark.ndarray.js index 208ab4f353fa..77de5eb5d895 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/sdsdot/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/sdsdot/benchmark/benchmark.ndarray.js @@ -25,6 +25,7 @@ var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var sdsdot = require( './../lib' ); @@ -100,7 +101,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, opts, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/snrm2/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/wasm/snrm2/benchmark/benchmark.js index efb0831f1d98..bb5421ccc62e 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/snrm2/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/snrm2/benchmark/benchmark.js @@ -25,6 +25,7 @@ var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var snrm2 = require( './../lib' ); @@ -99,7 +100,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, opts, f ); + bench( format( '%s:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/snrm2/benchmark/benchmark.module.js b/lib/node_modules/@stdlib/blas/base/wasm/snrm2/benchmark/benchmark.module.js index e10b4eed778d..89a7e9c0906f 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/snrm2/benchmark/benchmark.module.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/snrm2/benchmark/benchmark.module.js @@ -23,6 +23,7 @@ var bench = require( '@stdlib/bench' ); var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' ); var Memory = require( '@stdlib/wasm/memory' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var snrm2 = require( './../lib' ); @@ -36,7 +37,7 @@ var opts = { // MAIN // -bench( pkg+':Module:constructor', opts, function benchmark( b ) { +bench( format( '%s:Module:constructor', pkg ), opts, function benchmark( b ) { var values; var o; var v; diff --git a/lib/node_modules/@stdlib/blas/base/wasm/snrm2/benchmark/benchmark.module.main.js b/lib/node_modules/@stdlib/blas/base/wasm/snrm2/benchmark/benchmark.module.main.js index 329f226a55e9..65aff51b5983 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/snrm2/benchmark/benchmark.module.main.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/snrm2/benchmark/benchmark.module.main.js @@ -27,6 +27,7 @@ var bytesPerElement = require( '@stdlib/ndarray/base/bytes-per-element' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var snrm2 = require( './../lib' ); @@ -123,7 +124,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::module,pointers:len='+len, opts, f ); + bench( format( '%s::module,pointers:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/snrm2/benchmark/benchmark.module.ndarray.js b/lib/node_modules/@stdlib/blas/base/wasm/snrm2/benchmark/benchmark.module.ndarray.js index c7da01bf160b..92672d3d8d38 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/snrm2/benchmark/benchmark.module.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/snrm2/benchmark/benchmark.module.ndarray.js @@ -27,6 +27,7 @@ var bytesPerElement = require( '@stdlib/ndarray/base/bytes-per-element' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var snrm2 = require( './../lib' ); @@ -123,7 +124,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::module,pointers:ndarray:len='+len, opts, f ); + bench( format( '%s::module,pointers:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/snrm2/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/wasm/snrm2/benchmark/benchmark.ndarray.js index 34f926872ba9..954ec9971c6a 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/snrm2/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/snrm2/benchmark/benchmark.ndarray.js @@ -25,6 +25,7 @@ var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var snrm2 = require( './../lib' ); @@ -99,7 +100,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, opts, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/srot/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/wasm/srot/benchmark/benchmark.js index bb82f0474f80..c37dbc180fb3 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/srot/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/srot/benchmark/benchmark.js @@ -25,6 +25,7 @@ var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var srot = require( './../lib' ); @@ -99,7 +100,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, opts, f ); + bench( format( '%s:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/srot/benchmark/benchmark.module.js b/lib/node_modules/@stdlib/blas/base/wasm/srot/benchmark/benchmark.module.js index 11f40cf3375d..a9fae747530c 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/srot/benchmark/benchmark.module.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/srot/benchmark/benchmark.module.js @@ -23,6 +23,7 @@ var bench = require( '@stdlib/bench' ); var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' ); var Memory = require( '@stdlib/wasm/memory' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var srot = require( './../lib' ); @@ -36,7 +37,7 @@ var opts = { // MAIN // -bench( pkg+':Module:constructor', opts, function benchmark( b ) { +bench( format( '%s:Module:constructor', pkg ), opts, function benchmark( b ) { var values; var o; var v; diff --git a/lib/node_modules/@stdlib/blas/base/wasm/srot/benchmark/benchmark.module.main.js b/lib/node_modules/@stdlib/blas/base/wasm/srot/benchmark/benchmark.module.main.js index 0d646ad6ab48..68dfdf1828cd 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/srot/benchmark/benchmark.module.main.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/srot/benchmark/benchmark.module.main.js @@ -27,6 +27,7 @@ var bytesPerElement = require( '@stdlib/ndarray/base/bytes-per-element' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var srot = require( './../lib' ); @@ -131,7 +132,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::module,pointers:len='+len, opts, f ); + bench( format( '%s::module,pointers:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/srot/benchmark/benchmark.module.ndarray.js b/lib/node_modules/@stdlib/blas/base/wasm/srot/benchmark/benchmark.module.ndarray.js index 686b15082162..c1acc6820ac2 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/srot/benchmark/benchmark.module.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/srot/benchmark/benchmark.module.ndarray.js @@ -27,6 +27,7 @@ var bytesPerElement = require( '@stdlib/ndarray/base/bytes-per-element' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var srot = require( './../lib' ); @@ -131,7 +132,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::module,pointers:ndarray:len='+len, opts, f ); + bench( format( '%s::module,pointers:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/srot/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/wasm/srot/benchmark/benchmark.ndarray.js index fc70b417f42d..e7e6573e78b4 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/srot/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/srot/benchmark/benchmark.ndarray.js @@ -25,6 +25,7 @@ var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var srot = require( './../lib' ); @@ -99,7 +100,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, opts, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/srotm/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/wasm/srotm/benchmark/benchmark.js index 6d4012ba1677..caea286a69cc 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/srotm/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/srotm/benchmark/benchmark.js @@ -26,6 +26,7 @@ var zeros = require( '@stdlib/array/zeros' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var srotm = require( './../lib' ); @@ -101,7 +102,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, opts, f ); + bench( format( '%s:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/srotm/benchmark/benchmark.module.js b/lib/node_modules/@stdlib/blas/base/wasm/srotm/benchmark/benchmark.module.js index 653e04645bb3..9eb081bd6b70 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/srotm/benchmark/benchmark.module.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/srotm/benchmark/benchmark.module.js @@ -23,6 +23,7 @@ var bench = require( '@stdlib/bench' ); var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' ); var Memory = require( '@stdlib/wasm/memory' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var srotm = require( './../lib' ); @@ -36,7 +37,7 @@ var opts = { // MAIN // -bench( pkg+':Module:constructor', opts, function benchmark( b ) { +bench( format( '%s:Module:constructor', pkg ), opts, function benchmark( b ) { var values; var o; var v; diff --git a/lib/node_modules/@stdlib/blas/base/wasm/srotm/benchmark/benchmark.module.main.js b/lib/node_modules/@stdlib/blas/base/wasm/srotm/benchmark/benchmark.module.main.js index 9481da96f86d..e275ffba80ce 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/srotm/benchmark/benchmark.module.main.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/srotm/benchmark/benchmark.module.main.js @@ -28,6 +28,7 @@ var zeros = require( '@stdlib/array/zeros' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var srotm = require( './../lib' ); @@ -135,7 +136,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::module,pointers:len='+len, opts, f ); + bench( format( '%s::module,pointers:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/srotm/benchmark/benchmark.module.ndarray.js b/lib/node_modules/@stdlib/blas/base/wasm/srotm/benchmark/benchmark.module.ndarray.js index 7f60477eb369..5e1eb0abcb0d 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/srotm/benchmark/benchmark.module.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/srotm/benchmark/benchmark.module.ndarray.js @@ -28,6 +28,7 @@ var zeros = require( '@stdlib/array/zeros' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var srotm = require( './../lib' ); @@ -135,7 +136,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::module,pointers:ndarray:len='+len, opts, f ); + bench( format( '%s::module,pointers:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/srotm/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/wasm/srotm/benchmark/benchmark.ndarray.js index e8ec6f42c650..0ead684134cf 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/srotm/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/srotm/benchmark/benchmark.ndarray.js @@ -26,6 +26,7 @@ var zeros = require( '@stdlib/array/zeros' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var srotm = require( './../lib' ); @@ -101,7 +102,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, opts, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/sscal/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/wasm/sscal/benchmark/benchmark.js index 098d14aa5c21..89ea2d49d8a1 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/sscal/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/sscal/benchmark/benchmark.js @@ -25,6 +25,7 @@ var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var sscal = require( './../lib' ); @@ -99,7 +100,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, opts, f ); + bench( format( '%s:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/sscal/benchmark/benchmark.module.js b/lib/node_modules/@stdlib/blas/base/wasm/sscal/benchmark/benchmark.module.js index 0b70c4b291c5..cb155f9a5eae 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/sscal/benchmark/benchmark.module.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/sscal/benchmark/benchmark.module.js @@ -23,6 +23,7 @@ var bench = require( '@stdlib/bench' ); var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' ); var Memory = require( '@stdlib/wasm/memory' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var sscal = require( './../lib' ); @@ -36,7 +37,7 @@ var opts = { // MAIN // -bench( pkg+':Module:constructor', opts, function benchmark( b ) { +bench( format( '%s:Module:constructor', pkg ), opts, function benchmark( b ) { var values; var o; var v; diff --git a/lib/node_modules/@stdlib/blas/base/wasm/sscal/benchmark/benchmark.module.main.js b/lib/node_modules/@stdlib/blas/base/wasm/sscal/benchmark/benchmark.module.main.js index a3271329f31b..18947ca4c39b 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/sscal/benchmark/benchmark.module.main.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/sscal/benchmark/benchmark.module.main.js @@ -27,6 +27,7 @@ var bytesPerElement = require( '@stdlib/ndarray/base/bytes-per-element' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var sscal = require( './../lib' ); @@ -128,7 +129,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::module,pointers:len='+len, opts, f ); + bench( format( '%s::module,pointers:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/sscal/benchmark/benchmark.module.ndarray.js b/lib/node_modules/@stdlib/blas/base/wasm/sscal/benchmark/benchmark.module.ndarray.js index 4e919fb41dd0..692c30b8ae11 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/sscal/benchmark/benchmark.module.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/sscal/benchmark/benchmark.module.ndarray.js @@ -27,6 +27,7 @@ var bytesPerElement = require( '@stdlib/ndarray/base/bytes-per-element' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var sscal = require( './../lib' ); @@ -128,7 +129,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::module,pointers:ndarray:len='+len, opts, f ); + bench( format( '%s::module,pointers:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/sscal/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/wasm/sscal/benchmark/benchmark.ndarray.js index 790527a5b120..648ba0d13dd8 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/sscal/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/sscal/benchmark/benchmark.ndarray.js @@ -25,6 +25,7 @@ var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var sscal = require( './../lib' ); @@ -99,7 +100,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, opts, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/sswap/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/wasm/sswap/benchmark/benchmark.js index 0e987e7d1bdf..1f6abd703953 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/sswap/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/sswap/benchmark/benchmark.js @@ -25,6 +25,7 @@ var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var sswap = require( './../lib' ); @@ -99,7 +100,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, opts, f ); + bench( format( '%s:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/sswap/benchmark/benchmark.module.js b/lib/node_modules/@stdlib/blas/base/wasm/sswap/benchmark/benchmark.module.js index 38ab98136b36..9e0c1a56a311 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/sswap/benchmark/benchmark.module.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/sswap/benchmark/benchmark.module.js @@ -23,6 +23,7 @@ var bench = require( '@stdlib/bench' ); var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' ); var Memory = require( '@stdlib/wasm/memory' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var sswap = require( './../lib' ); @@ -36,7 +37,7 @@ var opts = { // MAIN // -bench( pkg+':Module:constructor', opts, function benchmark( b ) { +bench( format( '%s:Module:constructor', pkg ), opts, function benchmark( b ) { var values; var o; var v; diff --git a/lib/node_modules/@stdlib/blas/base/wasm/sswap/benchmark/benchmark.module.main.js b/lib/node_modules/@stdlib/blas/base/wasm/sswap/benchmark/benchmark.module.main.js index 8b6b60f73089..5520f151dfa7 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/sswap/benchmark/benchmark.module.main.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/sswap/benchmark/benchmark.module.main.js @@ -27,6 +27,7 @@ var bytesPerElement = require( '@stdlib/ndarray/base/bytes-per-element' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var sswap = require( './../lib' ); @@ -131,7 +132,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::module,pointers:len='+len, opts, f ); + bench( format( '%s::module,pointers:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/sswap/benchmark/benchmark.module.ndarray.js b/lib/node_modules/@stdlib/blas/base/wasm/sswap/benchmark/benchmark.module.ndarray.js index 8c6994495887..b5165bfa7677 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/sswap/benchmark/benchmark.module.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/sswap/benchmark/benchmark.module.ndarray.js @@ -27,6 +27,7 @@ var bytesPerElement = require( '@stdlib/ndarray/base/bytes-per-element' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var sswap = require( './../lib' ); @@ -131,7 +132,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::module,pointers:ndarray:len='+len, opts, f ); + bench( format( '%s::module,pointers:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/sswap/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/wasm/sswap/benchmark/benchmark.ndarray.js index 6f896a37285a..36005306ecf0 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/sswap/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/sswap/benchmark/benchmark.ndarray.js @@ -25,6 +25,7 @@ var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var sswap = require( './../lib' ); @@ -99,7 +100,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, opts, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/zcopy/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/wasm/zcopy/benchmark/benchmark.js index 79aa13d27e3d..562d532a0b30 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/zcopy/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/zcopy/benchmark/benchmark.js @@ -26,6 +26,7 @@ var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var Complex128Array = require( '@stdlib/array/complex128' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var zcopy = require( './../lib' ); @@ -109,7 +110,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, opts, f ); + bench( format( '%s:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/zcopy/benchmark/benchmark.module.js b/lib/node_modules/@stdlib/blas/base/wasm/zcopy/benchmark/benchmark.module.js index 72ef2497f7f9..065fefc4a297 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/zcopy/benchmark/benchmark.module.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/zcopy/benchmark/benchmark.module.js @@ -23,6 +23,7 @@ var bench = require( '@stdlib/bench' ); var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' ); var Memory = require( '@stdlib/wasm/memory' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var zcopy = require( './../lib' ); @@ -36,7 +37,7 @@ var opts = { // MAIN // -bench( pkg+':Module:constructor', opts, function benchmark( b ) { +bench( format( '%s:Module:constructor', pkg ), opts, function benchmark( b ) { var values; var o; var v; diff --git a/lib/node_modules/@stdlib/blas/base/wasm/zcopy/benchmark/benchmark.module.main.js b/lib/node_modules/@stdlib/blas/base/wasm/zcopy/benchmark/benchmark.module.main.js index 64fa79dea758..585ba1aea5a7 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/zcopy/benchmark/benchmark.module.main.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/zcopy/benchmark/benchmark.module.main.js @@ -27,6 +27,7 @@ var bytesPerElement = require( '@stdlib/ndarray/base/bytes-per-element' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var zcopy = require( './../lib' ); @@ -134,7 +135,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::module,pointers:len='+len, opts, f ); + bench( format( '%s::module,pointers:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/zcopy/benchmark/benchmark.module.ndarray.js b/lib/node_modules/@stdlib/blas/base/wasm/zcopy/benchmark/benchmark.module.ndarray.js index d80f1ff7d371..9f80aca64923 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/zcopy/benchmark/benchmark.module.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/zcopy/benchmark/benchmark.module.ndarray.js @@ -27,6 +27,7 @@ var bytesPerElement = require( '@stdlib/ndarray/base/bytes-per-element' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var zcopy = require( './../lib' ); @@ -134,7 +135,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::module,pointers:ndarray:len='+len, opts, f ); + bench( format( '%s::module,pointers:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/zcopy/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/wasm/zcopy/benchmark/benchmark.ndarray.js index f2f6ca8432ff..ffce1d058c8b 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/zcopy/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/zcopy/benchmark/benchmark.ndarray.js @@ -26,6 +26,7 @@ var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var Complex128Array = require( '@stdlib/array/complex128' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var zcopy = require( './../lib' ); @@ -109,7 +110,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, opts, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/zdrot/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/wasm/zdrot/benchmark/benchmark.js index cacd41fc69a0..7f9c1c324bd1 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/zdrot/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/zdrot/benchmark/benchmark.js @@ -26,6 +26,7 @@ var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var Complex128Array = require( '@stdlib/array/complex128' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var zdrot = require( './../lib' ); @@ -109,7 +110,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, opts, f ); + bench( format( '%s:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/zdrot/benchmark/benchmark.module.js b/lib/node_modules/@stdlib/blas/base/wasm/zdrot/benchmark/benchmark.module.js index bab25ca845e1..4d757d82db1f 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/zdrot/benchmark/benchmark.module.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/zdrot/benchmark/benchmark.module.js @@ -23,6 +23,7 @@ var bench = require( '@stdlib/bench' ); var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' ); var Memory = require( '@stdlib/wasm/memory' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var zdrot = require( './../lib' ); @@ -36,7 +37,7 @@ var opts = { // MAIN // -bench( pkg+':Module:constructor', opts, function benchmark( b ) { +bench( format( '%s:Module:constructor', pkg ), opts, function benchmark( b ) { var values; var o; var v; diff --git a/lib/node_modules/@stdlib/blas/base/wasm/zdrot/benchmark/benchmark.module.main.js b/lib/node_modules/@stdlib/blas/base/wasm/zdrot/benchmark/benchmark.module.main.js index 5938740d4d27..08f41a51d120 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/zdrot/benchmark/benchmark.module.main.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/zdrot/benchmark/benchmark.module.main.js @@ -27,6 +27,7 @@ var bytesPerElement = require( '@stdlib/ndarray/base/bytes-per-element' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var zdrot = require( './../lib' ); @@ -134,7 +135,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::module,pointers:len='+len, opts, f ); + bench( format( '%s::module,pointers:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/zdrot/benchmark/benchmark.module.ndarray.js b/lib/node_modules/@stdlib/blas/base/wasm/zdrot/benchmark/benchmark.module.ndarray.js index 1f93fff97923..a9a2da4ec765 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/zdrot/benchmark/benchmark.module.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/zdrot/benchmark/benchmark.module.ndarray.js @@ -27,6 +27,7 @@ var bytesPerElement = require( '@stdlib/ndarray/base/bytes-per-element' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var zdrot = require( './../lib' ); @@ -134,7 +135,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::module,pointers:ndarray:len='+len, opts, f ); + bench( format( '%s::module,pointers:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/zdrot/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/wasm/zdrot/benchmark/benchmark.ndarray.js index c8c321362ee2..3c661477d764 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/zdrot/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/zdrot/benchmark/benchmark.ndarray.js @@ -26,6 +26,7 @@ var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var Complex128Array = require( '@stdlib/array/complex128' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var zdrot = require( './../lib' ); @@ -109,7 +110,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, opts, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/zscal/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/wasm/zscal/benchmark/benchmark.js index b7334e72a186..1639cf22129e 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/zscal/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/zscal/benchmark/benchmark.js @@ -27,6 +27,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var Complex128Array = require( '@stdlib/array/complex128' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var zscal = require( './../lib' ); @@ -108,7 +109,7 @@ function main() { for ( i = min; i <= max; i++ ) { N = pow( 10, i ); f = createBenchmark( N ); - bench( pkg+':size='+N, opts, f ); + bench( format( '%s:size=%d', pkg, N ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/zscal/benchmark/benchmark.module.js b/lib/node_modules/@stdlib/blas/base/wasm/zscal/benchmark/benchmark.module.js index 02c1140b1b06..859f6768f5cb 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/zscal/benchmark/benchmark.module.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/zscal/benchmark/benchmark.module.js @@ -23,6 +23,7 @@ var bench = require( '@stdlib/bench' ); var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' ); var Memory = require( '@stdlib/wasm/memory' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var zscal = require( './../lib' ); @@ -36,7 +37,7 @@ var opts = { // MAIN // -bench( pkg+':Module:constructor', opts, function benchmark( b ) { +bench( format( '%s:Module:constructor', pkg ), opts, function benchmark( b ) { var values; var o; var v; diff --git a/lib/node_modules/@stdlib/blas/base/wasm/zscal/benchmark/benchmark.module.main.js b/lib/node_modules/@stdlib/blas/base/wasm/zscal/benchmark/benchmark.module.main.js index 2f3c189c065a..3abcd9811828 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/zscal/benchmark/benchmark.module.main.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/zscal/benchmark/benchmark.module.main.js @@ -28,6 +28,7 @@ var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var Float64Array = require( '@stdlib/array/float64' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var zscal = require( './../lib' ); @@ -134,7 +135,7 @@ function main() { for ( i = min; i <= max; i++ ) { N = pow( 10, i ); f = createBenchmark( N ); - bench( pkg+'::module,pointers:size='+N, opts, f ); + bench( format( '%s::module,pointers:size=%d', pkg, N ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/zscal/benchmark/benchmark.module.ndarray.js b/lib/node_modules/@stdlib/blas/base/wasm/zscal/benchmark/benchmark.module.ndarray.js index 3a141d36cfc2..cfcfdba913e9 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/zscal/benchmark/benchmark.module.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/zscal/benchmark/benchmark.module.ndarray.js @@ -28,6 +28,7 @@ var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var Float64Array = require( '@stdlib/array/float64' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var zscal = require( './../lib' ); @@ -134,7 +135,7 @@ function main() { for ( i = min; i <= max; i++ ) { N = pow( 10, i ); f = createBenchmark( N ); - bench( pkg+'::module,pointers:ndarray:N='+N, opts, f ); + bench( format( '%s::module,pointers:ndarray:N=%d', pkg, N ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/zscal/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/wasm/zscal/benchmark/benchmark.ndarray.js index e13a86cd0b91..1023fde63506 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/zscal/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/zscal/benchmark/benchmark.ndarray.js @@ -27,6 +27,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var Complex128Array = require( '@stdlib/array/complex128' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var zscal = require( './../lib' ); @@ -108,7 +109,7 @@ function main() { for ( i = min; i <= max; i++ ) { N = pow( 10, i ); f = createBenchmark( N ); - bench( pkg+':ndarray:N='+N, opts, f ); + bench( format( '%s:ndarray:N=%d', pkg, N ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/zswap/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/wasm/zswap/benchmark/benchmark.js index e3e18a5d38a3..fd8c18f96997 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/zswap/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/zswap/benchmark/benchmark.js @@ -26,6 +26,7 @@ var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var Complex128Array = require( '@stdlib/array/complex128' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var zswap = require( './../lib' ); @@ -109,7 +110,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, opts, f ); + bench( format( '%s:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/zswap/benchmark/benchmark.module.js b/lib/node_modules/@stdlib/blas/base/wasm/zswap/benchmark/benchmark.module.js index 9c0171339dae..eca0cf3d6d3b 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/zswap/benchmark/benchmark.module.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/zswap/benchmark/benchmark.module.js @@ -23,6 +23,7 @@ var bench = require( '@stdlib/bench' ); var hasWebAssemblySupport = require( '@stdlib/assert/has-wasm-support' ); var Memory = require( '@stdlib/wasm/memory' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var zswap = require( './../lib' ); @@ -36,7 +37,7 @@ var opts = { // MAIN // -bench( pkg+':Module:constructor', opts, function benchmark( b ) { +bench( format( '%s:Module:constructor', pkg ), opts, function benchmark( b ) { var values; var o; var v; diff --git a/lib/node_modules/@stdlib/blas/base/wasm/zswap/benchmark/benchmark.module.main.js b/lib/node_modules/@stdlib/blas/base/wasm/zswap/benchmark/benchmark.module.main.js index a555f520c575..8994f81be3c7 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/zswap/benchmark/benchmark.module.main.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/zswap/benchmark/benchmark.module.main.js @@ -27,6 +27,7 @@ var bytesPerElement = require( '@stdlib/ndarray/base/bytes-per-element' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var zswap = require( './../lib' ); @@ -134,7 +135,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::module,pointers:len='+len, opts, f ); + bench( format( '%s::module,pointers:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/zswap/benchmark/benchmark.module.ndarray.js b/lib/node_modules/@stdlib/blas/base/wasm/zswap/benchmark/benchmark.module.ndarray.js index f09b8ae1cc0a..722354d2de95 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/zswap/benchmark/benchmark.module.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/zswap/benchmark/benchmark.module.ndarray.js @@ -27,6 +27,7 @@ var bytesPerElement = require( '@stdlib/ndarray/base/bytes-per-element' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var zswap = require( './../lib' ); @@ -134,7 +135,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::module,pointers:ndarray:len='+len, opts, f ); + bench( format( '%s::module,pointers:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/wasm/zswap/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/wasm/zswap/benchmark/benchmark.ndarray.js index 051fb7577a45..28fea3ff10aa 100644 --- a/lib/node_modules/@stdlib/blas/base/wasm/zswap/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/wasm/zswap/benchmark/benchmark.ndarray.js @@ -26,6 +26,7 @@ var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var Complex128Array = require( '@stdlib/array/complex128' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var zswap = require( './../lib' ); @@ -109,7 +110,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, opts, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/zaxpy/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/zaxpy/benchmark/benchmark.js index 92835d7157fc..1655d1694a19 100644 --- a/lib/node_modules/@stdlib/blas/base/zaxpy/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/zaxpy/benchmark/benchmark.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var Complex128Array = require( '@stdlib/array/complex128' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var reinterpret = require( '@stdlib/strided/base/reinterpret-complex128' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var zaxpy = require( './../lib/zaxpy.js' ); @@ -108,7 +109,7 @@ function main() { for ( i = min; i <= max; i++ ) { N = pow( 10, i ); f = createBenchmark( N ); - bench( pkg+':len='+N, f ); + bench( format( '%s:len=%d', pkg, N ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/zaxpy/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/base/zaxpy/benchmark/benchmark.native.js index 9d7bb7e3b152..7943251baa48 100644 --- a/lib/node_modules/@stdlib/blas/base/zaxpy/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/blas/base/zaxpy/benchmark/benchmark.native.js @@ -29,6 +29,7 @@ var Complex128Array = require( '@stdlib/array/complex128' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var reinterpret = require( '@stdlib/strided/base/reinterpret-complex128' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -113,7 +114,7 @@ function main() { for ( i = min; i <= max; i++ ) { N = pow( 10, i ); f = createBenchmark( N ); - bench( pkg+'::native:len='+N, opts, f ); + bench( format( '%s::native:len=%d', pkg, N ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/zaxpy/benchmark/benchmark.native.ndarray.js b/lib/node_modules/@stdlib/blas/base/zaxpy/benchmark/benchmark.native.ndarray.js index bfcb67af1f0f..cfdb059cd505 100644 --- a/lib/node_modules/@stdlib/blas/base/zaxpy/benchmark/benchmark.native.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/zaxpy/benchmark/benchmark.native.ndarray.js @@ -29,6 +29,7 @@ var Complex128Array = require( '@stdlib/array/complex128' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var reinterpret = require( '@stdlib/strided/base/reinterpret-complex128' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -113,7 +114,7 @@ function main() { for ( i = min; i <= max; i++ ) { N = pow( 10, i ); f = createBenchmark( N ); - bench( pkg+'::native:ndarray:len='+N, opts, f ); + bench( format( '%s::native:ndarray:len=%d', pkg, N ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/zaxpy/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/zaxpy/benchmark/benchmark.ndarray.js index d945209274c5..661829e1498e 100644 --- a/lib/node_modules/@stdlib/blas/base/zaxpy/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/zaxpy/benchmark/benchmark.ndarray.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var Complex128Array = require( '@stdlib/array/complex128' ); var Complex128 = require( '@stdlib/complex/float64/ctor' ); var reinterpret = require( '@stdlib/strided/base/reinterpret-complex128' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var zaxpy = require( './../lib/ndarray.js' ); @@ -108,7 +109,7 @@ function main() { for ( i = min; i <= max; i++ ) { N = pow( 10, i ); f = createBenchmark( N ); - bench( pkg+':ndarray:len='+N, f ); + bench( format( '%s:ndarray:len=%d', pkg, N ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/zcopy/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/base/zcopy/benchmark/benchmark.js index 8eda5d591600..ac363b571bc1 100644 --- a/lib/node_modules/@stdlib/blas/base/zcopy/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/base/zcopy/benchmark/benchmark.js @@ -26,6 +26,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var Complex128Array = require( '@stdlib/array/complex128' ); var reinterpret = require( '@stdlib/strided/base/reinterpret-complex128' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var zcopy = require( './../lib/zcopy.js' ); @@ -108,7 +109,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/zcopy/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/base/zcopy/benchmark/benchmark.native.js index 16a39807954d..384032414372 100644 --- a/lib/node_modules/@stdlib/blas/base/zcopy/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/blas/base/zcopy/benchmark/benchmark.native.js @@ -28,6 +28,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var Complex128Array = require( '@stdlib/array/complex128' ); var reinterpret = require( '@stdlib/strided/base/reinterpret-complex128' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -113,7 +114,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::native:len='+len, opts, f ); + bench( format( '%s::native:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/zcopy/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/base/zcopy/benchmark/benchmark.ndarray.js index 7e7123add884..237cf07cc062 100644 --- a/lib/node_modules/@stdlib/blas/base/zcopy/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/zcopy/benchmark/benchmark.ndarray.js @@ -26,6 +26,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var Complex128Array = require( '@stdlib/array/complex128' ); var reinterpret = require( '@stdlib/strided/base/reinterpret-complex128' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var zcopy = require( './../lib/ndarray.js' ); @@ -108,7 +109,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/base/zcopy/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/base/zcopy/benchmark/benchmark.ndarray.native.js index b06a0888fa55..ae87477eb035 100644 --- a/lib/node_modules/@stdlib/blas/base/zcopy/benchmark/benchmark.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/base/zcopy/benchmark/benchmark.ndarray.native.js @@ -28,6 +28,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var Complex128Array = require( '@stdlib/array/complex128' ); var reinterpret = require( '@stdlib/strided/base/reinterpret-complex128' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -113,7 +114,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::native:ndarray:len='+len, opts, f ); + bench( format( '%s::native:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/README.md b/lib/node_modules/@stdlib/blas/ext/README.md index 8ec5536f200f..34cb41ec4359 100644 --- a/lib/node_modules/@stdlib/blas/ext/README.md +++ b/lib/node_modules/@stdlib/blas/ext/README.md @@ -57,6 +57,7 @@ The namespace contains the following: - [`sorthp( x[, sortOrder][, options] )`][@stdlib/blas/ext/sorthp]: sort an input ndarray along one or more ndarray dimensions using heapsort. - [`sum( x[, options] )`][@stdlib/blas/ext/sum]: compute the sum along one or more ndarray dimensions. - [`toSortedhp( x[, sortOrder][, options] )`][@stdlib/blas/ext/to-sortedhp]: return a new ndarray containing the elements of an input ndarray sorted along one or more ndarray dimensions using heapsort. +- [`zeroTo( shape[, options] )`][@stdlib/blas/ext/zero-to]: return a new ndarray filled with linearly spaced numeric elements which increment by `1` starting from zero along one or more ndarray dimensions. @@ -123,6 +124,8 @@ console.log( objectKeys( ns ) ); [@stdlib/blas/ext/to-sortedhp]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/to-sortedhp +[@stdlib/blas/ext/zero-to]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/zero-to + diff --git a/lib/node_modules/@stdlib/blas/ext/base/README.md b/lib/node_modules/@stdlib/blas/ext/base/README.md index 3b61e4068e73..74e4363f726c 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/README.md +++ b/lib/node_modules/@stdlib/blas/ext/base/README.md @@ -141,6 +141,7 @@ var o = ns; - [`gnansumors( N, x, strideX )`][@stdlib/blas/ext/base/gnansumors]: calculate the sum of strided array elements, ignoring `NaN` values and using ordinary recursive summation. - [`gnansumpw( N, x, strideX )`][@stdlib/blas/ext/base/gnansumpw]: calculate the sum of strided array elements, ignoring `NaN` values and using pairwise summation. - [`goneTo( N, x, strideX )`][@stdlib/blas/ext/base/gone-to]: fill a strided array with linearly spaced numeric elements which increment by `1` starting from one. +- [`greplicate( N, k, x, strideX, out, strideOut )`][@stdlib/blas/ext/base/greplicate]: replicate each strided array element a specified number of times. - [`grev( N, x, strideX )`][@stdlib/blas/ext/base/grev]: reverse a strided array in-place. - [`gsort( N, order, x, strideX )`][@stdlib/blas/ext/base/gsort]: sort a strided array. - [`gsort2hp( N, order, x, strideX, y, strideY )`][@stdlib/blas/ext/base/gsort2hp]: simultaneously sort two strided arrays based on the sort order of the first array using heapsort. @@ -154,6 +155,7 @@ var o = ns; - [`gsumkbn2( N, x, strideX )`][@stdlib/blas/ext/base/gsumkbn2]: calculate the sum of strided array elements using a second-order iterative Kahan–Babuška algorithm. - [`gsumors( N, x, strideX )`][@stdlib/blas/ext/base/gsumors]: calculate the sum of strided array elements using ordinary recursive summation. - [`gsumpw( N, x, strideX )`][@stdlib/blas/ext/base/gsumpw]: calculate the sum of strided array elements using pairwise summation. +- [`gvander( order, mode, M, N, x, strideX, out, ldo )`][@stdlib/blas/ext/base/gvander]: generate a Vandermonde matrix. - [`gzeroTo( N, x, strideX )`][@stdlib/blas/ext/base/gzero-to]: fill a strided array with linearly spaced numeric elements which increment by `1` starting from zero. - [`ndarray`][@stdlib/blas/ext/base/ndarray]: base ndarray extended BLAS functions. - [`sapx( N, alpha, x, strideX )`][@stdlib/blas/ext/base/sapx]: add a scalar constant to each element in a single-precision floating-point strided array. @@ -187,10 +189,11 @@ var o = ns; - [`snansumpw( N, x, strideX )`][@stdlib/blas/ext/base/snansumpw]: calculate the sum of single-precision floating-point strided array elements, ignoring `NaN` values and using pairwise summation. - [`soneTo( N, x, strideX )`][@stdlib/blas/ext/base/sone-to]: fill a single-precision floating-point strided array with linearly spaced numeric elements which increment by `1` starting from one. - [`srev( N, x, strideX )`][@stdlib/blas/ext/base/srev]: reverse a single-precision floating-point strided array in-place. +- [`ssort( N, order, x, strideX )`][@stdlib/blas/ext/base/ssort]: sort a single-precision floating-point strided array. - [`ssort2hp( N, order, x, strideX, y, strideY )`][@stdlib/blas/ext/base/ssort2hp]: simultaneously sort two single-precision floating-point strided arrays based on the sort order of the first array using heapsort. - [`ssort2ins( N, order, x, strideX, y, strideY )`][@stdlib/blas/ext/base/ssort2ins]: simultaneously sort two single-precision floating-point strided arrays based on the sort order of the first array using insertion sort. - [`ssort2sh( N, order, x, strideX, y, strideY )`][@stdlib/blas/ext/base/ssort2sh]: simultaneously sort two single-precision floating-point strided arrays based on the sort order of the first array using Shellsort. -- [`ssorthp( N, order, x, stride )`][@stdlib/blas/ext/base/ssorthp]: sort a single-precision floating-point strided array using heapsort. +- [`ssorthp( N, order, x, strideX )`][@stdlib/blas/ext/base/ssorthp]: sort a single-precision floating-point strided array using heapsort. - [`ssortins( N, order, x, stride )`][@stdlib/blas/ext/base/ssortins]: sort a single-precision floating-point strided array using insertion sort. - [`ssortsh( N, order, x, stride )`][@stdlib/blas/ext/base/ssortsh]: sort a single-precision floating-point strided array using Shellsort. - [`ssum( N, x, strideX )`][@stdlib/blas/ext/base/ssum]: calculate the sum of single-precision floating-point strided array elements. @@ -452,6 +455,8 @@ console.log( objectKeys( ns ) ); [@stdlib/blas/ext/base/gone-to]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/gone-to +[@stdlib/blas/ext/base/greplicate]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/greplicate + [@stdlib/blas/ext/base/grev]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/grev [@stdlib/blas/ext/base/gsort]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/gsort @@ -478,6 +483,8 @@ console.log( objectKeys( ns ) ); [@stdlib/blas/ext/base/gsumpw]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/gsumpw +[@stdlib/blas/ext/base/gvander]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/gvander + [@stdlib/blas/ext/base/gzero-to]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/gzero-to [@stdlib/blas/ext/base/ndarray]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/ndarray @@ -544,6 +551,8 @@ console.log( objectKeys( ns ) ); [@stdlib/blas/ext/base/srev]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/srev +[@stdlib/blas/ext/base/ssort]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/ssort + [@stdlib/blas/ext/base/ssort2hp]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/ssort2hp [@stdlib/blas/ext/base/ssort2ins]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/ssort2ins diff --git a/lib/node_modules/@stdlib/blas/ext/base/cfill/README.md b/lib/node_modules/@stdlib/blas/ext/base/cfill/README.md index 3b560d4c1002..d56850103ad5 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/cfill/README.md +++ b/lib/node_modules/@stdlib/blas/ext/base/cfill/README.md @@ -221,7 +221,7 @@ Fills a single-precision complex floating-point strided array `X` with a specifi float x[] = { 1.0f, 2.0f, 3.0f, 4.0f }; const stdlib_complex64_t alpha = stdlib_complex64( 2.0f, 2.0f ); -stdlib_strided_cfill_ndarray( 4, alpha, (stdlib_complex64_t *x), 1, 0 ); +stdlib_strided_cfill_ndarray( 4, alpha, (stdlib_complex64_t *)x, 1, 0 ); ``` The function accepts the following arguments: diff --git a/lib/node_modules/@stdlib/blas/ext/base/cfill/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/cfill/benchmark/benchmark.js index ccb907c35257..e75eb34e933d 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/cfill/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/cfill/benchmark/benchmark.js @@ -26,6 +26,7 @@ var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); var Complex64Array = require( '@stdlib/array/complex64' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var cfill = require( './../lib/cfill.js' ); @@ -104,7 +105,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/cfill/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/ext/base/cfill/benchmark/benchmark.native.js index f6e4486141e7..711be2c119cd 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/cfill/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/cfill/benchmark/benchmark.native.js @@ -28,6 +28,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var Complex64Array = require( '@stdlib/array/complex64' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -109,7 +110,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::native:len='+len, opts, f ); + bench( format( '%s::native:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/cfill/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/cfill/benchmark/benchmark.ndarray.js index fdeb25d39f96..fa09fd96ab36 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/cfill/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/cfill/benchmark/benchmark.ndarray.js @@ -26,6 +26,7 @@ var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); var Complex64Array = require( '@stdlib/array/complex64' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var cfill = require( './../lib/ndarray.js' ); @@ -104,7 +105,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/cfill/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/cfill/benchmark/benchmark.ndarray.native.js index acab1b9a636b..53bc41b58250 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/cfill/benchmark/benchmark.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/cfill/benchmark/benchmark.ndarray.native.js @@ -28,6 +28,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var Complex64Array = require( '@stdlib/array/complex64' ); var Complex64 = require( '@stdlib/complex/float32/ctor' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -109,7 +110,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::native:ndarray:len='+len, opts, f ); + bench( format( '%s::native:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/cindex-of-row/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/ext/base/cindex-of-row/docs/types/index.d.ts index 77446642714b..ba0797856f6b 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/cindex-of-row/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/blas/ext/base/cindex-of-row/docs/types/index.d.ts @@ -47,8 +47,8 @@ interface Routine { * @returns row index * * @example - * var Complex64Array = require( `@stdlib/array/complex64` ); - * var Uint8Array = require( `@stdlib/array/uint8` ); + * var Complex64Array = require( '@stdlib/array/complex64' ); + * var Uint8Array = require( '@stdlib/array/uint8' ); * * var A = new Complex64Array( [ 1.0, 0.0, 2.0, 0.0, 0.0, 0.0, 3.0, 0.0, 4.0, 0.0, 0.0, 0.0 ] ); * var x = new Complex64Array( [ 2.0, 0.0, 4.0, 0.0 ] ); @@ -82,8 +82,8 @@ interface Routine { * @returns row index * * @example - * var Complex64Array = require( `@stdlib/array/complex64` ); - * var Uint8Array = require( `@stdlib/array/uint8` ); + * var Complex64Array = require( '@stdlib/array/complex64' ); + * var Uint8Array = require( '@stdlib/array/uint8' ); * * var A = new Complex64Array( [ 1.0, 0.0, 2.0, 0.0, 0.0, 0.0, 3.0, 0.0, 4.0, 0.0, 0.0, 0.0 ] ); * var x = new Complex64Array( [ 2.0, 0.0, 4.0, 0.0 ] ); @@ -115,8 +115,8 @@ interface Routine { * @returns row index * * @example -* var Complex64Array = require( `@stdlib/array/complex64` ); -* var Uint8Array = require( `@stdlib/array/uint8` ); +* var Complex64Array = require( '@stdlib/array/complex64' ); +* var Uint8Array = require( '@stdlib/array/uint8' ); * * var A = new Complex64Array( [ 1.0, 0.0, 2.0, 0.0, 0.0, 0.0, 3.0, 0.0, 4.0, 0.0, 0.0, 0.0 ] ); * var x = new Complex64Array( [ 2.0, 0.0, 4.0, 0.0 ] ); @@ -126,8 +126,8 @@ interface Routine { * // returns 1 * * @example -* var Complex64Array = require( `@stdlib/array/complex64` ); -* var Uint8Array = require( `@stdlib/array/uint8` ); +* var Complex64Array = require( '@stdlib/array/complex64' ); +* var Uint8Array = require( '@stdlib/array/uint8' ); * * var A = new Complex64Array( [ 1.0, 0.0, 2.0, 0.0, 0.0, 0.0, 3.0, 0.0, 4.0, 0.0, 0.0, 0.0 ] ); * var x = new Complex64Array( [ 2.0, 0.0, 4.0, 0.0 ] ); diff --git a/lib/node_modules/@stdlib/blas/ext/base/csum/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/csum/benchmark/benchmark.js index ce4df691643e..2368265fb9d0 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/csum/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/csum/benchmark/benchmark.js @@ -27,6 +27,7 @@ var realf = require( '@stdlib/complex/float32/real' ); var imagf = require( '@stdlib/complex/float32/imag' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var csum = require( './../lib/csum.js' ); @@ -98,7 +99,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/csum/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/ext/base/csum/benchmark/benchmark.native.js index e77ad6a09c8a..18fa3d06d358 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/csum/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/csum/benchmark/benchmark.native.js @@ -29,6 +29,7 @@ var imagf = require( '@stdlib/complex/float32/imag' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -103,7 +104,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::native:len='+len, opts, f ); + bench( format( '%s::native:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/csum/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/csum/benchmark/benchmark.ndarray.js index b6fcf9ba8495..1a6c9da012ef 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/csum/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/csum/benchmark/benchmark.ndarray.js @@ -27,6 +27,7 @@ var realf = require( '@stdlib/complex/float32/real' ); var imagf = require( '@stdlib/complex/float32/imag' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var csum = require( './../lib/ndarray.js' ); @@ -98,7 +99,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/csum/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/csum/benchmark/benchmark.ndarray.native.js index 1699bf20f419..8cc4712a98b1 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/csum/benchmark/benchmark.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/csum/benchmark/benchmark.ndarray.native.js @@ -29,6 +29,7 @@ var imagf = require( '@stdlib/complex/float32/imag' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -103,7 +104,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::native:ndarray:len='+len, opts, f ); + bench( format( '%s::native:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/csumkbn/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/csumkbn/benchmark/benchmark.js index 2c01743d3119..8316c88680ca 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/csumkbn/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/csumkbn/benchmark/benchmark.js @@ -27,6 +27,7 @@ var realf = require( '@stdlib/complex/float32/real' ); var imagf = require( '@stdlib/complex/float32/imag' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var csumkbn = require( './../lib/csumkbn.js' ); @@ -98,7 +99,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/csumkbn/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/ext/base/csumkbn/benchmark/benchmark.native.js index df0327afb778..6e2b5dbac792 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/csumkbn/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/csumkbn/benchmark/benchmark.native.js @@ -29,6 +29,7 @@ var imagf = require( '@stdlib/complex/float32/imag' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -103,7 +104,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::native:len='+len, opts, f ); + bench( format( '%s::native:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/csumkbn/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/csumkbn/benchmark/benchmark.ndarray.js index f16f3fc445ab..a43a180ed5dc 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/csumkbn/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/csumkbn/benchmark/benchmark.ndarray.js @@ -27,6 +27,7 @@ var realf = require( '@stdlib/complex/float32/real' ); var imagf = require( '@stdlib/complex/float32/imag' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var csumkbn = require( './../lib/ndarray.js' ); @@ -98,7 +99,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/csumkbn/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/csumkbn/benchmark/benchmark.ndarray.native.js index 6c286e7a6c90..17cb0f7ab6b8 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/csumkbn/benchmark/benchmark.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/csumkbn/benchmark/benchmark.ndarray.native.js @@ -29,6 +29,7 @@ var imagf = require( '@stdlib/complex/float32/imag' ); var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -103,7 +104,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::native:ndarray:len='+len, opts, f ); + bench( format( '%s::native:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dasumpw/README.md b/lib/node_modules/@stdlib/blas/ext/base/dasumpw/README.md index e901a320238e..d9ce0e8a4442 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dasumpw/README.md +++ b/lib/node_modules/@stdlib/blas/ext/base/dasumpw/README.md @@ -192,7 +192,7 @@ console.log( v ); Computes the sum of absolute values ([_L1_ norm][l1norm]) of double-precision floating-point strided array elements using pairwise summation. ```c -const double x[] = { 1.0, 2.0, 3.0, 4.0 } +const double x[] = { 1.0, 2.0, 3.0, 4.0 }; double v = stdlib_strided_dasumpw( 4, x, 1 ); // returns 10.0 @@ -213,7 +213,7 @@ double stdlib_strided_dasumpw( const CBLAS_INT N, const double *X, const CBLAS_I Computes the sum of absolute values ([_L1_ norm][l1norm]) of double-precision floating-point strided array elements using pairwise summation and alternative indexing semantics. ```c -const double x[] = { 1.0, 2.0, 3.0, 4.0 } +const double x[] = { 1.0, 2.0, 3.0, 4.0 }; double v = stdlib_strided_dasumpw_ndarray( 4, x, 1, 0 ); // returns 10.0 diff --git a/lib/node_modules/@stdlib/blas/ext/base/dcusumkbn2/README.md b/lib/node_modules/@stdlib/blas/ext/base/dcusumkbn2/README.md index 2c80cfad2104..131a16f081b3 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dcusumkbn2/README.md +++ b/lib/node_modules/@stdlib/blas/ext/base/dcusumkbn2/README.md @@ -199,8 +199,8 @@ console.log( y ); Computes the cumulative sum of double-precision floating-point strided array elements using a second-order iterative Kahan–Babuška algorithm. ```c -const double x[] = { 1.0, 2.0, 3.0, 4.0 } -double y[] = { 0.0, 0.0, 0.0, 0.0 } +const double x[] = { 1.0, 2.0, 3.0, 4.0 }; +double y[] = { 0.0, 0.0, 0.0, 0.0 }; stdlib_strided_dcusumkbn2( 4, 0.0, x, 1, y, 1 ); ``` @@ -227,8 +227,8 @@ void stdlib_strided_dcusumkbn2( const CBLAS_INT N, const double sum, const doubl Computes the cumulative sum of double-precision floating-point strided array elements using a second-order iterative Kahan–Babuška algorithm and alternative indexing semantics. ```c -const double x[] = { 1.0, 2.0, 3.0, 4.0 } -double y[] = { 0.0, 0.0, 0.0, 0.0 } +const double x[] = { 1.0, 2.0, 3.0, 4.0 }; +double y[] = { 0.0, 0.0, 0.0, 0.0 }; stdlib_strided_dcusumkbn2_ndarray( 4, 0.0, x, 1, 0, y, 1, 0 ); ``` diff --git a/lib/node_modules/@stdlib/blas/ext/base/dcusumors/README.md b/lib/node_modules/@stdlib/blas/ext/base/dcusumors/README.md index 74ae9a85ad86..61b7fc5618a1 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dcusumors/README.md +++ b/lib/node_modules/@stdlib/blas/ext/base/dcusumors/README.md @@ -228,8 +228,8 @@ void stdlib_strided_dcusumors( const CBLAS_INT N, double sum, const double *X, c Computes the cumulative sum of double-precision floating-point strided array elements using ordinary recursive summation and alternative indexing semantics. ```c -const double x[] = { 1.0, 2.0, 3.0, 4.0 } -double y[] = { 0.0, 0.0, 0.0, 0.0 } +const double x[] = { 1.0, 2.0, 3.0, 4.0 }; +double y[] = { 0.0, 0.0, 0.0, 0.0 }; stdlib_strided_dcusumors_ndarray( 4, 0.0, x, 1, 0, y, 1, 0 ); ``` diff --git a/lib/node_modules/@stdlib/blas/ext/base/dcusumpw/README.md b/lib/node_modules/@stdlib/blas/ext/base/dcusumpw/README.md index a2fddff55051..1b0c9e3cef22 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dcusumpw/README.md +++ b/lib/node_modules/@stdlib/blas/ext/base/dcusumpw/README.md @@ -228,8 +228,8 @@ void stdlib_strided_dcusumpw( const CBLAS_INT N, const double sum, const double Computes the cumulative sum of double-precision floating-point strided array elements using pairwise summation and alternative indexing semantics. ```c -const double x[] = { 1.0, 2.0, 3.0, 4.0 } -double y[] = { 0.0, 0.0, 0.0, 0.0 } +const double x[] = { 1.0, 2.0, 3.0, 4.0 }; +double y[] = { 0.0, 0.0, 0.0, 0.0 }; stdlib_strided_dcusumpw_ndarray( 4, 0.0, x, 1, 0, y, 1, 0 ); ``` diff --git a/lib/node_modules/@stdlib/blas/ext/base/dindex-of-row/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/ext/base/dindex-of-row/docs/types/index.d.ts index 71e924d21e5f..cd89559988f5 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dindex-of-row/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/blas/ext/base/dindex-of-row/docs/types/index.d.ts @@ -46,8 +46,8 @@ interface Routine { * @returns row index * * @example - * var Float64Array = require( `@stdlib/array/float64` ); - * var Uint8Array = require( `@stdlib/array/uint8` ); + * var Float64Array = require( '@stdlib/array/float64' ); + * var Uint8Array = require( '@stdlib/array/uint8' ); * * var A = new Float64Array( [ 1.0, 2.0, 0.0, 3.0, 4.0, 0.0 ] ); * var x = new Float64Array( [ 2.0, 4.0 ] ); @@ -81,8 +81,8 @@ interface Routine { * @returns row index * * @example - * var Float64Array = require( `@stdlib/array/float64` ); - * var Uint8Array = require( `@stdlib/array/uint8` ); + * var Float64Array = require( '@stdlib/array/float64' ); + * var Uint8Array = require( '@stdlib/array/uint8' ); * * var A = new Float64Array( [ 1.0, 2.0, 0.0, 3.0, 4.0, 0.0 ] ); * var x = new Float64Array( [ 2.0, 4.0 ] ); @@ -114,8 +114,8 @@ interface Routine { * @returns row index * * @example -* var Float64Array = require( `@stdlib/array/float64` ); -* var Uint8Array = require( `@stdlib/array/uint8` ); +* var Float64Array = require( '@stdlib/array/float64' ); +* var Uint8Array = require( '@stdlib/array/uint8' ); * * var A = new Float64Array( [ 1.0, 2.0, 0.0, 3.0, 4.0, 0.0 ] ); * var x = new Float64Array( [ 2.0, 4.0 ] ); @@ -125,8 +125,8 @@ interface Routine { * // returns 1 * * @example -* var Float64Array = require( `@stdlib/array/float64` ); -* var Uint8Array = require( `@stdlib/array/uint8` ); +* var Float64Array = require( '@stdlib/array/float64' ); +* var Uint8Array = require( '@stdlib/array/uint8' ); * * var A = new Float64Array( [ 1.0, 2.0, 0.0, 3.0, 4.0, 0.0 ] ); * var x = new Float64Array( [ 2.0, 4.0 ] ); diff --git a/lib/node_modules/@stdlib/blas/ext/base/dindex-of/README.md b/lib/node_modules/@stdlib/blas/ext/base/dindex-of/README.md index 31712a75019b..6538aced11c0 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dindex-of/README.md +++ b/lib/node_modules/@stdlib/blas/ext/base/dindex-of/README.md @@ -222,7 +222,7 @@ Returns the first index of a specified search element in a double-precision floa ```c double x[] = { 1.0, 2.0, 3.0, 4.0 }; -int idx = stdlib_strided_dindex_of( 4, 3.0, x, 1, 0 ); +int idx = stdlib_strided_dindex_of_ndarray( 4, 3.0, x, 1, 0 ); // returns 2 ``` diff --git a/lib/node_modules/@stdlib/blas/ext/base/dnanasum/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/dnanasum/benchmark/benchmark.js index f7f1ae28cfd5..90498540a6fd 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dnanasum/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dnanasum/benchmark/benchmark.js @@ -26,6 +26,7 @@ var uniform = require( '@stdlib/random/base/uniform' ); var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dnanasum = require( './../lib/dnanasum.js' ); @@ -103,7 +104,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dnanasum/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/ext/base/dnanasum/benchmark/benchmark.native.js index a9a8a158b7c8..0d39ff03324b 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dnanasum/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dnanasum/benchmark/benchmark.native.js @@ -28,6 +28,7 @@ var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -112,7 +113,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::native:len='+len, opts, f ); + bench( format( '%s::native:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dnanasum/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dnanasum/benchmark/benchmark.ndarray.js index bd8ee7480afe..b1d00444825f 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dnanasum/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dnanasum/benchmark/benchmark.ndarray.js @@ -26,6 +26,7 @@ var uniform = require( '@stdlib/random/base/uniform' ); var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dnanasum = require( './../lib/ndarray.js' ); @@ -103,7 +104,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dnanasum/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dnanasum/benchmark/benchmark.ndarray.native.js index dfe214744fad..16042a6749ef 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dnanasum/benchmark/benchmark.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dnanasum/benchmark/benchmark.ndarray.native.js @@ -28,6 +28,7 @@ var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -112,7 +113,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::native:ndarray:len='+len, opts, f ); + bench( format( '%s::native:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dnancusumkbn/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/dnancusumkbn/benchmark/benchmark.js index 9953f9bc2652..a56090ec3ce8 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dnancusumkbn/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dnancusumkbn/benchmark/benchmark.js @@ -27,6 +27,7 @@ var filledarrayBy = require( '@stdlib/array/filled-by' ); var zeros = require( '@stdlib/array/zeros' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dnancusumkbn = require( './../lib/dnancusumkbn.js' ); @@ -113,7 +114,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dnancusumkbn/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/ext/base/dnancusumkbn/benchmark/benchmark.native.js index 1330baa7bf52..aa9a1ed13941 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dnancusumkbn/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dnancusumkbn/benchmark/benchmark.native.js @@ -29,6 +29,7 @@ var zeros = require( '@stdlib/array/zeros' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -118,7 +119,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::native:len='+len, opts, f ); + bench( format( '%s::native:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dnancusumkbn/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dnancusumkbn/benchmark/benchmark.ndarray.js index 3e475aa8f6b8..9fc7a4026a2f 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dnancusumkbn/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dnancusumkbn/benchmark/benchmark.ndarray.js @@ -27,6 +27,7 @@ var filledarrayBy = require( '@stdlib/array/filled-by' ); var zeros = require( '@stdlib/array/zeros' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dnancusumkbn = require( './../lib/ndarray.js' ); @@ -113,7 +114,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dnancusumkbn/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dnancusumkbn/benchmark/benchmark.ndarray.native.js index b315b422dbfc..968a3d21f2f7 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dnancusumkbn/benchmark/benchmark.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dnancusumkbn/benchmark/benchmark.ndarray.native.js @@ -29,6 +29,7 @@ var zeros = require( '@stdlib/array/zeros' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -118,7 +119,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::native:ndarray:len='+len, opts, f ); + bench( format( '%s::native:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dnannsumors/README.md b/lib/node_modules/@stdlib/blas/ext/base/dnannsumors/README.md index 65de33ac5618..e1952e1bd894 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dnannsumors/README.md +++ b/lib/node_modules/@stdlib/blas/ext/base/dnannsumors/README.md @@ -259,7 +259,7 @@ double stdlib_strided_dnannsumors_ndarray( const CBLAS_INT N, const double *X, c ```c #include "stdlib/blas/ext/base/dnannsumors.h" -#include "stdlib/blase/base/shared.h" +#include "stdlib/blas/base/shared.h" #include int main( void ) { diff --git a/lib/node_modules/@stdlib/blas/ext/base/dnannsumpw/README.md b/lib/node_modules/@stdlib/blas/ext/base/dnannsumpw/README.md index 9046d473826b..01d48459a332 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dnannsumpw/README.md +++ b/lib/node_modules/@stdlib/blas/ext/base/dnannsumpw/README.md @@ -262,7 +262,7 @@ double stdlib_strided_dnannsumpw_ndarray( const CBLAS_INT N, const double *X, co ```c #include "stdlib/blas/ext/base/dnannsumpw.h" -#include "stdlib/blase/base/shared.h" +#include "stdlib/blas/base/shared.h" #include int main( void ) { diff --git a/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn2/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn2/benchmark/benchmark.js index a0a2ba343a46..c579b39ad6e8 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn2/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn2/benchmark/benchmark.js @@ -26,6 +26,7 @@ var bernoulli = require( '@stdlib/random/base/bernoulli' ); var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dnansumkbn2 = require( './../lib/dnansumkbn2.js' ); @@ -103,7 +104,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn2/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn2/benchmark/benchmark.native.js index be14526ea51e..f98a34ebb6c2 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn2/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn2/benchmark/benchmark.native.js @@ -28,6 +28,7 @@ var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -112,7 +113,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::native:len='+len, opts, f ); + bench( format( '%s::native:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn2/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn2/benchmark/benchmark.ndarray.js index 7e53528b86e9..620b18ad7bc8 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn2/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn2/benchmark/benchmark.ndarray.js @@ -26,6 +26,7 @@ var bernoulli = require( '@stdlib/random/base/bernoulli' ); var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dnansumkbn2 = require( './../lib/ndarray.js' ); @@ -103,7 +104,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn2/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn2/benchmark/benchmark.ndarray.native.js index accf0bc442da..fba379053024 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn2/benchmark/benchmark.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dnansumkbn2/benchmark/benchmark.ndarray.native.js @@ -28,6 +28,7 @@ var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -112,7 +113,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::native:ndarray:len='+len, opts, f ); + bench( format( '%s::native:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dnansumors/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/dnansumors/benchmark/benchmark.js index 42a1518cf3eb..ac873ebbc3b3 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dnansumors/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dnansumors/benchmark/benchmark.js @@ -26,6 +26,7 @@ var bernoulli = require( '@stdlib/random/base/bernoulli' ); var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dnansumors = require( './../lib/dnansumors.js' ); @@ -103,7 +104,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dnansumors/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/ext/base/dnansumors/benchmark/benchmark.native.js index 320c156f8afa..6a075665b70a 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dnansumors/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dnansumors/benchmark/benchmark.native.js @@ -28,6 +28,7 @@ var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -112,7 +113,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::native:len='+len, opts, f ); + bench( format( '%s::native:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dnansumors/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dnansumors/benchmark/benchmark.ndarray.js index 592faa21207e..e368b6a85982 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dnansumors/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dnansumors/benchmark/benchmark.ndarray.js @@ -26,6 +26,7 @@ var bernoulli = require( '@stdlib/random/base/bernoulli' ); var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dnansumors = require( './../lib/ndarray.js' ); @@ -103,7 +104,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dnansumors/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dnansumors/benchmark/benchmark.ndarray.native.js index 1f3b2db083b0..c4c8b36f8ddd 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dnansumors/benchmark/benchmark.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dnansumors/benchmark/benchmark.ndarray.native.js @@ -28,6 +28,7 @@ var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -112,7 +113,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::native:ndarray:len='+len, opts, f ); + bench( format( '%s::native:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dnansumpw/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/dnansumpw/benchmark/benchmark.js index 79c6668caa2e..924a6436edf7 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dnansumpw/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dnansumpw/benchmark/benchmark.js @@ -26,6 +26,7 @@ var bernoulli = require( '@stdlib/random/base/bernoulli' ); var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dnansumpw = require( './../lib/dnansumpw.js' ); @@ -103,7 +104,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dnansumpw/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/ext/base/dnansumpw/benchmark/benchmark.native.js index 5456e3789527..7f5d6b064570 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dnansumpw/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dnansumpw/benchmark/benchmark.native.js @@ -28,6 +28,7 @@ var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -112,7 +113,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::native:len='+len, opts, f ); + bench( format( '%s::native:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dnansumpw/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dnansumpw/benchmark/benchmark.ndarray.js index a2ad04e88585..aeaf0d210eb6 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dnansumpw/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dnansumpw/benchmark/benchmark.ndarray.js @@ -26,6 +26,7 @@ var bernoulli = require( '@stdlib/random/base/bernoulli' ); var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dnansumpw = require( './../lib/ndarray.js' ); @@ -103,7 +104,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dnansumpw/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dnansumpw/benchmark/benchmark.ndarray.native.js index 41960428c125..60e1f23c136f 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dnansumpw/benchmark/benchmark.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dnansumpw/benchmark/benchmark.ndarray.native.js @@ -28,6 +28,7 @@ var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -112,7 +113,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::native:ndarray:len='+len, opts, f ); + bench( format( '%s::native:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/ext/base/docs/types/index.d.ts index 713574213006..b20dd96b7f74 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/blas/ext/base/docs/types/index.d.ts @@ -118,6 +118,7 @@ import gnansumkbn2 = require( '@stdlib/blas/ext/base/gnansumkbn2' ); import gnansumors = require( '@stdlib/blas/ext/base/gnansumors' ); import gnansumpw = require( '@stdlib/blas/ext/base/gnansumpw' ); import goneTo = require( '@stdlib/blas/ext/base/gone-to' ); +import greplicate = require( '@stdlib/blas/ext/base/greplicate' ); import grev = require( '@stdlib/blas/ext/base/grev' ); import gsort = require( '@stdlib/blas/ext/base/gsort' ); import gsort2hp = require( '@stdlib/blas/ext/base/gsort2hp' ); @@ -131,6 +132,7 @@ import gsumkbn = require( '@stdlib/blas/ext/base/gsumkbn' ); import gsumkbn2 = require( '@stdlib/blas/ext/base/gsumkbn2' ); import gsumors = require( '@stdlib/blas/ext/base/gsumors' ); import gsumpw = require( '@stdlib/blas/ext/base/gsumpw' ); +import gvander = require( '@stdlib/blas/ext/base/gvander' ); import gzeroTo = require( '@stdlib/blas/ext/base/gzero-to' ); import ndarray = require( '@stdlib/blas/ext/base/ndarray' ); import sapx = require( '@stdlib/blas/ext/base/sapx' ); @@ -241,8 +243,8 @@ interface Namespace { * @returns row index * * @example - * var Complex64Array = require( `@stdlib/array/complex64` ); - * var Uint8Array = require( `@stdlib/array/uint8` ); + * var Complex64Array = require( '@stdlib/array/complex64' ); + * var Uint8Array = require( '@stdlib/array/uint8' ); * * var A = new Complex64Array( [ 1.0, 0.0, 2.0, 0.0, 0.0, 0.0, 3.0, 0.0, 4.0, 0.0, 0.0, 0.0 ] ); * var x = new Complex64Array( [ 2.0, 0.0, 4.0, 0.0 ] ); @@ -252,8 +254,8 @@ interface Namespace { * // returns 1 * * @example - * var Complex64Array = require( `@stdlib/array/complex64` ); - * var Uint8Array = require( `@stdlib/array/uint8` ); + * var Complex64Array = require( '@stdlib/array/complex64' ); + * var Uint8Array = require( '@stdlib/array/uint8' ); * * var A = new Complex64Array( [ 1.0, 0.0, 2.0, 0.0, 0.0, 0.0, 3.0, 0.0, 4.0, 0.0, 0.0, 0.0 ] ); * var x = new Complex64Array( [ 2.0, 0.0, 4.0, 0.0 ] ); @@ -816,8 +818,8 @@ interface Namespace { * @returns row index * * @example - * var Float64Array = require( `@stdlib/array/float64` ); - * var Uint8Array = require( `@stdlib/array/uint8` ); + * var Float64Array = require( '@stdlib/array/float64' ); + * var Uint8Array = require( '@stdlib/array/uint8' ); * * var A = new Float64Array( [ 1.0, 2.0, 0.0, 3.0, 4.0, 0.0 ] ); * var x = new Float64Array( [ 2.0, 4.0 ] ); @@ -827,8 +829,8 @@ interface Namespace { * // returns 1 * * @example - * var Float64Array = require( `@stdlib/array/float64` ); - * var Uint8Array = require( `@stdlib/array/uint8` ); + * var Float64Array = require( '@stdlib/array/float64' ); + * var Uint8Array = require( '@stdlib/array/uint8' ); * * var A = new Float64Array( [ 1.0, 2.0, 0.0, 3.0, 4.0, 0.0 ] ); * var x = new Float64Array( [ 2.0, 4.0 ] ); @@ -2965,6 +2967,33 @@ interface Namespace { */ goneTo: typeof goneTo; + /** + * Replicates each strided array element a specified number of times. + * + * @param N - number of indexed elements + * @param k - number of times to replicate each element + * @param x - input array + * @param strideX - stride length for `x` + * @param out - output array + * @param strideOut - stride length for `out` + * @returns output array + * + * @example + * var x = [ 1.0, 2.0, 3.0 ]; + * var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + * + * ns.greplicate( x.length, 2, x, 1, out, 1 ); + * // out => [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ] + * + * @example + * var x = [ 1.0, 2.0, 3.0 ]; + * var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + * + * ns.greplicate.ndarray( x.length, 2, x, 1, 0, out, 1, 0 ); + * // out => [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ] + */ + greplicate: typeof greplicate; + /** * Reverses a strided array in-place. * @@ -3300,6 +3329,35 @@ interface Namespace { */ gsumpw: typeof gsumpw; + /** + * Generates a Vandermonde matrix. + * + * @param order - storage layout + * @param mode - mode indicating whether to generate increasing or decreasing powers + * @param M - number of rows in `out` + * @param N - number of columns in `out` + * @param x - input array + * @param strideX - stride length for `x` + * @param out - output matrix + * @param ldo - stride between successive contiguous vectors of the matrix `out` (a.k.a., leading dimension of the matrix `out`) + * @returns output matrix + * + * @example + * var x = [ 1.0, 2.0, 3.0 ]; + * var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + * + * ns.gvander( 'row-major', 1, 3, 3, x, 1, out, 3 ); + * // out => [ 1.0, 1.0, 1.0, 1.0, 2.0, 4.0, 1.0, 3.0, 9.0 ] + * + * @example + * var x = [ 1.0, 2.0, 3.0 ]; + * var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + * + * ns.gvander.ndarray( 1, 3, 3, x, 1, 0, out, 3, 1, 0 ); + * // out => [ 1.0, 1.0, 1.0, 1.0, 2.0, 4.0, 1.0, 3.0, 9.0 ] + */ + gvander: typeof gvander; + /** * Fills a strided array with linearly spaced numeric elements which increment by `1` starting from zero. * @@ -3933,8 +3991,8 @@ interface Namespace { * @returns row index * * @example - * var Float32Array = require( `@stdlib/array/float32` ); - * var Uint8Array = require( `@stdlib/array/uint8` ); + * var Float32Array = require( '@stdlib/array/float32' ); + * var Uint8Array = require( '@stdlib/array/uint8' ); * * var A = new Float32Array( [ 1.0, 2.0, 0.0, 3.0, 4.0, 0.0 ] ); * var x = new Float32Array( [ 2.0, 4.0 ] ); @@ -3944,8 +4002,8 @@ interface Namespace { * // returns 1 * * @example - * var Float32Array = require( `@stdlib/array/float32` ); - * var Uint8Array = require( `@stdlib/array/uint8` ); + * var Float32Array = require( '@stdlib/array/float32' ); + * var Uint8Array = require( '@stdlib/array/uint8' ); * * var A = new Float32Array( [ 1.0, 2.0, 0.0, 3.0, 4.0, 0.0 ] ); * var x = new Float32Array( [ 2.0, 4.0 ] ); @@ -4343,7 +4401,7 @@ interface Namespace { * @param N - number of indexed elements * @param order - sort order * @param x - input array - * @param stride - stride length + * @param strideX - stride length * @returns input array * * @example @@ -4625,8 +4683,8 @@ interface Namespace { * @returns row index * * @example - * var Complex128Array = require( `@stdlib/array/complex128` ); - * var Uint8Array = require( `@stdlib/array/uint8` ); + * var Complex128Array = require( '@stdlib/array/complex128' ); + * var Uint8Array = require( '@stdlib/array/uint8' ); * * var A = new Complex128Array( [ 1.0, 0.0, 2.0, 0.0, 0.0, 0.0, 3.0, 0.0, 4.0, 0.0, 0.0, 0.0 ] ); * var x = new Complex128Array( [ 2.0, 0.0, 4.0, 0.0 ] ); @@ -4636,8 +4694,8 @@ interface Namespace { * // returns 1 * * @example - * var Complex128Array = require( `@stdlib/array/complex128` ); - * var Uint8Array = require( `@stdlib/array/uint8` ); + * var Complex128Array = require( '@stdlib/array/complex128' ); + * var Uint8Array = require( '@stdlib/array/uint8' ); * * var A = new Complex128Array( [ 1.0, 0.0, 2.0, 0.0, 0.0, 0.0, 3.0, 0.0, 4.0, 0.0, 0.0, 0.0 ] ); * var x = new Complex128Array( [ 2.0, 0.0, 4.0, 0.0 ] ); diff --git a/lib/node_modules/@stdlib/blas/ext/base/drrss/README.md b/lib/node_modules/@stdlib/blas/ext/base/drrss/README.md index 1382897c81c8..660d891429a2 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/drrss/README.md +++ b/lib/node_modules/@stdlib/blas/ext/base/drrss/README.md @@ -238,7 +238,7 @@ Computes the square root of the [residual sum of squares][wikipedia-residual-sum const double x[] = { 1.0, -2.0, 2.0 }; const double y[] = { 1.0, 1.0, -4.0 }; -double v = stdlib_strided_drrss_ndarray( 3, x, 1, 0, 1, 0 ); +double v = stdlib_strided_drrss_ndarray( 3, x, 1, 0, y, 1, 0 ); // returns ~6.7 ``` diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsapxsum/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/dsapxsum/benchmark/benchmark.js index 774dc9a22061..bb12e802bd9a 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsapxsum/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsapxsum/benchmark/benchmark.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsapxsum = require( './../lib/dsapxsum.js' ); @@ -95,7 +96,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsapxsum/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsapxsum/benchmark/benchmark.native.js index 8eaa95fc27c3..7db6979875c5 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsapxsum/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsapxsum/benchmark/benchmark.native.js @@ -26,6 +26,7 @@ var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -100,7 +101,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::native:len='+len, opts, f ); + bench( format( '%s::native:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsapxsum/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsapxsum/benchmark/benchmark.ndarray.js index 0b51074c0a99..b3beebf4b972 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsapxsum/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsapxsum/benchmark/benchmark.ndarray.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsapxsum = require( './../lib/ndarray.js' ); @@ -95,7 +96,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsapxsum/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsapxsum/benchmark/benchmark.ndarray.native.js index 16cde4144a2c..1be9b68d92df 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsapxsum/benchmark/benchmark.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsapxsum/benchmark/benchmark.ndarray.native.js @@ -26,6 +26,7 @@ var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -100,7 +101,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::native:ndarray:len='+len, opts, f ); + bench( format( '%s::native:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsapxsumpw/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/dsapxsumpw/benchmark/benchmark.js index 7a4585cc919c..c1f649b0f521 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsapxsumpw/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsapxsumpw/benchmark/benchmark.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsapxsumpw = require( './../lib/dsapxsumpw.js' ); @@ -95,7 +96,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsapxsumpw/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsapxsumpw/benchmark/benchmark.native.js index 92f9f0c34a30..566db2c50ee5 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsapxsumpw/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsapxsumpw/benchmark/benchmark.native.js @@ -26,6 +26,7 @@ var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -100,7 +101,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::native:len='+len, opts, f ); + bench( format( '%s::native:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsapxsumpw/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsapxsumpw/benchmark/benchmark.ndarray.js index 124810d16923..1a304dc55d88 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsapxsumpw/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsapxsumpw/benchmark/benchmark.ndarray.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsapxsumpw = require( './../lib/ndarray.js' ); @@ -95,7 +96,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsapxsumpw/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsapxsumpw/benchmark/benchmark.ndarray.native.js index ad76e1b444b3..d892a487983c 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsapxsumpw/benchmark/benchmark.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsapxsumpw/benchmark/benchmark.ndarray.native.js @@ -26,6 +26,7 @@ var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -100,7 +101,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::native:ndarray:len='+len, opts, f ); + bench( format( '%s::native:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsnannsumors/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/dsnannsumors/benchmark/benchmark.js index 4992efc83f25..cb520b2aa10b 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsnannsumors/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsnannsumors/benchmark/benchmark.js @@ -27,6 +27,7 @@ var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var Float64Array = require( '@stdlib/array/float64' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsnannsumors = require( './../lib/dsnannsumors.js' ); @@ -107,7 +108,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsnannsumors/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsnannsumors/benchmark/benchmark.native.js index 0d1b2f45b07b..4d6ad15cac64 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsnannsumors/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsnannsumors/benchmark/benchmark.native.js @@ -29,6 +29,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var Float64Array = require( '@stdlib/array/float64' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -116,7 +117,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::native:len='+len, opts, f ); + bench( format( '%s::native:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsnannsumors/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsnannsumors/benchmark/benchmark.ndarray.js index a7af4f3776d0..ad90a5252e8d 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsnannsumors/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsnannsumors/benchmark/benchmark.ndarray.js @@ -27,6 +27,7 @@ var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var Float64Array = require( '@stdlib/array/float64' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsnannsumors = require( './../lib/ndarray.js' ); @@ -107,7 +108,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsnannsumors/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsnannsumors/benchmark/benchmark.ndarray.native.js index 6c16d92d1f1a..7b45f475807a 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsnannsumors/benchmark/benchmark.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsnannsumors/benchmark/benchmark.ndarray.native.js @@ -29,6 +29,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var Float64Array = require( '@stdlib/array/float64' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -116,7 +117,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::native:ndarray:len='+len, opts, f ); + bench( format( '%s::native:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsnansum/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/dsnansum/benchmark/benchmark.js index b4291bbc6302..62384b439298 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsnansum/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsnansum/benchmark/benchmark.js @@ -26,6 +26,7 @@ var uniform = require( '@stdlib/random/base/uniform' ); var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsnansum = require( './../lib/dsnansum.js' ); @@ -103,7 +104,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsnansum/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsnansum/benchmark/benchmark.native.js index 28ac972c22b1..fe09e0d2c2e9 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsnansum/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsnansum/benchmark/benchmark.native.js @@ -28,6 +28,7 @@ var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -112,7 +113,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::native:len='+len, opts, f ); + bench( format( '%s::native:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsnansum/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsnansum/benchmark/benchmark.ndarray.js index 9f8c8bcf505f..26e51afb4f13 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsnansum/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsnansum/benchmark/benchmark.ndarray.js @@ -26,6 +26,7 @@ var uniform = require( '@stdlib/random/base/uniform' ); var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsnansum = require( './../lib/ndarray.js' ); @@ -103,7 +104,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsnansum/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsnansum/benchmark/benchmark.ndarray.native.js index 04c63425789c..e02fb4cefb7b 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsnansum/benchmark/benchmark.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsnansum/benchmark/benchmark.ndarray.native.js @@ -28,6 +28,7 @@ var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -112,7 +113,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::native:ndarray:len='+len, opts, f ); + bench( format( '%s::native:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsnansumors/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/dsnansumors/benchmark/benchmark.js index a2a4ea573d9a..0691c873c7e9 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsnansumors/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsnansumors/benchmark/benchmark.js @@ -26,6 +26,7 @@ var bernoulli = require( '@stdlib/random/base/bernoulli' ); var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsnansumors = require( './../lib/dsnansumors.js' ); @@ -103,7 +104,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsnansumors/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsnansumors/benchmark/benchmark.native.js index 489c9c2634d2..ffa3721c76b3 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsnansumors/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsnansumors/benchmark/benchmark.native.js @@ -28,6 +28,7 @@ var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -112,7 +113,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::native:len='+len, opts, f ); + bench( format( '%s::native:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsnansumors/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsnansumors/benchmark/benchmark.ndarray.js index d5abb355d528..ecb6ddf50e90 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsnansumors/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsnansumors/benchmark/benchmark.ndarray.js @@ -26,6 +26,7 @@ var bernoulli = require( '@stdlib/random/base/bernoulli' ); var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsnansumors = require( './../lib/ndarray.js' ); @@ -103,7 +104,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsnansumors/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsnansumors/benchmark/benchmark.ndarray.native.js index 2f677e99f9f0..9aa453e58593 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsnansumors/benchmark/benchmark.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsnansumors/benchmark/benchmark.ndarray.native.js @@ -28,6 +28,7 @@ var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -112,7 +113,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::native:ndarray:len='+len, opts, f ); + bench( format( '%s::native:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsnansumpw/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/dsnansumpw/benchmark/benchmark.js index 60470a812d38..c73027c4edf4 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsnansumpw/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsnansumpw/benchmark/benchmark.js @@ -26,6 +26,7 @@ var bernoulli = require( '@stdlib/random/base/bernoulli' ); var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsnansumpw = require( './../lib/dsnansumpw.js' ); @@ -103,7 +104,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsnansumpw/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsnansumpw/benchmark/benchmark.native.js index db27d262778d..10723fceff20 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsnansumpw/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsnansumpw/benchmark/benchmark.native.js @@ -28,6 +28,7 @@ var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -112,7 +113,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::native:len='+len, opts, f ); + bench( format( '%s::native:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsnansumpw/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsnansumpw/benchmark/benchmark.ndarray.js index e73251a0fc11..80133f182ec2 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsnansumpw/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsnansumpw/benchmark/benchmark.ndarray.js @@ -26,6 +26,7 @@ var bernoulli = require( '@stdlib/random/base/bernoulli' ); var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsnansumpw = require( './../lib/ndarray.js' ); @@ -103,7 +104,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsnansumpw/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsnansumpw/benchmark/benchmark.ndarray.native.js index f0c1de0d8687..62f58298cdb7 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsnansumpw/benchmark/benchmark.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsnansumpw/benchmark/benchmark.ndarray.native.js @@ -28,6 +28,7 @@ var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -112,7 +113,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::native:ndarray:len='+len, opts, f ); + bench( format( '%s::native:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort/benchmark/c/unsorted-random/benchmark.length.c b/lib/node_modules/@stdlib/blas/ext/base/dsort/benchmark/c/unsorted-random/benchmark.length.c index 8ed684ee3af7..bf503e18e04a 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort/benchmark/c/unsorted-random/benchmark.length.c +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort/benchmark/c/unsorted-random/benchmark.length.c @@ -174,7 +174,7 @@ int main( void ) { iter = ITERATIONS / pow( 10, i-1 ); for ( j = 0; j < REPEATS; j++ ) { count += 1; - printf( "# c::%s:unsorted,random:len=%d\n", NAME, len ); + printf( "# c::%s::unsorted,random:len=%d\n", NAME, len ); elapsed = benchmark1( iter, len ); print_results( iter, elapsed ); printf( "ok %d benchmark finished\n", count ); @@ -185,7 +185,7 @@ int main( void ) { iter = ITERATIONS / pow( 10, i-1 ); for ( j = 0; j < REPEATS; j++ ) { count += 1; - printf( "# c::%s:ndarray:unsorted,random:len=%d\n", NAME, len ); + printf( "# c::%s::unsorted,random:ndarray:len=%d\n", NAME, len ); elapsed = benchmark2( iter, len ); print_results( iter, elapsed ); printf( "ok %d benchmark finished\n", count ); diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.mostly_sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.mostly_sorted_few_uniques.js index 316b2d72a237..116b56cd638f 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.mostly_sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.mostly_sorted_few_uniques.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2hp = require( './../lib/dsort2hp.js' ); @@ -127,7 +128,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.mostly_sorted_few_uniques.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.mostly_sorted_few_uniques.native.js index a70021a35bf1..f798ed2be617 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.mostly_sorted_few_uniques.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.mostly_sorted_few_uniques.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -137,7 +138,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,mostly_sorted,few_uniques:len='+len, bopts, f ); + bench( format( '%s::native,mostly_sorted,few_uniques:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js index c8b2dcfb84e7..dca62b93650d 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2hp = require( './../lib/ndarray.js' ); @@ -127,7 +128,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.native.js index 27e0d0d2fb02..75de68a1e941 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -137,7 +138,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,mostly_sorted,few_uniques:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,mostly_sorted,few_uniques:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.mostly_sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.mostly_sorted_random.js index 804bdb73d929..6837120cf274 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.mostly_sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.mostly_sorted_random.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2hp = require( './../lib/dsort2hp.js' ); @@ -118,7 +119,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,random:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,random:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.mostly_sorted_random.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.mostly_sorted_random.native.js index c255c6649b45..2e47485b83ea 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.mostly_sorted_random.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.mostly_sorted_random.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -128,7 +129,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,mostly_sorted,random:len='+len, bopts, f ); + bench( format( '%s::native,mostly_sorted,random:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.mostly_sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.mostly_sorted_random.ndarray.js index 5a078225dea3..b2d1ac20efaa 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.mostly_sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.mostly_sorted_random.ndarray.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2hp = require( './../lib/ndarray.js' ); @@ -118,7 +119,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.mostly_sorted_random.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.mostly_sorted_random.ndarray.native.js index 197892274980..351e443d2f2f 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.mostly_sorted_random.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.mostly_sorted_random.ndarray.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -128,7 +129,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,mostly_sorted,random:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,mostly_sorted,random:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_mostly_sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_mostly_sorted_few_uniques.js index 5183db65bdeb..03027ae1a81f 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_mostly_sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_mostly_sorted_few_uniques.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2hp = require( './../lib/dsort2hp.js' ); @@ -127,7 +128,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_mostly_sorted_few_uniques.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_mostly_sorted_few_uniques.native.js index 7d93fc9f5940..6068a4844e8b 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_mostly_sorted_few_uniques.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_mostly_sorted_few_uniques.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -137,7 +138,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_mostly_sorted,few_uniques:len='+len, bopts, f ); + bench( format( '%s::native,reverse_mostly_sorted,few_uniques:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js index b7ef597af536..d2b3dee89dcf 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2hp = require( './../lib/ndarray.js' ); @@ -127,7 +128,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.native.js index b810ce21031c..a02ab3e80533 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -137,7 +138,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_mostly_sorted,few_uniques:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,reverse_mostly_sorted,few_uniques:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_mostly_sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_mostly_sorted_random.js index 5521b309e59d..286515882467 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_mostly_sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_mostly_sorted_random.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2hp = require( './../lib/dsort2hp.js' ); @@ -118,7 +119,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,random:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,random:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_mostly_sorted_random.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_mostly_sorted_random.native.js index 7f8cbeb139e8..7b5e122f672f 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_mostly_sorted_random.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_mostly_sorted_random.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -128,7 +129,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_mostly_sorted,random:len='+len, bopts, f ); + bench( format( '%s::native,reverse_mostly_sorted,random:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js index 7219d8693f52..3b713bf7e43a 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2hp = require( './../lib/ndarray.js' ); @@ -118,7 +119,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_mostly_sorted_random.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_mostly_sorted_random.ndarray.native.js index b8be75683c40..fa9b0c2f0101 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_mostly_sorted_random.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_mostly_sorted_random.ndarray.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -128,7 +129,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_mostly_sorted,random:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,reverse_mostly_sorted,random:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_sorted_few_uniques.js index 4ebeccdd0c66..a7c01e8f372e 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_sorted_few_uniques.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2hp = require( './../lib/dsort2hp.js' ); @@ -128,7 +129,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_sorted_few_uniques.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_sorted_few_uniques.native.js index 157fbd787df0..25ebfaa55935 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_sorted_few_uniques.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_sorted_few_uniques.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -138,7 +139,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_sorted,few_uniques:len='+len, bopts, f ); + bench( format( '%s::native,reverse_sorted,few_uniques:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js index 5405c8b7799d..671f48da4543 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2hp = require( './../lib/ndarray.js' ); @@ -128,7 +129,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_sorted_few_uniques.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_sorted_few_uniques.ndarray.native.js index 54285c283b0b..c61341e47cd7 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_sorted_few_uniques.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_sorted_few_uniques.ndarray.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -138,7 +139,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_sorted,few_uniques:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,reverse_sorted,few_uniques:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_sorted_random.js index 156ea5cb93ad..5d4359ebfd07 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_sorted_random.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2hp = require( './../lib/dsort2hp.js' ); @@ -118,7 +119,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,random:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,random:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_sorted_random.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_sorted_random.native.js index 5e853d42c31f..a6ae3ea04610 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_sorted_random.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_sorted_random.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -128,7 +129,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_sorted,random:len='+len, bopts, f ); + bench( format( '%s::native,reverse_sorted,random:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_sorted_random.ndarray.js index 81f417fb781a..5ff18cb62f45 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_sorted_random.ndarray.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2hp = require( './../lib/ndarray.js' ); @@ -118,7 +119,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_sorted_random.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_sorted_random.ndarray.native.js index 2b8c96d7368c..5ca2a0eee766 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_sorted_random.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.rev_sorted_random.ndarray.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -128,7 +129,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_sorted,random:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,reverse_sorted,random:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.sorted_few_uniques.js index 124f2bafe1a0..3e721e95a4b3 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.sorted_few_uniques.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2hp = require( './../lib/dsort2hp.js' ); @@ -126,7 +127,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( opts.iterations, len ); - bench( pkg+'::sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::sorted,few_uniques:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.sorted_few_uniques.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.sorted_few_uniques.native.js index 2192298bab93..84a09b3e0491 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.sorted_few_uniques.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.sorted_few_uniques.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -136,7 +137,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( bopts.iterations, len ); - bench( pkg+'::native,sorted,few_uniques:len='+len, bopts, f ); + bench( format( '%s::native,sorted,few_uniques:len=%d', pkg, len ), bopts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.sorted_few_uniques.ndarray.js index 78fedefb1196..69fa9dbfa018 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.sorted_few_uniques.ndarray.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2hp = require( './../lib/ndarray.js' ); @@ -126,7 +127,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( opts.iterations, len ); - bench( pkg+'::sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.sorted_few_uniques.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.sorted_few_uniques.ndarray.native.js index f7ae227d327a..5c7c9868aa7d 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.sorted_few_uniques.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.sorted_few_uniques.ndarray.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -136,7 +137,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( bopts.iterations, len ); - bench( pkg+'::native,sorted,few_uniques:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,sorted,few_uniques:ndarray:len=%d', pkg, len ), bopts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.sorted_random.js index 233234a8b7e7..0040e53332c5 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.sorted_random.js @@ -26,6 +26,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2hp = require( './../lib/dsort2hp.js' ); @@ -115,7 +116,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( opts.iterations, len ); - bench( pkg+'::sorted,random:len='+len, opts, f ); + bench( format( '%s::sorted,random:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.sorted_random.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.sorted_random.native.js index 6345cd62b9be..c158c77e7f49 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.sorted_random.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.sorted_random.native.js @@ -28,6 +28,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -125,7 +126,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( bopts.iterations, len ); - bench( pkg+'::native,sorted,random:len='+len, bopts, f ); + bench( format( '%s::native,sorted,random:len=%d', pkg, len ), bopts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.sorted_random.ndarray.js index d21e5a86a057..e2ead1735eb7 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.sorted_random.ndarray.js @@ -26,6 +26,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2hp = require( './../lib/ndarray.js' ); @@ -115,7 +116,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( opts.iterations, len ); - bench( pkg+'::sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::sorted,random:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.sorted_random.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.sorted_random.ndarray.native.js index d65ec80031bd..1077e655af74 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.sorted_random.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.sorted_random.ndarray.native.js @@ -28,6 +28,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -125,7 +126,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( bopts.iterations, len ); - bench( pkg+'::native,sorted,random:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,sorted,random:ndarray:len=%d', pkg, len ), bopts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.unsorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.unsorted_few_uniques.js index 9c0d965c51ed..5fdacf78f870 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.unsorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.unsorted_few_uniques.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2hp = require( './../lib/dsort2hp.js' ); @@ -121,7 +122,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::unsorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.unsorted_few_uniques.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.unsorted_few_uniques.native.js index 9dc141b55aaf..9a7e3b8d1aa0 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.unsorted_few_uniques.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.unsorted_few_uniques.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -131,7 +132,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,unsorted,few_uniques:len='+len, bopts, f ); + bench( format( '%s::native,unsorted,few_uniques:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.unsorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.unsorted_few_uniques.ndarray.js index ed2d80d3a7d9..dba4e79e186e 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.unsorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.unsorted_few_uniques.ndarray.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2hp = require( './../lib/ndarray.js' ); @@ -121,7 +122,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::unsorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.unsorted_few_uniques.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.unsorted_few_uniques.ndarray.native.js index 0380b2c31ddf..edbe9e81e343 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.unsorted_few_uniques.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.unsorted_few_uniques.ndarray.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -131,7 +132,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,unsorted,few_uniques:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,unsorted,few_uniques:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.unsorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.unsorted_random.js index d0b40ed2fd62..90c22d84f27a 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.unsorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.unsorted_random.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2hp = require( './../lib/dsort2hp.js' ); @@ -118,7 +119,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,random:len='+len, opts, f ); + bench( format( '%s::unsorted,random:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.unsorted_random.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.unsorted_random.native.js index ffd705eab921..7ec8103cbcb3 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.unsorted_random.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.unsorted_random.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -128,7 +129,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,unsorted,random:len='+len, bopts, f ); + bench( format( '%s::native,unsorted,random:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.unsorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.unsorted_random.ndarray.js index ee65d6c5be67..111603941b2c 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.unsorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.unsorted_random.ndarray.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2hp = require( './../lib/ndarray.js' ); @@ -118,7 +119,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::unsorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.unsorted_random.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.unsorted_random.ndarray.native.js index aeab8df17668..d0d851023938 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.unsorted_random.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2hp/benchmark/benchmark.unsorted_random.ndarray.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -128,7 +129,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,unsorted,random:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,unsorted,random:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.mostly_sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.mostly_sorted_few_uniques.js index 9c2c09962550..f2a2f5d8e991 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.mostly_sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.mostly_sorted_few_uniques.js @@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2ins = require( './../lib/dsort2ins.js' ); @@ -129,7 +130,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.mostly_sorted_few_uniques.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.mostly_sorted_few_uniques.native.js index 3fcf53281a76..adb3c25ba902 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.mostly_sorted_few_uniques.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.mostly_sorted_few_uniques.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -138,7 +139,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,mostly_sorted,few_uniques:len='+len, bopts, f ); + bench( format( '%s::native,mostly_sorted,few_uniques:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 2.0/3.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js index 9d2004d6b329..148503c70f73 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js @@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2ins = require( './../lib/ndarray.js' ); @@ -129,7 +130,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.native.js index 3148164271d5..e6a64a4dd88b 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -138,7 +139,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,mostly_sorted,few_uniques:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,mostly_sorted,few_uniques:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 2.0/3.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.mostly_sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.mostly_sorted_random.js index a669ddec46dc..a93485c866ca 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.mostly_sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.mostly_sorted_random.js @@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2ins = require( './../lib/dsort2ins.js' ); @@ -120,7 +121,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,random:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,random:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.mostly_sorted_random.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.mostly_sorted_random.native.js index 6c5f75617e75..9591204f67ed 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.mostly_sorted_random.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.mostly_sorted_random.native.js @@ -30,6 +30,7 @@ var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -130,7 +131,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,mostly_sorted,random:len='+len, bopts, f ); + bench( format( '%s::native,mostly_sorted,random:len=%d', pkg, len ), bopts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.mostly_sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.mostly_sorted_random.ndarray.js index c7c9180a3a03..4bb9afa70e5d 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.mostly_sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.mostly_sorted_random.ndarray.js @@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2ins = require( './../lib/ndarray.js' ); @@ -120,7 +121,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.mostly_sorted_random.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.mostly_sorted_random.ndarray.native.js index e21b617aed00..c317e0b38d7f 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.mostly_sorted_random.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.mostly_sorted_random.ndarray.native.js @@ -30,6 +30,7 @@ var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -130,7 +131,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,mostly_sorted,random:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,mostly_sorted,random:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_mostly_sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_mostly_sorted_few_uniques.js index e3ccc420ba19..477c9ae24ecf 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_mostly_sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_mostly_sorted_few_uniques.js @@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2ins = require( './../lib/dsort2ins.js' ); @@ -129,7 +130,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_mostly_sorted_few_uniques.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_mostly_sorted_few_uniques.native.js index 0493b665d43b..3cae800b475f 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_mostly_sorted_few_uniques.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_mostly_sorted_few_uniques.native.js @@ -30,6 +30,7 @@ var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -139,7 +140,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_mostly_sorted,few_uniques:len='+len, bopts, f ); + bench( format( '%s::native,reverse_mostly_sorted,few_uniques:len=%d', pkg, len ), bopts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js index a5df8dbba485..72ef7fa17269 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js @@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2ins = require( './../lib/ndarray.js' ); @@ -129,7 +130,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.native.js index 45c4ff0fbf05..b12a7e60ddb1 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.native.js @@ -30,6 +30,7 @@ var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -139,7 +140,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_mostly_sorted,few_uniques:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,reverse_mostly_sorted,few_uniques:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_mostly_sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_mostly_sorted_random.js index 4cf52826f84a..817d0d678fb9 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_mostly_sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_mostly_sorted_random.js @@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2ins = require( './../lib/dsort2ins.js' ); @@ -120,7 +121,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,random:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,random:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_mostly_sorted_random.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_mostly_sorted_random.native.js index 1397286155bc..cbceb0fc1ae1 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_mostly_sorted_random.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_mostly_sorted_random.native.js @@ -30,6 +30,7 @@ var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -130,7 +131,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_mostly_sorted,random:len='+len, bopts, f ); + bench( format( '%s::native,reverse_mostly_sorted,random:len=%d', pkg, len ), bopts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js index 13a2a2082349..9d9b301fc366 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js @@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2ins = require( './../lib/ndarray.js' ); @@ -120,7 +121,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_mostly_sorted_random.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_mostly_sorted_random.ndarray.native.js index 39edf11e094c..b30a8d1c5e57 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_mostly_sorted_random.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_mostly_sorted_random.ndarray.native.js @@ -30,6 +30,7 @@ var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -130,7 +131,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_mostly_sorted,random:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,reverse_mostly_sorted,random:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_sorted_few_uniques.js index 332676a5495d..7a851ebc17c4 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_sorted_few_uniques.js @@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2ins = require( './../lib/dsort2ins.js' ); @@ -130,7 +131,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_sorted_few_uniques.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_sorted_few_uniques.native.js index 89efe513cc87..030407cebe11 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_sorted_few_uniques.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_sorted_few_uniques.native.js @@ -30,6 +30,7 @@ var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -140,7 +141,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_sorted,few_uniques:len='+len, bopts, f ); + bench( format( '%s::native,reverse_sorted,few_uniques:len=%d', pkg, len ), bopts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js index 74a32829d612..551283d36580 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js @@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2ins = require( './../lib/ndarray.js' ); @@ -130,7 +131,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_sorted_few_uniques.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_sorted_few_uniques.ndarray.native.js index dd766c6aa33e..32b5e1f3d5aa 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_sorted_few_uniques.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_sorted_few_uniques.ndarray.native.js @@ -30,6 +30,7 @@ var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -140,7 +141,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_sorted,few_uniques:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,reverse_sorted,few_uniques:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_sorted_random.js index dc8b777770e3..fedb023397d8 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_sorted_random.js @@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2ins = require( './../lib/dsort2ins.js' ); @@ -120,7 +121,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,random:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,random:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_sorted_random.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_sorted_random.native.js index ac4f5facd3a4..4bef4977fe2d 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_sorted_random.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_sorted_random.native.js @@ -30,6 +30,7 @@ var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -130,7 +131,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_sorted,random:len='+len, bopts, f ); + bench( format( '%s::native,reverse_sorted,random:len=%d', pkg, len ), bopts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_sorted_random.ndarray.js index faf57498f3bd..62d72d1cfde9 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_sorted_random.ndarray.js @@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2ins = require( './../lib/ndarray.js' ); @@ -120,7 +121,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_sorted_random.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_sorted_random.ndarray.native.js index 51a097ebd950..800009c56580 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_sorted_random.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.rev_sorted_random.ndarray.native.js @@ -30,6 +30,7 @@ var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -130,7 +131,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_sorted,random:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,reverse_sorted,random:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.sorted_few_uniques.js index 0c4fb14d3e9e..b82405dc0d39 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.sorted_few_uniques.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2ins = require( './../lib/dsort2ins.js' ); @@ -126,7 +127,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( opts.iterations, len ); - bench( pkg+'::sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::sorted,few_uniques:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.sorted_few_uniques.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.sorted_few_uniques.native.js index 1194480f3dc6..ea7b94765903 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.sorted_few_uniques.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.sorted_few_uniques.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -136,7 +137,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( bopts.iterations, len ); - bench( pkg+'::native,sorted,few_uniques:len='+len, bopts, f ); + bench( format( '%s::native,sorted,few_uniques:len=%d', pkg, len ), bopts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.sorted_few_uniques.ndarray.js index ca5ccb3ff30f..a7265b651843 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.sorted_few_uniques.ndarray.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2ins = require( './../lib/ndarray.js' ); @@ -126,7 +127,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( opts.iterations, len ); - bench( pkg+'::sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.sorted_few_uniques.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.sorted_few_uniques.ndarray.native.js index 55f373953574..13a2cc66093e 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.sorted_few_uniques.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.sorted_few_uniques.ndarray.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -136,7 +137,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( bopts.iterations, len ); - bench( pkg+'::native,sorted,few_uniques:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,sorted,few_uniques:ndarray:len=%d', pkg, len ), bopts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.sorted_random.js index b6ba54021136..68afc0b61f66 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.sorted_random.js @@ -26,6 +26,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2ins = require( './../lib/dsort2ins.js' ); @@ -115,7 +116,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( opts.iterations, len ); - bench( pkg+'::sorted,random:len='+len, opts, f ); + bench( format( '%s::sorted,random:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.sorted_random.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.sorted_random.native.js index 9ac32ac5b51f..523115c9894c 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.sorted_random.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.sorted_random.native.js @@ -28,6 +28,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -125,7 +126,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( bopts.iterations, len ); - bench( pkg+'::native,sorted,random:len='+len, bopts, f ); + bench( format( '%s::native,sorted,random:len=%d', pkg, len ), bopts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.sorted_random.ndarray.js index 1892bcdeec70..8b6f0748a9e1 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.sorted_random.ndarray.js @@ -26,6 +26,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2ins = require( './../lib/ndarray.js' ); @@ -115,7 +116,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( opts.iterations, len ); - bench( pkg+'::sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::sorted,random:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.sorted_random.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.sorted_random.ndarray.native.js index 2624ea079c7c..d1eba70270af 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.sorted_random.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.sorted_random.ndarray.native.js @@ -28,6 +28,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -125,7 +126,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( bopts.iterations, len ); - bench( pkg+'::native,sorted,random:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,sorted,random:ndarray:len=%d', pkg, len ), bopts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.unsorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.unsorted_few_uniques.js index 5fe8f5c68995..e32bda8b1dc1 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.unsorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.unsorted_few_uniques.js @@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2ins = require( './../lib/dsort2ins.js' ); @@ -123,7 +124,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::unsorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.unsorted_few_uniques.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.unsorted_few_uniques.native.js index 30af8bd3c453..6e0dd4098b5d 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.unsorted_few_uniques.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.unsorted_few_uniques.native.js @@ -30,6 +30,7 @@ var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -133,7 +134,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,unsorted,few_uniques:len='+len, bopts, f ); + bench( format( '%s::native,unsorted,few_uniques:len=%d', pkg, len ), bopts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.unsorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.unsorted_few_uniques.ndarray.js index 76118e44d215..577919c1e54c 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.unsorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.unsorted_few_uniques.ndarray.js @@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2ins = require( './../lib/ndarray.js' ); @@ -123,7 +124,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::unsorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.unsorted_few_uniques.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.unsorted_few_uniques.ndarray.native.js index 1bdc55fba87f..7c6ed1ec6a89 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.unsorted_few_uniques.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.unsorted_few_uniques.ndarray.native.js @@ -30,6 +30,7 @@ var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -133,7 +134,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,unsorted,few_uniques:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,unsorted,few_uniques:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.unsorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.unsorted_random.js index 6f3af8c7ef4b..b4b0d87a4192 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.unsorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.unsorted_random.js @@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2ins = require( './../lib/dsort2ins.js' ); @@ -120,7 +121,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,random:len='+len, opts, f ); + bench( format( '%s::unsorted,random:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.unsorted_random.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.unsorted_random.native.js index b89dd01c7683..0c56130697bb 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.unsorted_random.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.unsorted_random.native.js @@ -30,6 +30,7 @@ var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -130,7 +131,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,unsorted,random:len='+len, bopts, f ); + bench( format( '%s::native,unsorted,random:len=%d', pkg, len ), bopts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.unsorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.unsorted_random.ndarray.js index 5c8d703fe20d..d6d1b7b93e53 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.unsorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.unsorted_random.ndarray.js @@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2ins = require( './../lib/ndarray.js' ); @@ -120,7 +121,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::unsorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.unsorted_random.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.unsorted_random.ndarray.native.js index 48fdc755b014..b4298706869e 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.unsorted_random.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2ins/benchmark/benchmark.unsorted_random.ndarray.native.js @@ -30,6 +30,7 @@ var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -130,7 +131,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,unsorted,random:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,unsorted,random:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.mostly_sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.mostly_sorted_few_uniques.js index 4df2e8dc228a..5e93c4996192 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.mostly_sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.mostly_sorted_few_uniques.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2sh = require( './../lib/dsort2sh.js' ); @@ -127,7 +128,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.mostly_sorted_few_uniques.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.mostly_sorted_few_uniques.native.js index 63b4f37f6ce6..173efdadd2a3 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.mostly_sorted_few_uniques.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.mostly_sorted_few_uniques.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -137,7 +138,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,mostly_sorted,few_uniques:len='+len, bopts, f ); + bench( format( '%s::native,mostly_sorted,few_uniques:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js index ee21506656af..0514ba89e15d 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2sh = require( './../lib/ndarray.js' ); @@ -127,7 +128,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.native.js index b9041295c7bb..506e90e58f50 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -137,7 +138,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,mostly_sorted,few_uniques:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,mostly_sorted,few_uniques:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.mostly_sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.mostly_sorted_random.js index cf4b58547cca..a28e28d0ed67 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.mostly_sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.mostly_sorted_random.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2sh = require( './../lib/dsort2sh.js' ); @@ -118,7 +119,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,random:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,random:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.mostly_sorted_random.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.mostly_sorted_random.native.js index 0f2177f31fea..335f5becde66 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.mostly_sorted_random.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.mostly_sorted_random.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -128,7 +129,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,mostly_sorted,random:len='+len, bopts, f ); + bench( format( '%s::native,mostly_sorted,random:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.mostly_sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.mostly_sorted_random.ndarray.js index 5b9266e7331b..4da157f26ed8 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.mostly_sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.mostly_sorted_random.ndarray.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2sh = require( './../lib/ndarray.js' ); @@ -118,7 +119,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.mostly_sorted_random.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.mostly_sorted_random.ndarray.native.js index 3be7032b136f..b15acf499530 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.mostly_sorted_random.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.mostly_sorted_random.ndarray.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -128,7 +129,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,mostly_sorted,random:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,mostly_sorted,random:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_mostly_sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_mostly_sorted_few_uniques.js index 5c001491cb8e..cea64a8e623b 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_mostly_sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_mostly_sorted_few_uniques.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2sh = require( './../lib/dsort2sh.js' ); @@ -127,7 +128,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_mostly_sorted_few_uniques.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_mostly_sorted_few_uniques.native.js index 927a5d5dd4ef..5cdb0731bb73 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_mostly_sorted_few_uniques.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_mostly_sorted_few_uniques.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -137,7 +138,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_mostly_sorted,few_uniques:len='+len, bopts, f ); + bench( format( '%s::native,reverse_mostly_sorted,few_uniques:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js index 2b642b250abc..590f013c16c0 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2sh = require( './../lib/ndarray.js' ); @@ -127,7 +128,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.native.js index 82f5c68e9fcb..cf83dc4c74a3 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -137,7 +138,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_mostly_sorted,few_uniques:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,reverse_mostly_sorted,few_uniques:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_mostly_sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_mostly_sorted_random.js index a1b01b8db7a8..15a68136daf5 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_mostly_sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_mostly_sorted_random.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2sh = require( './../lib/dsort2sh.js' ); @@ -118,7 +119,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,random:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,random:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_mostly_sorted_random.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_mostly_sorted_random.native.js index b79d2e3fc020..f36eb490693a 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_mostly_sorted_random.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_mostly_sorted_random.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -128,7 +129,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_mostly_sorted,random:len='+len, bopts, f ); + bench( format( '%s::native,reverse_mostly_sorted,random:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js index 5fa627bc7e06..51a79978fb0e 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2sh = require( './../lib/ndarray.js' ); @@ -118,7 +119,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_mostly_sorted_random.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_mostly_sorted_random.ndarray.native.js index 8e928a72ef66..e80f7f7e3c27 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_mostly_sorted_random.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_mostly_sorted_random.ndarray.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -128,7 +129,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_mostly_sorted,random:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,reverse_mostly_sorted,random:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_sorted_few_uniques.js index 187fce1e911f..d0afebd642ba 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_sorted_few_uniques.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2sh = require( './../lib/dsort2sh.js' ); @@ -128,7 +129,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_sorted_few_uniques.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_sorted_few_uniques.native.js index a44c6982d913..34beb203809d 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_sorted_few_uniques.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_sorted_few_uniques.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -138,7 +139,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_sorted,few_uniques:len='+len, bopts, f ); + bench( format( '%s::native,reverse_sorted,few_uniques:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js index 37071e165010..a1e3a465c82f 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2sh = require( './../lib/ndarray.js' ); @@ -128,7 +129,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_sorted_few_uniques.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_sorted_few_uniques.ndarray.native.js index 4ad3ce5b45f2..bb0fb0a8aff9 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_sorted_few_uniques.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_sorted_few_uniques.ndarray.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -138,7 +139,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_sorted,few_uniques:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,reverse_sorted,few_uniques:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_sorted_random.js index 6e9c43794c10..5a662207cc09 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_sorted_random.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2sh = require( './../lib/dsort2sh.js' ); @@ -118,7 +119,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,random:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,random:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_sorted_random.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_sorted_random.native.js index c9c2c21f7ef5..00af43e258e3 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_sorted_random.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_sorted_random.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -128,7 +129,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_sorted,random:len='+len, bopts, f ); + bench( format( '%s::native,reverse_sorted,random:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_sorted_random.ndarray.js index 8f8ac35d5930..dc2098b39daa 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_sorted_random.ndarray.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2sh = require( './../lib/ndarray.js' ); @@ -118,7 +119,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_sorted_random.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_sorted_random.ndarray.native.js index a4cbec90c6a9..9cb5b0b71394 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_sorted_random.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.rev_sorted_random.ndarray.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -128,7 +129,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_sorted,random:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,reverse_sorted,random:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.sorted_few_uniques.js index 47f6663087c5..66f095a866fa 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.sorted_few_uniques.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2sh = require( './../lib/dsort2sh.js' ); @@ -126,7 +127,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( opts.iterations, len ); - bench( pkg+'::sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::sorted,few_uniques:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.sorted_few_uniques.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.sorted_few_uniques.native.js index 81f9f2026c16..4986bee281e6 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.sorted_few_uniques.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.sorted_few_uniques.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -136,7 +137,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( bopts.iterations, len ); - bench( pkg+'::native,sorted,few_uniques:len='+len, bopts, f ); + bench( format( '%s::native,sorted,few_uniques:len=%d', pkg, len ), bopts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.sorted_few_uniques.ndarray.js index c9b88a97080e..f811570f2101 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.sorted_few_uniques.ndarray.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2sh = require( './../lib/ndarray.js' ); @@ -126,7 +127,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( opts.iterations, len ); - bench( pkg+'::sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.sorted_few_uniques.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.sorted_few_uniques.ndarray.native.js index 6172415a860b..f0f89789f3e4 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.sorted_few_uniques.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.sorted_few_uniques.ndarray.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -136,7 +137,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( bopts.iterations, len ); - bench( pkg+'::native,sorted,few_uniques:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,sorted,few_uniques:ndarray:len=%d', pkg, len ), bopts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.sorted_random.js index 7278f683dc6a..6dabc6494684 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.sorted_random.js @@ -26,6 +26,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2sh = require( './../lib/dsort2sh.js' ); @@ -115,7 +116,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( opts.iterations, len ); - bench( pkg+'::sorted,random:len='+len, opts, f ); + bench( format( '%s::sorted,random:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.sorted_random.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.sorted_random.native.js index fd767ff69d4c..93e49997e9ba 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.sorted_random.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.sorted_random.native.js @@ -28,6 +28,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -125,7 +126,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( bopts.iterations, len ); - bench( pkg+'::native,sorted,random:len='+len, bopts, f ); + bench( format( '%s::native,sorted,random:len=%d', pkg, len ), bopts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.sorted_random.ndarray.js index 16138b29ec2c..62aa4f09ebf9 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.sorted_random.ndarray.js @@ -26,6 +26,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2sh = require( './../lib/ndarray.js' ); @@ -115,7 +116,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( opts.iterations, len ); - bench( pkg+'::sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::sorted,random:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.sorted_random.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.sorted_random.ndarray.native.js index e5ab23b7b577..c2ec6ae13d1f 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.sorted_random.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.sorted_random.ndarray.native.js @@ -28,6 +28,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -125,7 +126,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( bopts.iterations, len ); - bench( pkg+'::native,sorted,random:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,sorted,random:ndarray:len=%d', pkg, len ), bopts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.unsorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.unsorted_few_uniques.js index 43dd967c601b..59a5187fa687 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.unsorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.unsorted_few_uniques.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2sh = require( './../lib/dsort2sh.js' ); @@ -121,7 +122,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::unsorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.unsorted_few_uniques.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.unsorted_few_uniques.native.js index efe3d61e65f7..e91038b24f25 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.unsorted_few_uniques.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.unsorted_few_uniques.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -131,7 +132,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,unsorted,few_uniques:len='+len, bopts, f ); + bench( format( '%s::native,unsorted,few_uniques:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.unsorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.unsorted_few_uniques.ndarray.js index 19ab154e257e..0d7089d69b0f 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.unsorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.unsorted_few_uniques.ndarray.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2sh = require( './../lib/ndarray.js' ); @@ -121,7 +122,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::unsorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.unsorted_few_uniques.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.unsorted_few_uniques.ndarray.native.js index d47937b93d76..5e7350f4930d 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.unsorted_few_uniques.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.unsorted_few_uniques.ndarray.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -131,7 +132,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,unsorted,few_uniques:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,unsorted,few_uniques:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.unsorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.unsorted_random.js index 3cefa1f81115..98f731f5f65c 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.unsorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.unsorted_random.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2sh = require( './../lib/dsort2sh.js' ); @@ -118,7 +119,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,random:len='+len, opts, f ); + bench( format( '%s::unsorted,random:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.unsorted_random.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.unsorted_random.native.js index 6962010e5790..d6c1ad61ef68 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.unsorted_random.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.unsorted_random.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -128,7 +129,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,unsorted,random:len='+len, bopts, f ); + bench( format( '%s::native,unsorted,random:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.unsorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.unsorted_random.ndarray.js index 9d9c2eb9c49a..b22a074f9158 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.unsorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.unsorted_random.ndarray.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsort2sh = require( './../lib/ndarray.js' ); @@ -118,7 +119,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::unsorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.unsorted_random.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.unsorted_random.ndarray.native.js index 7f18ada2acda..bbaa2b9c0910 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.unsorted_random.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsort2sh/benchmark/benchmark.unsorted_random.ndarray.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -128,7 +129,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,unsorted,random:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,unsorted,random:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.mostly_sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.mostly_sorted_few_uniques.js index 92a981b1290f..1cb77cc01267 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.mostly_sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.mostly_sorted_few_uniques.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsorthp = require( './../lib/dsorthp.js' ); @@ -124,7 +125,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.mostly_sorted_few_uniques.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.mostly_sorted_few_uniques.native.js index a28975260a2c..93450f6b9ad8 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.mostly_sorted_few_uniques.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.mostly_sorted_few_uniques.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -134,7 +135,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,mostly_sorted,few_uniques:len='+len, bopts, f ); + bench( format( '%s::native,mostly_sorted,few_uniques:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js index 759e361b0813..546ed2099d68 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsorthp = require( './../lib/ndarray.js' ); @@ -124,7 +125,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.native.js index 32b583fef1a8..6256851af24a 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -134,7 +135,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,mostly_sorted,few_uniques:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,mostly_sorted,few_uniques:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.mostly_sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.mostly_sorted_random.js index 565a7a35f5eb..fcfe2b70b10a 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.mostly_sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.mostly_sorted_random.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsorthp = require( './../lib/dsorthp.js' ); @@ -115,7 +116,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,random:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,random:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.mostly_sorted_random.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.mostly_sorted_random.native.js index b4afb6673531..690c30737080 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.mostly_sorted_random.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.mostly_sorted_random.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -125,7 +126,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,mostly_sorted,random:len='+len, bopts, f ); + bench( format( '%s::native,mostly_sorted,random:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.mostly_sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.mostly_sorted_random.ndarray.js index 8b4b8278fff8..a06065bcdc07 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.mostly_sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.mostly_sorted_random.ndarray.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsorthp = require( './../lib/ndarray.js' ); @@ -115,7 +116,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.mostly_sorted_random.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.mostly_sorted_random.ndarray.native.js index 1b46214f3755..f1ae9b04641d 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.mostly_sorted_random.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.mostly_sorted_random.ndarray.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -125,7 +126,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,mostly_sorted,random:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,mostly_sorted,random:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_mostly_sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_mostly_sorted_few_uniques.js index cdac83429632..14b739e8d1c2 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_mostly_sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_mostly_sorted_few_uniques.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsorthp = require( './../lib/dsorthp.js' ); @@ -124,7 +125,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_mostly_sorted_few_uniques.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_mostly_sorted_few_uniques.native.js index 1d6a79e4d9d5..a95af408c77e 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_mostly_sorted_few_uniques.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_mostly_sorted_few_uniques.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -134,7 +135,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_mostly_sorted,few_uniques:len='+len, bopts, f ); + bench( format( '%s::native,reverse_mostly_sorted,few_uniques:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js index 3d85df25dad7..9f3296d5c2ae 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsorthp = require( './../lib/ndarray.js' ); @@ -124,7 +125,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.native.js index 459effd63c74..aae06e7466ce 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -134,7 +135,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_mostly_sorted,few_uniques:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,reverse_mostly_sorted,few_uniques:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_mostly_sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_mostly_sorted_random.js index 2305fa4cbb2f..bdde98835fd9 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_mostly_sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_mostly_sorted_random.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsorthp = require( './../lib/dsorthp.js' ); @@ -115,7 +116,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,random:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,random:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_mostly_sorted_random.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_mostly_sorted_random.native.js index c158cbd2a3a9..dfcba611f8b2 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_mostly_sorted_random.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_mostly_sorted_random.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -125,7 +126,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_mostly_sorted,random:len='+len, bopts, f ); + bench( format( '%s::native,reverse_mostly_sorted,random:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js index eac3de517b32..e66114f59512 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsorthp = require( './../lib/ndarray.js' ); @@ -115,7 +116,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_mostly_sorted_random.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_mostly_sorted_random.ndarray.native.js index 8c6ccc8ddd0e..bc4abc429847 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_mostly_sorted_random.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_mostly_sorted_random.ndarray.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -125,7 +126,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_mostly_sorted,random:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,reverse_mostly_sorted,random:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_sorted_few_uniques.js index 4490c45bfba0..66abf9c44ddc 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_sorted_few_uniques.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsorthp = require( './../lib/dsorthp.js' ); @@ -125,7 +126,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_sorted_few_uniques.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_sorted_few_uniques.native.js index 9cd4fae01864..6a089f636a92 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_sorted_few_uniques.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_sorted_few_uniques.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -135,7 +136,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_sorted,few_uniques:len='+len, bopts, f ); + bench( format( '%s::native,reverse_sorted,few_uniques:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js index b732319cb662..d508841eda26 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsorthp = require( './../lib/ndarray.js' ); @@ -125,7 +126,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_sorted_few_uniques.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_sorted_few_uniques.ndarray.native.js index 4554f5308825..18c2c4421725 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_sorted_few_uniques.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_sorted_few_uniques.ndarray.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -135,7 +136,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_sorted,few_uniques:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,reverse_sorted,few_uniques:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_sorted_random.js index bd7486b97fb2..569477080c8d 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_sorted_random.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsorthp = require( './../lib/dsorthp.js' ); @@ -115,7 +116,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,random:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,random:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_sorted_random.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_sorted_random.native.js index 8606f1e81276..b7acc0f5e5f0 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_sorted_random.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_sorted_random.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -125,7 +126,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_sorted,random:len='+len, bopts, f ); + bench( format( '%s::native,reverse_sorted,random:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_sorted_random.ndarray.js index b97edb800168..b3a1fa490915 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_sorted_random.ndarray.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsorthp = require( './../lib/ndarray.js' ); @@ -115,7 +116,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_sorted_random.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_sorted_random.ndarray.native.js index 7766d1e6c800..7af3bc1e48c2 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_sorted_random.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.rev_sorted_random.ndarray.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -125,7 +126,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_sorted,random:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,reverse_sorted,random:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.sorted_few_uniques.js index 84c225320bc5..cca41a3eec65 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.sorted_few_uniques.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsorthp = require( './../lib/dsorthp.js' ); @@ -123,7 +124,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( opts.iterations, len ); - bench( pkg+'::sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::sorted,few_uniques:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.sorted_few_uniques.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.sorted_few_uniques.native.js index 740fc73b0e18..b094d6a9846e 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.sorted_few_uniques.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.sorted_few_uniques.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -133,7 +134,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( bopts.iterations, len ); - bench( pkg+'::native,sorted,few_uniques:len='+len, bopts, f ); + bench( format( '%s::native,sorted,few_uniques:len=%d', pkg, len ), bopts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.sorted_few_uniques.ndarray.js index d86a0c1e91df..f17d7c42d16b 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.sorted_few_uniques.ndarray.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsorthp = require( './../lib/ndarray.js' ); @@ -123,7 +124,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( opts.iterations, len ); - bench( pkg+'::sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.sorted_few_uniques.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.sorted_few_uniques.ndarray.native.js index 60c5ef73e58d..f2fe57f930ba 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.sorted_few_uniques.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.sorted_few_uniques.ndarray.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -133,7 +134,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( bopts.iterations, len ); - bench( pkg+'::native,sorted,few_uniques:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,sorted,few_uniques:ndarray:len=%d', pkg, len ), bopts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.sorted_random.js index d00a5c605bcc..1ec6e54c8ed6 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.sorted_random.js @@ -26,6 +26,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsorthp = require( './../lib/dsorthp.js' ); @@ -112,7 +113,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( opts.iterations, len ); - bench( pkg+'::sorted,random:len='+len, opts, f ); + bench( format( '%s::sorted,random:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.sorted_random.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.sorted_random.native.js index 301eca9a535d..19b467862545 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.sorted_random.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.sorted_random.native.js @@ -28,6 +28,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -122,7 +123,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( bopts.iterations, len ); - bench( pkg+'::native,sorted,random:len='+len, bopts, f ); + bench( format( '%s::native,sorted,random:len=%d', pkg, len ), bopts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.sorted_random.ndarray.js index b05b1addbed5..ddfee9b0d1e1 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.sorted_random.ndarray.js @@ -26,6 +26,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsorthp = require( './../lib/ndarray.js' ); @@ -112,7 +113,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( opts.iterations, len ); - bench( pkg+'::sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::sorted,random:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.sorted_random.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.sorted_random.ndarray.native.js index eb0b5fd3146a..f1f0b926b12c 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.sorted_random.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.sorted_random.ndarray.native.js @@ -28,6 +28,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -122,7 +123,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( bopts.iterations, len ); - bench( pkg+'::native,sorted,random:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,sorted,random:ndarray:len=%d', pkg, len ), bopts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.unsorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.unsorted_few_uniques.js index d67441d10270..5fbc8b41a48e 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.unsorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.unsorted_few_uniques.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsorthp = require( './../lib/dsorthp.js' ); @@ -118,7 +119,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::unsorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.unsorted_few_uniques.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.unsorted_few_uniques.native.js index 4dccf4d6b6a2..eec126100afc 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.unsorted_few_uniques.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.unsorted_few_uniques.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -128,7 +129,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,unsorted,few_uniques:len='+len, bopts, f ); + bench( format( '%s::native,unsorted,few_uniques:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.unsorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.unsorted_few_uniques.ndarray.js index b532c4895afd..210a697e00d6 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.unsorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.unsorted_few_uniques.ndarray.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsorthp = require( './../lib/ndarray.js' ); @@ -118,7 +119,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::unsorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.unsorted_few_uniques.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.unsorted_few_uniques.ndarray.native.js index b31c09a70354..de38d6fd9434 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.unsorted_few_uniques.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.unsorted_few_uniques.ndarray.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -128,7 +129,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,unsorted,few_uniques:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,unsorted,few_uniques:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.unsorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.unsorted_random.js index 7de79ceae505..91ecfab922c4 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.unsorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.unsorted_random.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsorthp = require( './../lib/dsorthp.js' ); @@ -115,7 +116,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,random:len='+len, opts, f ); + bench( format( '%s::unsorted,random:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.unsorted_random.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.unsorted_random.native.js index a606a5f9b573..e2a6c66196ac 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.unsorted_random.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.unsorted_random.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -125,7 +126,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,unsorted,random:len='+len, bopts, f ); + bench( format( '%s::native,unsorted,random:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.unsorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.unsorted_random.ndarray.js index 086bc120162b..9c1c2984e50a 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.unsorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.unsorted_random.ndarray.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsorthp = require( './../lib/ndarray.js' ); @@ -115,7 +116,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::unsorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.unsorted_random.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.unsorted_random.ndarray.native.js index 319922f5cdf2..52dca67408dc 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.unsorted_random.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/benchmark.unsorted_random.ndarray.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -125,7 +126,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,unsorted,random:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,unsorted,random:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/c/unsorted-random/benchmark.length.c b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/c/unsorted-random/benchmark.length.c index 8c63e53c99a1..73cac97a1aa1 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/c/unsorted-random/benchmark.length.c +++ b/lib/node_modules/@stdlib/blas/ext/base/dsorthp/benchmark/c/unsorted-random/benchmark.length.c @@ -174,7 +174,7 @@ int main( void ) { iter = ITERATIONS / pow( 10, i-1 ); for ( j = 0; j < REPEATS; j++ ) { count += 1; - printf( "# c::%s:unsorted,random:len=%d\n", NAME, len ); + printf( "# c::%s::unsorted,random:len=%d\n", NAME, len ); elapsed = benchmark1( iter, len ); print_results( iter, elapsed ); printf( "ok %d benchmark finished\n", count ); @@ -185,7 +185,7 @@ int main( void ) { iter = ITERATIONS / pow( 10, i-1 ); for ( j = 0; j < REPEATS; j++ ) { count += 1; - printf( "# c::%s:ndarray:unsorted,random:len=%d\n", NAME, len ); + printf( "# c::%s::unsorted,random:ndarray:len=%d\n", NAME, len ); elapsed = benchmark2( iter, len ); print_results( iter, elapsed ); printf( "ok %d benchmark finished\n", count ); diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.mostly_sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.mostly_sorted_few_uniques.js index 9dbfe26d9ee3..2fcc8a5a0d05 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.mostly_sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.mostly_sorted_few_uniques.js @@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsortins = require( './../lib/dsortins.js' ); @@ -126,7 +127,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.mostly_sorted_few_uniques.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.mostly_sorted_few_uniques.native.js index 828dfc4e9919..d62c77d5d1ac 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.mostly_sorted_few_uniques.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.mostly_sorted_few_uniques.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -135,7 +136,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,mostly_sorted,few_uniques:len='+len, bopts, f ); + bench( format( '%s::native,mostly_sorted,few_uniques:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 2.0/3.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js index 3e26e6792aad..cddf96465a0f 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js @@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsortins = require( './../lib/ndarray.js' ); @@ -126,7 +127,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.native.js index 37496bcfd089..1cc9a5af5d55 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -135,7 +136,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,mostly_sorted,few_uniques:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,mostly_sorted,few_uniques:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 2.0/3.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.mostly_sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.mostly_sorted_random.js index 7a52c5e58151..13743b059730 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.mostly_sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.mostly_sorted_random.js @@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsortins = require( './../lib/dsortins.js' ); @@ -117,7 +118,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,random:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,random:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.mostly_sorted_random.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.mostly_sorted_random.native.js index 690fd277ec7c..49bb2f775467 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.mostly_sorted_random.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.mostly_sorted_random.native.js @@ -30,6 +30,7 @@ var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -127,7 +128,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,mostly_sorted,random:len='+len, bopts, f ); + bench( format( '%s::native,mostly_sorted,random:len=%d', pkg, len ), bopts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.mostly_sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.mostly_sorted_random.ndarray.js index 2241d3504228..e63f874ebace 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.mostly_sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.mostly_sorted_random.ndarray.js @@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsortins = require( './../lib/ndarray.js' ); @@ -117,7 +118,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.mostly_sorted_random.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.mostly_sorted_random.ndarray.native.js index 1f9987ca8528..ca10907b7d65 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.mostly_sorted_random.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.mostly_sorted_random.ndarray.native.js @@ -30,6 +30,7 @@ var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -127,7 +128,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,mostly_sorted,random:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,mostly_sorted,random:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_mostly_sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_mostly_sorted_few_uniques.js index 1847b0616451..77607c82b71d 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_mostly_sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_mostly_sorted_few_uniques.js @@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsortins = require( './../lib/dsortins.js' ); @@ -126,7 +127,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_mostly_sorted_few_uniques.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_mostly_sorted_few_uniques.native.js index f5d71578ffee..e2180238de2e 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_mostly_sorted_few_uniques.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_mostly_sorted_few_uniques.native.js @@ -30,6 +30,7 @@ var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -136,7 +137,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_mostly_sorted,few_uniques:len='+len, bopts, f ); + bench( format( '%s::native,reverse_mostly_sorted,few_uniques:len=%d', pkg, len ), bopts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js index 4907349b36c2..21bd6266a7e2 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js @@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsortins = require( './../lib/ndarray.js' ); @@ -126,7 +127,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.native.js index 725743751177..b540be8e26c4 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.native.js @@ -30,6 +30,7 @@ var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -136,7 +137,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_mostly_sorted,few_uniques:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,reverse_mostly_sorted,few_uniques:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_mostly_sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_mostly_sorted_random.js index 95b8d3857b40..df094a15b783 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_mostly_sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_mostly_sorted_random.js @@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsortins = require( './../lib/dsortins.js' ); @@ -117,7 +118,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,random:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,random:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_mostly_sorted_random.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_mostly_sorted_random.native.js index 99bd49f5c82e..e9a2ca3680e8 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_mostly_sorted_random.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_mostly_sorted_random.native.js @@ -30,6 +30,7 @@ var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -127,7 +128,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_mostly_sorted,random:len='+len, bopts, f ); + bench( format( '%s::native,reverse_mostly_sorted,random:len=%d', pkg, len ), bopts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js index d2fba19c4a7e..29b0524fdccb 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js @@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsortins = require( './../lib/ndarray.js' ); @@ -117,7 +118,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_mostly_sorted_random.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_mostly_sorted_random.ndarray.native.js index fd13506167bc..f35f391f631c 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_mostly_sorted_random.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_mostly_sorted_random.ndarray.native.js @@ -30,6 +30,7 @@ var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -127,7 +128,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_mostly_sorted,random:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,reverse_mostly_sorted,random:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_sorted_few_uniques.js index 9dfff6f05267..c38dfc765bbc 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_sorted_few_uniques.js @@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsortins = require( './../lib/dsortins.js' ); @@ -127,7 +128,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_sorted_few_uniques.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_sorted_few_uniques.native.js index b33f1abd21de..e34115fd53d8 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_sorted_few_uniques.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_sorted_few_uniques.native.js @@ -30,6 +30,7 @@ var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -137,7 +138,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_sorted,few_uniques:len='+len, bopts, f ); + bench( format( '%s::native,reverse_sorted,few_uniques:len=%d', pkg, len ), bopts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js index 1cfa1d8c2ce1..825d3bf7ea02 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js @@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsortins = require( './../lib/ndarray.js' ); @@ -127,7 +128,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_sorted_few_uniques.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_sorted_few_uniques.ndarray.native.js index ccb8e2c9e0d8..9e0bf67c4a5b 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_sorted_few_uniques.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_sorted_few_uniques.ndarray.native.js @@ -30,6 +30,7 @@ var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -137,7 +138,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_sorted,few_uniques:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,reverse_sorted,few_uniques:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_sorted_random.js index ee83a4b8cedc..f43b197f1511 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_sorted_random.js @@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsortins = require( './../lib/dsortins.js' ); @@ -117,7 +118,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,random:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,random:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_sorted_random.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_sorted_random.native.js index f87d49ea1731..18d389d04921 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_sorted_random.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_sorted_random.native.js @@ -30,6 +30,7 @@ var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -127,7 +128,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_sorted,random:len='+len, bopts, f ); + bench( format( '%s::native,reverse_sorted,random:len=%d', pkg, len ), bopts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_sorted_random.ndarray.js index 9611b97089d3..3246fa3c86b1 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_sorted_random.ndarray.js @@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsortins = require( './../lib/ndarray.js' ); @@ -117,7 +118,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_sorted_random.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_sorted_random.ndarray.native.js index 1d4800e5fe07..3bbf33009b5e 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_sorted_random.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.rev_sorted_random.ndarray.native.js @@ -30,6 +30,7 @@ var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -127,7 +128,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_sorted,random:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,reverse_sorted,random:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.sorted_few_uniques.js index 0528baa48fa8..691765c9fb3a 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.sorted_few_uniques.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsortins = require( './../lib/dsortins.js' ); @@ -123,7 +124,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( opts.iterations, len ); - bench( pkg+'::sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::sorted,few_uniques:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.sorted_few_uniques.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.sorted_few_uniques.native.js index e8f1257e3a00..7d2e9ad2dc8f 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.sorted_few_uniques.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.sorted_few_uniques.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -133,7 +134,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( bopts.iterations, len ); - bench( pkg+'::native,sorted,few_uniques:len='+len, bopts, f ); + bench( format( '%s::native,sorted,few_uniques:len=%d', pkg, len ), bopts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.sorted_few_uniques.ndarray.js index c8011f2f26ca..40df0b741f2c 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.sorted_few_uniques.ndarray.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsortins = require( './../lib/ndarray.js' ); @@ -123,7 +124,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( opts.iterations, len ); - bench( pkg+'::sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.sorted_few_uniques.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.sorted_few_uniques.ndarray.native.js index e29fdb61d86d..43ddea7b26e5 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.sorted_few_uniques.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.sorted_few_uniques.ndarray.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -133,7 +134,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( bopts.iterations, len ); - bench( pkg+'::native,sorted,few_uniques:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,sorted,few_uniques:ndarray:len=%d', pkg, len ), bopts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.sorted_random.js index cfd5819b860c..eca9c5da7430 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.sorted_random.js @@ -26,6 +26,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsortins = require( './../lib/dsortins.js' ); @@ -112,7 +113,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( opts.iterations, len ); - bench( pkg+'::sorted,random:len='+len, opts, f ); + bench( format( '%s::sorted,random:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.sorted_random.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.sorted_random.native.js index 1011fc2836ee..8e51f3b55019 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.sorted_random.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.sorted_random.native.js @@ -28,6 +28,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -122,7 +123,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( bopts.iterations, len ); - bench( pkg+'::native,sorted,random:len='+len, bopts, f ); + bench( format( '%s::native,sorted,random:len=%d', pkg, len ), bopts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.sorted_random.ndarray.js index f48bc588f146..e115f4e2ff5d 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.sorted_random.ndarray.js @@ -26,6 +26,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsortins = require( './../lib/ndarray.js' ); @@ -112,7 +113,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( opts.iterations, len ); - bench( pkg+'::sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::sorted,random:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.sorted_random.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.sorted_random.ndarray.native.js index 7ad451085d96..d823dfbb281c 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.sorted_random.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.sorted_random.ndarray.native.js @@ -28,6 +28,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -122,7 +123,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( bopts.iterations, len ); - bench( pkg+'::native,sorted,random:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,sorted,random:ndarray:len=%d', pkg, len ), bopts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.unsorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.unsorted_few_uniques.js index 4a15d39f6575..2119001a8af1 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.unsorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.unsorted_few_uniques.js @@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsortins = require( './../lib/dsortins.js' ); @@ -120,7 +121,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::unsorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.unsorted_few_uniques.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.unsorted_few_uniques.native.js index a1c4c81a91e4..f37d8ebe8919 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.unsorted_few_uniques.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.unsorted_few_uniques.native.js @@ -30,6 +30,7 @@ var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -130,7 +131,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,unsorted,few_uniques:len='+len, bopts, f ); + bench( format( '%s::native,unsorted,few_uniques:len=%d', pkg, len ), bopts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.unsorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.unsorted_few_uniques.ndarray.js index c0b44b70b042..25053acccc1d 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.unsorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.unsorted_few_uniques.ndarray.js @@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsortins = require( './../lib/ndarray.js' ); @@ -120,7 +121,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::unsorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.unsorted_few_uniques.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.unsorted_few_uniques.ndarray.native.js index 068d988b6434..a3cc036d9ee0 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.unsorted_few_uniques.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.unsorted_few_uniques.ndarray.native.js @@ -30,6 +30,7 @@ var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -130,7 +131,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,unsorted,few_uniques:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,unsorted,few_uniques:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.unsorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.unsorted_random.js index 8f1663d41f58..25ab467e6651 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.unsorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.unsorted_random.js @@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsortins = require( './../lib/dsortins.js' ); @@ -117,7 +118,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,random:len='+len, opts, f ); + bench( format( '%s::unsorted,random:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.unsorted_random.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.unsorted_random.native.js index 9b478e16db08..c65c928f8e31 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.unsorted_random.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.unsorted_random.native.js @@ -30,6 +30,7 @@ var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -127,7 +128,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,unsorted,random:len='+len, bopts, f ); + bench( format( '%s::native,unsorted,random:len=%d', pkg, len ), bopts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.unsorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.unsorted_random.ndarray.js index 4f12d9db278d..43b6d2110771 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.unsorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.unsorted_random.ndarray.js @@ -28,6 +28,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsortins = require( './../lib/ndarray.js' ); @@ -117,7 +118,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::unsorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.unsorted_random.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.unsorted_random.ndarray.native.js index abd29ea91d09..2c38ee4d67dd 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.unsorted_random.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/benchmark.unsorted_random.ndarray.native.js @@ -30,6 +30,7 @@ var sqrt = require( '@stdlib/math/base/special/sqrt' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -127,7 +128,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,unsorted,random:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,unsorted,random:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/c/unsorted-random/benchmark.length.c b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/c/unsorted-random/benchmark.length.c index e745bc0db139..61bf4742d915 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/c/unsorted-random/benchmark.length.c +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/benchmark/c/unsorted-random/benchmark.length.c @@ -174,7 +174,7 @@ int main( void ) { iter = ITERATIONS / pow( 10, i-1 ); for ( j = 0; j < REPEATS; j++ ) { count += 1; - printf( "# c::%s:unsorted,random:len=%d\n", NAME, len ); + printf( "# c::%s::unsorted,random:len=%d\n", NAME, len ); elapsed = benchmark1( iter, len ); print_results( iter, elapsed ); printf( "ok %d benchmark finished\n", count ); @@ -185,7 +185,7 @@ int main( void ) { iter = ITERATIONS / pow( 10, i-1 ); for ( j = 0; j < REPEATS; j++ ) { count += 1; - printf( "# c::%s:ndarray:unsorted,random:len=%d\n", NAME, len ); + printf( "# c::%s::unsorted,random:ndarray:len=%d\n", NAME, len ); elapsed = benchmark2( iter, len ); print_results( iter, elapsed ); printf( "ok %d benchmark finished\n", count ); diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.mostly_sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.mostly_sorted_few_uniques.js index 45ee1ba98421..231d1aab48ac 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.mostly_sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.mostly_sorted_few_uniques.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsortsh = require( './../lib/dsortsh.js' ); @@ -124,7 +125,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.mostly_sorted_few_uniques.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.mostly_sorted_few_uniques.native.js index c37246d15b8c..f47851dca9b2 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.mostly_sorted_few_uniques.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.mostly_sorted_few_uniques.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -134,7 +135,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,mostly_sorted,few_uniques:len='+len, bopts, f ); + bench( format( '%s::native,mostly_sorted,few_uniques:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js index d5bd71bef7d3..e105a1a88f7d 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsortsh = require( './../lib/ndarray.js' ); @@ -124,7 +125,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.native.js index 8d1a98059a85..b14dcc7f6e28 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -134,7 +135,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,mostly_sorted,few_uniques:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,mostly_sorted,few_uniques:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.mostly_sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.mostly_sorted_random.js index c6e7b3c8fd61..25156fa88443 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.mostly_sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.mostly_sorted_random.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsortsh = require( './../lib/dsortsh.js' ); @@ -115,7 +116,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,random:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,random:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.mostly_sorted_random.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.mostly_sorted_random.native.js index c013a9c28ee7..8aeb02463f2d 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.mostly_sorted_random.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.mostly_sorted_random.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -125,7 +126,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,mostly_sorted,random:len='+len, bopts, f ); + bench( format( '%s::native,mostly_sorted,random:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.mostly_sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.mostly_sorted_random.ndarray.js index 80bdd1af64df..c9854fdf1982 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.mostly_sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.mostly_sorted_random.ndarray.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsortsh = require( './../lib/ndarray.js' ); @@ -115,7 +116,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.mostly_sorted_random.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.mostly_sorted_random.ndarray.native.js index ba9cca96c986..fd33a7f7a66a 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.mostly_sorted_random.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.mostly_sorted_random.ndarray.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -125,7 +126,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,mostly_sorted,random:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,mostly_sorted,random:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_mostly_sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_mostly_sorted_few_uniques.js index 3158d068f315..d3a2ffb63329 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_mostly_sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_mostly_sorted_few_uniques.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsortsh = require( './../lib/dsortsh.js' ); @@ -124,7 +125,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_mostly_sorted_few_uniques.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_mostly_sorted_few_uniques.native.js index e9c318f6d909..d2c33460c8d7 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_mostly_sorted_few_uniques.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_mostly_sorted_few_uniques.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -134,7 +135,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_mostly_sorted,few_uniques:len='+len, bopts, f ); + bench( format( '%s::native,reverse_mostly_sorted,few_uniques:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js index 52ffe2c0e595..4fe7408cb73e 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsortsh = require( './../lib/ndarray.js' ); @@ -124,7 +125,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.native.js index c473c1be422c..d3123c7bc86d 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -134,7 +135,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_mostly_sorted,few_uniques:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,reverse_mostly_sorted,few_uniques:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_mostly_sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_mostly_sorted_random.js index 1871a64bbd6b..3b08581e10ce 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_mostly_sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_mostly_sorted_random.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsortsh = require( './../lib/dsortsh.js' ); @@ -115,7 +116,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,random:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,random:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_mostly_sorted_random.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_mostly_sorted_random.native.js index 3f975c060789..f4a86f985b44 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_mostly_sorted_random.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_mostly_sorted_random.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -125,7 +126,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_mostly_sorted,random:len='+len, bopts, f ); + bench( format( '%s::native,reverse_mostly_sorted,random:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js index 98186f6475b1..3c70b12a429c 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsortsh = require( './../lib/ndarray.js' ); @@ -115,7 +116,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_mostly_sorted_random.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_mostly_sorted_random.ndarray.native.js index e3785d5f25f6..39758b6861d6 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_mostly_sorted_random.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_mostly_sorted_random.ndarray.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -125,7 +126,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_mostly_sorted,random:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,reverse_mostly_sorted,random:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_sorted_few_uniques.js index 48ed04129b2b..4312b0c3174c 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_sorted_few_uniques.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsortsh = require( './../lib/dsortsh.js' ); @@ -125,7 +126,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_sorted_few_uniques.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_sorted_few_uniques.native.js index 26a83cfacbdf..8899fcff284c 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_sorted_few_uniques.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_sorted_few_uniques.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -135,7 +136,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_sorted,few_uniques:len='+len, bopts, f ); + bench( format( '%s::native,reverse_sorted,few_uniques:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js index 58e1517b414c..94bad37abf6e 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsortsh = require( './../lib/ndarray.js' ); @@ -125,7 +126,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_sorted_few_uniques.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_sorted_few_uniques.ndarray.native.js index 62435b05cc34..530b3ad24e82 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_sorted_few_uniques.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_sorted_few_uniques.ndarray.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -135,7 +136,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_sorted,few_uniques:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,reverse_sorted,few_uniques:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_sorted_random.js index 944ac6485c2d..815a48bb9003 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_sorted_random.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsortsh = require( './../lib/dsortsh.js' ); @@ -115,7 +116,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,random:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,random:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_sorted_random.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_sorted_random.native.js index 349caa490e84..008d6b8bbf17 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_sorted_random.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_sorted_random.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -125,7 +126,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_sorted,random:len='+len, bopts, f ); + bench( format( '%s::native,reverse_sorted,random:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_sorted_random.ndarray.js index 6f2888812df1..863db34d9556 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_sorted_random.ndarray.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsortsh = require( './../lib/ndarray.js' ); @@ -115,7 +116,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_sorted_random.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_sorted_random.ndarray.native.js index 3d7c7836f4c7..f6ec159cce08 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_sorted_random.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.rev_sorted_random.ndarray.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -125,7 +126,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,reverse_sorted,random:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,reverse_sorted,random:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.sorted_few_uniques.js index 1728ea561858..2df34edc91ee 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.sorted_few_uniques.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsortsh = require( './../lib/dsortsh.js' ); @@ -123,7 +124,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( opts.iterations, len ); - bench( pkg+'::sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::sorted,few_uniques:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.sorted_few_uniques.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.sorted_few_uniques.native.js index 2d130bfe69ed..11d9b97c5f23 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.sorted_few_uniques.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.sorted_few_uniques.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -133,7 +134,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( bopts.iterations, len ); - bench( pkg+'::native,sorted,few_uniques:len='+len, bopts, f ); + bench( format( '%s::native,sorted,few_uniques:len=%d', pkg, len ), bopts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.sorted_few_uniques.ndarray.js index 69403d592ccd..76fe55b15a64 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.sorted_few_uniques.ndarray.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsortsh = require( './../lib/ndarray.js' ); @@ -123,7 +124,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( opts.iterations, len ); - bench( pkg+'::sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.sorted_few_uniques.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.sorted_few_uniques.ndarray.native.js index 56becff57fea..22505317e98e 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.sorted_few_uniques.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.sorted_few_uniques.ndarray.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -133,7 +134,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( bopts.iterations, len ); - bench( pkg+'::native,sorted,few_uniques:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,sorted,few_uniques:ndarray:len=%d', pkg, len ), bopts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.sorted_random.js index 0acd7fa5f651..d27fcd3e3484 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.sorted_random.js @@ -26,6 +26,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsortsh = require( './../lib/dsortsh.js' ); @@ -112,7 +113,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( opts.iterations, len ); - bench( pkg+'::sorted,random:len='+len, opts, f ); + bench( format( '%s::sorted,random:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.sorted_random.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.sorted_random.native.js index 35d8b117fcab..a290acedc0d6 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.sorted_random.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.sorted_random.native.js @@ -28,6 +28,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -122,7 +123,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( bopts.iterations, len ); - bench( pkg+'::native,sorted,random:len='+len, bopts, f ); + bench( format( '%s::native,sorted,random:len=%d', pkg, len ), bopts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.sorted_random.ndarray.js index b1035fc69a50..30669ed0c1b0 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.sorted_random.ndarray.js @@ -26,6 +26,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsortsh = require( './../lib/ndarray.js' ); @@ -112,7 +113,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( opts.iterations, len ); - bench( pkg+'::sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::sorted,random:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.sorted_random.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.sorted_random.ndarray.native.js index b2b4837cc823..05b468cabdf7 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.sorted_random.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.sorted_random.ndarray.native.js @@ -28,6 +28,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -122,7 +123,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( bopts.iterations, len ); - bench( pkg+'::native,sorted,random:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,sorted,random:ndarray:len=%d', pkg, len ), bopts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.unsorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.unsorted_few_uniques.js index 77d667e3ce2a..dfdc1b7616c4 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.unsorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.unsorted_few_uniques.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsortsh = require( './../lib/dsortsh.js' ); @@ -118,7 +119,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::unsorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.unsorted_few_uniques.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.unsorted_few_uniques.native.js index e54ab9093436..822ae1c72e21 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.unsorted_few_uniques.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.unsorted_few_uniques.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -128,7 +129,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,unsorted,few_uniques:len='+len, bopts, f ); + bench( format( '%s::native,unsorted,few_uniques:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.unsorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.unsorted_few_uniques.ndarray.js index 84dc0bb143e4..f032441d1586 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.unsorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.unsorted_few_uniques.ndarray.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsortsh = require( './../lib/ndarray.js' ); @@ -118,7 +119,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::unsorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.unsorted_few_uniques.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.unsorted_few_uniques.ndarray.native.js index bdc1138730bd..e8382a318545 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.unsorted_few_uniques.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.unsorted_few_uniques.ndarray.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -128,7 +129,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,unsorted,few_uniques:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,unsorted,few_uniques:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.unsorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.unsorted_random.js index d316c8e86953..2c0f611bd4aa 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.unsorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.unsorted_random.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsortsh = require( './../lib/dsortsh.js' ); @@ -115,7 +116,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,random:len='+len, opts, f ); + bench( format( '%s::unsorted,random:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.unsorted_random.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.unsorted_random.native.js index 7820416f87db..b48881051fdf 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.unsorted_random.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.unsorted_random.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -125,7 +126,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,unsorted,random:len='+len, bopts, f ); + bench( format( '%s::native,unsorted,random:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.unsorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.unsorted_random.ndarray.js index 91b1467983a5..c84eb409007b 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.unsorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.unsorted_random.ndarray.js @@ -27,6 +27,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsortsh = require( './../lib/ndarray.js' ); @@ -115,7 +116,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::unsorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.unsorted_random.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.unsorted_random.ndarray.native.js index 698b45582a4c..019c7184a12c 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.unsorted_random.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortsh/benchmark/benchmark.unsorted_random.ndarray.native.js @@ -29,6 +29,7 @@ var floor = require( '@stdlib/math/base/special/floor' ); var Float64Array = require( '@stdlib/array/float64' ); var dcopy = require( '@stdlib/blas/base/dcopy' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -125,7 +126,7 @@ function main() { 'skip': opts.skip, 'iterations': iter }; - bench( pkg+'::native,unsorted,random:ndarray:len='+len, bopts, f ); + bench( format( '%s::native,unsorted,random:ndarray:len=%d', pkg, len ), bopts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dssumors/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/dssumors/benchmark/benchmark.js index 9857ddd0397c..d4fa566b047c 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dssumors/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dssumors/benchmark/benchmark.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dssumors = require( './../lib/dssumors.js' ); @@ -95,7 +96,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dssumors/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/ext/base/dssumors/benchmark/benchmark.native.js index 2e4370d42604..7ff1ae020b96 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dssumors/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dssumors/benchmark/benchmark.native.js @@ -26,6 +26,7 @@ var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -100,7 +101,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::native:len='+len, opts, f ); + bench( format( '%s::native:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dssumors/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dssumors/benchmark/benchmark.ndarray.js index f3e101cd0d15..6818c11d2107 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dssumors/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dssumors/benchmark/benchmark.ndarray.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dssumors = require( './../lib/ndarray.js' ); @@ -95,7 +96,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dssumors/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dssumors/benchmark/benchmark.ndarray.native.js index a35cc3bd4a17..4d836d8931de 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dssumors/benchmark/benchmark.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dssumors/benchmark/benchmark.ndarray.native.js @@ -26,6 +26,7 @@ var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -100,7 +101,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::native:ndarray:len='+len, opts, f ); + bench( format( '%s::native:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dssumpw/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/dssumpw/benchmark/benchmark.js index 4d9d24494ace..7df4d40f7a35 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dssumpw/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dssumpw/benchmark/benchmark.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dssumpw = require( './../lib/dssumpw.js' ); @@ -95,7 +96,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dssumpw/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/ext/base/dssumpw/benchmark/benchmark.native.js index 059aac745a76..3761fc10c66a 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dssumpw/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dssumpw/benchmark/benchmark.native.js @@ -26,6 +26,7 @@ var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -100,7 +101,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::native:len='+len, opts, f ); + bench( format( '%s::native:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dssumpw/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dssumpw/benchmark/benchmark.ndarray.js index c1f81526137f..62c990199375 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dssumpw/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dssumpw/benchmark/benchmark.ndarray.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dssumpw = require( './../lib/ndarray.js' ); @@ -95,7 +96,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dssumpw/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dssumpw/benchmark/benchmark.ndarray.native.js index c32b3e4cda6f..3a30c764701c 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dssumpw/benchmark/benchmark.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dssumpw/benchmark/benchmark.ndarray.native.js @@ -26,6 +26,7 @@ var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -100,7 +101,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::native:ndarray:len='+len, opts, f ); + bench( format( '%s::native:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsum/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/dsum/benchmark/benchmark.js index 7ae3b72feaf2..1ebfa7c0a45d 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsum/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsum/benchmark/benchmark.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsum = require( './../lib/dsum.js' ); @@ -95,7 +96,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsum/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsum/benchmark/benchmark.native.js index c1c30acca359..a7d003b06ef4 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsum/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsum/benchmark/benchmark.native.js @@ -26,6 +26,7 @@ var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -100,7 +101,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::native:len='+len, opts, f ); + bench( format( '%s::native:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsum/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsum/benchmark/benchmark.ndarray.js index aa5fe53a2bbf..62d0e76b843f 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsum/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsum/benchmark/benchmark.ndarray.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsum = require( './../lib/ndarray.js' ); @@ -95,7 +96,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsum/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsum/benchmark/benchmark.ndarray.native.js index 2036f71a89a3..5e03be2d7cb3 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsum/benchmark/benchmark.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsum/benchmark/benchmark.ndarray.native.js @@ -26,6 +26,7 @@ var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -100,7 +101,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::native:ndarray:len='+len, opts, f ); + bench( format( '%s::native:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsumpw/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/dsumpw/benchmark/benchmark.js index 3aa2915b4e29..37203cfd6c7c 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsumpw/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsumpw/benchmark/benchmark.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsumpw = require( './../lib/dsumpw.js' ); @@ -95,7 +96,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsumpw/benchmark/benchmark.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsumpw/benchmark/benchmark.native.js index 3ea84bb7b1d1..f4100dcdf2fb 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsumpw/benchmark/benchmark.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsumpw/benchmark/benchmark.native.js @@ -26,6 +26,7 @@ var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -100,7 +101,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::native:len='+len, opts, f ); + bench( format( '%s::native:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsumpw/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/dsumpw/benchmark/benchmark.ndarray.js index 2484acfefda3..8c4b84334730 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsumpw/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsumpw/benchmark/benchmark.ndarray.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var dsumpw = require( './../lib/ndarray.js' ); @@ -95,7 +96,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsumpw/benchmark/benchmark.ndarray.native.js b/lib/node_modules/@stdlib/blas/ext/base/dsumpw/benchmark/benchmark.ndarray.native.js index c8bcb9107e11..a3a721b96d04 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsumpw/benchmark/benchmark.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/ext/base/dsumpw/benchmark/benchmark.ndarray.native.js @@ -26,6 +26,7 @@ var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var tryRequire = require( '@stdlib/utils/try-require' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; @@ -100,7 +101,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+'::native:ndarray:len='+len, opts, f ); + bench( format( '%s::native:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gapx/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/gapx/benchmark/benchmark.js index 90ded8d7f0b6..d57e2d3ea6b4 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gapx/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gapx/benchmark/benchmark.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gapx = require( './../lib/main.js' ); @@ -95,7 +96,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gapx/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gapx/benchmark/benchmark.ndarray.js index 7eea0dcaccb6..f1fa74a734da 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gapx/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gapx/benchmark/benchmark.ndarray.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gapx = require( './../lib/ndarray.js' ); @@ -95,7 +96,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gapxsum/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/gapxsum/benchmark/benchmark.js index 77e237871d95..a22b89bc2020 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gapxsum/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gapxsum/benchmark/benchmark.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gapxsum = require( './../lib/main.js' ); @@ -95,7 +96,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gapxsum/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gapxsum/benchmark/benchmark.ndarray.js index 7e2c380beaff..6f92f94dda3f 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gapxsum/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gapxsum/benchmark/benchmark.ndarray.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gapxsum = require( './../lib/ndarray.js' ); @@ -95,7 +96,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gapxsumors/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/gapxsumors/benchmark/benchmark.js index d6af26904f7e..da7c63531072 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gapxsumors/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gapxsumors/benchmark/benchmark.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gapxsumors = require( './../lib/main.js' ); @@ -95,7 +96,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gapxsumors/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gapxsumors/benchmark/benchmark.ndarray.js index 12105bc1aa6e..28448c1f88ae 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gapxsumors/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gapxsumors/benchmark/benchmark.ndarray.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gapxsumors = require( './../lib/ndarray.js' ); @@ -95,7 +96,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gapxsumpw/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/gapxsumpw/benchmark/benchmark.js index fb862c120d69..249de2a0529e 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gapxsumpw/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gapxsumpw/benchmark/benchmark.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gapxsumpw = require( './../lib/main.js' ); @@ -95,7 +96,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gapxsumpw/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gapxsumpw/benchmark/benchmark.ndarray.js index 4cc9fa6c3aa5..a739d41e8984 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gapxsumpw/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gapxsumpw/benchmark/benchmark.ndarray.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gapxsumpw = require( './../lib/ndarray.js' ); @@ -95,7 +96,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gasumpw/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/gasumpw/benchmark/benchmark.js index 9752bfbe8e73..3bfe7d846f5f 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gasumpw/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gasumpw/benchmark/benchmark.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gasumpw = require( './../lib/main.js' ); @@ -95,7 +96,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gasumpw/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gasumpw/benchmark/benchmark.ndarray.js index c92dedbe0cb0..cd08fb0b98e6 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gasumpw/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gasumpw/benchmark/benchmark.ndarray.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gasumpw = require( './../lib/ndarray.js' ); @@ -95,7 +96,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gcusumkbn/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/gcusumkbn/benchmark/benchmark.js index f0d1c272ccf8..252a84fcfcf2 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gcusumkbn/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gcusumkbn/benchmark/benchmark.js @@ -26,6 +26,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var gfill = require( '@stdlib/blas/ext/base/gfill' ); var Float64Array = require( '@stdlib/array/float64' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gcusumkbn = require( './../lib/main.js' ); @@ -101,7 +102,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gcusumkbn/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gcusumkbn/benchmark/benchmark.ndarray.js index 6b520881e3e6..a293915745ec 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gcusumkbn/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gcusumkbn/benchmark/benchmark.ndarray.js @@ -26,6 +26,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var gfill = require( '@stdlib/blas/ext/base/gfill' ); var Float64Array = require( '@stdlib/array/float64' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gcusumkbn = require( './../lib/ndarray.js' ); @@ -101,7 +102,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gcusumkbn2/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/gcusumkbn2/benchmark/benchmark.js index 9802d8e8dab9..f0bddc062bb4 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gcusumkbn2/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gcusumkbn2/benchmark/benchmark.js @@ -26,6 +26,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var gfill = require( '@stdlib/blas/ext/base/gfill' ); var zeros = require( '@stdlib/array/zeros' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gcusumkbn2 = require( './../lib/main.js' ); @@ -101,7 +102,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gcusumkbn2/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gcusumkbn2/benchmark/benchmark.ndarray.js index 0328da479507..e6ab3a72a389 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gcusumkbn2/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gcusumkbn2/benchmark/benchmark.ndarray.js @@ -26,6 +26,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var gfill = require( '@stdlib/blas/ext/base/gfill' ); var zeros = require( '@stdlib/array/zeros' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gcusumkbn2 = require( './../lib/ndarray.js' ); @@ -101,7 +102,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gcusumors/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/gcusumors/benchmark/benchmark.js index c29a04ccd114..474d6e28160c 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gcusumors/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gcusumors/benchmark/benchmark.js @@ -26,6 +26,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var gfill = require( '@stdlib/blas/ext/base/gfill' ); var zeros = require( '@stdlib/array/zeros' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gcusumors = require( './../lib/main.js' ); @@ -101,7 +102,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gcusumors/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gcusumors/benchmark/benchmark.ndarray.js index 39505744c752..a3190e57e793 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gcusumors/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gcusumors/benchmark/benchmark.ndarray.js @@ -26,6 +26,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var gfill = require( '@stdlib/blas/ext/base/gfill' ); var zeros = require( '@stdlib/array/zeros' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gcusumors = require( './../lib/ndarray.js' ); @@ -101,7 +102,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gcusumpw/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/gcusumpw/benchmark/benchmark.js index a7f6be8bea67..ac83360ec88a 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gcusumpw/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gcusumpw/benchmark/benchmark.js @@ -26,6 +26,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var gfill = require( '@stdlib/blas/ext/base/gfill' ); var zeros = require( '@stdlib/array/zeros' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gcusumpw = require( './../lib/main.js' ); @@ -101,7 +102,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gcusumpw/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gcusumpw/benchmark/benchmark.ndarray.js index 0c00786a7408..4e2d3975b368 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gcusumpw/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gcusumpw/benchmark/benchmark.ndarray.js @@ -26,6 +26,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var gfill = require( '@stdlib/blas/ext/base/gfill' ); var zeros = require( '@stdlib/array/zeros' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gcusumpw = require( './../lib/ndarray.js' ); @@ -101,7 +102,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gfill-by/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/gfill-by/benchmark/benchmark.js index c2df62c4fd8c..b170902a9b51 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gfill-by/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gfill-by/benchmark/benchmark.js @@ -25,6 +25,7 @@ var uniform = require( '@stdlib/random/base/uniform' ).factory; var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var filledBy = require( '@stdlib/array/base/filled-by' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gfillBy = require( './../lib' ); @@ -92,7 +93,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gfill-by/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gfill-by/benchmark/benchmark.ndarray.js index 5f2bb44e4063..2fdf27ed6b60 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gfill-by/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gfill-by/benchmark/benchmark.ndarray.js @@ -25,6 +25,7 @@ var uniform = require( '@stdlib/random/base/uniform' ).factory; var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var filledBy = require( '@stdlib/array/base/filled-by' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gfillBy = require( './../lib' ).ndarray; @@ -92,7 +93,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gfind-index/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/gfind-index/benchmark/benchmark.js index 9286ca981624..9c9dfeb709b1 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gfind-index/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gfind-index/benchmark/benchmark.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); var isInteger = require( '@stdlib/math/base/assert/is-integer' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gfindIndex = require( './../lib' ); @@ -100,7 +101,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gfind-index/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gfind-index/benchmark/benchmark.ndarray.js index 810a4e431ada..7f862d36d5e3 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gfind-index/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gfind-index/benchmark/benchmark.ndarray.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); var isInteger = require( '@stdlib/math/base/assert/is-integer' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gfindIndex = require( './../lib' ).ndarray; @@ -100,7 +101,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gfind-last-index/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/gfind-last-index/benchmark/benchmark.js index d991a3bfe451..5ef90bede6e8 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gfind-last-index/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gfind-last-index/benchmark/benchmark.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); var isInteger = require( '@stdlib/math/base/assert/is-integer' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gfindLastIndex = require( './../lib' ); @@ -100,7 +101,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gfind-last-index/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gfind-last-index/benchmark/benchmark.ndarray.js index 5c93d0eb214a..9efc9fca29cc 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gfind-last-index/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gfind-last-index/benchmark/benchmark.ndarray.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); var isInteger = require( '@stdlib/math/base/assert/is-integer' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gfindLastIndex = require( './../lib' ).ndarray; @@ -100,7 +101,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gindex-of-row/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/gindex-of-row/benchmark/benchmark.js index 6c59a8ecebb3..a537ceb8f851 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gindex-of-row/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gindex-of-row/benchmark/benchmark.js @@ -25,6 +25,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var zeros = require( '@stdlib/array/zeros' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gindexOfRow = require( './../lib' ); @@ -104,7 +105,7 @@ function main() { for ( i = min; i <= max; i++ ) { N = floor( pow( pow( 10, i ), 1.0/2.0 ) ); f = createBenchmark( ord, N ); - bench( pkg+'::square_matrix:order='+ord+',size='+(N*N), f ); + bench( format( '%s::square_matrix:order=%s,size=%d', pkg, ord, N*N ), f ); } } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gindex-of-row/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gindex-of-row/benchmark/benchmark.ndarray.js index a2a68bc9242e..d58ed05dbfeb 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gindex-of-row/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gindex-of-row/benchmark/benchmark.ndarray.js @@ -26,6 +26,7 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var zeros = require( '@stdlib/array/zeros' ); var isColumnMajor = require( '@stdlib/ndarray/base/assert/is-column-major-string' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gindexOfRow = require( './../lib/ndarray.js' ); @@ -115,7 +116,7 @@ function main() { for ( i = min; i <= max; i++ ) { N = floor( pow( pow( 10, i ), 1.0/2.0 ) ); f = createBenchmark( ord, N ); - bench( pkg+'::square_matrix:ndarray:order='+ord+',size='+(N*N), f ); + bench( format( '%s::square_matrix:ndarray:order=%s,size=%d', pkg, ord, N*N ), f ); } } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gindex-of/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/gindex-of/benchmark/benchmark.js index d28575b0258c..c6a9f00c0b1b 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gindex-of/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gindex-of/benchmark/benchmark.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var pow = require( '@stdlib/math/base/special/pow' ); var isInteger = require( '@stdlib/assert/is-integer' ).isPrimitive; var oneTo = require( '@stdlib/array/one-to' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gindexOf = require( './../lib' ); @@ -89,7 +90,7 @@ function main() { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gindex-of/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gindex-of/benchmark/benchmark.ndarray.js index cc23229fb23d..95e0925ba4a3 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gindex-of/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gindex-of/benchmark/benchmark.ndarray.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var pow = require( '@stdlib/math/base/special/pow' ); var isInteger = require( '@stdlib/assert/is-integer' ).isPrimitive; var oneTo = require( '@stdlib/array/one-to' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gindexOf = require( './../lib/ndarray.js' ); @@ -89,7 +90,7 @@ function main() { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gjoin/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/gjoin/benchmark/benchmark.js index d55a91d819ae..c1d6f85a9af4 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gjoin/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gjoin/benchmark/benchmark.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var pow = require( '@stdlib/math/base/special/pow' ); var isString = require( '@stdlib/assert/is-string' ).isPrimitive; var oneTo = require( '@stdlib/array/one-to' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gjoin = require( './../lib' ); @@ -89,7 +90,7 @@ function main() { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gjoin/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gjoin/benchmark/benchmark.ndarray.js index 3f5d62ea1b1b..db7310ff485e 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gjoin/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gjoin/benchmark/benchmark.ndarray.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var pow = require( '@stdlib/math/base/special/pow' ); var isString = require( '@stdlib/assert/is-string' ).isPrimitive; var oneTo = require( '@stdlib/array/one-to' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gjoin = require( './../lib/ndarray.js' ); @@ -89,7 +90,7 @@ function main() { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/glinspace/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/glinspace/benchmark/benchmark.js index 6eb7f00f1aad..3bdabc51cab3 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/glinspace/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/glinspace/benchmark/benchmark.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var glinspace = require( './../lib' ); @@ -95,7 +96,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/glinspace/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/glinspace/benchmark/benchmark.ndarray.js index 6dec7d9441bc..e09a5a76cf65 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/glinspace/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/glinspace/benchmark/benchmark.ndarray.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var glinspace = require( './../lib/ndarray.js' ); @@ -95,7 +96,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gnannsumpw/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/gnannsumpw/benchmark/benchmark.js index 296c90990960..a5a507e0ad04 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gnannsumpw/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gnannsumpw/benchmark/benchmark.js @@ -26,6 +26,7 @@ var bernoulli = require( '@stdlib/random/base/bernoulli' ); var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gnannsumpw = require( './../lib' ); @@ -106,7 +107,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gnannsumpw/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gnannsumpw/benchmark/benchmark.ndarray.js index 4cabd340ec14..a016c75e9a2f 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gnannsumpw/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gnannsumpw/benchmark/benchmark.ndarray.js @@ -26,6 +26,7 @@ var bernoulli = require( '@stdlib/random/base/bernoulli' ); var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gnannsumpw = require( './../lib/ndarray.js' ); @@ -106,7 +107,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gnansum/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/gnansum/benchmark/benchmark.js index 030114dd91e4..64acef817b17 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gnansum/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gnansum/benchmark/benchmark.js @@ -26,6 +26,7 @@ var bernoulli = require( '@stdlib/random/base/bernoulli' ); var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gnansum = require( './../lib/main.js' ); @@ -103,7 +104,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gnansum/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gnansum/benchmark/benchmark.ndarray.js index 4b9bfc006f4b..39bfc1c2e431 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gnansum/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gnansum/benchmark/benchmark.ndarray.js @@ -26,6 +26,7 @@ var bernoulli = require( '@stdlib/random/base/bernoulli' ); var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gnansum = require( './../lib/ndarray.js' ); @@ -103,7 +104,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gnansumkbn/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/gnansumkbn/benchmark/benchmark.js index ee14c29d362b..26c2d1c5fb47 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gnansumkbn/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gnansumkbn/benchmark/benchmark.js @@ -26,6 +26,7 @@ var bernoulli = require( '@stdlib/random/base/bernoulli' ); var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gnansumkbn = require( './../lib/main.js' ); @@ -103,7 +104,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gnansumkbn/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gnansumkbn/benchmark/benchmark.ndarray.js index 55d01555b7e4..ac916e6f5133 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gnansumkbn/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gnansumkbn/benchmark/benchmark.ndarray.js @@ -26,6 +26,7 @@ var bernoulli = require( '@stdlib/random/base/bernoulli' ); var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gnansumkbn = require( './../lib/ndarray.js' ); @@ -103,7 +104,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gnansumkbn2/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/gnansumkbn2/benchmark/benchmark.js index 794304ea86ce..4ebf0bce16a8 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gnansumkbn2/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gnansumkbn2/benchmark/benchmark.js @@ -26,6 +26,7 @@ var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ); var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gnansumkbn2 = require( './../lib/main.js' ); @@ -103,7 +104,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gnansumkbn2/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gnansumkbn2/benchmark/benchmark.ndarray.js index 08b2156611c7..4a8178eaab49 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gnansumkbn2/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gnansumkbn2/benchmark/benchmark.ndarray.js @@ -26,6 +26,7 @@ var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ); var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gnansumkbn2 = require( './../lib/ndarray.js' ); @@ -103,7 +104,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gnansumors/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/gnansumors/benchmark/benchmark.js index ed66dfddf6f7..5dab6c05f53b 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gnansumors/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gnansumors/benchmark/benchmark.js @@ -26,6 +26,7 @@ var bernoulli = require( '@stdlib/random/base/bernoulli' ); var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gnansumors = require( './../lib/main.js' ); @@ -103,7 +104,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gnansumors/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gnansumors/benchmark/benchmark.ndarray.js index 863486b6c401..099d1e076835 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gnansumors/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gnansumors/benchmark/benchmark.ndarray.js @@ -26,6 +26,7 @@ var bernoulli = require( '@stdlib/random/base/bernoulli' ); var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gnansumors = require( './../lib/ndarray.js' ); @@ -103,7 +104,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gnansumpw/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/gnansumpw/benchmark/benchmark.js index cd23fbc7e996..0b0a6d406849 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gnansumpw/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gnansumpw/benchmark/benchmark.js @@ -26,6 +26,7 @@ var bernoulli = require( '@stdlib/random/base/bernoulli' ); var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gnansumpw = require( './../lib/main.js' ); @@ -103,7 +104,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gnansumpw/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gnansumpw/benchmark/benchmark.ndarray.js index 060c10556f92..2fcc3649840b 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gnansumpw/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gnansumpw/benchmark/benchmark.ndarray.js @@ -26,6 +26,7 @@ var bernoulli = require( '@stdlib/random/base/bernoulli' ); var filledarrayBy = require( '@stdlib/array/filled-by' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gnansumpw = require( './../lib/ndarray.js' ); @@ -103,7 +104,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/greplicate/README.md b/lib/node_modules/@stdlib/blas/ext/base/greplicate/README.md new file mode 100644 index 000000000000..3d591c60badf --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/greplicate/README.md @@ -0,0 +1,177 @@ + + +# greplicate + +> Replicate each strided array element a specified number of times. + +
+ +
+ + + +
+ +## Usage + +```javascript +var greplicate = require( '@stdlib/blas/ext/base/greplicate' ); +``` + +#### greplicate( N, k, x, strideX, out, strideOut ) + +Replicates each strided array element a specified number of times. + +```javascript +var x = [ 1.0, 2.0, 3.0 ]; +var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + +greplicate( x.length, 2, x, 1, out, 1 ); +// out => [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ] +``` + +The function has the following parameters: + +- **N**: number of indexed elements. +- **k**: number of times to replicate each element. +- **x**: input array. +- **strideX**: stride length for `x`. +- **out**: output array. +- **strideOut**: stride length for `out`. + +The `N` and stride parameters determine which elements in the strided arrays are accessed at runtime. For example, to replicate every other element: + +```javascript +var x = [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ]; +var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + +greplicate( 3, 2, x, 2, out, 1 ); +// out => [ 1.0, 1.0, 3.0, 3.0, 5.0, 5.0 ] +``` + +Note that indexing is relative to the first index. To introduce an offset, use [`typed array`][mdn-typed-array] views. + + + +```javascript +var Float64Array = require( '@stdlib/array/float64' ); + +// Initial arrays... +var x0 = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); +var out0 = new Float64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); + +// Create offset views... +var x1 = new Float64Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // start at 2nd element +var out1 = new Float64Array( out0.buffer, out0.BYTES_PER_ELEMENT*2 ); // start at 3rd element + +greplicate( 3, 2, x1, 2, out1, 1 ); +// out0 => [ 0.0, 0.0, 2.0, 2.0, 4.0, 4.0, 6.0, 6.0 ] +``` + +#### greplicate.ndarray( N, k, x, strideX, offsetX, out, strideOut, offsetOut ) + +Replicates each strided array element a specified number of times using alternative indexing semantics. + +```javascript +var x = [ 1.0, 2.0, 3.0 ]; +var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + +greplicate.ndarray( x.length, 2, x, 1, 0, out, 1, 0 ); +// out => [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ] +``` + +The function has the following additional parameters: + +- **offsetX**: starting index for `x`. +- **offsetOut**: starting index for `out`. + +While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying buffer, offset parameters support indexing semantics based on starting indices. For example, to replicate every other element in the strided input array starting from the second element and to store in the last `N*k` elements of the strided output array starting from the last element: + +```javascript +var x = [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ]; +var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + +greplicate.ndarray( 3, 2, x, 2, 1, out, -1, out.length-1 ); +// out => [ 0.0, 0.0, 6.0, 6.0, 4.0, 4.0, 2.0, 2.0 ] +``` + +
+ + + +
+ +## Notes + +- If `N <= 0` or `k <= 0`, both functions return `out` unchanged. +- Both functions assume that the output array supports `N*k` indexed elements. +- Both functions support array-like objects having getter and setter accessors for array element access (e.g., [`@stdlib/array/base/accessor`][@stdlib/array/base/accessor]). + +
+ + + +
+ +## Examples + + + +```javascript +var discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); +var Float64Array = require( '@stdlib/array/float64' ); +var greplicate = require( '@stdlib/blas/ext/base/greplicate' ); + +var x = discreteUniform( 10, -100, 100, { + 'dtype': 'float64' +}); +console.log( x ); + +var out = new Float64Array( x.length * 3 ); +console.log( out ); + +greplicate( x.length, 3, x, 1, out, 1 ); +console.log( out ); +``` + +
+ + + + + + + + + + + + + + diff --git a/lib/node_modules/@stdlib/blas/ext/base/greplicate/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/greplicate/benchmark/benchmark.js new file mode 100644 index 000000000000..fa40e657c74b --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/greplicate/benchmark/benchmark.js @@ -0,0 +1,106 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var bench = require( '@stdlib/bench' ); +var uniform = require( '@stdlib/random/array/uniform' ); +var isnan = require( '@stdlib/math/base/assert/is-nan' ); +var pow = require( '@stdlib/math/base/special/pow' ); +var zeros = require( '@stdlib/array/zeros' ); +var format = require( '@stdlib/string/format' ); +var pkg = require( './../package.json' ).name; +var greplicate = require( './../lib/main.js' ); + + +// VARIABLES // + +var options = { + 'dtype': 'generic' +}; + + +// FUNCTIONS // + +/** +* Creates a benchmark function. +* +* @private +* @param {PositiveInteger} len - array length +* @returns {Function} benchmark function +*/ +function createBenchmark( len ) { + var out = zeros( len * 2, options.dtype ); + var x = uniform( len, -100, 100, options ); + return benchmark; + + /** + * Benchmark function. + * + * @private + * @param {Benchmark} b - benchmark instance + */ + function benchmark( b ) { + var v; + var i; + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + x[ 0 ] += 1.0; + v = greplicate( x.length, 2, x, 1, out, 1 ); + if ( isnan( v[ i % ( len * 2 ) ] ) ) { + b.fail( 'should not return NaN' ); + } + } + b.toc(); + if ( isnan( v[ i % ( len * 2 ) ] ) ) { + 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 = pow( 10, i ); + f = createBenchmark( len ); + bench( format( '%s:len=%d', pkg, len ), f ); + } +} + +main(); diff --git a/lib/node_modules/@stdlib/blas/ext/base/greplicate/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/greplicate/benchmark/benchmark.ndarray.js new file mode 100644 index 000000000000..aa6ec6ad0d2b --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/greplicate/benchmark/benchmark.ndarray.js @@ -0,0 +1,106 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var bench = require( '@stdlib/bench' ); +var uniform = require( '@stdlib/random/array/uniform' ); +var isnan = require( '@stdlib/math/base/assert/is-nan' ); +var pow = require( '@stdlib/math/base/special/pow' ); +var zeros = require( '@stdlib/array/zeros' ); +var format = require( '@stdlib/string/format' ); +var pkg = require( './../package.json' ).name; +var greplicate = require( './../lib/ndarray.js' ); + + +// VARIABLES // + +var options = { + 'dtype': 'generic' +}; + + +// FUNCTIONS // + +/** +* Creates a benchmark function. +* +* @private +* @param {PositiveInteger} len - array length +* @returns {Function} benchmark function +*/ +function createBenchmark( len ) { + var out = zeros( len * 2, options.dtype ); + var x = uniform( len, -100, 100, options ); + return benchmark; + + /** + * Benchmark function. + * + * @private + * @param {Benchmark} b - benchmark instance + */ + function benchmark( b ) { + var v; + var i; + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + x[ 0 ] += 1.0; + v = greplicate( x.length, 2, x, 1, 0, out, 1, 0 ); + if ( isnan( v[ i % ( len * 2 ) ] ) ) { + b.fail( 'should not return NaN' ); + } + } + b.toc(); + if ( isnan( v[ i % ( len * 2 ) ] ) ) { + 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 = pow( 10, i ); + f = createBenchmark( len ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); + } +} + +main(); diff --git a/lib/node_modules/@stdlib/blas/ext/base/greplicate/docs/repl.txt b/lib/node_modules/@stdlib/blas/ext/base/greplicate/docs/repl.txt new file mode 100644 index 000000000000..b17f53ae12cf --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/greplicate/docs/repl.txt @@ -0,0 +1,118 @@ + +{{alias}}( N, k, x, strideX, out, strideOut ) + Replicates each strided array element a specified number of times. + + The `N` and stride parameters determine which elements in the strided arrays + are accessed at runtime. + + Indexing is relative to the first index. To introduce an offset, use a typed + array view. + + If `N <= 0` or `k <= 0`, the function returns `out` unchanged. + + Parameters + ---------- + N: integer + Number of indexed elements. + + k: integer + Number of times to replicate each element. + + x: ArrayLikeObject + Input array. + + strideX: integer + Stride length for `x`. + + out: ArrayLikeObject + Output array. + + strideOut: integer + Stride length for `out`. + + Returns + ------- + out: ArrayLikeObject + Output array. + + Examples + -------- + // Standard Usage: + > var x = [ 1.0, 2.0, 3.0 ]; + > var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + > {{alias}}( x.length, 2, x, 1, out, 1 ) + [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ] + + // Using `N` and stride parameters: + > x = [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ]; + > out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + > {{alias}}( 3, 2, x, 2, out, 1 ) + [ 1.0, 1.0, 3.0, 3.0, 5.0, 5.0 ] + + // Using view offsets: + > var x0 = new {{alias:@stdlib/array/float64}}( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); + > var out0 = new {{alias:@stdlib/array/float64}}( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); + > var x1 = new {{alias:@stdlib/array/float64}}( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); + > var out1 = new {{alias:@stdlib/array/float64}}( out0.buffer, out0.BYTES_PER_ELEMENT*2 ); + > {{alias}}( 3, 2, x1, 2, out1, 1 ) + [ 2.0, 2.0, 4.0, 4.0, 6.0, 6.0 ] + > out0 + [ 0.0, 0.0, 2.0, 2.0, 4.0, 4.0, 6.0, 6.0 ] + + +{{alias}}.ndarray( N, k, x, strideX, offsetX, out, strideOut, offsetOut ) + Replicates each strided array element a specified number of times 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 + ---------- + N: integer + Number of indexed elements. + + k: integer + Number of times to replicate each element. + + x: ArrayLikeObject + Input array. + + strideX: integer + Stride length for `x`. + + offsetX: integer + Starting index for `x`. + + out: ArrayLikeObject + Output array. + + strideOut: integer + Stride length for `out`. + + offsetOut: integer + Starting index for `out`. + + Returns + ------- + out: ArrayLikeObject + Output array. + + Examples + -------- + // Standard Usage: + > var x = [ 1.0, 2.0, 3.0 ]; + > var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + > {{alias}}.ndarray( x.length, 2, x, 1, 0, out, 1, 0 ) + [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ] + + // Advanced indexing: + > x = [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ]; + > out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + > {{alias}}.ndarray( 3, 2, x, 2, 1, out, -1, out.length-1 ) + [ 6.0, 6.0, 4.0, 4.0, 2.0, 2.0 ] + + See Also + -------- + diff --git a/lib/node_modules/@stdlib/blas/ext/base/greplicate/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/ext/base/greplicate/docs/types/index.d.ts new file mode 100644 index 000000000000..70f490125920 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/greplicate/docs/types/index.d.ts @@ -0,0 +1,112 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2026 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 { Collection, AccessorArrayLike } from '@stdlib/types/array'; + +/** +* Input array. +*/ +type InputArray = Collection | AccessorArrayLike; + +/** +* Output array. +*/ +type OutputArray = Collection | AccessorArrayLike; + +/** +* Interface describing `greplicate`. +*/ +interface Routine { + /** + * Replicates each strided array element a specified number of times. + * + * @param N - number of indexed elements + * @param k - number of times to replicate each element + * @param x - input array + * @param strideX - stride length for `x` + * @param out - output array + * @param strideOut - stride length for `out` + * @returns output array + * + * @example + * var x = [ 1.0, 2.0, 3.0 ]; + * var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + * + * greplicate( x.length, 2, x, 1, out, 1 ); + * // out => [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ] + */ + = InputArray, V extends OutputArray = OutputArray>( N: number, k: number, x: U, strideX: number, out: V, strideOut: number ): V; + + /** + * Replicates each strided array element a specified number of times using alternative indexing semantics. + * + * @param N - number of indexed elements + * @param k - number of times to replicate each element + * @param x - input array + * @param strideX - stride length for `x` + * @param offsetX - starting index for `x` + * @param out - output array + * @param strideOut - stride length for `out` + * @param offsetOut - starting index for `out` + * @returns output array + * + * @example + * var x = [ 1.0, 2.0, 3.0 ]; + * var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + * + * greplicate.ndarray( x.length, 2, x, 1, 0, out, 1, 0 ); + * // out => [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ] + */ + ndarray = InputArray, V extends OutputArray = OutputArray>( N: number, k: number, x: U, strideX: number, offsetX: number, out: V, strideOut: number, offsetOut: number ): V; +} + +/** +* Replicates each strided array element a specified number of times. +* +* @param N - number of indexed elements +* @param k - number of times to replicate each element +* @param x - input array +* @param strideX - stride length for `x` +* @param out - output array +* @param strideOut - stride length for `out` +* @returns output array +* +* @example +* var x = [ 1.0, 2.0, 3.0 ]; +* var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; +* +* greplicate( x.length, 2, x, 1, out, 1 ); +* // out => [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ] +* +* @example +* var x = [ 1.0, 2.0, 3.0 ]; +* var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; +* +* greplicate.ndarray( x.length, 2, x, 1, 0, out, 1, 0 ); +* // out => [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ] +*/ +declare var greplicate: Routine; + + +// EXPORTS // + +export = greplicate; diff --git a/lib/node_modules/@stdlib/blas/ext/base/greplicate/docs/types/test.ts b/lib/node_modules/@stdlib/blas/ext/base/greplicate/docs/types/test.ts new file mode 100644 index 000000000000..8cbf784be867 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/greplicate/docs/types/test.ts @@ -0,0 +1,283 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2026 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 AccessorArray = require( '@stdlib/array/base/accessor' ); +import greplicate = require( './index' ); + + +// TESTS // + +// The function returns a collection... +{ + const x = new Float64Array( 10 ); + const out = new Float64Array( 20 ); + + greplicate( x.length, 2, x, 1, out, 1 ); // $ExpectType Float64Array + greplicate( x.length, 2, new AccessorArray( x ), 1, new AccessorArray( out ), 1 ); // $ExpectType AccessorArray +} + +// The compiler throws an error if the function is provided a first argument which is not a number... +{ + const x = new Float64Array( 10 ); + const out = new Float64Array( 20 ); + + greplicate( '10', 2, x, 1, out, 1 ); // $ExpectError + greplicate( true, 2, x, 1, out, 1 ); // $ExpectError + greplicate( false, 2, x, 1, out, 1 ); // $ExpectError + greplicate( null, 2, x, 1, out, 1 ); // $ExpectError + greplicate( undefined, 2, x, 1, out, 1 ); // $ExpectError + greplicate( [], 2, x, 1, out, 1 ); // $ExpectError + greplicate( {}, 2, x, 1, out, 1 ); // $ExpectError + greplicate( ( x: number ): number => x, 2, x, 1, out, 1 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a second argument which is not a number... +{ + const x = new Float64Array( 10 ); + const out = new Float64Array( 20 ); + + greplicate( x.length, '10', x, 1, out, 1 ); // $ExpectError + greplicate( x.length, true, x, 1, out, 1 ); // $ExpectError + greplicate( x.length, false, x, 1, out, 1 ); // $ExpectError + greplicate( x.length, null, x, 1, out, 1 ); // $ExpectError + greplicate( x.length, undefined, x, 1, out, 1 ); // $ExpectError + greplicate( x.length, [], x, 1, out, 1 ); // $ExpectError + greplicate( x.length, {}, x, 1, out, 1 ); // $ExpectError + greplicate( x.length, ( x: number ): number => x, x, 1, out, 1 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a third argument which is not a collection... +{ + const x = new Float64Array( 10 ); + const out = new Float64Array( 20 ); + + greplicate( x.length, 2, 10, 1, out, 1 ); // $ExpectError + greplicate( x.length, 2, '10', 1, out, 1 ); // $ExpectError + greplicate( x.length, 2, true, 1, out, 1 ); // $ExpectError + greplicate( x.length, 2, false, 1, out, 1 ); // $ExpectError + greplicate( x.length, 2, null, 1, out, 1 ); // $ExpectError + greplicate( x.length, 2, undefined, 1, out, 1 ); // $ExpectError + greplicate( x.length, 2, [ '1' ], 1, out, 1 ); // $ExpectError + greplicate( x.length, 2, {}, 1, out, 1 ); // $ExpectError + greplicate( x.length, 2, ( x: number ): number => x, 1, out, 1 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a fourth argument which is not a number... +{ + const x = new Float64Array( 10 ); + const out = new Float64Array( 20 ); + + greplicate( x.length, 2, x, '10', out, 1 ); // $ExpectError + greplicate( x.length, 2, x, true, out, 1 ); // $ExpectError + greplicate( x.length, 2, x, false, out, 1 ); // $ExpectError + greplicate( x.length, 2, x, null, out, 1 ); // $ExpectError + greplicate( x.length, 2, x, undefined, out, 1 ); // $ExpectError + greplicate( x.length, 2, x, [], out, 1 ); // $ExpectError + greplicate( x.length, 2, x, {}, out, 1 ); // $ExpectError + greplicate( x.length, 2, x, ( x: number ): number => x, out, 1 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a fifth argument which is not a collection... +{ + const x = new Float64Array( 10 ); + + greplicate( x.length, 2, x, 1, 10, 1 ); // $ExpectError + greplicate( x.length, 2, x, 1, '10', 1 ); // $ExpectError + greplicate( x.length, 2, x, 1, true, 1 ); // $ExpectError + greplicate( x.length, 2, x, 1, false, 1 ); // $ExpectError + greplicate( x.length, 2, x, 1, null, 1 ); // $ExpectError + greplicate( x.length, 2, x, 1, undefined, 1 ); // $ExpectError + greplicate( x.length, 2, x, 1, [ '1' ], 1 ); // $ExpectError + greplicate( x.length, 2, x, 1, {}, 1 ); // $ExpectError + greplicate( x.length, 2, x, 1, ( x: number ): number => x, 1 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a sixth argument which is not a number... +{ + const x = new Float64Array( 10 ); + const out = new Float64Array( 20 ); + + greplicate( x.length, 2, x, 1, out, '10' ); // $ExpectError + greplicate( x.length, 2, x, 1, out, true ); // $ExpectError + greplicate( x.length, 2, x, 1, out, false ); // $ExpectError + greplicate( x.length, 2, x, 1, out, null ); // $ExpectError + greplicate( x.length, 2, x, 1, out, undefined ); // $ExpectError + greplicate( x.length, 2, x, 1, out, [] ); // $ExpectError + greplicate( x.length, 2, x, 1, out, {} ); // $ExpectError + greplicate( x.length, 2, x, 1, out, ( x: number ): number => x ); // $ExpectError +} + +// The compiler throws an error if the function is provided an unsupported number of arguments... +{ + const x = new Float64Array( 10 ); + const out = new Float64Array( 20 ); + + greplicate(); // $ExpectError + greplicate( x.length ); // $ExpectError + greplicate( x.length, 2 ); // $ExpectError + greplicate( x.length, 2, x ); // $ExpectError + greplicate( x.length, 2, x, 1 ); // $ExpectError + greplicate( x.length, 2, x, 1, out ); // $ExpectError + greplicate( x.length, 2, x, 1, out, 1, 10 ); // $ExpectError +} + +// Attached to main export is an `ndarray` method which returns a collection... +{ + const x = new Float64Array( 10 ); + const out = new Float64Array( 20 ); + + greplicate.ndarray( x.length, 2, x, 1, 0, out, 1, 0 ); // $ExpectType Float64Array + greplicate.ndarray( x.length, 2, new AccessorArray( x ), 1, 0, new AccessorArray( out ), 1, 0 ); // $ExpectType AccessorArray +} + +// The compiler throws an error if the `ndarray` method is provided a first argument which is not a number... +{ + const x = new Float64Array( 10 ); + const out = new Float64Array( 20 ); + + greplicate.ndarray( '10', 2, x, 1, 0, out, 1, 0 ); // $ExpectError + greplicate.ndarray( true, 2, x, 1, 0, out, 1, 0 ); // $ExpectError + greplicate.ndarray( false, 2, x, 1, 0, out, 1, 0 ); // $ExpectError + greplicate.ndarray( null, 2, x, 1, 0, out, 1, 0 ); // $ExpectError + greplicate.ndarray( undefined, 2, x, 1, 0, out, 1, 0 ); // $ExpectError + greplicate.ndarray( [], 2, x, 1, 0, out, 1, 0 ); // $ExpectError + greplicate.ndarray( {}, 2, x, 1, 0, out, 1, 0 ); // $ExpectError + greplicate.ndarray( ( x: number ): number => x, 2, x, 1, 0, out, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the `ndarray` method is provided a second argument which is not a number... +{ + const x = new Float64Array( 10 ); + const out = new Float64Array( 20 ); + + greplicate.ndarray( x.length, '10', x, 1, 0, out, 1, 0 ); // $ExpectError + greplicate.ndarray( x.length, true, x, 1, 0, out, 1, 0 ); // $ExpectError + greplicate.ndarray( x.length, false, x, 1, 0, out, 1, 0 ); // $ExpectError + greplicate.ndarray( x.length, null, x, 1, 0, out, 1, 0 ); // $ExpectError + greplicate.ndarray( x.length, undefined, x, 1, 0, out, 1, 0 ); // $ExpectError + greplicate.ndarray( x.length, [], x, 1, 0, out, 1, 0 ); // $ExpectError + greplicate.ndarray( x.length, {}, x, 1, 0, out, 1, 0 ); // $ExpectError + greplicate.ndarray( x.length, ( x: number ): number => x, x, 1, 0, out, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the `ndarray` method is provided a third argument which is not a collection... +{ + const x = new Float64Array( 10 ); + const out = new Float64Array( 20 ); + + greplicate.ndarray( x.length, 2, 10, 1, 0, out, 1, 0 ); // $ExpectError + greplicate.ndarray( x.length, 2, '10', 1, 0, out, 1, 0 ); // $ExpectError + greplicate.ndarray( x.length, 2, true, 1, 0, out, 1, 0 ); // $ExpectError + greplicate.ndarray( x.length, 2, false, 1, 0, out, 1, 0 ); // $ExpectError + greplicate.ndarray( x.length, 2, null, 1, 0, out, 1, 0 ); // $ExpectError + greplicate.ndarray( x.length, 2, undefined, 1, 0, out, 1, 0 ); // $ExpectError + greplicate.ndarray( x.length, 2, [ '1' ], 1, 0, out, 1, 0 ); // $ExpectError + greplicate.ndarray( x.length, 2, {}, 1, 0, out, 1, 0 ); // $ExpectError + greplicate.ndarray( x.length, 2, ( x: number ): number => x, 1, 0, out, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the `ndarray` method is provided a fourth argument which is not a number... +{ + const x = new Float64Array( 10 ); + const out = new Float64Array( 20 ); + + greplicate.ndarray( x.length, 2, x, '10', 0, out, 1, 0 ); // $ExpectError + greplicate.ndarray( x.length, 2, x, true, 0, out, 1, 0 ); // $ExpectError + greplicate.ndarray( x.length, 2, x, false, 0, out, 1, 0 ); // $ExpectError + greplicate.ndarray( x.length, 2, x, null, 0, out, 1, 0 ); // $ExpectError + greplicate.ndarray( x.length, 2, x, undefined, 0, out, 1, 0 ); // $ExpectError + greplicate.ndarray( x.length, 2, x, [], 0, out, 1, 0 ); // $ExpectError + greplicate.ndarray( x.length, 2, x, {}, 0, out, 1, 0 ); // $ExpectError + greplicate.ndarray( x.length, 2, x, ( x: number ): number => x, 0, out, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the `ndarray` method is provided a fifth argument which is not a number... +{ + const x = new Float64Array( 10 ); + const out = new Float64Array( 20 ); + + greplicate.ndarray( x.length, 2, x, 1, '10', out, 1, 0 ); // $ExpectError + greplicate.ndarray( x.length, 2, x, 1, true, out, 1, 0 ); // $ExpectError + greplicate.ndarray( x.length, 2, x, 1, false, out, 1, 0 ); // $ExpectError + greplicate.ndarray( x.length, 2, x, 1, null, out, 1, 0 ); // $ExpectError + greplicate.ndarray( x.length, 2, x, 1, undefined, out, 1, 0 ); // $ExpectError + greplicate.ndarray( x.length, 2, x, 1, [], out, 1, 0 ); // $ExpectError + greplicate.ndarray( x.length, 2, x, 1, {}, out, 1, 0 ); // $ExpectError + greplicate.ndarray( x.length, 2, x, 1, ( x: number ): number => x, out, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the `ndarray` method is provided a sixth argument which is not a collection... +{ + const x = new Float64Array( 10 ); + + greplicate.ndarray( x.length, 2, x, 1, 0, 10, 1, 0 ); // $ExpectError + greplicate.ndarray( x.length, 2, x, 1, 0, '10', 1, 0 ); // $ExpectError + greplicate.ndarray( x.length, 2, x, 1, 0, true, 1, 0 ); // $ExpectError + greplicate.ndarray( x.length, 2, x, 1, 0, false, 1, 0 ); // $ExpectError + greplicate.ndarray( x.length, 2, x, 1, 0, null, 1, 0 ); // $ExpectError + greplicate.ndarray( x.length, 2, x, 1, 0, undefined, 1, 0 ); // $ExpectError + greplicate.ndarray( x.length, 2, x, 1, 0, [ '1' ], 1, 0 ); // $ExpectError + greplicate.ndarray( x.length, 2, x, 1, 0, {}, 1, 0 ); // $ExpectError + greplicate.ndarray( x.length, 2, x, 1, 0, ( x: number ): number => x, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the `ndarray` method is provided a seventh argument which is not a number... +{ + const x = new Float64Array( 10 ); + const out = new Float64Array( 20 ); + + greplicate.ndarray( x.length, 2, x, 1, 0, out, '10', 0 ); // $ExpectError + greplicate.ndarray( x.length, 2, x, 1, 0, out, true, 0 ); // $ExpectError + greplicate.ndarray( x.length, 2, x, 1, 0, out, false, 0 ); // $ExpectError + greplicate.ndarray( x.length, 2, x, 1, 0, out, null, 0 ); // $ExpectError + greplicate.ndarray( x.length, 2, x, 1, 0, out, undefined, 0 ); // $ExpectError + greplicate.ndarray( x.length, 2, x, 1, 0, out, [], 0 ); // $ExpectError + greplicate.ndarray( x.length, 2, x, 1, 0, out, {}, 0 ); // $ExpectError + greplicate.ndarray( x.length, 2, x, 1, 0, out, ( x: number ): number => x, 0 ); // $ExpectError +} + +// The compiler throws an error if the `ndarray` method is provided an eighth argument which is not a number... +{ + const x = new Float64Array( 10 ); + const out = new Float64Array( 20 ); + + greplicate.ndarray( x.length, 2, x, 1, 0, out, 1, '10' ); // $ExpectError + greplicate.ndarray( x.length, 2, x, 1, 0, out, 1, true ); // $ExpectError + greplicate.ndarray( x.length, 2, x, 1, 0, out, 1, false ); // $ExpectError + greplicate.ndarray( x.length, 2, x, 1, 0, out, 1, null ); // $ExpectError + greplicate.ndarray( x.length, 2, x, 1, 0, out, 1, undefined ); // $ExpectError + greplicate.ndarray( x.length, 2, x, 1, 0, out, 1, [] ); // $ExpectError + greplicate.ndarray( x.length, 2, x, 1, 0, out, 1, {} ); // $ExpectError + greplicate.ndarray( x.length, 2, x, 1, 0, out, 1, ( x: number ): number => x ); // $ExpectError +} + +// The compiler throws an error if the `ndarray` method is provided an unsupported number of arguments... +{ + const x = new Float64Array( 10 ); + const out = new Float64Array( 20 ); + + greplicate.ndarray(); // $ExpectError + greplicate.ndarray( x.length ); // $ExpectError + greplicate.ndarray( x.length, 2 ); // $ExpectError + greplicate.ndarray( x.length, 2, x ); // $ExpectError + greplicate.ndarray( x.length, 2, x, 1 ); // $ExpectError + greplicate.ndarray( x.length, 2, x, 1, 0 ); // $ExpectError + greplicate.ndarray( x.length, 2, x, 1, 0, out ); // $ExpectError + greplicate.ndarray( x.length, 2, x, 1, 0, out, 1 ); // $ExpectError + greplicate.ndarray( x.length, 2, x, 1, 0, out, 1, 0, 10 ); // $ExpectError +} diff --git a/lib/node_modules/@stdlib/blas/ext/base/greplicate/examples/index.js b/lib/node_modules/@stdlib/blas/ext/base/greplicate/examples/index.js new file mode 100644 index 000000000000..8b0db9a9d84e --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/greplicate/examples/index.js @@ -0,0 +1,34 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 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 Float64Array = require( '@stdlib/array/float64' ); +var greplicate = require( './../lib' ); + +var x = discreteUniform( 10, -100, 100, { + 'dtype': 'float64' +}); +console.log( x ); + +var out = new Float64Array( x.length * 3 ); +console.log( out ); + +greplicate( x.length, 3, x, 1, out, 1 ); +console.log( out ); diff --git a/lib/node_modules/@stdlib/blas/ext/base/greplicate/lib/accessors.js b/lib/node_modules/@stdlib/blas/ext/base/greplicate/lib/accessors.js new file mode 100644 index 000000000000..d359e3d84d43 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/greplicate/lib/accessors.js @@ -0,0 +1,88 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 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'; + +// MAIN // + +/** +* Replicates each strided array element a specified number of times. +* +* @private +* @param {PositiveInteger} N - number of indexed elements +* @param {PositiveInteger} k - number of times to replicate each element +* @param {Object} x - input array object +* @param {Collection} x.data - input array data +* @param {Array} x.accessors - array element accessors +* @param {integer} strideX - stride length for `x` +* @param {NonNegativeInteger} offsetX - starting index for `x` +* @param {Object} out - output array object +* @param {Collection} out.data - output array data +* @param {Array} out.accessors - array element accessors +* @param {integer} strideOut - stride length for `out` +* @param {NonNegativeInteger} offsetOut - starting index for `out` +* @returns {Object} output array object +* +* @example +* var toAccessorArray = require( '@stdlib/array/base/to-accessor-array' ); +* var arraylike2object = require( '@stdlib/array/base/arraylike2object' ); +* +* var x = toAccessorArray( [ 1.0, 2.0, 3.0 ] ); +* var out = toAccessorArray( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); +* +* greplicate( 3, 2, arraylike2object( x ), 1, 0, arraylike2object( out ), 1, 0 ); +* +* var v = out.get( 0 ); +* // returns 1.0 +*/ +function greplicate( N, k, x, strideX, offsetX, out, strideOut, offsetOut ) { + var xbuf; + var obuf; + var get; + var set; + var io; + var ix; + var v; + var i; + var j; + + // Cache references to array data: + xbuf = x.data; + obuf = out.data; + + // Cache references to element accessors: + get = x.accessors[ 0 ]; + set = out.accessors[ 1 ]; + + ix = offsetX; + io = offsetOut; + for ( i = 0; i < N; i++ ) { + v = get( xbuf, ix ); + for ( j = 0; j < k; j++ ) { + set( obuf, io, v ); + io += strideOut; + } + ix += strideX; + } + return out; +} + + +// EXPORTS // + +module.exports = greplicate; diff --git a/lib/node_modules/@stdlib/blas/ext/base/greplicate/lib/index.js b/lib/node_modules/@stdlib/blas/ext/base/greplicate/lib/index.js new file mode 100644 index 000000000000..903938b4079a --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/greplicate/lib/index.js @@ -0,0 +1,59 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 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'; + +/** +* Replicate each strided array element a specified number of times. +* +* @module @stdlib/blas/ext/base/greplicate +* +* @example +* var greplicate = require( '@stdlib/blas/ext/base/greplicate' ); +* +* var x = [ 1.0, 2.0, 3.0 ]; +* var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; +* +* greplicate( x.length, 2, x, 1, out, 1 ); +* // out => [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ] +* +* @example +* var greplicate = require( '@stdlib/blas/ext/base/greplicate' ); +* +* var x = [ 1.0, 2.0, 3.0 ]; +* var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; +* +* greplicate.ndarray( x.length, 2, x, 1, 0, out, 1, 0 ); +* // out => [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ] +*/ + +// MODULES // + +var setReadOnly = require( '@stdlib/utils/define-nonenumerable-read-only-property' ); +var main = require( './main.js' ); +var ndarray = require( './ndarray.js' ); + + +// MAIN // + +setReadOnly( main, 'ndarray', ndarray ); + + +// EXPORTS // + +module.exports = main; diff --git a/lib/node_modules/@stdlib/blas/ext/base/greplicate/lib/main.js b/lib/node_modules/@stdlib/blas/ext/base/greplicate/lib/main.js new file mode 100644 index 000000000000..241452418a92 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/greplicate/lib/main.js @@ -0,0 +1,56 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 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 stride2offset = require( '@stdlib/strided/base/stride2offset' ); +var ndarray = require( './ndarray.js' ); + + +// MAIN // + +/** +* Replicates each strided array element a specified number of times. +* +* @param {PositiveInteger} N - number of indexed elements +* @param {PositiveInteger} k - number of times to replicate each element +* @param {Collection} x - input array +* @param {integer} strideX - stride length for `x` +* @param {Collection} out - output array +* @param {integer} strideOut - stride length for `out` +* @returns {Collection} output array +* +* @example +* var x = [ 1.0, 2.0, 3.0 ]; +* var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; +* +* greplicate( x.length, 2, x, 1, out, 1 ); +* // out => [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ] +*/ +function greplicate( N, k, x, strideX, out, strideOut ) { + var ox = stride2offset( N, strideX ); + var oo = stride2offset( N * k, strideOut ); + return ndarray( N, k, x, strideX, ox, out, strideOut, oo ); +} + + +// EXPORTS // + +module.exports = greplicate; diff --git a/lib/node_modules/@stdlib/blas/ext/base/greplicate/lib/ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/greplicate/lib/ndarray.js new file mode 100644 index 000000000000..f957ea8388b3 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/greplicate/lib/ndarray.js @@ -0,0 +1,83 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 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 arraylike2object = require( '@stdlib/array/base/arraylike2object' ); +var accessors = require( './accessors.js' ); + + +// MAIN // + +/** +* Replicates each strided array element a specified number of times. +* +* @param {PositiveInteger} N - number of indexed elements +* @param {PositiveInteger} k - number of times to replicate each element +* @param {Collection} x - input array +* @param {integer} strideX - stride length for `x` +* @param {NonNegativeInteger} offsetX - starting index for `x` +* @param {Collection} out - output array +* @param {integer} strideOut - stride length for `out` +* @param {NonNegativeInteger} offsetOut - starting index for `out` +* @returns {Collection} output array +* +* @example +* var x = [ 1.0, 2.0, 3.0 ]; +* var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; +* +* greplicate( 3, 2, x, 1, 0, out, 1, 0 ); +* // out => [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ] +*/ +function greplicate( N, k, x, strideX, offsetX, out, strideOut, offsetOut ) { + var io; + var ix; + var ox; + var oy; + var v; + var i; + var j; + + if ( N <= 0 || k <= 0 ) { + return out; + } + ox = arraylike2object( x ); + oy = arraylike2object( out ); + if ( ox.accessorProtocol || oy.accessorProtocol ) { + accessors( N, k, ox, strideX, offsetX, oy, strideOut, offsetOut ); + return out; + } + ix = offsetX; + io = offsetOut; + for ( i = 0; i < N; i++ ) { + v = x[ ix ]; + for ( j = 0; j < k; j++ ) { + out[ io ] = v; + io += strideOut; + } + ix += strideX; + } + return out; +} + + +// EXPORTS // + +module.exports = greplicate; diff --git a/lib/node_modules/@stdlib/blas/ext/base/greplicate/package.json b/lib/node_modules/@stdlib/blas/ext/base/greplicate/package.json new file mode 100644 index 000000000000..d3f54d4bca0b --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/greplicate/package.json @@ -0,0 +1,67 @@ +{ + "name": "@stdlib/blas/ext/base/greplicate", + "version": "0.0.0", + "description": "Replicate each strided array element a specified number of times.", + "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", + "extended", + "replicate", + "repeat", + "copy", + "strided", + "strided array", + "typed", + "array" + ], + "__stdlib__": {} +} diff --git a/lib/node_modules/@stdlib/blas/ext/base/greplicate/test/test.js b/lib/node_modules/@stdlib/blas/ext/base/greplicate/test/test.js new file mode 100644 index 000000000000..f39caae9e253 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/greplicate/test/test.js @@ -0,0 +1,38 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 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 greplicate = require( './../lib' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof greplicate, '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 greplicate.ndarray, 'function', 'method is a function' ); + t.end(); +}); diff --git a/lib/node_modules/@stdlib/blas/ext/base/greplicate/test/test.main.js b/lib/node_modules/@stdlib/blas/ext/base/greplicate/test/test.main.js new file mode 100644 index 000000000000..5a4c57480349 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/greplicate/test/test.main.js @@ -0,0 +1,430 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 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 toAccessorArray = require( '@stdlib/array/base/to-accessor-array' ); +var Float64Array = require( '@stdlib/array/float64' ); +var greplicate = require( './../lib' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof greplicate, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function has an arity of 6', function test( t ) { + t.strictEqual( greplicate.length, 6, 'has expected arity' ); + t.end(); +}); + +tape( 'the function replicates each strided array element', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 2.0, 3.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + greplicate( x.length, 2, x, 1, out, 1 ); + expected = [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + x = [ 1.0, 2.0, 3.0, 4.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + greplicate( x.length, 3, x, 1, out, 1 ); + expected = [ 1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 3.0, 3.0, 3.0, 4.0, 4.0, 4.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function replicates each strided array element (k=1)', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 2.0, 3.0 ]; + out = [ 0.0, 0.0, 0.0 ]; + + greplicate( x.length, 1, x, 1, out, 1 ); + expected = [ 1.0, 2.0, 3.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function replicates each strided array element (N=1)', function test( t ) { + var expected; + var out; + var x; + + x = [ 5.0 ]; + out = [ 0.0, 0.0, 0.0 ]; + + greplicate( 1, 3, x, 1, out, 1 ); + expected = [ 5.0, 5.0, 5.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function replicates each strided array element (accessors)', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 2.0, 3.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + greplicate( x.length, 2, toAccessorArray( x ), 1, toAccessorArray( out ), 1 ); + expected = [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + x = [ 1.0, 2.0, 3.0, 4.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + greplicate( x.length, 3, toAccessorArray( x ), 1, toAccessorArray( out ), 1 ); + expected = [ 1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 3.0, 3.0, 3.0, 4.0, 4.0, 4.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function returns a reference to the output array', function test( t ) { + var out; + var x; + var v; + + x = [ 1.0, 2.0, 3.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + v = greplicate( x.length, 2, x, 1, out, 1 ); + + t.strictEqual( v, out, 'same reference' ); + t.end(); +}); + +tape( 'the function returns a reference to the output array (accessors)', function test( t ) { + var out; + var x; + var v; + + x = toAccessorArray( [ 1.0, 2.0, 3.0 ] ); + out = toAccessorArray( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); + + v = greplicate( x.length, 2, x, 1, out, 1 ); + + t.strictEqual( v, out, 'same reference' ); + t.end(); +}); + +tape( 'if provided an `N` parameter less than or equal to `0`, the function returns the output array unchanged', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 2.0, 3.0 ]; + out = [ 6.0, 7.0, 8.0, 9.0, 10.0, 11.0 ]; + + expected = [ 6.0, 7.0, 8.0, 9.0, 10.0, 11.0 ]; + + greplicate( -1, 2, x, 1, out, 1 ); + t.deepEqual( out, expected, 'returns expected value' ); + + greplicate( 0, 2, x, 1, out, 1 ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'if provided a `k` parameter less than or equal to `0`, the function returns the output array unchanged', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 2.0, 3.0 ]; + out = [ 6.0, 7.0, 8.0, 9.0, 10.0, 11.0 ]; + + expected = [ 6.0, 7.0, 8.0, 9.0, 10.0, 11.0 ]; + + greplicate( x.length, -1, x, 1, out, 1 ); + t.deepEqual( out, expected, 'returns expected value' ); + + greplicate( x.length, 0, x, 1, out, 1 ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports an `x` stride', function test( t ) { + var expected; + var out; + var x; + + x = [ + 1.0, // 0 + 2.0, + 3.0, // 1 + 4.0, + 5.0 // 2 + ]; + out = [ + 0.0, // 0 + 0.0, // 0 + 0.0, // 1 + 0.0, // 1 + 0.0, // 2 + 0.0 // 2 + ]; + + greplicate( 3, 2, x, 2, out, 1 ); + + expected = [ 1.0, 1.0, 3.0, 3.0, 5.0, 5.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports an `x` stride (accessors)', function test( t ) { + var expected; + var out; + var x; + + x = [ + 1.0, // 0 + 2.0, + 3.0, // 1 + 4.0, + 5.0 // 2 + ]; + out = [ + 0.0, // 0 + 0.0, // 0 + 0.0, // 1 + 0.0, // 1 + 0.0, // 2 + 0.0 // 2 + ]; + + greplicate( 3, 2, toAccessorArray( x ), 2, toAccessorArray( out ), 1 ); + + expected = [ 1.0, 1.0, 3.0, 3.0, 5.0, 5.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports an output stride', function test( t ) { + var expected; + var out; + var x; + + x = [ + 1.0, // 0 + 2.0, // 1 + 3.0 // 2 + ]; + out = [ + 0.0, // 0 + 0.0, + 0.0, // 0 + 0.0, + 0.0, // 1 + 0.0, + 0.0, // 1 + 0.0, + 0.0, // 2 + 0.0, + 0.0, // 2 + 0.0 + ]; + + greplicate( 3, 2, x, 1, out, 2 ); + + expected = [ 1.0, 0.0, 1.0, 0.0, 2.0, 0.0, 2.0, 0.0, 3.0, 0.0, 3.0, 0.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports an output stride (accessors)', function test( t ) { + var expected; + var out; + var x; + + x = [ + 1.0, // 0 + 2.0, // 1 + 3.0 // 2 + ]; + out = [ + 0.0, // 0 + 0.0, + 0.0, // 0 + 0.0, + 0.0, // 1 + 0.0, + 0.0, // 1 + 0.0, + 0.0, // 2 + 0.0, + 0.0, // 2 + 0.0 + ]; + + greplicate( 3, 2, toAccessorArray( x ), 1, toAccessorArray( out ), 2 ); + + expected = [ 1.0, 0.0, 1.0, 0.0, 2.0, 0.0, 2.0, 0.0, 3.0, 0.0, 3.0, 0.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports negative strides', function test( t ) { + var expected; + var out; + var x; + + x = [ + 1.0, // 2 + 2.0, + 3.0, // 1 + 4.0, + 5.0 // 0 + ]; + out = [ + 0.0, // 2 + 0.0, // 2 + 0.0, // 1 + 0.0, // 1 + 0.0, // 0 + 0.0 // 0 + ]; + + greplicate( 3, 2, x, -2, out, -1 ); + + expected = [ 1.0, 1.0, 3.0, 3.0, 5.0, 5.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports negative strides (accessors)', function test( t ) { + var expected; + var out; + var x; + + x = [ + 1.0, // 2 + 2.0, + 3.0, // 1 + 4.0, + 5.0 // 0 + ]; + out = [ + 0.0, // 2 + 0.0, // 2 + 0.0, // 1 + 0.0, // 1 + 0.0, // 0 + 0.0 // 0 + ]; + + greplicate( 3, 2, toAccessorArray( x ), -2, toAccessorArray( out ), -1 ); + + expected = [ 1.0, 1.0, 3.0, 3.0, 5.0, 5.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports complex access patterns', function test( t ) { + var expected; + var out; + var x; + + x = [ + 1.0, // 0 + 2.0, + 3.0, // 1 + 4.0, + 5.0 // 2 + ]; + out = [ + 0.0, // 2 + 0.0, // 2 + 0.0, // 1 + 0.0, // 1 + 0.0, // 0 + 0.0 // 0 + ]; + + greplicate( 3, 2, x, 2, out, -1 ); + + expected = [ 5.0, 5.0, 3.0, 3.0, 1.0, 1.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports view offsets', function test( t ) { + var expected; + var out0; + var out1; + var x0; + var x1; + + // Initial arrays... + x0 = new Float64Array([ + 1.0, + 2.0, // 0 + 3.0, + 4.0, // 1 + 5.0, + 6.0 // 2 + ]); + out0 = new Float64Array([ + 0.0, + 0.0, + 0.0, + 0.0, // 0 + 0.0, // 0 + 0.0, // 1 + 0.0, // 1 + 0.0, // 2 + 0.0 // 2 + ]); + + // Create offset views... + x1 = new Float64Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // begin at 2nd element + out1 = new Float64Array( out0.buffer, out0.BYTES_PER_ELEMENT*3 ); // begin at the 4th element + + greplicate( 3, 2, x1, 2, out1, 1 ); + expected = new Float64Array( [ 0.0, 0.0, 0.0, 2.0, 2.0, 4.0, 4.0, 6.0, 6.0 ] ); + + t.deepEqual( out0, expected, 'returns expected value' ); + t.end(); +}); diff --git a/lib/node_modules/@stdlib/blas/ext/base/greplicate/test/test.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/greplicate/test/test.ndarray.js new file mode 100644 index 000000000000..1d7b621c0491 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/greplicate/test/test.ndarray.js @@ -0,0 +1,543 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 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 toAccessorArray = require( '@stdlib/array/base/to-accessor-array' ); +var greplicate = require( './../lib/ndarray.js' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof greplicate, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function has an arity of 8', function test( t ) { + t.strictEqual( greplicate.length, 8, 'has expected arity' ); + t.end(); +}); + +tape( 'the function replicates each strided array element', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 2.0, 3.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + greplicate( x.length, 2, x, 1, 0, out, 1, 0 ); + expected = [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + x = [ 1.0, 2.0, 3.0, 4.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + greplicate( x.length, 3, x, 1, 0, out, 1, 0 ); + expected = [ 1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 3.0, 3.0, 3.0, 4.0, 4.0, 4.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function replicates each strided array element (k=1)', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 2.0, 3.0 ]; + out = [ 0.0, 0.0, 0.0 ]; + + greplicate( x.length, 1, x, 1, 0, out, 1, 0 ); + expected = [ 1.0, 2.0, 3.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function replicates each strided array element (N=1)', function test( t ) { + var expected; + var out; + var x; + + x = [ 5.0 ]; + out = [ 0.0, 0.0, 0.0 ]; + + greplicate( 1, 3, x, 1, 0, out, 1, 0 ); + expected = [ 5.0, 5.0, 5.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function replicates each strided array element (accessors)', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 2.0, 3.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + greplicate( x.length, 2, toAccessorArray( x ), 1, 0, toAccessorArray( out ), 1, 0 ); + expected = [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + x = [ 1.0, 2.0, 3.0, 4.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + greplicate( x.length, 3, toAccessorArray( x ), 1, 0, toAccessorArray( out ), 1, 0 ); + expected = [ 1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 3.0, 3.0, 3.0, 4.0, 4.0, 4.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function returns a reference to the output array', function test( t ) { + var out; + var x; + var v; + + x = [ 1.0, 2.0, 3.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + v = greplicate( x.length, 2, x, 1, 0, out, 1, 0 ); + + t.strictEqual( v, out, 'same reference' ); + t.end(); +}); + +tape( 'the function returns a reference to the output array (accessors)', function test( t ) { + var out; + var x; + var v; + + x = toAccessorArray( [ 1.0, 2.0, 3.0 ] ); + out = toAccessorArray( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); + + v = greplicate( x.length, 2, x, 1, 0, out, 1, 0 ); + + t.strictEqual( v, out, 'same reference' ); + t.end(); +}); + +tape( 'if provided an `N` parameter less than or equal to `0`, the function returns the output array unchanged', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 2.0, 3.0 ]; + out = [ 6.0, 7.0, 8.0, 9.0, 10.0, 11.0 ]; + + expected = [ 6.0, 7.0, 8.0, 9.0, 10.0, 11.0 ]; + + greplicate( -1, 2, x, 1, 0, out, 1, 0 ); + t.deepEqual( out, expected, 'returns expected value' ); + + greplicate( 0, 2, x, 1, 0, out, 1, 0 ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'if provided a `k` parameter less than or equal to `0`, the function returns the output array unchanged', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 2.0, 3.0 ]; + out = [ 6.0, 7.0, 8.0, 9.0, 10.0, 11.0 ]; + + expected = [ 6.0, 7.0, 8.0, 9.0, 10.0, 11.0 ]; + + greplicate( x.length, -1, x, 1, 0, out, 1, 0 ); + t.deepEqual( out, expected, 'returns expected value' ); + + greplicate( x.length, 0, x, 1, 0, out, 1, 0 ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports an `x` stride', function test( t ) { + var expected; + var out; + var x; + + x = [ + 1.0, // 0 + 2.0, + 3.0, // 1 + 4.0, + 5.0 // 2 + ]; + out = [ + 0.0, // 0 + 0.0, // 0 + 0.0, // 1 + 0.0, // 1 + 0.0, // 2 + 0.0 // 2 + ]; + + greplicate( 3, 2, x, 2, 0, out, 1, 0 ); + + expected = [ 1.0, 1.0, 3.0, 3.0, 5.0, 5.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports an `x` stride (accessors)', function test( t ) { + var expected; + var out; + var x; + + x = [ + 1.0, // 0 + 2.0, + 3.0, // 1 + 4.0, + 5.0 // 2 + ]; + out = [ + 0.0, // 0 + 0.0, // 0 + 0.0, // 1 + 0.0, // 1 + 0.0, // 2 + 0.0 // 2 + ]; + + greplicate( 3, 2, toAccessorArray( x ), 2, 0, toAccessorArray( out ), 1, 0 ); + + expected = [ 1.0, 1.0, 3.0, 3.0, 5.0, 5.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports an output stride', function test( t ) { + var expected; + var out; + var x; + + x = [ + 1.0, // 0 + 2.0, // 1 + 3.0 // 2 + ]; + out = [ + 0.0, // 0 + 0.0, + 0.0, // 0 + 0.0, + 0.0, // 1 + 0.0, + 0.0, // 1 + 0.0, + 0.0, // 2 + 0.0, + 0.0, // 2 + 0.0 + ]; + + greplicate( 3, 2, x, 1, 0, out, 2, 0 ); + + expected = [ 1.0, 0.0, 1.0, 0.0, 2.0, 0.0, 2.0, 0.0, 3.0, 0.0, 3.0, 0.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports an output stride (accessors)', function test( t ) { + var expected; + var out; + var x; + + x = [ + 1.0, // 0 + 2.0, // 1 + 3.0 // 2 + ]; + out = [ + 0.0, // 0 + 0.0, + 0.0, // 0 + 0.0, + 0.0, // 1 + 0.0, + 0.0, // 1 + 0.0, + 0.0, // 2 + 0.0, + 0.0, // 2 + 0.0 + ]; + + greplicate( 3, 2, toAccessorArray( x ), 1, 0, toAccessorArray( out ), 2, 0 ); + + expected = [ 1.0, 0.0, 1.0, 0.0, 2.0, 0.0, 2.0, 0.0, 3.0, 0.0, 3.0, 0.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports negative strides', function test( t ) { + var expected; + var out; + var x; + + x = [ + 1.0, // 2 + 2.0, + 3.0, // 1 + 4.0, + 5.0 // 0 + ]; + out = [ + 0.0, // 2 + 0.0, // 2 + 0.0, // 1 + 0.0, // 1 + 0.0, // 0 + 0.0 // 0 + ]; + + greplicate( 3, 2, x, -2, 4, out, -1, 5 ); + + expected = [ 1.0, 1.0, 3.0, 3.0, 5.0, 5.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports negative strides (accessors)', function test( t ) { + var expected; + var out; + var x; + + x = [ + 1.0, // 2 + 2.0, + 3.0, // 1 + 4.0, + 5.0 // 0 + ]; + out = [ + 0.0, // 2 + 0.0, // 2 + 0.0, // 1 + 0.0, // 1 + 0.0, // 0 + 0.0 // 0 + ]; + + greplicate( 3, 2, toAccessorArray( x ), -2, 4, toAccessorArray( out ), -1, 5 ); + + expected = [ 1.0, 1.0, 3.0, 3.0, 5.0, 5.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports an `x` offset', function test( t ) { + var expected; + var out; + var x; + + x = [ + 2.0, + 1.0, // 0 + 2.0, + -2.0, // 1 + -2.0, + 2.0, // 2 + 3.0, + 4.0 // 3 + ]; + out = [ + 0.0, // 0 + 0.0, // 0 + 0.0, // 1 + 0.0, // 1 + 0.0, // 2 + 0.0, // 2 + 0.0, // 3 + 0.0 // 3 + ]; + + greplicate( 4, 2, x, 2, 1, out, 1, 0 ); + + expected = [ 1.0, 1.0, -2.0, -2.0, 2.0, 2.0, 4.0, 4.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports an `x` offset (accessors)', function test( t ) { + var expected; + var out; + var x; + + x = [ + 2.0, + 1.0, // 0 + 2.0, + -2.0, // 1 + -2.0, + 2.0, // 2 + 3.0, + 4.0 // 3 + ]; + out = [ + 0.0, // 0 + 0.0, // 0 + 0.0, // 1 + 0.0, // 1 + 0.0, // 2 + 0.0, // 2 + 0.0, // 3 + 0.0 // 3 + ]; + + greplicate( 4, 2, toAccessorArray( x ), 2, 1, toAccessorArray( out ), 1, 0 ); + + expected = [ 1.0, 1.0, -2.0, -2.0, 2.0, 2.0, 4.0, 4.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports an output offset', function test( t ) { + var expected; + var out; + var x; + + x = [ + 1.0, // 0 + 2.0, // 1 + 3.0 // 2 + ]; + out = [ + 0.0, + 0.0, + 0.0, // 0 + 0.0, // 0 + 0.0, // 1 + 0.0, // 1 + 0.0, // 2 + 0.0 // 2 + ]; + + greplicate( 3, 2, x, 1, 0, out, 1, 2 ); + + expected = [ 0.0, 0.0, 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports an output offset (accessors)', function test( t ) { + var expected; + var out; + var x; + + x = [ + 1.0, // 0 + 2.0, // 1 + 3.0 // 2 + ]; + out = [ + 0.0, + 0.0, + 0.0, // 0 + 0.0, // 0 + 0.0, // 1 + 0.0, // 1 + 0.0, // 2 + 0.0 // 2 + ]; + + greplicate( 3, 2, toAccessorArray( x ), 1, 0, toAccessorArray( out ), 1, 2 ); + + expected = [ 0.0, 0.0, 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports a zero `x` stride', function test( t ) { + var expected; + var out; + var x; + + x = [ + 1.0, + 2.0, // 0, 1, 2 + 3.0 + ]; + out = [ + 0.0, // 0 + 0.0, // 0 + 0.0, // 1 + 0.0, // 1 + 0.0, // 2 + 0.0 // 2 + ]; + + greplicate( 3, 2, x, 0, 1, out, 1, 0 ); + + expected = [ 2.0, 2.0, 2.0, 2.0, 2.0, 2.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports complex access patterns', function test( t ) { + var expected; + var out; + var x; + + x = [ + 1.0, // 0 + 2.0, + 3.0, // 1 + 4.0, + 5.0 // 2 + ]; + out = [ + 0.0, // 2 + 0.0, // 2 + 0.0, // 1 + 0.0, // 1 + 0.0, // 0 + 0.0 // 0 + ]; + + greplicate( 3, 2, x, 2, 0, out, -1, 5 ); + + expected = [ 5.0, 5.0, 3.0, 3.0, 1.0, 1.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); diff --git a/lib/node_modules/@stdlib/blas/ext/base/grev/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/grev/benchmark/benchmark.js index 9e985df98d1a..025a22740e85 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/grev/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/grev/benchmark/benchmark.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var grev = require( './../lib/main.js' ); @@ -90,7 +91,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/grev/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/grev/benchmark/benchmark.ndarray.js index 3ee5a5913d6b..2e34a0892577 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/grev/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/grev/benchmark/benchmark.ndarray.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var grev = require( './../lib/ndarray.js' ); @@ -90,7 +91,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.mostly_sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.mostly_sorted_few_uniques.js index 3f8e6466183a..4b2c7bf6e179 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.mostly_sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.mostly_sorted_few_uniques.js @@ -25,6 +25,7 @@ var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsort2hp = require( './../lib/main.js' ); @@ -128,7 +129,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js index ce9237412309..0352ff991b33 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js @@ -25,6 +25,7 @@ var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsort2hp = require( './../lib/ndarray.js' ); @@ -128,7 +129,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.mostly_sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.mostly_sorted_random.js index 505384216a77..6a9d56a84cfd 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.mostly_sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.mostly_sorted_random.js @@ -25,6 +25,7 @@ var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsort2hp = require( './../lib/main.js' ); @@ -119,7 +120,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,random:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,random:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.mostly_sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.mostly_sorted_random.ndarray.js index 972527f9d644..b043d8631bbb 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.mostly_sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.mostly_sorted_random.ndarray.js @@ -25,6 +25,7 @@ var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsort2hp = require( './../lib/ndarray.js' ); @@ -119,7 +120,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.rev_mostly_sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.rev_mostly_sorted_few_uniques.js index 19bd89f03a70..456335e7bd8f 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.rev_mostly_sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.rev_mostly_sorted_few_uniques.js @@ -25,6 +25,7 @@ var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsort2hp = require( './../lib/main.js' ); @@ -128,7 +129,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js index d3dec4231e97..5c4b0f447300 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js @@ -25,6 +25,7 @@ var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsort2hp = require( './../lib/ndarray.js' ); @@ -128,7 +129,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.rev_mostly_sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.rev_mostly_sorted_random.js index 366668f020d2..c526af103d5d 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.rev_mostly_sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.rev_mostly_sorted_random.js @@ -25,6 +25,7 @@ var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsort2hp = require( './../lib/main.js' ); @@ -119,7 +120,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,random:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,random:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js index 50c7eebbd75d..74075f8c547e 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js @@ -25,6 +25,7 @@ var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsort2hp = require( './../lib/ndarray.js' ); @@ -119,7 +120,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.rev_sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.rev_sorted_few_uniques.js index 56827d4af87e..957991c90503 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.rev_sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.rev_sorted_few_uniques.js @@ -25,6 +25,7 @@ var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory; var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsort2hp = require( './../lib/main.js' ); @@ -129,7 +130,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js index d3c2cd5edb10..1491b63de336 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js @@ -25,6 +25,7 @@ var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory; var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsort2hp = require( './../lib/ndarray.js' ); @@ -129,7 +130,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.rev_sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.rev_sorted_random.js index a7491848e7e8..1499ee90ac99 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.rev_sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.rev_sorted_random.js @@ -25,6 +25,7 @@ var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsort2hp = require( './../lib/main.js' ); @@ -119,7 +120,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,random:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,random:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.rev_sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.rev_sorted_random.ndarray.js index 1bfac4b66c64..07e683d69632 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.rev_sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.rev_sorted_random.ndarray.js @@ -25,6 +25,7 @@ var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsort2hp = require( './../lib/ndarray.js' ); @@ -119,7 +120,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.sorted_few_uniques.js index 7fd4520965e0..dcdcdf59104c 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.sorted_few_uniques.js @@ -25,6 +25,7 @@ var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory; var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsort2hp = require( './../lib/main.js' ); @@ -127,7 +128,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( opts.iterations, len ); - bench( pkg+'::sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::sorted,few_uniques:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.sorted_few_uniques.ndarray.js index 38ae3e1b511d..ec26d5aabfe8 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.sorted_few_uniques.ndarray.js @@ -25,6 +25,7 @@ var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory; var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsort2hp = require( './../lib/ndarray.js' ); @@ -127,7 +128,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( opts.iterations, len ); - bench( pkg+'::sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.sorted_random.js index c14857489b50..91f091b78a23 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.sorted_random.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsort2hp = require( './../lib/main.js' ); @@ -116,7 +117,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( opts.iterations, len ); - bench( pkg+'::sorted,random:len='+len, opts, f ); + bench( format( '%s::sorted,random:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.sorted_random.ndarray.js index e2bb2bf69f1e..a2c206d63633 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.sorted_random.ndarray.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsort2hp = require( './../lib/ndarray.js' ); @@ -116,7 +117,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( opts.iterations, len ); - bench( pkg+'::sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::sorted,random:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.unsorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.unsorted_few_uniques.js index 91523ff79b4b..a7d923e7d8a6 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.unsorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.unsorted_few_uniques.js @@ -25,6 +25,7 @@ var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory; var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsort2hp = require( './../lib/main.js' ); @@ -122,7 +123,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::unsorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.unsorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.unsorted_few_uniques.ndarray.js index f74df89f955a..392ede2e3454 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.unsorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.unsorted_few_uniques.ndarray.js @@ -25,6 +25,7 @@ var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory; var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsort2hp = require( './../lib/ndarray.js' ); @@ -122,7 +123,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::unsorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.unsorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.unsorted_random.js index b1afca6eee5b..4b7b9bfc8812 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.unsorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.unsorted_random.js @@ -25,6 +25,7 @@ var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsort2hp = require( './../lib/main.js' ); @@ -119,7 +120,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,random:len='+len, opts, f ); + bench( format( '%s::unsorted,random:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.unsorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.unsorted_random.ndarray.js index 21e489d3ff6c..d434c058af08 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.unsorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsort2hp/benchmark/benchmark.unsorted_random.ndarray.js @@ -25,6 +25,7 @@ var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsort2hp = require( './../lib/ndarray.js' ); @@ -119,7 +120,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::unsorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.mostly_sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.mostly_sorted_few_uniques.js index 9ff29929bdd1..b6db64cf32da 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.mostly_sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.mostly_sorted_few_uniques.js @@ -25,6 +25,7 @@ var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsort2sh = require( './../lib/main.js' ); @@ -128,7 +129,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js index 432f9ff83860..4d081494f367 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js @@ -25,6 +25,7 @@ var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsort2sh = require( './../lib/ndarray.js' ); @@ -128,7 +129,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.mostly_sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.mostly_sorted_random.js index b0edd5515271..0c9cbd2dae0b 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.mostly_sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.mostly_sorted_random.js @@ -25,6 +25,7 @@ var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsort2sh = require( './../lib/main.js' ); @@ -119,7 +120,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,random:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,random:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.mostly_sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.mostly_sorted_random.ndarray.js index d819eac1088a..7a44c7dc9b75 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.mostly_sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.mostly_sorted_random.ndarray.js @@ -25,6 +25,7 @@ var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsort2sh = require( './../lib/ndarray.js' ); @@ -119,7 +120,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.rev_mostly_sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.rev_mostly_sorted_few_uniques.js index 8dbd08bcb078..f2649d2b21b8 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.rev_mostly_sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.rev_mostly_sorted_few_uniques.js @@ -25,6 +25,7 @@ var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsort2sh = require( './../lib/main.js' ); @@ -128,7 +129,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js index 073d50d5d6ce..559b12fbbb45 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js @@ -25,6 +25,7 @@ var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsort2sh = require( './../lib/ndarray.js' ); @@ -128,7 +129,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.rev_mostly_sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.rev_mostly_sorted_random.js index 4cd6a3bebbae..ed9544c384d1 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.rev_mostly_sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.rev_mostly_sorted_random.js @@ -25,6 +25,7 @@ var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsort2sh = require( './../lib/main.js' ); @@ -119,7 +120,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,random:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,random:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js index 4a14f7639cf0..ec44aa1d3274 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js @@ -25,6 +25,7 @@ var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsort2sh = require( './../lib/ndarray.js' ); @@ -119,7 +120,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.rev_sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.rev_sorted_few_uniques.js index d5ea4068ec4a..99bb58790cfb 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.rev_sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.rev_sorted_few_uniques.js @@ -25,6 +25,7 @@ var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory; var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsort2sh = require( './../lib/main.js' ); @@ -129,7 +130,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js index fad5305b418c..043cd7d6d0fd 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js @@ -25,6 +25,7 @@ var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory; var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsort2sh = require( './../lib/ndarray.js' ); @@ -129,7 +130,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.rev_sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.rev_sorted_random.js index 7920eff0a55c..379cdd0a5c35 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.rev_sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.rev_sorted_random.js @@ -25,6 +25,7 @@ var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsort2sh = require( './../lib/main.js' ); @@ -119,7 +120,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,random:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,random:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.rev_sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.rev_sorted_random.ndarray.js index e9d6462814bc..b35e1b0ed232 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.rev_sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.rev_sorted_random.ndarray.js @@ -25,6 +25,7 @@ var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsort2sh = require( './../lib/ndarray.js' ); @@ -119,7 +120,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.sorted_few_uniques.js index 8b139e28a921..16ce0054b688 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.sorted_few_uniques.js @@ -25,6 +25,7 @@ var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory; var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsort2sh = require( './../lib/main.js' ); @@ -127,7 +128,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( opts.iterations, len ); - bench( pkg+'::sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::sorted,few_uniques:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.sorted_few_uniques.ndarray.js index b4e023207e54..48e8675e75d8 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.sorted_few_uniques.ndarray.js @@ -25,6 +25,7 @@ var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory; var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsort2sh = require( './../lib/ndarray.js' ); @@ -127,7 +128,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( opts.iterations, len ); - bench( pkg+'::sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.sorted_random.js index 7c41c086e606..90864354f69c 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.sorted_random.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsort2sh = require( './../lib/main.js' ); @@ -116,7 +117,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( opts.iterations, len ); - bench( pkg+'::sorted,random:len='+len, opts, f ); + bench( format( '%s::sorted,random:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.sorted_random.ndarray.js index 1a7a7df96b43..81b596260b0b 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.sorted_random.ndarray.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsort2sh = require( './../lib/ndarray.js' ); @@ -116,7 +117,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( opts.iterations, len ); - bench( pkg+'::sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::sorted,random:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.unsorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.unsorted_few_uniques.js index ea0416921360..315336492837 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.unsorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.unsorted_few_uniques.js @@ -25,6 +25,7 @@ var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory; var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsort2sh = require( './../lib/main.js' ); @@ -122,7 +123,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::unsorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.unsorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.unsorted_few_uniques.ndarray.js index 8e99013340f7..49bacb971543 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.unsorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.unsorted_few_uniques.ndarray.js @@ -25,6 +25,7 @@ var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory; var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsort2sh = require( './../lib/ndarray.js' ); @@ -122,7 +123,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::unsorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.unsorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.unsorted_random.js index 2bc45e3b07f8..8db768595e55 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.unsorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.unsorted_random.js @@ -25,6 +25,7 @@ var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsort2sh = require( './../lib/main.js' ); @@ -119,7 +120,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,random:len='+len, opts, f ); + bench( format( '%s::unsorted,random:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.unsorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.unsorted_random.ndarray.js index fc21c3fc6995..78c867548780 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.unsorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsort2sh/benchmark/benchmark.unsorted_random.ndarray.js @@ -25,6 +25,7 @@ var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsort2sh = require( './../lib/ndarray.js' ); @@ -119,7 +120,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::unsorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.mostly_sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.mostly_sorted_few_uniques.js index ce16eb18c13f..0c04120b8605 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.mostly_sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.mostly_sorted_few_uniques.js @@ -25,6 +25,7 @@ var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsorthp = require( './../lib/main.js' ); @@ -122,7 +123,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js index f0a62808bca4..aa517af6d18e 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js @@ -25,6 +25,7 @@ var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsorthp = require( './../lib/ndarray.js' ); @@ -122,7 +123,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.mostly_sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.mostly_sorted_random.js index 027c7801c017..c57051bb19c8 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.mostly_sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.mostly_sorted_random.js @@ -25,6 +25,7 @@ var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsorthp = require( './../lib/main.js' ); @@ -113,7 +114,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,random:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,random:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.mostly_sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.mostly_sorted_random.ndarray.js index e3ac6749fee8..b5049b714002 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.mostly_sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.mostly_sorted_random.ndarray.js @@ -25,6 +25,7 @@ var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsorthp = require( './../lib/ndarray.js' ); @@ -113,7 +114,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.rev_mostly_sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.rev_mostly_sorted_few_uniques.js index 0676f0f194a0..56aba9d86801 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.rev_mostly_sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.rev_mostly_sorted_few_uniques.js @@ -25,6 +25,7 @@ var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsorthp = require( './../lib/main.js' ); @@ -122,7 +123,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js index d93aceb5184b..0825f6b83047 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js @@ -25,6 +25,7 @@ var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsorthp = require( './../lib/ndarray.js' ); @@ -122,7 +123,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.rev_mostly_sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.rev_mostly_sorted_random.js index c9824e19dafc..9675b5000b17 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.rev_mostly_sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.rev_mostly_sorted_random.js @@ -25,6 +25,7 @@ var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsorthp = require( './../lib/main.js' ); @@ -113,7 +114,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,random:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,random:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js index 828f9a9889c5..8da44aec7d68 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js @@ -25,6 +25,7 @@ var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsorthp = require( './../lib/ndarray.js' ); @@ -113,7 +114,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.rev_sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.rev_sorted_few_uniques.js index ac9a2bc68963..381ddfe04b8f 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.rev_sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.rev_sorted_few_uniques.js @@ -25,6 +25,7 @@ var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory; var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsorthp = require( './../lib/main.js' ); @@ -123,7 +124,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js index c023baad57a2..7ce24172647c 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js @@ -25,6 +25,7 @@ var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory; var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsorthp = require( './../lib/ndarray.js' ); @@ -123,7 +124,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.rev_sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.rev_sorted_random.js index 1dc73496ce11..41463f30c155 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.rev_sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.rev_sorted_random.js @@ -25,6 +25,7 @@ var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsorthp = require( './../lib/main.js' ); @@ -113,7 +114,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,random:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,random:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.rev_sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.rev_sorted_random.ndarray.js index 90b9fad6e99f..b0bf12fa633c 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.rev_sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.rev_sorted_random.ndarray.js @@ -25,6 +25,7 @@ var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsorthp = require( './../lib/ndarray.js' ); @@ -113,7 +114,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.sorted_few_uniques.js index 1f7adcdb5385..6c800b6521b2 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.sorted_few_uniques.js @@ -25,6 +25,7 @@ var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory; var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsorthp = require( './../lib/main.js' ); @@ -123,7 +124,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::sorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.sorted_few_uniques.ndarray.js index deae64360064..2b3225e71399 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.sorted_few_uniques.ndarray.js @@ -25,6 +25,7 @@ var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory; var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsorthp = require( './../lib/ndarray.js' ); @@ -123,7 +124,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.sorted_random.js index 7355671c0c33..960f1c01a20e 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.sorted_random.js @@ -25,6 +25,7 @@ var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsorthp = require( './../lib/main.js' ); @@ -113,7 +114,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::sorted,random:len='+len, opts, f ); + bench( format( '%s::sorted,random:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.sorted_random.ndarray.js index 5b0d943f0e9b..fbdbb88f9e3d 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.sorted_random.ndarray.js @@ -25,6 +25,7 @@ var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsorthp = require( './../lib/ndarray.js' ); @@ -113,7 +114,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::sorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.unsorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.unsorted_few_uniques.js index 788dedcd9cb9..8a9cf15be3fb 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.unsorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.unsorted_few_uniques.js @@ -25,6 +25,7 @@ var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory; var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsorthp = require( './../lib/main.js' ); @@ -116,7 +117,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::unsorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.unsorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.unsorted_few_uniques.ndarray.js index da0fd8858244..9abe1a92d70a 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.unsorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.unsorted_few_uniques.ndarray.js @@ -25,6 +25,7 @@ var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory; var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsorthp = require( './../lib/ndarray.js' ); @@ -116,7 +117,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::unsorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.unsorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.unsorted_random.js index be36ea88d6bb..e1643d128ddf 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.unsorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.unsorted_random.js @@ -25,6 +25,7 @@ var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsorthp = require( './../lib/main.js' ); @@ -113,7 +114,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,random:len='+len, opts, f ); + bench( format( '%s::unsorted,random:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.unsorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.unsorted_random.ndarray.js index 8ef64b9ce8f0..331ffdddff32 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.unsorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsorthp/benchmark/benchmark.unsorted_random.ndarray.js @@ -25,6 +25,7 @@ var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsorthp = require( './../lib/ndarray.js' ); @@ -113,7 +114,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::unsorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.mostly_sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.mostly_sorted_few_uniques.js index 3c240ed0f04b..a57e2d62a83b 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.mostly_sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.mostly_sorted_few_uniques.js @@ -26,6 +26,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsortins = require( './../lib/main.js' ); @@ -124,7 +125,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js index 350680823350..86872dddfdea 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js @@ -26,6 +26,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsortins = require( './../lib/ndarray.js' ); @@ -124,7 +125,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.mostly_sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.mostly_sorted_random.js index 81096a4c8c63..40d431922a5b 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.mostly_sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.mostly_sorted_random.js @@ -26,6 +26,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsortins = require( './../lib/main.js' ); @@ -115,7 +116,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,random:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,random:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.mostly_sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.mostly_sorted_random.ndarray.js index fa0d868f3285..b6903f06e6be 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.mostly_sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.mostly_sorted_random.ndarray.js @@ -26,6 +26,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsortins = require( './../lib/ndarray.js' ); @@ -115,7 +116,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.rev_mostly_sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.rev_mostly_sorted_few_uniques.js index 2ef582e058ef..4dfd29662eda 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.rev_mostly_sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.rev_mostly_sorted_few_uniques.js @@ -26,6 +26,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsortins = require( './../lib/main.js' ); @@ -124,7 +125,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js index ff7c822b3d7e..f4b4eb392048 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js @@ -26,6 +26,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsortins = require( './../lib/ndarray.js' ); @@ -124,7 +125,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.rev_mostly_sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.rev_mostly_sorted_random.js index 48ec26bea1f2..ef7e8d4a4fd2 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.rev_mostly_sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.rev_mostly_sorted_random.js @@ -26,6 +26,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsortins = require( './../lib/main.js' ); @@ -115,7 +116,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,random:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,random:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js index 6049480d8238..2a0c8b4bb44d 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js @@ -26,6 +26,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsortins = require( './../lib/ndarray.js' ); @@ -115,7 +116,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.rev_sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.rev_sorted_few_uniques.js index 45cf9ef162fe..e4c10b471225 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.rev_sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.rev_sorted_few_uniques.js @@ -26,6 +26,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsortins = require( './../lib/main.js' ); @@ -125,7 +126,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js index aea1bb4aaef0..5c422daab8f4 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js @@ -26,6 +26,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsortins = require( './../lib/ndarray.js' ); @@ -125,7 +126,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.rev_sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.rev_sorted_random.js index 5bcf36489efe..bb351e6f2e39 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.rev_sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.rev_sorted_random.js @@ -26,6 +26,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsortins = require( './../lib/main.js' ); @@ -115,7 +116,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,random:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,random:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.rev_sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.rev_sorted_random.ndarray.js index 01e05ee535fc..0c2f2b27d6c4 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.rev_sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.rev_sorted_random.ndarray.js @@ -26,6 +26,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsortins = require( './../lib/ndarray.js' ); @@ -115,7 +116,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.sorted_few_uniques.js index fe2acc9e1743..4de3397572eb 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.sorted_few_uniques.js @@ -25,6 +25,7 @@ var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory; var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsortins = require( './../lib/main.js' ); @@ -121,7 +122,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( opts.iterations, len ); - bench( pkg+'::sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::sorted,few_uniques:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.sorted_few_uniques.ndarray.js index 52f993bbc6ba..5fb34ccfb511 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.sorted_few_uniques.ndarray.js @@ -25,6 +25,7 @@ var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory; var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsortins = require( './../lib/ndarray.js' ); @@ -121,7 +122,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( opts.iterations, len ); - bench( pkg+'::sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.sorted_random.js index c01f21359630..711e3a84e7b8 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.sorted_random.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsortins = require( './../lib/main.js' ); @@ -110,7 +111,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( opts.iterations, len ); - bench( pkg+'::sorted,random:len='+len, opts, f ); + bench( format( '%s::sorted,random:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.sorted_random.ndarray.js index 000ea4743db5..6424dd24ff9c 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.sorted_random.ndarray.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsortins = require( './../lib/ndarray.js' ); @@ -110,7 +111,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( opts.iterations, len ); - bench( pkg+'::sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::sorted,random:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.unsorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.unsorted_few_uniques.js index 81d8b13a8d3e..d039103e6458 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.unsorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.unsorted_few_uniques.js @@ -26,6 +26,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsortins = require( './../lib/main.js' ); @@ -118,7 +119,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::unsorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.unsorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.unsorted_few_uniques.ndarray.js index 3a9790700793..13c83eb19db0 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.unsorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.unsorted_few_uniques.ndarray.js @@ -26,6 +26,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsortins = require( './../lib/ndarray.js' ); @@ -118,7 +119,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::unsorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.unsorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.unsorted_random.js index 28b6e064e721..087296d22216 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.unsorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.unsorted_random.js @@ -26,6 +26,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsortins = require( './../lib/main.js' ); @@ -115,7 +116,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,random:len='+len, opts, f ); + bench( format( '%s::unsorted,random:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.unsorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.unsorted_random.ndarray.js index 829ecb9025d3..850f11e8760f 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.unsorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsortins/benchmark/benchmark.unsorted_random.ndarray.js @@ -26,6 +26,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var sqrt = require( '@stdlib/math/base/special/sqrt' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsortins = require( './../lib/ndarray.js' ); @@ -115,7 +116,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::unsorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( sqrt( iter ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.mostly_sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.mostly_sorted_few_uniques.js index 60510fe09c6e..09ec6b563578 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.mostly_sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.mostly_sorted_few_uniques.js @@ -25,6 +25,7 @@ var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsortsh = require( './../lib/main.js' ); @@ -122,7 +123,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js index c6cdf41695c7..7c247f234c9a 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.mostly_sorted_few_uniques.ndarray.js @@ -25,6 +25,7 @@ var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsortsh = require( './../lib/ndarray.js' ); @@ -122,7 +123,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.mostly_sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.mostly_sorted_random.js index b244962f8b92..d86276643c45 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.mostly_sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.mostly_sorted_random.js @@ -25,6 +25,7 @@ var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsortsh = require( './../lib/main.js' ); @@ -113,7 +114,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,random:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,random:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.mostly_sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.mostly_sorted_random.ndarray.js index d817773200f9..69d8dd1baf45 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.mostly_sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.mostly_sorted_random.ndarray.js @@ -25,6 +25,7 @@ var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsortsh = require( './../lib/ndarray.js' ); @@ -113,7 +114,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::mostly_sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::mostly_sorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.rev_mostly_sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.rev_mostly_sorted_few_uniques.js index 56d09ea6888f..afada2e1b566 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.rev_mostly_sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.rev_mostly_sorted_few_uniques.js @@ -25,6 +25,7 @@ var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsortsh = require( './../lib/main.js' ); @@ -122,7 +123,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js index cd6a0550d84b..1337f68670cc 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.rev_mostly_sorted_few_uniques.ndarray.js @@ -25,6 +25,7 @@ var uniform = require( '@stdlib/random/base/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsortsh = require( './../lib/ndarray.js' ); @@ -122,7 +123,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.rev_mostly_sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.rev_mostly_sorted_random.js index 28a61d11ef12..4616d4e585b0 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.rev_mostly_sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.rev_mostly_sorted_random.js @@ -25,6 +25,7 @@ var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsortsh = require( './../lib/main.js' ); @@ -113,7 +114,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,random:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,random:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js index 5f36a5a05950..34c064b8705d 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.rev_mostly_sorted_random.ndarray.js @@ -25,6 +25,7 @@ var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsortsh = require( './../lib/ndarray.js' ); @@ -113,7 +114,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_mostly_sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_mostly_sorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.rev_sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.rev_sorted_few_uniques.js index 2c0f193ba57e..350881cedabe 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.rev_sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.rev_sorted_few_uniques.js @@ -25,6 +25,7 @@ var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory; var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsortsh = require( './../lib/main.js' ); @@ -123,7 +124,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js index 5e6ba16467c3..d0690f45598f 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.rev_sorted_few_uniques.ndarray.js @@ -25,6 +25,7 @@ var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory; var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsortsh = require( './../lib/ndarray.js' ); @@ -123,7 +124,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.rev_sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.rev_sorted_random.js index 6e8547e5a271..1582f3b950dc 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.rev_sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.rev_sorted_random.js @@ -25,6 +25,7 @@ var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsortsh = require( './../lib/main.js' ); @@ -113,7 +114,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,random:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,random:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.rev_sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.rev_sorted_random.ndarray.js index 5089d95e1abe..7e49c4a3f8ac 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.rev_sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.rev_sorted_random.ndarray.js @@ -25,6 +25,7 @@ var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsortsh = require( './../lib/ndarray.js' ); @@ -113,7 +114,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::reverse_sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::reverse_sorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.sorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.sorted_few_uniques.js index 405e657713f7..cf623f47d8d6 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.sorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.sorted_few_uniques.js @@ -25,6 +25,7 @@ var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory; var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsortsh = require( './../lib/main.js' ); @@ -121,7 +122,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( opts.iterations, len ); - bench( pkg+'::sorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::sorted,few_uniques:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.sorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.sorted_few_uniques.ndarray.js index 445418fd2b0f..10ecad2493aa 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.sorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.sorted_few_uniques.ndarray.js @@ -25,6 +25,7 @@ var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory; var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsortsh = require( './../lib/ndarray.js' ); @@ -121,7 +122,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( opts.iterations, len ); - bench( pkg+'::sorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::sorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.sorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.sorted_random.js index 787820e7c6dc..652cbc71dfa3 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.sorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.sorted_random.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsortsh = require( './../lib/main.js' ); @@ -110,7 +111,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( opts.iterations, len ); - bench( pkg+'::sorted,random:len='+len, opts, f ); + bench( format( '%s::sorted,random:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.sorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.sorted_random.ndarray.js index 9f44199cf76a..babe003aca30 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.sorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.sorted_random.ndarray.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsortsh = require( './../lib/ndarray.js' ); @@ -110,7 +111,7 @@ function main() { 'iterations': 1e7 / len }; f = createBenchmark( opts.iterations, len ); - bench( pkg+'::sorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::sorted,random:ndarray:len=%d', pkg, len ), opts, f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.unsorted_few_uniques.js b/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.unsorted_few_uniques.js index 0b66934ee184..0d9784e461a3 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.unsorted_few_uniques.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.unsorted_few_uniques.js @@ -25,6 +25,7 @@ var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory; var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsortsh = require( './../lib/main.js' ); @@ -116,7 +117,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,few_uniques:len='+len, opts, f ); + bench( format( '%s::unsorted,few_uniques:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.unsorted_few_uniques.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.unsorted_few_uniques.ndarray.js index 8320bfff9204..60f067cf9855 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.unsorted_few_uniques.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.unsorted_few_uniques.ndarray.js @@ -25,6 +25,7 @@ var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ).factory; var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsortsh = require( './../lib/ndarray.js' ); @@ -116,7 +117,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,few_uniques:ndarray:len='+len, opts, f ); + bench( format( '%s::unsorted,few_uniques:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.unsorted_random.js b/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.unsorted_random.js index bf3220b8ad2f..0b33abe86013 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.unsorted_random.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.unsorted_random.js @@ -25,6 +25,7 @@ var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsortsh = require( './../lib/main.js' ); @@ -113,7 +114,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,random:len='+len, opts, f ); + bench( format( '%s::unsorted,random:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.unsorted_random.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.unsorted_random.ndarray.js index d813c1eeb28e..826d9a12aa26 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.unsorted_random.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsortsh/benchmark/benchmark.unsorted_random.ndarray.js @@ -25,6 +25,7 @@ var randu = require( '@stdlib/random/base/randu' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsortsh = require( './../lib/ndarray.js' ); @@ -113,7 +114,7 @@ function main() { opts = { 'iterations': iter }; - bench( pkg+'::unsorted,random:ndarray:len='+len, opts, f ); + bench( format( '%s::unsorted,random:ndarray:len=%d', pkg, len ), opts, f ); iter = floor( pow( iter, 3.0/4.0 ) ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsum/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/gsum/benchmark/benchmark.js index 4efcd7c0b80d..364d27e8046b 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsum/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsum/benchmark/benchmark.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsum = require( './../lib/main.js' ); @@ -95,7 +96,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsum/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsum/benchmark/benchmark.ndarray.js index fa5041e95e57..8bc9acb8dc02 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsum/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsum/benchmark/benchmark.ndarray.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsum = require( './../lib/ndarray.js' ); @@ -95,7 +96,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsumkbn/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/gsumkbn/benchmark/benchmark.js index 95b739669930..60e21d955562 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsumkbn/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsumkbn/benchmark/benchmark.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsumkbn = require( './../lib/main.js' ); @@ -95,7 +96,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsumkbn/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsumkbn/benchmark/benchmark.ndarray.js index 639eeb9eb6b3..9273a6196741 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsumkbn/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsumkbn/benchmark/benchmark.ndarray.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsumkbn = require( './../lib/ndarray.js' ); @@ -95,7 +96,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsumkbn2/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/gsumkbn2/benchmark/benchmark.js index 42ce6533ed44..37b46cc6bed9 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsumkbn2/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsumkbn2/benchmark/benchmark.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsumkbn2 = require( './../lib/main.js' ); @@ -95,7 +96,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsumkbn2/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsumkbn2/benchmark/benchmark.ndarray.js index 5097cda3209b..ab3326d5cb07 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsumkbn2/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsumkbn2/benchmark/benchmark.ndarray.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsumkbn2 = require( './../lib/ndarray.js' ); @@ -95,7 +96,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsumors/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/gsumors/benchmark/benchmark.js index 9bf5cfb3bf47..5c94e3f73177 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsumors/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsumors/benchmark/benchmark.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsumors = require( './../lib/main.js' ); @@ -95,7 +96,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':len='+len, f ); + bench( format( '%s:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gsumors/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gsumors/benchmark/benchmark.ndarray.js index 2c68b43ac7b2..4897a6b329b0 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/gsumors/benchmark/benchmark.ndarray.js +++ b/lib/node_modules/@stdlib/blas/ext/base/gsumors/benchmark/benchmark.ndarray.js @@ -24,6 +24,7 @@ var bench = require( '@stdlib/bench' ); var uniform = require( '@stdlib/random/array/uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var gsumors = require( './../lib/ndarray.js' ); @@ -95,7 +96,7 @@ function main() { for ( i = min; i <= max; i++ ) { len = pow( 10, i ); f = createBenchmark( len ); - bench( pkg+':ndarray:len='+len, f ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); } } diff --git a/lib/node_modules/@stdlib/blas/ext/base/gvander/README.md b/lib/node_modules/@stdlib/blas/ext/base/gvander/README.md new file mode 100644 index 000000000000..7ba7734aebd9 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/gvander/README.md @@ -0,0 +1,216 @@ + + +# gvander + +> Generate a Vandermonde matrix. + +
+ +
+ + + +
+ +## Usage + +```javascript +var gvander = require( '@stdlib/blas/ext/base/gvander' ); +``` + +#### gvander( order, mode, M, N, x, strideX, out, ldo ) + +Generates a Vandermonde matrix. + +```javascript +var x = [ 1.0, 2.0, 3.0 ]; +var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + +gvander( 'row-major', 1, 3, 3, x, 1, out, 3 ); +// out => [ 1.0, 1.0, 1.0, 1.0, 2.0, 4.0, 1.0, 3.0, 9.0 ] +``` + +The function has the following parameters: + +- **order**: row-major (C-style) or column-major (Fortran-style) order. +- **mode**: mode. If `mode < 0`, the function generates decreasing powers. If `mode > 0`, the function generates increasing powers. +- **M**: number of rows in `out` and number of indexed elements in `x`. +- **N**: number of columns in `out`. +- **x**: input [`Array`][mdn-array] or [`typed array`][mdn-typed-array]. +- **strideX**: stride length for `x`. +- **out**: output matrix. +- **ldo**: stride between successive contiguous vectors of the matrix `out` (a.k.a., leading dimension of the matrix `out`). + +Note that indexing is relative to the first index. To introduce an offset, use [`typed array`][mdn-typed-array] views. + + + +```javascript +var Float64Array = require( '@stdlib/array/float64' ); + +// Initial arrays: +var x0 = new Float64Array( [ 999.0, 1.0, 2.0, 3.0 ] ); +var out0 = new Float64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); + +// Create offset views: +var x1 = new Float64Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // start at 2nd element +var out1 = new Float64Array( out0.buffer, out0.BYTES_PER_ELEMENT*1 ); // start at 2nd element + +gvander( 'row-major', 1, 3, 3, x1, 1, out1, 3 ); +// out0 => [ 0.0, 1.0, 1.0, 1.0, 1.0, 2.0, 4.0, 1.0, 3.0, 9.0 ] +``` + +When the mode is positive, the matrix is generated such that + +```text +[ + 1 x_0^1 x_0^2 ... x_0^(N-1) + 1 x_1^1 x_1^2 ... x_1^(N-1) + ... +] +``` + +with increasing powers along the rows. + +When the mode is negative, the matrix is generated such that + +```text +[ + x_0^(N-1) ... x_0^2 x_0^1 1 + x_1^(N-1) ... x_1^2 x_1^1 1 + ... +] +``` + +with decreasing powers along the rows. + + + +#### gvander.ndarray( mode, M, N, x, strideX, offsetX, out, strideOut1, strideOut2, offsetOut ) + + + +Generates a Vandermonde matrix using alternative indexing semantics. + +```javascript +var x = [ 1.0, 2.0, 3.0 ]; +var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + +gvander.ndarray( 1, 3, 3, x, 1, 0, out, 3, 1, 0 ); +// out => [ 1.0, 1.0, 1.0, 1.0, 2.0, 4.0, 1.0, 3.0, 9.0 ] +``` + +The function has the following additional parameters: + +- **offsetX**: starting index for `x`. +- **strideOut1**: stride length for the first dimension of `out`. +- **strideOut2**: stride length for the second dimension of `out`. +- **offsetOut**: starting index for `out`. + +While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying buffer, offset parameters support indexing semantics based on starting indices. For example, to use every other element from the input array starting from the second element: + +```javascript +var x = [ 0.0, 1.0, 0.0, 2.0, 0.0, 3.0 ]; +var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + +gvander.ndarray( 1, 3, 3, x, 2, 1, out, 3, 1, 0 ); +// out => [ 1.0, 1.0, 1.0, 1.0, 2.0, 4.0, 1.0, 3.0, 9.0 ] +``` + +
+ + + +
+ +## Notes + +- If `M <= 0` or `N <= 0`, both functions return `out` unchanged. +- Both functions support array-like objects having getter and setter accessors for array element access (e.g., [`@stdlib/array/base/accessor`][@stdlib/array/base/accessor]). +- Depending on the environment, the typed versions ([`dvander`][@stdlib/blas/ext/base/dvander], [`svander`][@stdlib/blas/ext/base/svander], etc.) are likely to be significantly more performant. + +
+ + + +
+ +## Examples + + + +```javascript +var discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); +var zeros = require( '@stdlib/array/zeros' ); +var gvander = require( '@stdlib/blas/ext/base/gvander' ); + +var M = 3; +var N = 4; + +var x = discreteUniform( M, 0, 10, { + 'dtype': 'generic' +}); +var out = zeros( M*N, 'generic' ); +console.log( x ); + +gvander( 'row-major', -1, M, N, x, 1, out, N ); +console.log( out ); +``` + +
+ + + +
+ +
+ + + + + + + + + + + + + + diff --git a/lib/node_modules/@stdlib/blas/ext/base/gvander/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/gvander/benchmark/benchmark.js new file mode 100644 index 000000000000..8d9965229356 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/gvander/benchmark/benchmark.js @@ -0,0 +1,106 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var bench = require( '@stdlib/bench' ); +var uniform = require( '@stdlib/random/array/uniform' ); +var isnan = require( '@stdlib/math/base/assert/is-nan' ); +var pow = require( '@stdlib/math/base/special/pow' ); +var zeros = require( '@stdlib/array/zeros' ); +var format = require( '@stdlib/string/format' ); +var pkg = require( './../package.json' ).name; +var gvander = require( './../lib/main.js' ); + + +// VARIABLES // + +var options = { + 'dtype': 'generic' +}; + + +// FUNCTIONS // + +/** +* Creates a benchmark function. +* +* @private +* @param {PositiveInteger} len - array length +* @returns {Function} benchmark function +*/ +function createBenchmark( len ) { + var out = zeros( len * len, options.dtype ); + var x = uniform( len, -10, 10, options ); + return benchmark; + + /** + * Benchmark function. + * + * @private + * @param {Benchmark} b - benchmark instance + */ + function benchmark( b ) { + var v; + var i; + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + x[ 0 ] += 0.1; + v = gvander( 'row-major', 1, len, len, x, 1, out, len ); + if ( isnan( v[ i%v.length ] ) ) { + b.fail( 'should not return NaN' ); + } + } + b.toc(); + if ( isnan( v[ i%v.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 = 3; // 10^max + + for ( i = min; i <= max; i++ ) { + len = pow( 10, i ); + f = createBenchmark( len ); + bench( format( '%s:len=%d', pkg, len ), f ); + } +} + +main(); diff --git a/lib/node_modules/@stdlib/blas/ext/base/gvander/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gvander/benchmark/benchmark.ndarray.js new file mode 100644 index 000000000000..0f83aae16e71 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/gvander/benchmark/benchmark.ndarray.js @@ -0,0 +1,106 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var bench = require( '@stdlib/bench' ); +var uniform = require( '@stdlib/random/array/uniform' ); +var isnan = require( '@stdlib/math/base/assert/is-nan' ); +var pow = require( '@stdlib/math/base/special/pow' ); +var zeros = require( '@stdlib/array/zeros' ); +var format = require( '@stdlib/string/format' ); +var pkg = require( './../package.json' ).name; +var gvander = require( './../lib/ndarray.js' ); + + +// VARIABLES // + +var options = { + 'dtype': 'generic' +}; + + +// FUNCTIONS // + +/** +* Creates a benchmark function. +* +* @private +* @param {PositiveInteger} len - array length +* @returns {Function} benchmark function +*/ +function createBenchmark( len ) { + var out = zeros( len * len, options.dtype ); + var x = uniform( len, -10, 10, options ); + return benchmark; + + /** + * Benchmark function. + * + * @private + * @param {Benchmark} b - benchmark instance + */ + function benchmark( b ) { + var v; + var i; + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + x[ 0 ] += 0.1; + v = gvander( 1, len, len, x, 1, 0, out, len, 1, 0 ); + if ( isnan( v[ i%v.length ] ) ) { + b.fail( 'should not return NaN' ); + } + } + b.toc(); + if ( isnan( v[ i%v.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 = 3; // 10^max + + for ( i = min; i <= max; i++ ) { + len = pow( 10, i ); + f = createBenchmark( len ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); + } +} + +main(); diff --git a/lib/node_modules/@stdlib/blas/ext/base/gvander/docs/repl.txt b/lib/node_modules/@stdlib/blas/ext/base/gvander/docs/repl.txt new file mode 100644 index 000000000000..9b065eec2a0e --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/gvander/docs/repl.txt @@ -0,0 +1,136 @@ + +{{alias}}( order, mode, M, N, x, strideX, out, ldo ) + Generates a Vandermonde matrix. + + When the mode is positive, the matrix is generated such that + + [ + 1 x_0^1 x_0^2 ... x_0^(N-1) + 1 x_1^1 x_1^2 ... x_1^(N-1) + ... + ] + + with increasing powers along the rows. + + When the mode is negative, the matrix is generated such that + + [ + x_0^(N-1) ... x_0^2 x_0^1 1 + x_1^(N-1) ... x_1^2 x_1^1 1 + ... + ] + + with decreasing powers along the rows. + + If `M <= 0` or `N <= 0`, the function returns the output matrix unchanged. + + Parameters + ---------- + order: string + Row-major (C-style) or column-major (Fortran-style) order. + + mode: integer + Mode. If `mode < 0`, the function generates decreasing powers. If + `mode > 0`, the function generates increasing powers. + + M: integer + Number of rows in `out` and number of indexed elements in `x`. + + N: integer + Number of columns in `out`. + + x: Array|TypedArray + Input array. + + strideX: integer + Stride length for `x`. + + out: Array|TypedArray + Output matrix. + + ldo: integer + Stride between successive contiguous vectors of the matrix `out` + (a.k.a., leading dimension of the matrix `out`). + + Returns + ------- + out: Array|TypedArray + Output matrix. + + Examples + -------- + // Standard Usage: + > var x = [ 1.0, 2.0, 3.0 ]; + > var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + > {{alias}}( 'row-major', 1, 3, 3, x, 1, out, 3 ) + [ 1.0, 1.0, 1.0, 1.0, 2.0, 4.0, 1.0, 3.0, 9.0 ] + + // Decreasing mode: + > x = [ 1.0, 2.0, 3.0 ]; + > out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + > {{alias}}( 'row-major', -1, 3, 3, x, 1, out, 3 ) + [ 1.0, 1.0, 1.0, 4.0, 2.0, 1.0, 9.0, 3.0, 1.0 ] + + +{{alias}}.ndarray( mode, M, N, x, strideX, offsetX, out, so1, so2, oo ) + Generates a Vandermonde matrix 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 + ---------- + mode: integer + Mode. If `mode < 0`, the function generates decreasing powers. If + `mode > 0`, the function generates increasing powers. + + M: integer + Number of rows in `out` and number of indexed elements in `x`. + + N: integer + Number of columns in `out`. + + x: Array|TypedArray + Input array. + + strideX: integer + Stride length for `x`. + + offsetX: integer + Starting index for `x`. + + out: Array|TypedArray + Output matrix. + + so1: integer + Stride length for the first dimension of `out`. + + so2: integer + Stride length for the second dimension of `out`. + + oo: integer + Starting index for `out`. + + Returns + ------- + out: Array|TypedArray + Output matrix. + + Examples + -------- + // Standard Usage: + > var x = [ 1.0, 2.0, 3.0 ]; + > var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + > {{alias}}.ndarray( 1, 3, 3, x, 1, 0, out, 3, 1, 0 ) + [ 1.0, 1.0, 1.0, 1.0, 2.0, 4.0, 1.0, 3.0, 9.0 ] + + // Advanced indexing: + > x = [ 0.0, 1.0, 0.0, 2.0, 0.0, 3.0 ]; + > out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + > {{alias}}.ndarray( 1, 3, 3, x, 2, 1, out, 3, 1, 0 ) + [ 1.0, 1.0, 1.0, 1.0, 2.0, 4.0, 1.0, 3.0, 9.0 ] + + See Also + -------- + diff --git a/lib/node_modules/@stdlib/blas/ext/base/gvander/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/ext/base/gvander/docs/types/index.d.ts new file mode 100644 index 000000000000..ae5ca2b39871 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/gvander/docs/types/index.d.ts @@ -0,0 +1,119 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2026 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 } from '@stdlib/types/blas'; +import { NumericArray, Collection, AccessorArrayLike } from '@stdlib/types/array'; + +/** +* Input array. +*/ +type InputArray = NumericArray | Collection | AccessorArrayLike; + +/** +* Output matrix. +*/ +type OutputArray = NumericArray | Collection | AccessorArrayLike; + +/** +* Interface describing `gvander`. +*/ +interface Routine { + /** + * Generates a Vandermonde matrix. + * + * @param order - storage layout + * @param mode - mode indicating whether to generate increasing or decreasing powers + * @param M - number of rows in `out` + * @param N - number of columns in `out` + * @param x - input array + * @param strideX - stride length for `x` + * @param out - output matrix + * @param ldo - stride between successive contiguous vectors of the matrix `out` (a.k.a., leading dimension of the matrix `out`) + * @returns output matrix + * + * @example + * var x = [ 1.0, 2.0, 3.0 ]; + * var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + * + * gvander( 'row-major', 1, 3, 3, x, 1, out, 3 ); + * // out => [ 1.0, 1.0, 1.0, 1.0, 2.0, 4.0, 1.0, 3.0, 9.0 ] + */ + ( order: Layout, mode: number, M: number, N: number, x: InputArray, strideX: number, out: T, ldo: number ): T; + + /** + * Generates a Vandermonde matrix using alternative indexing semantics. + * + * @param mode - mode indicating whether to generate increasing or decreasing powers + * @param M - number of rows in `out` + * @param N - number of columns in `out` + * @param x - input array + * @param strideX - stride length for `x` + * @param offsetX - starting index for `x` + * @param out - output matrix + * @param strideOut1 - stride length for the first dimension of `out` + * @param strideOut2 - stride length for the second dimension of `out` + * @param offsetOut - starting index for `out` + * @returns output matrix + * + * @example + * var x = [ 1.0, 2.0, 3.0 ]; + * var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + * + * gvander.ndarray( 1, 3, 3, x, 1, 0, out, 3, 1, 0 ); + * // out => [ 1.0, 1.0, 1.0, 1.0, 2.0, 4.0, 1.0, 3.0, 9.0 ] + */ + ndarray( mode: number, M: number, N: number, x: InputArray, strideX: number, offsetX: number, out: T, strideOut1: number, strideOut2: number, offsetOut: number ): T; +} + +/** +* Generates a Vandermonde matrix. +* +* @param order - storage layout +* @param mode - mode indicating whether to generate increasing or decreasing powers +* @param M - number of rows in `out` +* @param N - number of columns in `out` +* @param x - input array +* @param strideX - stride length for `x` +* @param out - output matrix +* @param ldo - stride between successive contiguous vectors of the matrix `out` (a.k.a., leading dimension of the matrix `out`) +* @returns output matrix +* +* @example +* var x = [ 1.0, 2.0, 3.0 ]; +* var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; +* +* gvander( 'row-major', 1, 3, 3, x, 1, out, 3 ); +* // out => [ 1.0, 1.0, 1.0, 1.0, 2.0, 4.0, 1.0, 3.0, 9.0 ] +* +* @example +* var x = [ 1.0, 2.0, 3.0 ]; +* var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; +* +* gvander.ndarray( 1, 3, 3, x, 1, 0, out, 3, 1, 0 ); +* // out => [ 1.0, 1.0, 1.0, 1.0, 2.0, 4.0, 1.0, 3.0, 9.0 ] +*/ +declare var gvander: Routine; + + +// EXPORTS // + +export = gvander; diff --git a/lib/node_modules/@stdlib/blas/ext/base/gvander/docs/types/test.ts b/lib/node_modules/@stdlib/blas/ext/base/gvander/docs/types/test.ts new file mode 100644 index 000000000000..70e940864733 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/gvander/docs/types/test.ts @@ -0,0 +1,341 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2026 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 AccessorArray = require( '@stdlib/array/base/accessor' ); +import gvander = require( './index' ); + + +// TESTS // + +// The function returns a numeric array... +{ + const x = new Float64Array( 10 ); + const out = new Float64Array( 30 ); + + gvander( 'row-major', 1, 10, 3, x, 1, out, 3 ); // $ExpectType Float64Array + gvander( 'row-major', 1, 10, 3, new AccessorArray( x ), 1, new AccessorArray( out ), 3 ); // $ExpectType AccessorArray +} + +// The compiler throws an error if the function is provided a first argument which is not a valid order... +{ + const x = new Float64Array( 10 ); + const out = new Float64Array( 30 ); + + gvander( '10', 1, 10, 3, x, 1, out, 3 ); // $ExpectError + gvander( true, 1, 10, 3, x, 1, out, 3 ); // $ExpectError + gvander( false, 1, 10, 3, x, 1, out, 3 ); // $ExpectError + gvander( null, 1, 10, 3, x, 1, out, 3 ); // $ExpectError + gvander( undefined, 1, 10, 3, x, 1, out, 3 ); // $ExpectError + gvander( [], 1, 10, 3, x, 1, out, 3 ); // $ExpectError + gvander( {}, 1, 10, 3, x, 1, out, 3 ); // $ExpectError + gvander( ( x: number ): number => x, 1, 10, 3, x, 1, out, 3 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a second argument which is not a number... +{ + const x = new Float64Array( 10 ); + const out = new Float64Array( 30 ); + + gvander( 'row-major', '10', 10, 3, x, 1, out, 3 ); // $ExpectError + gvander( 'row-major', true, 10, 3, x, 1, out, 3 ); // $ExpectError + gvander( 'row-major', false, 10, 3, x, 1, out, 3 ); // $ExpectError + gvander( 'row-major', null, 10, 3, x, 1, out, 3 ); // $ExpectError + gvander( 'row-major', undefined, 10, 3, x, 1, out, 3 ); // $ExpectError + gvander( 'row-major', [], 10, 3, x, 1, out, 3 ); // $ExpectError + gvander( 'row-major', {}, 10, 3, x, 1, out, 3 ); // $ExpectError + gvander( 'row-major', ( x: number ): number => x, 10, 3, x, 1, out, 3 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a third argument which is not a number... +{ + const x = new Float64Array( 10 ); + const out = new Float64Array( 30 ); + + gvander( 'row-major', 1, '10', 3, x, 1, out, 3 ); // $ExpectError + gvander( 'row-major', 1, true, 3, x, 1, out, 3 ); // $ExpectError + gvander( 'row-major', 1, false, 3, x, 1, out, 3 ); // $ExpectError + gvander( 'row-major', 1, null, 3, x, 1, out, 3 ); // $ExpectError + gvander( 'row-major', 1, undefined, 3, x, 1, out, 3 ); // $ExpectError + gvander( 'row-major', 1, [], 3, x, 1, out, 3 ); // $ExpectError + gvander( 'row-major', 1, {}, 3, x, 1, out, 3 ); // $ExpectError + gvander( 'row-major', 1, ( x: number ): number => x, 3, x, 1, out, 3 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a fourth argument which is not a number... +{ + const x = new Float64Array( 10 ); + const out = new Float64Array( 30 ); + + gvander( 'row-major', 1, 10, '10', x, 1, out, 3 ); // $ExpectError + gvander( 'row-major', 1, 10, true, x, 1, out, 3 ); // $ExpectError + gvander( 'row-major', 1, 10, false, x, 1, out, 3 ); // $ExpectError + gvander( 'row-major', 1, 10, null, x, 1, out, 3 ); // $ExpectError + gvander( 'row-major', 1, 10, undefined, x, 1, out, 3 ); // $ExpectError + gvander( 'row-major', 1, 10, [], x, 1, out, 3 ); // $ExpectError + gvander( 'row-major', 1, 10, {}, x, 1, out, 3 ); // $ExpectError + gvander( 'row-major', 1, 10, ( x: number ): number => x, x, 1, out, 3 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a fifth argument which is not a numeric array... +{ + const out = new Float64Array( 30 ); + + gvander( 'row-major', 1, 10, 3, '10', 1, out, 3 ); // $ExpectError + gvander( 'row-major', 1, 10, 3, true, 1, out, 3 ); // $ExpectError + gvander( 'row-major', 1, 10, 3, false, 1, out, 3 ); // $ExpectError + gvander( 'row-major', 1, 10, 3, null, 1, out, 3 ); // $ExpectError + gvander( 'row-major', 1, 10, 3, undefined, 1, out, 3 ); // $ExpectError + gvander( 'row-major', 1, 10, 3, [ '1' ], 1, out, 3 ); // $ExpectError + gvander( 'row-major', 1, 10, 3, {}, 1, out, 3 ); // $ExpectError + gvander( 'row-major', 1, 10, 3, ( x: number ): number => x, 1, out, 3 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a sixth argument which is not a number... +{ + const x = new Float64Array( 10 ); + const out = new Float64Array( 30 ); + + gvander( 'row-major', 1, 10, 3, x, '10', out, 3 ); // $ExpectError + gvander( 'row-major', 1, 10, 3, x, true, out, 3 ); // $ExpectError + gvander( 'row-major', 1, 10, 3, x, false, out, 3 ); // $ExpectError + gvander( 'row-major', 1, 10, 3, x, null, out, 3 ); // $ExpectError + gvander( 'row-major', 1, 10, 3, x, undefined, out, 3 ); // $ExpectError + gvander( 'row-major', 1, 10, 3, x, [], out, 3 ); // $ExpectError + gvander( 'row-major', 1, 10, 3, x, {}, out, 3 ); // $ExpectError + gvander( 'row-major', 1, 10, 3, x, ( x: number ): number => x, out, 3 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a seventh argument which is not a numeric array... +{ + const x = new Float64Array( 10 ); + + gvander( 'row-major', 1, 10, 3, x, 1, '10', 3 ); // $ExpectError + gvander( 'row-major', 1, 10, 3, x, 1, true, 3 ); // $ExpectError + gvander( 'row-major', 1, 10, 3, x, 1, false, 3 ); // $ExpectError + gvander( 'row-major', 1, 10, 3, x, 1, null, 3 ); // $ExpectError + gvander( 'row-major', 1, 10, 3, x, 1, undefined, 3 ); // $ExpectError + gvander( 'row-major', 1, 10, 3, x, 1, [ '1' ], 3 ); // $ExpectError + gvander( 'row-major', 1, 10, 3, x, 1, {}, 3 ); // $ExpectError + gvander( 'row-major', 1, 10, 3, x, 1, ( x: number ): number => x, 3 ); // $ExpectError +} + +// The compiler throws an error if the function is provided an eighth argument which is not a number... +{ + const x = new Float64Array( 10 ); + const out = new Float64Array( 30 ); + + gvander( 'row-major', 1, 10, 3, x, 1, out, '10' ); // $ExpectError + gvander( 'row-major', 1, 10, 3, x, 1, out, true ); // $ExpectError + gvander( 'row-major', 1, 10, 3, x, 1, out, false ); // $ExpectError + gvander( 'row-major', 1, 10, 3, x, 1, out, null ); // $ExpectError + gvander( 'row-major', 1, 10, 3, x, 1, out, undefined ); // $ExpectError + gvander( 'row-major', 1, 10, 3, x, 1, out, [] ); // $ExpectError + gvander( 'row-major', 1, 10, 3, x, 1, out, {} ); // $ExpectError + gvander( 'row-major', 1, 10, 3, x, 1, out, ( x: number ): number => x ); // $ExpectError +} + +// The compiler throws an error if the function is provided an unsupported number of arguments... +{ + const x = new Float64Array( 10 ); + const out = new Float64Array( 30 ); + + gvander(); // $ExpectError + gvander( 'row-major' ); // $ExpectError + gvander( 'row-major', 1 ); // $ExpectError + gvander( 'row-major', 1, 10 ); // $ExpectError + gvander( 'row-major', 1, 10, 3 ); // $ExpectError + gvander( 'row-major', 1, 10, 3, x ); // $ExpectError + gvander( 'row-major', 1, 10, 3, x, 1 ); // $ExpectError + gvander( 'row-major', 1, 10, 3, x, 1, out ); // $ExpectError + gvander( 'row-major', 1, 10, 3, x, 1, out, 3, 10 ); // $ExpectError +} + +// Attached to main export is an `ndarray` method which returns a numeric array... +{ + const x = new Float64Array( 10 ); + const out = new Float64Array( 30 ); + + gvander.ndarray( 1, 10, 3, x, 1, 0, out, 3, 1, 0 ); // $ExpectType Float64Array + gvander.ndarray( 1, 10, 3, new AccessorArray( x ), 1, 0, new AccessorArray( out ), 3, 1, 0 ); // $ExpectType AccessorArray +} + +// The compiler throws an error if the `ndarray` method is provided a first argument which is not a number... +{ + const x = new Float64Array( 10 ); + const out = new Float64Array( 30 ); + + gvander.ndarray( '10', 10, 3, x, 1, 0, out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( true, 10, 3, x, 1, 0, out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( false, 10, 3, x, 1, 0, out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( null, 10, 3, x, 1, 0, out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( undefined, 10, 3, x, 1, 0, out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( [], 10, 3, x, 1, 0, out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( {}, 10, 3, x, 1, 0, out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( ( x: number ): number => x, 10, 3, x, 1, 0, out, 3, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the `ndarray` method is provided a second argument which is not a number... +{ + const x = new Float64Array( 10 ); + const out = new Float64Array( 30 ); + + gvander.ndarray( 1, '10', 3, x, 1, 0, out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, true, 3, x, 1, 0, out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, false, 3, x, 1, 0, out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, null, 3, x, 1, 0, out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, undefined, 3, x, 1, 0, out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, [], 3, x, 1, 0, out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, {}, 3, x, 1, 0, out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, ( x: number ): number => x, 3, x, 1, 0, out, 3, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the `ndarray` method is provided a third argument which is not a number... +{ + const x = new Float64Array( 10 ); + const out = new Float64Array( 30 ); + + gvander.ndarray( 1, 10, '10', x, 1, 0, out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, true, x, 1, 0, out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, false, x, 1, 0, out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, null, x, 1, 0, out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, undefined, x, 1, 0, out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, [], x, 1, 0, out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, {}, x, 1, 0, out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, ( x: number ): number => x, x, 1, 0, out, 3, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the `ndarray` method is provided a fourth argument which is not a numeric array... +{ + const out = new Float64Array( 30 ); + + gvander.ndarray( 1, 10, 3, '10', 1, 0, out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, true, 1, 0, out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, false, 1, 0, out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, null, 1, 0, out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, undefined, 1, 0, out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, [ '1' ], 1, 0, out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, {}, 1, 0, out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, ( x: number ): number => x, 1, 0, out, 3, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the `ndarray` method is provided a fifth argument which is not a number... +{ + const x = new Float64Array( 10 ); + const out = new Float64Array( 30 ); + + gvander.ndarray( 1, 10, 3, x, '10', 0, out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, true, 0, out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, false, 0, out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, null, 0, out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, undefined, 0, out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, [], 0, out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, {}, 0, out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, ( x: number ): number => x, 0, out, 3, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the `ndarray` method is provided a sixth argument which is not a number... +{ + const x = new Float64Array( 10 ); + const out = new Float64Array( 30 ); + + gvander.ndarray( 1, 10, 3, x, 1, '10', out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, 1, true, out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, 1, false, out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, 1, null, out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, 1, undefined, out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, 1, [], out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, 1, {}, out, 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, 1, ( x: number ): number => x, out, 3, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the `ndarray` method is provided a seventh argument which is not a numeric array... +{ + const x = new Float64Array( 10 ); + + gvander.ndarray( 1, 10, 3, x, 1, 0, '10', 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, 1, 0, true, 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, 1, 0, false, 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, 1, 0, null, 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, 1, 0, undefined, 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, 1, 0, [ '1' ], 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, 1, 0, {}, 3, 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, 1, 0, ( x: number ): number => x, 3, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the `ndarray` method is provided an eighth argument which is not a number... +{ + const x = new Float64Array( 10 ); + const out = new Float64Array( 30 ); + + gvander.ndarray( 1, 10, 3, x, 1, 0, out, '10', 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, 1, 0, out, true, 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, 1, 0, out, false, 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, 1, 0, out, null, 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, 1, 0, out, undefined, 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, 1, 0, out, [], 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, 1, 0, out, {}, 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, 1, 0, out, ( x: number ): number => x, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the `ndarray` method is provided a ninth argument which is not a number... +{ + const x = new Float64Array( 10 ); + const out = new Float64Array( 30 ); + + gvander.ndarray( 1, 10, 3, x, 1, 0, out, 3, '10', 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, 1, 0, out, 3, true, 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, 1, 0, out, 3, false, 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, 1, 0, out, 3, null, 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, 1, 0, out, 3, undefined, 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, 1, 0, out, 3, [], 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, 1, 0, out, 3, {}, 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, 1, 0, out, 3, ( x: number ): number => x, 0 ); // $ExpectError +} + +// The compiler throws an error if the `ndarray` method is provided a tenth argument which is not a number... +{ + const x = new Float64Array( 10 ); + const out = new Float64Array( 30 ); + + gvander.ndarray( 1, 10, 3, x, 1, 0, out, 3, 1, '10' ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, 1, 0, out, 3, 1, true ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, 1, 0, out, 3, 1, false ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, 1, 0, out, 3, 1, null ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, 1, 0, out, 3, 1, undefined ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, 1, 0, out, 3, 1, [] ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, 1, 0, out, 3, 1, {} ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, 1, 0, out, 3, 1, ( x: number ): number => x ); // $ExpectError +} + +// The compiler throws an error if the `ndarray` method is provided an unsupported number of arguments... +{ + const x = new Float64Array( 10 ); + const out = new Float64Array( 30 ); + + gvander.ndarray(); // $ExpectError + gvander.ndarray( 1 ); // $ExpectError + gvander.ndarray( 1, 10 ); // $ExpectError + gvander.ndarray( 1, 10, 3 ); // $ExpectError + gvander.ndarray( 1, 10, 3, x ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, 1 ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, 1, 0 ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, 1, 0, out ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, 1, 0, out, 3 ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, 1, 0, out, 3, 1 ); // $ExpectError + gvander.ndarray( 1, 10, 3, x, 1, 0, out, 3, 1, 0, 10 ); // $ExpectError +} diff --git a/lib/node_modules/@stdlib/blas/ext/base/gvander/examples/index.js b/lib/node_modules/@stdlib/blas/ext/base/gvander/examples/index.js new file mode 100644 index 000000000000..e7115e5918d3 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/gvander/examples/index.js @@ -0,0 +1,35 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 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 zeros = require( '@stdlib/array/zeros' ); +var gvander = require( './../lib' ); + +var M = 3; +var N = 4; + +var x = discreteUniform( M, 0, 10, { + 'dtype': 'generic' +}); +var out = zeros( M*N, 'generic' ); +console.log( x ); + +gvander( 'row-major', -1, M, N, x, 1, out, N ); +console.log( out ); diff --git a/lib/node_modules/@stdlib/blas/ext/base/gvander/lib/accessors.js b/lib/node_modules/@stdlib/blas/ext/base/gvander/lib/accessors.js new file mode 100644 index 000000000000..9fe455991033 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/gvander/lib/accessors.js @@ -0,0 +1,168 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 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 isRowMajor = require( '@stdlib/ndarray/base/assert/is-row-major' ); +var gfill = require( '@stdlib/blas/ext/base/gfill' ).ndarray; + + +// MAIN // + +/** +* Generates a Vandermonde matrix using accessor arrays. +* +* ## Notes +* +* - The implementation uses recursive multiplication to generate successive powers, which carries risk of additional accumulated floating-point error; however, for most use cases, such additional error should be negligible and not problematic. +* +* @private +* @param {integer} mode - mode indicating whether to generate increasing or decreasing powers +* @param {NonNegativeInteger} M - number of rows in `out` +* @param {NonNegativeInteger} N - number of columns in `out` +* @param {Object} x - input array object +* @param {integer} sx - stride length for `x` +* @param {NonNegativeInteger} ox - starting index for `x` +* @param {Object} out - output matrix object +* @param {integer} so1 - stride length for the first dimension of `out` +* @param {integer} so2 - stride length for the second dimension of `out` +* @param {NonNegativeInteger} oo - starting index for `out` +* @returns {Collection} output matrix +* +* @example +* var toAccessorArray = require( '@stdlib/array/base/to-accessor-array' ); +* var arraylike2object = require( '@stdlib/array/base/arraylike2object' ); +* +* var x = [ 1.0, 2.0, 3.0 ]; +* var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; +* +* gvander( 1, 3, 3, arraylike2object( toAccessorArray( x ) ), 1, 0, arraylike2object( toAccessorArray( out ) ), 3, 1, 0 ); +* +* console.log( out ); +* // => [ 1.0, 1.0, 1.0, 1.0, 2.0, 4.0, 1.0, 3.0, 9.0 ] +*/ +function gvander( mode, M, N, x, sx, ox, out, so1, so2, oo ) { + var xbuf; + var obuf; + var xget; + var oget; + var oset; + var tmp; + var do0; + var do1; + var S0; + var S1; + var io; + var ix; + var i0; + var i1; + var v; + + xbuf = x.data; + obuf = out.data; + xget = x.accessors[ 0 ]; + oget = out.accessors[ 0 ]; + oset = out.accessors[ 1 ]; + + // Note on variable naming convention: S#, do#, io, i# where # corresponds to the loop number, with `0` being the innermost loop... + if ( isRowMajor( [ so1, so2 ] ) ) { + S0 = N; + S1 = M; + do0 = so2; + do1 = so1 - ( S0*so2 ); + + // Increasing: x^0, x^1, ..., x^(N-1) + if ( mode > 0 ) { + io = oo; + ix = ox; + for ( i1 = 0; i1 < S1; i1++ ) { + v = xget( xbuf, ix ); + oset( obuf, io, 1.0 ); + tmp = 1.0; + io += do0; + for ( i0 = 1; i0 < S0; i0++ ) { + tmp *= v; + oset( obuf, io, tmp ); + io += do0; + } + ix += sx; + io += do1; + } + return obuf; + } + // Decreasing: x^(N-1), x^(N-2), ..., x^0 + io = oo + ( ( S1-1 ) * so1 ) + ( ( S0-1 ) * so2 ); + ix = ox + ( ( S1-1 ) * sx ); + for ( i1 = S1-1; i1 >= 0; i1-- ) { + v = xget( xbuf, ix ); + oset( obuf, io, 1.0 ); + tmp = 1.0; + io -= do0; + for ( i0 = 1; i0 < S0; i0++ ) { + tmp *= v; + oset( obuf, io, tmp ); + io -= do0; + } + ix -= sx; + io -= do1; + } + return obuf; + } + // Column-major... + S0 = M; + S1 = N; + do0 = so1; + do1 = so2 - ( S0*so1 ); + + // Increasing: column j contains x^j + if ( mode > 0 ) { + io = oo; + gfill( S0, 1.0, obuf, do0, io ); + io += so2; + for ( i1 = 1; i1 < S1; i1++ ) { + ix = ox; + for ( i0 = 0; i0 < S0; i0++ ) { + oset( obuf, io, oget( obuf, io - so2 ) * xget( xbuf, ix ) ); + ix += sx; + io += do0; + } + io += do1; + } + return obuf; + } + // Decreasing: column 0 contains x^(N-1), last column all ones + gfill( S0, 1.0, obuf, so1, oo + ( ( S1-1 ) * so2 ) ); + io = oo + ( ( S1-2 ) * so2 ) + ( ( S0-1 ) * so1 ); + for ( i1 = S1-2; i1 >= 0; i1-- ) { + ix = ox + ( ( S0-1 ) * sx ); + for ( i0 = S0-1; i0 >= 0; i0-- ) { + oset( obuf, io, oget( obuf, io + so2 ) * xget( xbuf, ix ) ); + ix -= sx; + io -= do0; + } + io -= do1; + } + return obuf; +} + + +// EXPORTS // + +module.exports = gvander; diff --git a/lib/node_modules/@stdlib/blas/ext/base/gvander/lib/base.js b/lib/node_modules/@stdlib/blas/ext/base/gvander/lib/base.js new file mode 100644 index 000000000000..69503c01175a --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/gvander/lib/base.js @@ -0,0 +1,155 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 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 arraylike2object = require( '@stdlib/array/base/arraylike2object' ); +var isRowMajor = require( '@stdlib/ndarray/base/assert/is-row-major' ); +var gfill = require( '@stdlib/blas/ext/base/gfill' ).ndarray; +var accessors = require( './accessors.js' ); + + +// MAIN // + +/** +* Generates a Vandermonde matrix using alternative indexing semantics. +* +* ## Notes +* +* - The implementation uses recursive multiplication to generate successive powers, which carries risk of additional accumulated floating-point error; however, for most use cases, such additional error should be negligible and not problematic. +* +* @private +* @param {integer} mode - mode indicating whether to generate increasing or decreasing powers +* @param {NonNegativeInteger} M - number of rows in `out` +* @param {NonNegativeInteger} N - number of columns in `out` +* @param {NumericArray} x - input array +* @param {integer} strideX - stride length for `x` +* @param {NonNegativeInteger} offsetX - starting index for `x` +* @param {NumericArray} out - output matrix +* @param {integer} strideOut1 - stride length for the first dimension of `out` +* @param {integer} strideOut2 - stride length for the second dimension of `out` +* @param {NonNegativeInteger} offsetOut - starting index for `out` +* @returns {NumericArray} output matrix +* +* @example +* var x = [ 1.0, 2.0, 3.0 ]; +* var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; +* +* gvander( 1, 3, 3, x, 1, 0, out, 3, 1, 0 ); +* // out => [ 1.0, 1.0, 1.0, 1.0, 2.0, 4.0, 1.0, 3.0, 9.0 ] +*/ +function gvander( mode, M, N, x, strideX, offsetX, out, strideOut1, strideOut2, offsetOut ) { + var xobj; + var oobj; + var do0; + var do1; + var S0; + var S1; + var io; + var ix; + var i0; + var i1; + + xobj = arraylike2object( x ); + oobj = arraylike2object( out ); + if ( xobj.accessorProtocol || oobj.accessorProtocol ) { + return accessors( mode, M, N, xobj, strideX, offsetX, oobj, strideOut1, strideOut2, offsetOut ); + } + + // Note on variable naming convention: S#, do#, io, i# where # corresponds to the loop number, with `0` being the innermost loop... + if ( isRowMajor( [ strideOut1, strideOut2 ] ) ) { + S0 = N; + S1 = M; + do0 = strideOut2; + do1 = strideOut1 - ( S0*strideOut2 ); + + // Increasing: x^0, x^1, ..., x^(N-1) + if ( mode > 0 ) { + io = offsetOut; + ix = offsetX; + for ( i1 = 0; i1 < S1; i1++ ) { + out[ io ] = 1.0; + io += do0; + for ( i0 = 1; i0 < S0; i0++ ) { + out[ io ] = out[ io-do0 ] * x[ ix ]; + io += do0; + } + ix += strideX; + io += do1; + } + return out; + } + // Decreasing: x^(N-1), x^(N-2), ..., x^0 + io = offsetOut + ( ( S1-1 ) * strideOut1 ) + ( ( S0-1 ) * strideOut2 ); + ix = offsetX + ( ( S1-1 ) * strideX ); + for ( i1 = S1-1; i1 >= 0; i1-- ) { + out[ io ] = 1.0; + io -= do0; + for ( i0 = 1; i0 < S0; i0++ ) { + out[ io ] = out[ io+do0 ] * x[ ix ]; + io -= do0; + } + ix -= strideX; + io -= do1; + } + return out; + } + // Column-major... + S0 = M; + S1 = N; + do0 = strideOut1; + do1 = strideOut2 - ( S0*strideOut1 ); + + // Increasing: column j contains x^j + if ( mode > 0 ) { + gfill( S0, 1.0, out, strideOut1, offsetOut ); + io = offsetOut + strideOut2; + for ( i1 = 1; i1 < S1; i1++ ) { + ix = offsetX; + for ( i0 = 0; i0 < S0; i0++ ) { + out[ io ] = out[ io-strideOut2 ] * x[ ix ]; + ix += strideX; + io += do0; + } + io += do1; + } + return out; + } + // Decreasing: column 0 contains x^(N-1), last column all ones + gfill( S0, 1.0, out, strideOut1, offsetOut + ( ( S1-1 ) * strideOut2 ) ); + io = offsetOut + ( ( S1-2 ) * strideOut2 ) + ( ( S0-1 ) * strideOut1 ); + for ( i1 = S1-2; i1 >= 0; i1-- ) { + ix = offsetX + ( ( S0-1 ) * strideX ); + for ( i0 = S0-1; i0 >= 0; i0-- ) { + out[ io ] = out[ io+strideOut2 ] * x[ ix ]; + ix -= strideX; + io -= do0; + } + io -= do1; + } + return out; +} + + +// EXPORTS // + +module.exports = gvander; diff --git a/lib/node_modules/@stdlib/blas/ext/base/gvander/lib/index.js b/lib/node_modules/@stdlib/blas/ext/base/gvander/lib/index.js new file mode 100644 index 000000000000..d1690184dc46 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/gvander/lib/index.js @@ -0,0 +1,59 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 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'; + +/** +* Generate a Vandermonde matrix. +* +* @module @stdlib/blas/ext/base/gvander +* +* @example +* var gvander = require( '@stdlib/blas/ext/base/gvander' ); +* +* var x = [ 1.0, 2.0, 3.0 ]; +* var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; +* +* gvander( 'row-major', 1, 3, 3, x, 1, out, 3 ); +* // out => [ 1.0, 1.0, 1.0, 1.0, 2.0, 4.0, 1.0, 3.0, 9.0 ] +* +* @example +* var gvander = require( '@stdlib/blas/ext/base/gvander' ); +* +* var x = [ 1.0, 2.0, 3.0 ]; +* var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; +* +* gvander.ndarray( 1, 3, 3, x, 1, 0, out, 3, 1, 0 ); +* // out => [ 1.0, 1.0, 1.0, 1.0, 2.0, 4.0, 1.0, 3.0, 9.0 ] +*/ + +// MODULES // + +var setReadOnly = require( '@stdlib/utils/define-nonenumerable-read-only-property' ); +var main = require( './main.js' ); +var ndarray = require( './ndarray.js' ); + + +// MAIN // + +setReadOnly( main, 'ndarray', ndarray ); + + +// EXPORTS // + +module.exports = main; diff --git a/lib/node_modules/@stdlib/blas/ext/base/gvander/lib/main.js b/lib/node_modules/@stdlib/blas/ext/base/gvander/lib/main.js new file mode 100644 index 000000000000..4c6a70233bc3 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/gvander/lib/main.js @@ -0,0 +1,99 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 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 isColumnMajor = require( '@stdlib/ndarray/base/assert/is-column-major-string' ); +var isLayout = require( '@stdlib/blas/base/assert/is-layout' ); +var stride2offset = require( '@stdlib/strided/base/stride2offset' ); +var max = require( '@stdlib/math/base/special/fast/max' ); +var format = require( '@stdlib/string/format' ); +var base = require( './base.js' ); + + +// MAIN // + +/** +* Generates a Vandermonde matrix. +* +* @param {string} order - storage layout +* @param {integer} mode - mode indicating whether to generate increasing or decreasing powers +* @param {NonNegativeInteger} M - number of rows in `out` +* @param {NonNegativeInteger} N - number of columns in `out` +* @param {NumericArray} x - input array +* @param {integer} strideX - stride length for `x` +* @param {NumericArray} out - output matrix +* @param {PositiveInteger} ldo - stride between successive contiguous vectors of the matrix `out` (a.k.a., leading dimension of the matrix `out`) +* @throws {TypeError} first argument must be a valid order +* @throws {RangeError} third argument must be a nonnegative integer +* @throws {RangeError} fourth argument must be a nonnegative integer +* @throws {RangeError} eighth argument must be a valid stride +* @returns {NumericArray} output matrix +* +* @example +* var x = [ 1.0, 2.0, 3.0 ]; +* var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; +* +* gvander( 'row-major', 1, 3, 3, x, 1, out, 3 ); +* // out => [ 1.0, 1.0, 1.0, 1.0, 2.0, 4.0, 1.0, 3.0, 9.0 ] +*/ +function gvander( order, mode, M, N, x, strideX, out, ldo ) { + var iscm; + var sa1; + var sa2; + var ox; + var k; + + if ( !isLayout( order ) ) { + throw new TypeError( format( 'invalid argument. First argument must be a valid order. Value: `%s`.', order ) ); + } + if ( M < 0 ) { + throw new RangeError( format( 'invalid argument. Third argument must be a nonnegative integer. Value: `%d`.', M ) ); + } + if ( N < 0 ) { + throw new RangeError( format( 'invalid argument. Fourth argument must be a nonnegative integer. Value: `%d`.', N ) ); + } + iscm = isColumnMajor( order ); + if ( iscm ) { + k = M; + } else { + k = N; + } + if ( ldo < max( 1, k ) ) { + throw new RangeError( format( 'invalid argument. Eighth argument must be greater than or equal to max(1,%d). Value: `%d`.', k, ldo ) ); + } + if ( M === 0 || N === 0 ) { + return out; + } + ox = stride2offset( M, strideX ); + if ( iscm ) { + sa1 = 1; + sa2 = ldo; + } else { // order === 'row-major' + sa1 = ldo; + sa2 = 1; + } + return base( mode, M, N, x, strideX, ox, out, sa1, sa2, 0 ); +} + + +// EXPORTS // + +module.exports = gvander; diff --git a/lib/node_modules/@stdlib/blas/ext/base/gvander/lib/ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gvander/lib/ndarray.js new file mode 100644 index 000000000000..6d6f42be8196 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/gvander/lib/ndarray.js @@ -0,0 +1,71 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 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 format = require( '@stdlib/string/format' ); +var base = require( './base.js' ); + + +// MAIN // + +/** +* Generates a Vandermonde matrix using alternative indexing semantics. +* +* @param {integer} mode - mode indicating whether to generate increasing or decreasing powers +* @param {NonNegativeInteger} M - number of rows in `out` +* @param {NonNegativeInteger} N - number of columns in `out` +* @param {NumericArray} x - input array +* @param {integer} strideX - stride length for `x` +* @param {NonNegativeInteger} offsetX - starting index for `x` +* @param {NumericArray} out - output matrix +* @param {integer} strideOut1 - stride length for the first dimension of `out` +* @param {integer} strideOut2 - stride length for the second dimension of `out` +* @param {NonNegativeInteger} offsetOut - starting index for `out` +* @throws {RangeError} second argument must be a nonnegative integer +* @throws {RangeError} third argument must be a nonnegative integer +* @returns {NumericArray} output matrix +* +* @example +* var x = [ 1.0, 2.0, 3.0 ]; +* var out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; +* +* gvander( 1, 3, 3, x, 1, 0, out, 3, 1, 0 ); +* // out => [ 1.0, 1.0, 1.0, 1.0, 2.0, 4.0, 1.0, 3.0, 9.0 ] +*/ +function gvander( mode, M, N, x, strideX, offsetX, out, strideOut1, strideOut2, offsetOut ) { + if ( M < 0 ) { + throw new RangeError( format( 'invalid argument. Second argument must be a nonnegative integer. Value: `%d`.', M ) ); + } + if ( N < 0 ) { + throw new RangeError( format( 'invalid argument. Third argument must be a nonnegative integer. Value: `%d`.', N ) ); + } + if ( M === 0 || N === 0 ) { + return out; + } + return base( mode, M, N, x, strideX, offsetX, out, strideOut1, strideOut2, offsetOut ); +} + + +// EXPORTS // + +module.exports = gvander; diff --git a/lib/node_modules/@stdlib/blas/ext/base/gvander/package.json b/lib/node_modules/@stdlib/blas/ext/base/gvander/package.json new file mode 100644 index 000000000000..3ce0d0088cad --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/gvander/package.json @@ -0,0 +1,67 @@ +{ + "name": "@stdlib/blas/ext/base/gvander", + "version": "0.0.0", + "description": "Generate a Vandermonde matrix.", + "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", + "extended", + "vandermonde", + "matrix", + "generate", + "strided", + "strided array", + "typed", + "array" + ], + "__stdlib__": {} +} diff --git a/lib/node_modules/@stdlib/blas/ext/base/gvander/test/test.js b/lib/node_modules/@stdlib/blas/ext/base/gvander/test/test.js new file mode 100644 index 000000000000..e601d310a933 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/gvander/test/test.js @@ -0,0 +1,38 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 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 gvander = require( './../lib' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof gvander, '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 gvander.ndarray, 'function', 'method is a function' ); + t.end(); +}); diff --git a/lib/node_modules/@stdlib/blas/ext/base/gvander/test/test.main.js b/lib/node_modules/@stdlib/blas/ext/base/gvander/test/test.main.js new file mode 100644 index 000000000000..89f16cc304c3 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/gvander/test/test.main.js @@ -0,0 +1,710 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 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 toAccessorArray = require( '@stdlib/array/base/to-accessor-array' ); +var Float64Array = require( '@stdlib/array/float64' ); +var gvander = require( './../lib' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof gvander, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function has an arity of 8', function test( t ) { + t.strictEqual( gvander.length, 8, 'has expected arity' ); + t.end(); +}); + +tape( 'the function throws an error if provided an invalid first argument', function test( t ) { + var values; + var i; + + 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() { + gvander( value, -1, 3, 3, [ 1.0, 2.0, 3.0 ], 1, [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], 3 ); // eslint-disable-line max-len + }; + } +}); + +tape( 'the function throws an error if provided an invalid first argument (accessors)', function test( t ) { + var values; + var i; + + 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() { + gvander( value, -1, 3, 3, toAccessorArray( [ 1.0, 2.0, 3.0 ] ), 1, toAccessorArray( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ), 3 ); // eslint-disable-line max-len + }; + } +}); + +tape( 'the function throws an error if provided an invalid third argument', function test( t ) { + var values; + var i; + + 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() { + gvander( 'row-major', -1, value, 3, [ 1.0, 2.0, 3.0 ], 1, [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], 3 ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid third argument (accessors)', function test( t ) { + var values; + var i; + + 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() { + gvander( 'row-major', -1, value, 3, toAccessorArray( [ 1.0, 2.0, 3.0 ] ), 1, toAccessorArray( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ), 3 ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid fourth argument', function test( t ) { + var values; + var i; + + 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() { + gvander( 'row-major', -1, 3, value, [ 1.0, 2.0, 3.0 ], 1, [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], 3 ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid fourth argument (accessors)', function test( t ) { + var values; + var i; + + 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() { + gvander( 'row-major', -1, 3, value, toAccessorArray( [ 1.0, 2.0, 3.0 ] ), 1, toAccessorArray( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ), 3 ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid eighth argument', function test( t ) { + var values; + var i; + + values = [ + -3, + -2, + -1, + 0, + 1 + ]; + + 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() { + gvander( 'row-major', -1, 3, 3, [ 1.0, 2.0, 3.0 ], 1, [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], value ); + }; + } +}); + +tape( 'the function throws an error if provided an invalid eighth argument (accessors)', function test( t ) { + var values; + var i; + + values = [ + -3, + -2, + -1, + 0, + 1 + ]; + + 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() { + gvander( 'row-major', -1, 3, 3, toAccessorArray( [ 1.0, 2.0, 3.0 ] ), 1, toAccessorArray( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ), value ); + }; + } +}); + +tape( 'the function generates a Vandermonde matrix (row-major, decreasing)', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 2.0, 3.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( 'row-major', -1, 3, 3, x, 1, out, 3 ); + + expected = [ 1.0, 1.0, 1.0, 4.0, 2.0, 1.0, 9.0, 3.0, 1.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function generates a Vandermonde matrix (row-major, decreasing, accessors)', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 2.0, 3.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( 'row-major', -1, 3, 3, toAccessorArray( x ), 1, toAccessorArray( out ), 3 ); + + expected = [ 1.0, 1.0, 1.0, 4.0, 2.0, 1.0, 9.0, 3.0, 1.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function generates a Vandermonde matrix (row-major, increasing)', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 2.0, 3.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( 'row-major', 1, 3, 3, x, 1, out, 3 ); + + expected = [ 1.0, 1.0, 1.0, 1.0, 2.0, 4.0, 1.0, 3.0, 9.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function generates a Vandermonde matrix (row-major, increasing, accessors)', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 2.0, 3.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( 'row-major', 1, 3, 3, toAccessorArray( x ), 1, toAccessorArray( out ), 3 ); + + expected = [ 1.0, 1.0, 1.0, 1.0, 2.0, 4.0, 1.0, 3.0, 9.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function generates a Vandermonde matrix (column-major, decreasing)', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 2.0, 3.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( 'column-major', -1, 3, 3, x, 1, out, 3 ); + + expected = [ 1.0, 4.0, 9.0, 1.0, 2.0, 3.0, 1.0, 1.0, 1.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function generates a Vandermonde matrix (column-major, decreasing, accessors)', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 2.0, 3.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( 'column-major', -1, 3, 3, toAccessorArray( x ), 1, toAccessorArray( out ), 3 ); + + expected = [ 1.0, 4.0, 9.0, 1.0, 2.0, 3.0, 1.0, 1.0, 1.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function generates a Vandermonde matrix (column-major, increasing)', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 2.0, 3.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( 'column-major', 1, 3, 3, x, 1, out, 3 ); + + expected = [ 1.0, 1.0, 1.0, 1.0, 2.0, 3.0, 1.0, 4.0, 9.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function generates a Vandermonde matrix (column-major, increasing, accessors)', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 2.0, 3.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( 'column-major', 1, 3, 3, toAccessorArray( x ), 1, toAccessorArray( out ), 3 ); + + expected = [ 1.0, 1.0, 1.0, 1.0, 2.0, 3.0, 1.0, 4.0, 9.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns the output matrix', function test( t ) { + var out; + var x; + var v; + + x = [ 1.0, 2.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0 ]; + + v = gvander( 'row-major', -1, 2, 2, x, 1, out, 2 ); + + t.strictEqual( v, out, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns the output matrix (accessors)', function test( t ) { + var out; + var x; + var v; + + x = toAccessorArray( [ 1.0, 2.0 ] ); + out = toAccessorArray( [ 0.0, 0.0, 0.0, 0.0 ] ); + + v = gvander( 'row-major', -1, 2, 2, x, 1, out, 2 ); + + t.strictEqual( v, out, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports specifying a stride for `x` (row-major)', function test( t ) { + var expected; + var out; + var x; + + // Pick every other element: x[0]=1.0, x[2]=3.0 + x = [ 1.0, 0.0, 3.0, 0.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( 'row-major', -1, 2, 3, x, 2, out, 3 ); + + expected = [ 1.0, 1.0, 1.0, 9.0, 3.0, 1.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports specifying a stride for `x` (row-major, accessors)', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 0.0, 3.0, 0.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( 'row-major', -1, 2, 3, toAccessorArray( x ), 2, toAccessorArray( out ), 3 ); + + expected = [ 1.0, 1.0, 1.0, 9.0, 3.0, 1.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports specifying a negative stride for `x` (row-major)', function test( t ) { + var expected; + var out; + var x; + + // Negative stride: starts from last and goes backward + x = [ 3.0, 0.0, 1.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( 'row-major', -1, 2, 3, x, -2, out, 3 ); + + // x[2]=1.0 (first), x[0]=3.0 (second) + expected = [ 1.0, 1.0, 1.0, 9.0, 3.0, 1.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports specifying a stride for `x` (column-major)', function test( t ) { + var expected; + var out; + var x; + + // Pick every other element: x[0]=1.0, x[2]=3.0 + x = [ 1.0, 0.0, 3.0, 0.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( 'column-major', -1, 2, 3, x, 2, out, 2 ); + + expected = [ 1.0, 9.0, 1.0, 3.0, 1.0, 1.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports specifying a stride for `x` (column-major, accessors)', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 0.0, 3.0, 0.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( 'column-major', -1, 2, 3, toAccessorArray( x ), 2, toAccessorArray( out ), 2 ); + + expected = [ 1.0, 9.0, 1.0, 3.0, 1.0, 1.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports specifying a negative stride for `x` (column-major)', function test( t ) { + var expected; + var out; + var x; + + // Negative stride: starts from last and goes backward + x = [ 3.0, 0.0, 1.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( 'column-major', -1, 2, 3, x, -2, out, 2 ); + + // x[2]=1.0 (first), x[0]=3.0 (second) + expected = [ 1.0, 9.0, 1.0, 3.0, 1.0, 1.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports an `ldo` larger than the matrix dimension (row-major)', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 2.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + // 2x3 row-major with ldo=5 (padding of 2 per row) + gvander( 'row-major', -1, 2, 3, x, 1, out, 5 ); + + expected = [ + 1.0, + 1.0, + 1.0, + 0.0, + 0.0, + 4.0, + 2.0, + 1.0, + 0.0, + 0.0 + ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports an `ldo` larger than the matrix dimension (row-major, accessors)', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 2.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( 'row-major', -1, 2, 3, toAccessorArray( x ), 1, toAccessorArray( out ), 5 ); + + expected = [ + 1.0, + 1.0, + 1.0, + 0.0, + 0.0, + 4.0, + 2.0, + 1.0, + 0.0, + 0.0 + ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports an `ldo` larger than the matrix dimension (column-major)', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 2.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + // 2x3 column-major with ldo=4 (padding of 2 per column) + gvander( 'column-major', -1, 2, 3, x, 1, out, 4 ); + + expected = [ + 1.0, + 4.0, + 0.0, + 0.0, + 1.0, + 2.0, + 0.0, + 0.0, + 1.0, + 1.0, + 0.0, + 0.0 + ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports an `ldo` larger than the matrix dimension (column-major, accessors)', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 2.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( 'column-major', -1, 2, 3, toAccessorArray( x ), 1, toAccessorArray( out ), 4 ); + + expected = [ + 1.0, + 4.0, + 0.0, + 0.0, + 1.0, + 2.0, + 0.0, + 0.0, + 1.0, + 1.0, + 0.0, + 0.0 + ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports non-square matrices (M > N, row-major, decreasing)', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 2.0, 3.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( 'row-major', -1, 3, 2, x, 1, out, 2 ); + + // 3x2 matrix, decreasing: + expected = [ 1.0, 1.0, 2.0, 1.0, 3.0, 1.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports non-square matrices (M < N, row-major, increasing)', function test( t ) { + var expected; + var out; + var x; + + x = [ 2.0, 3.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( 'row-major', 1, 2, 4, x, 1, out, 4 ); + + // 2x4 matrix, increasing: + expected = [ 1.0, 2.0, 4.0, 8.0, 1.0, 3.0, 9.0, 27.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports view offsets', function test( t ) { + var expected; + var out; + var x0; + var x1; + + // Initial array: + x0 = new Float64Array( [ 0.0, 1.0, 2.0, 3.0 ] ); + + // Create an offset view: + x1 = new Float64Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // start at 2nd element + + out = new Float64Array( 9 ); + + gvander( 'row-major', 1, 3, 3, x1, 1, out, 3 ); + + expected = new Float64Array([ + 1.0, + 1.0, + 1.0, + 1.0, + 2.0, + 4.0, + 1.0, + 3.0, + 9.0 + ]); + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function handles zero values in the input array (row-major, increasing)', function test( t ) { + var expected; + var out; + var x; + + x = [ 0.0, 2.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( 'row-major', 1, 2, 3, x, 1, out, 3 ); + + expected = [ 1.0, 0.0, 0.0, 1.0, 2.0, 4.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function handles a single column (N=1)', function test( t ) { + var expected; + var out; + var x; + + x = [ 5.0, 10.0, 15.0 ]; + out = [ 0.0, 0.0, 0.0 ]; + + gvander( 'row-major', 1, 3, 1, x, 1, out, 1 ); + + // Single column: all x^0 = 1 + expected = [ 1.0, 1.0, 1.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function handles a single row (M=1)', function test( t ) { + var expected; + var out; + var x; + + x = [ 3.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0 ]; + + gvander( 'row-major', 1, 1, 4, x, 1, out, 4 ); + + // Single row: [ 3^0, 3^1, 3^2, 3^3 ] = [ 1, 3, 9, 27 ] + expected = [ 1.0, 3.0, 9.0, 27.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); diff --git a/lib/node_modules/@stdlib/blas/ext/base/gvander/test/test.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gvander/test/test.ndarray.js new file mode 100644 index 000000000000..ca83ce3e0871 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/gvander/test/test.ndarray.js @@ -0,0 +1,721 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 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 toAccessorArray = require( '@stdlib/array/base/to-accessor-array' ); +var gvander = require( './../lib/ndarray.js' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof gvander, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function has an arity of 10', function test( t ) { + t.strictEqual( gvander.length, 10, 'has expected arity' ); + t.end(); +}); + +tape( 'the function throws an error if provided an invalid second argument', function test( t ) { + var values; + var i; + + 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() { + gvander( -1, value, 3, [ 1.0, 2.0, 3.0 ], 1, 0, [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], 3, 1, 0 ); // eslint-disable-line max-len + }; + } +}); + +tape( 'the function throws an error if provided an invalid second argument (accessors)', function test( t ) { + var values; + var i; + + 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() { + gvander( -1, value, 3, toAccessorArray( [ 1.0, 2.0, 3.0 ] ), 1, 0, toAccessorArray( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ), 3, 1, 0 ); // eslint-disable-line max-len + }; + } +}); + +tape( 'the function throws an error if provided an invalid third argument', function test( t ) { + var values; + var i; + + 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() { + gvander( -1, 3, value, [ 1.0, 2.0, 3.0 ], 1, 0, [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], 3, 1, 0 ); // eslint-disable-line max-len + }; + } +}); + +tape( 'the function throws an error if provided an invalid third argument (accessors)', function test( t ) { + var values; + var i; + + 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() { + gvander( -1, 3, value, toAccessorArray( [ 1.0, 2.0, 3.0 ] ), 1, 0, toAccessorArray( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ), 3, 1, 0 ); // eslint-disable-line max-len + }; + } +}); + +tape( 'the function generates a Vandermonde matrix (row-major, decreasing)', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 2.0, 3.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( -1, 3, 3, x, 1, 0, out, 3, 1, 0 ); + + expected = [ 1.0, 1.0, 1.0, 4.0, 2.0, 1.0, 9.0, 3.0, 1.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function generates a Vandermonde matrix (row-major, decreasing, accessors)', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 2.0, 3.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( -1, 3, 3, toAccessorArray( x ), 1, 0, toAccessorArray( out ), 3, 1, 0 ); // eslint-disable-line max-len + + expected = [ 1.0, 1.0, 1.0, 4.0, 2.0, 1.0, 9.0, 3.0, 1.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function generates a Vandermonde matrix (row-major, increasing)', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 2.0, 3.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( 1, 3, 3, x, 1, 0, out, 3, 1, 0 ); + + expected = [ 1.0, 1.0, 1.0, 1.0, 2.0, 4.0, 1.0, 3.0, 9.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function generates a Vandermonde matrix (row-major, increasing, accessors)', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 2.0, 3.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( 1, 3, 3, toAccessorArray( x ), 1, 0, toAccessorArray( out ), 3, 1, 0 ); // eslint-disable-line max-len + + expected = [ 1.0, 1.0, 1.0, 1.0, 2.0, 4.0, 1.0, 3.0, 9.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function generates a Vandermonde matrix (column-major, decreasing)', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 2.0, 3.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( -1, 3, 3, x, 1, 0, out, 1, 3, 0 ); + + expected = [ 1.0, 4.0, 9.0, 1.0, 2.0, 3.0, 1.0, 1.0, 1.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function generates a Vandermonde matrix (column-major, decreasing, accessors)', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 2.0, 3.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( -1, 3, 3, toAccessorArray( x ), 1, 0, toAccessorArray( out ), 1, 3, 0 ); // eslint-disable-line max-len + + expected = [ 1.0, 4.0, 9.0, 1.0, 2.0, 3.0, 1.0, 1.0, 1.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function generates a Vandermonde matrix (column-major, increasing)', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 2.0, 3.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( 1, 3, 3, x, 1, 0, out, 1, 3, 0 ); + + expected = [ 1.0, 1.0, 1.0, 1.0, 2.0, 3.0, 1.0, 4.0, 9.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function generates a Vandermonde matrix (column-major, increasing, accessors)', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 2.0, 3.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( 1, 3, 3, toAccessorArray( x ), 1, 0, toAccessorArray( out ), 1, 3, 0 ); // eslint-disable-line max-len + + expected = [ 1.0, 1.0, 1.0, 1.0, 2.0, 3.0, 1.0, 4.0, 9.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns the output matrix', function test( t ) { + var out; + var x; + var v; + + x = [ 1.0, 2.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0 ]; + + v = gvander( -1, 2, 2, x, 1, 0, out, 2, 1, 0 ); + + t.strictEqual( v, out, 'returns expected value' ); + t.end(); +}); + +tape( 'the function returns the output matrix (accessors)', function test( t ) { + var out; + var x; + var v; + + x = toAccessorArray( [ 1.0, 2.0 ] ); + out = toAccessorArray( [ 0.0, 0.0, 0.0, 0.0 ] ); + + v = gvander( -1, 2, 2, x, 1, 0, out, 2, 1, 0 ); + + t.strictEqual( v, out, 'returns expected value' ); + t.end(); +}); + +tape( 'if provided an `M` equal to `0`, the function returns the output matrix unchanged', function test( t ) { + var out; + var x; + + x = []; + out = []; + + gvander( -1, 0, 3, x, 1, 0, out, 3, 1, 0 ); + + t.deepEqual( out, [], 'returns expected value' ); + t.end(); +}); + +tape( 'if provided an `N` equal to `0`, the function returns the output matrix unchanged', function test( t ) { + var out; + var x; + + x = [ 1.0, 2.0 ]; + out = []; + + gvander( -1, 2, 0, x, 1, 0, out, 0, 1, 0 ); + + t.deepEqual( out, [], 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports specifying a stride for `x` (row-major)', function test( t ) { + var expected; + var out; + var x; + + // Pick every other element: x[0]=1.0, x[2]=3.0 + x = [ 1.0, 0.0, 3.0, 0.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( -1, 2, 3, x, 2, 0, out, 3, 1, 0 ); + + expected = [ 1.0, 1.0, 1.0, 9.0, 3.0, 1.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports specifying a stride for `x` (row-major, accessors)', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 0.0, 3.0, 0.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( -1, 2, 3, toAccessorArray( x ), 2, 0, toAccessorArray( out ), 3, 1, 0 ); // eslint-disable-line max-len + + expected = [ 1.0, 1.0, 1.0, 9.0, 3.0, 1.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports specifying a negative stride for `x` (row-major)', function test( t ) { + var expected; + var out; + var x; + + // Negative stride: starts from last and goes backward + x = [ 3.0, 0.0, 1.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( -1, 2, 3, x, -2, 2, out, 3, 1, 0 ); + + // x[2]=1.0 (first), x[0]=3.0 (second) + expected = [ 1.0, 1.0, 1.0, 9.0, 3.0, 1.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports specifying a stride for `x` (column-major)', function test( t ) { + var expected; + var out; + var x; + + // Pick every other element: x[0]=1.0, x[2]=3.0 + x = [ 1.0, 0.0, 3.0, 0.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( -1, 2, 3, x, 2, 0, out, 1, 2, 0 ); + + expected = [ 1.0, 9.0, 1.0, 3.0, 1.0, 1.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports specifying a stride for `x` (column-major, accessors)', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 0.0, 3.0, 0.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( -1, 2, 3, toAccessorArray( x ), 2, 0, toAccessorArray( out ), 1, 2, 0 ); // eslint-disable-line max-len + + expected = [ 1.0, 9.0, 1.0, 3.0, 1.0, 1.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports specifying a negative stride for `x` (column-major)', function test( t ) { + var expected; + var out; + var x; + + // Negative stride: starts from last and goes backward + x = [ 3.0, 0.0, 1.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( -1, 2, 3, x, -2, 2, out, 1, 2, 0 ); + + // x[2]=1.0 (first), x[0]=3.0 (second) + expected = [ 1.0, 9.0, 1.0, 3.0, 1.0, 1.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports an `x` offset', function test( t ) { + var expected; + var out; + var x; + + x = [ + 0.0, + 1.0, // 0 + 2.0, // 1 + 3.0 // 2 + ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( 1, 3, 3, x, 1, 1, out, 3, 1, 0 ); + + expected = [ 1.0, 1.0, 1.0, 1.0, 2.0, 4.0, 1.0, 3.0, 9.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports an `x` offset (accessors)', function test( t ) { + var expected; + var out; + var x; + + x = [ + 0.0, + 1.0, // 0 + 2.0, // 1 + 3.0 // 2 + ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( 1, 3, 3, toAccessorArray( x ), 1, 1, toAccessorArray( out ), 3, 1, 0 ); // eslint-disable-line max-len + + expected = [ 1.0, 1.0, 1.0, 1.0, 2.0, 4.0, 1.0, 3.0, 9.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports an output offset', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 2.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( 1, 2, 2, x, 1, 0, out, 2, 1, 2 ); + + expected = [ 0.0, 0.0, 1.0, 1.0, 1.0, 2.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports an output offset (accessors)', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 2.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( 1, 2, 2, toAccessorArray( x ), 1, 0, toAccessorArray( out ), 2, 1, 2 ); // eslint-disable-line max-len + + expected = [ 0.0, 0.0, 1.0, 1.0, 1.0, 2.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports output stride with padding (row-major)', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 2.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + // 2x3 row-major with strideOut1=5 (padding of 2 per row) + gvander( -1, 2, 3, x, 1, 0, out, 5, 1, 0 ); + + expected = [ + 1.0, + 1.0, + 1.0, + 0.0, + 0.0, + 4.0, + 2.0, + 1.0, + 0.0, + 0.0 + ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports output stride with padding (row-major, accessors)', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 2.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( -1, 2, 3, toAccessorArray( x ), 1, 0, toAccessorArray( out ), 5, 1, 0 ); // eslint-disable-line max-len + + expected = [ + 1.0, + 1.0, + 1.0, + 0.0, + 0.0, + 4.0, + 2.0, + 1.0, + 0.0, + 0.0 + ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports output stride with padding (column-major)', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 2.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + // 2x3 column-major with strideOut2=4 (padding of 2 per column) + gvander( -1, 2, 3, x, 1, 0, out, 1, 4, 0 ); + + expected = [ + 1.0, + 4.0, + 0.0, + 0.0, + 1.0, + 2.0, + 0.0, + 0.0, + 1.0, + 1.0, + 0.0, + 0.0 + ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports output stride with padding (column-major, accessors)', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 2.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( -1, 2, 3, toAccessorArray( x ), 1, 0, toAccessorArray( out ), 1, 4, 0 ); // eslint-disable-line max-len + + expected = [ + 1.0, + 4.0, + 0.0, + 0.0, + 1.0, + 2.0, + 0.0, + 0.0, + 1.0, + 1.0, + 0.0, + 0.0 + ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports non-square matrices (M > N, row-major, decreasing)', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 2.0, 3.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( -1, 3, 2, x, 1, 0, out, 2, 1, 0 ); + + // 3x2 matrix, decreasing: + expected = [ 1.0, 1.0, 2.0, 1.0, 3.0, 1.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports non-square matrices (M < N, row-major, increasing)', function test( t ) { + var expected; + var out; + var x; + + x = [ 2.0, 3.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( 1, 2, 4, x, 1, 0, out, 4, 1, 0 ); + + // 2x4 matrix, increasing: + expected = [ 1.0, 2.0, 4.0, 8.0, 1.0, 3.0, 9.0, 27.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports complex access patterns', function test( t ) { + var expected; + var out; + var x; + + x = [ + 0.0, + 2.0, // 0 + 0.0, + 3.0 // 1 + ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( 1, 2, 3, x, 2, 1, out, 3, -1, 2 ); + + expected = [ 4.0, 2.0, 1.0, 9.0, 3.0, 1.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function handles zero values in the input array (row-major, increasing)', function test( t ) { + var expected; + var out; + var x; + + x = [ 0.0, 2.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gvander( 1, 2, 3, x, 1, 0, out, 3, 1, 0 ); + + expected = [ 1.0, 0.0, 0.0, 1.0, 2.0, 4.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function handles a single column (N=1)', function test( t ) { + var expected; + var out; + var x; + + x = [ 5.0, 10.0, 15.0 ]; + out = [ 0.0, 0.0, 0.0 ]; + + gvander( 1, 3, 1, x, 1, 0, out, 1, 1, 0 ); + + // Single column: all x^0 = 1 + expected = [ 1.0, 1.0, 1.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function handles a single row (M=1)', function test( t ) { + var expected; + var out; + var x; + + x = [ 3.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0 ]; + + gvander( 1, 1, 4, x, 1, 0, out, 4, 1, 0 ); + + // Single row: [ 3^0, 3^1, 3^2, 3^3 ] = [ 1, 3, 9, 27 ] + expected = [ 1.0, 3.0, 9.0, 27.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); + +tape( 'the function supports column-major with output offset and stride', function test( t ) { + var expected; + var out; + var x; + + x = [ 1.0, 2.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + // Column-major 2x2 starting at offset 2, with strideOut2=3 (padding of 1) + gvander( 1, 2, 2, x, 1, 0, out, 1, 3, 2 ); + + expected = [ 0.0, 0.0, 1.0, 1.0, 0.0, 1.0, 2.0, 0.0 ]; + + t.deepEqual( out, expected, 'returns expected value' ); + t.end(); +}); diff --git a/lib/node_modules/@stdlib/blas/ext/base/gwhere/README.md b/lib/node_modules/@stdlib/blas/ext/base/gwhere/README.md new file mode 100644 index 000000000000..f21c221a7254 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/gwhere/README.md @@ -0,0 +1,213 @@ + + +# gwhere + +> Take elements from one of two strided arrays depending on a condition. + +
+ +
+ + + +
+ +## Usage + +```javascript +var gwhere = require( '@stdlib/blas/ext/base/gwhere' ); +``` + +#### gwhere( N, condition, strideC, x, strideX, y, strideY, out, strideOut ) + +Takes elements from one of two strided arrays depending on a condition. + +```javascript +var condition = [ 1, 0, 1 ]; +var x = [ 1.0, 2.0, 3.0 ]; +var y = [ 4.0, 5.0, 6.0 ]; +var out = [ 0.0, 0.0, 0.0 ]; + +gwhere( 3, condition, 1, x, 1, y, 1, out, 1 ); +// out => [ 1.0, 5.0, 3.0 ] +``` + +The function has the following parameters: + +- **N**: number of indexed elements. +- **condition**: condition [`Array`][mdn-array] or [`typed array`][mdn-typed-array]. +- **strideC**: stride length for `condition`. +- **x**: first input [`Array`][mdn-array] or [`typed array`][mdn-typed-array]. +- **strideX**: stride length for `x`. +- **y**: second input [`Array`][mdn-array] or [`typed array`][mdn-typed-array]. +- **strideY**: stride length for `y`. +- **out**: output [`Array`][mdn-array] or [`typed array`][mdn-typed-array]. +- **strideOut**: stride length for `out`. + +The `N` and stride parameters determine which elements in the strided arrays are accessed at runtime. For example, to select from every other element: + +```javascript +var condition = [ 1, 0, 0, 1, 1, 0 ]; +var x = [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ]; +var y = [ 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ]; +var out = [ 0.0, 0.0, 0.0 ]; + +gwhere( 3, condition, 2, x, 2, y, 2, out, 1 ); +// out => [ 1.0, 9.0, 5.0 ] +``` + +Note that indexing is relative to the first index. To introduce an offset, use [`typed array`][mdn-typed-array] views. + + + +```javascript +var Float64Array = require( '@stdlib/array/float64' ); + +// Initial arrays... +var condition0 = new Float64Array( [ 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 ] ); +var x0 = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); +var y0 = new Float64Array( [ 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] ); +var out0 = new Float64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); + +// Create offset views... +var condition1 = new Float64Array( condition0.buffer, condition0.BYTES_PER_ELEMENT*1 ); // start at 2nd element +var x1 = new Float64Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // start at 2nd element +var y1 = new Float64Array( y0.buffer, y0.BYTES_PER_ELEMENT*1 ); // start at 2nd element +var out1 = new Float64Array( out0.buffer, out0.BYTES_PER_ELEMENT*1 ); // start at 2nd element + +gwhere( 3, condition1, 2, x1, 2, y1, 2, out1, 1 ); +// out0 => [ 0.0, 2.0, 4.0, 6.0, 0.0, 0.0 ] +``` + + + +#### gwhere.ndarray( N, condition, strideC, offsetC, x, strideX, offsetX, y, strideY, offsetY, out, strideOut, offsetOut ) + + + +Takes elements from one of two strided arrays depending on a condition using alternative indexing semantics. + +```javascript +var condition = [ 1, 0, 1 ]; +var x = [ 1.0, 2.0, 3.0 ]; +var y = [ 4.0, 5.0, 6.0 ]; +var out = [ 0.0, 0.0, 0.0 ]; + +gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, 1, 0, out, 1, 0 ); +// out => [ 1.0, 5.0, 3.0 ] +``` + +The function has the following additional parameters: + +- **offsetC**: starting index for `condition`. +- **offsetX**: starting index for `x`. +- **offsetY**: starting index for `y`. +- **offsetOut**: starting index for `out`. + +While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying buffer, offset parameters support indexing semantics based on starting indices. For example, to select from every other element starting from the second element: + +```javascript +var condition = [ 0, 1, 0, 0, 0, 1 ]; +var x = [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ]; +var y = [ 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ]; +var out = [ 0.0, 0.0, 0.0 ]; + +gwhere.ndarray( 3, condition, 2, 1, x, 2, 1, y, 2, 1, out, 1, 0 ); +// out => [ 2.0, 10.0, 6.0 ] +``` + +
+ + + +
+ +## Notes + +- If `N <= 0`, both functions return `out` unchanged. +- Both functions support array-like objects having getter and setter accessors for array element access (e.g., [`@stdlib/array/base/accessor`][@stdlib/array/base/accessor]). +- Depending on the environment, the typed versions ([`dwhere`][@stdlib/blas/ext/base/dwhere], [`swhere`][@stdlib/blas/ext/base/swhere], etc.) are likely to be significantly more performant. + +
+ + + +
+ +## Examples + + + +```javascript +var bernoulli = require( '@stdlib/random/array/bernoulli' ); +var discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); +var zeros = require( '@stdlib/array/base/zeros' ); +var gwhere = require( '@stdlib/blas/ext/base/gwhere' ); + +var condition = bernoulli( 20, 0.5, { + 'dtype': 'generic' +}); +console.log( condition ); +var x = discreteUniform( 20, 0, 100, { + 'dtype': 'generic' +}); +console.log( x ); +var y = discreteUniform( 20, -100, 0, { + 'dtype': 'generic' +}); +console.log( y ); + +var out = zeros( condition.length ); +console.log( out ); + +gwhere( condition.length, condition, 1, x, 1, y, 1, out, 1 ); +console.log( out ); +``` + +
+ + + + + + + + + + + + + + diff --git a/lib/node_modules/@stdlib/blas/ext/base/gwhere/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/gwhere/benchmark/benchmark.js new file mode 100644 index 000000000000..663888e00111 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/gwhere/benchmark/benchmark.js @@ -0,0 +1,108 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 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 bernoulli = require( '@stdlib/random/array/bernoulli' ); +var uniform = require( '@stdlib/random/array/uniform' ); +var zeros = require( '@stdlib/array/zeros' ); +var isArray = require( '@stdlib/assert/is-array' ); +var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); +var pkg = require( './../package.json' ).name; +var gwhere = require( './../lib/main.js' ); + + +// VARIABLES // + +var options = { + 'dtype': 'generic' +}; + + +// FUNCTIONS // + +/** +* Creates a benchmark function. +* +* @private +* @param {PositiveInteger} len - array length +* @returns {Function} benchmark function +*/ +function createBenchmark( len ) { + var condition = bernoulli( len, 0.5, options ); + var out = zeros( len, options.dtype ); + var x = uniform( len, -100, 100, options ); + var y = uniform( len, -100, 100, options ); + return benchmark; + + /** + * Benchmark function. + * + * @private + * @param {Benchmark} b - benchmark instance + */ + function benchmark( b ) { + var v; + var i; + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + v = gwhere( len, condition, 1, x, 1, y, 1, out, 1 ); + if ( !isArray( v ) ) { + b.fail( 'should return an array' ); + } + } + b.toc(); + if ( !isArray( v ) ) { + b.fail( 'should return an array' ); + } + 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 = pow( 10, i ); + f = createBenchmark( len ); + bench( format( '%s:len=%d', pkg, len ), f ); + } +} + +main(); diff --git a/lib/node_modules/@stdlib/blas/ext/base/gwhere/benchmark/benchmark.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gwhere/benchmark/benchmark.ndarray.js new file mode 100644 index 000000000000..db0a6bc5873a --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/gwhere/benchmark/benchmark.ndarray.js @@ -0,0 +1,108 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 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 bernoulli = require( '@stdlib/random/array/bernoulli' ); +var uniform = require( '@stdlib/random/array/uniform' ); +var zeros = require( '@stdlib/array/zeros' ); +var isArray = require( '@stdlib/assert/is-array' ); +var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); +var pkg = require( './../package.json' ).name; +var gwhere = require( './../lib/ndarray.js' ); + + +// VARIABLES // + +var options = { + 'dtype': 'generic' +}; + + +// FUNCTIONS // + +/** +* Creates a benchmark function. +* +* @private +* @param {PositiveInteger} len - array length +* @returns {Function} benchmark function +*/ +function createBenchmark( len ) { + var condition = bernoulli( len, 0.5, options ); + var out = zeros( len, options.dtype ); + var x = uniform( len, -100, 100, options ); + var y = uniform( len, -100, 100, options ); + return benchmark; + + /** + * Benchmark function. + * + * @private + * @param {Benchmark} b - benchmark instance + */ + function benchmark( b ) { + var v; + var i; + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + v = gwhere( len, condition, 1, 0, x, 1, 0, y, 1, 0, out, 1, 0 ); + if ( !isArray( v ) ) { + b.fail( 'should return an array' ); + } + } + b.toc(); + if ( !isArray( v ) ) { + b.fail( 'should return an array' ); + } + 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 = pow( 10, i ); + f = createBenchmark( len ); + bench( format( '%s:ndarray:len=%d', pkg, len ), f ); + } +} + +main(); diff --git a/lib/node_modules/@stdlib/blas/ext/base/gwhere/docs/repl.txt b/lib/node_modules/@stdlib/blas/ext/base/gwhere/docs/repl.txt new file mode 100644 index 000000000000..dfac394a1ad4 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/gwhere/docs/repl.txt @@ -0,0 +1,152 @@ + +{{alias}}( N, condition, strideC, x, strideX, y, strideY, out, strideOut ) + Takes elements from one of two strided arrays depending on a condition. + + The `N` and stride parameters determine which elements in the strided arrays + are accessed at runtime. + + Indexing is relative to the first index. To introduce an offset, use a typed + array view. + + If `N <= 0`, the function returns `out` unchanged. + + Parameters + ---------- + N: integer + Number of indexed elements. + + condition: ArrayLikeObject + Condition array. + + strideC: integer + Stride length for `condition`. + + x: ArrayLikeObject + First input array. + + strideX: integer + Stride length for `x`. + + y: ArrayLikeObject + Second input array. + + strideY: integer + Stride length for `y`. + + out: ArrayLikeObject + Output array. + + strideOut: integer + Stride length for `out`. + + Returns + ------- + out: ArrayLikeObject + Output array. + + Examples + -------- + // Standard Usage: + > var condition = [ 1, 0, 1 ]; + > var x = [ 1.0, 2.0, 3.0 ]; + > var y = [ 4.0, 5.0, 6.0 ]; + > var out = [ 0.0, 0.0, 0.0 ]; + > {{alias}}( 3, condition, 1, x, 1, y, 1, out, 1 ) + [ 1.0, 5.0, 3.0 ] + + // Using `N` and stride parameters: + > condition = [ 1, 0, 0, 1, 1, 0 ]; + > x = [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ]; + > y = [ 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ]; + > out = [ 0.0, 0.0, 0.0 ]; + > {{alias}}( 3, condition, 2, x, 2, y, 2, out, 1 ) + [ 1.0, 9.0, 5.0 ] + + // Using view offsets: + > var c0 = new {{alias:@stdlib/array/float64}}( [ 0.0, 1.0, 0.0, 1.0 ] ); + > var x0 = new {{alias:@stdlib/array/float64}}( [ 1.0, 2.0, 3.0, 4.0 ] ); + > var y0 = new {{alias:@stdlib/array/float64}}( [ 5.0, 6.0, 7.0, 8.0 ] ); + > var o0 = new {{alias:@stdlib/array/float64}}( [ 0.0, 0.0, 0.0, 0.0 ] ); + > var c1 = new {{alias:@stdlib/array/float64}}( c0.buffer, c0.BYTES_PER_ELEMENT*1 ); + > var x1 = new {{alias:@stdlib/array/float64}}( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); + > var y1 = new {{alias:@stdlib/array/float64}}( y0.buffer, y0.BYTES_PER_ELEMENT*1 ); + > var o1 = new {{alias:@stdlib/array/float64}}( o0.buffer, o0.BYTES_PER_ELEMENT*1 ); + > {{alias}}( 2, c1, 1, x1, 1, y1, 1, o1, 1 ) + [ 2.0, 7.0, 0.0 ] + + +{{alias}}.ndarray( N, c, sc, oc, x, sx, ox, y, sy, oy, o, so, oo ) + Takes elements from one of two strided arrays depending on a condition + 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 + ---------- + N: integer + Number of indexed elements. + + c: ArrayLikeObject + Condition array. + + sc: integer + Stride length for `c`. + + oc: integer + Starting index for `c`. + + x: ArrayLikeObject + First input array. + + sx: integer + Stride length for `x`. + + ox: integer + Starting index for `x`. + + y: ArrayLikeObject + Second input array. + + sy: integer + Stride length for `y`. + + oy: integer + Starting index for `y`. + + o: ArrayLikeObject + Output array. + + so: integer + Stride length for `o`. + + oo: integer + Starting index for `o`. + + Returns + ------- + o: ArrayLikeObject + Output array. + + Examples + -------- + // Standard Usage: + > var c = [ 1, 0, 1 ]; + > var x = [ 1.0, 2.0, 3.0 ]; + > var y = [ 4.0, 5.0, 6.0 ]; + > var o = [ 0.0, 0.0, 0.0 ]; + > {{alias}}.ndarray( 3, c, 1, 0, x, 1, 0, y, 1, 0, o, 1, 0 ) + [ 1.0, 5.0, 3.0 ] + + // Advanced indexing: + > c = [ 0, 1, 0, 0, 0, 1 ]; + > x = [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ]; + > y = [ 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ]; + > o = [ 0.0, 0.0, 0.0 ]; + > {{alias}}.ndarray( 3, c, 2, 1, x, 2, 1, y, 2, 1, o, -1, o.length-1 ) + [ 6.0, 10.0, 2.0 ] + + See Also + -------- + diff --git a/lib/node_modules/@stdlib/blas/ext/base/gwhere/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/ext/base/gwhere/docs/types/index.d.ts new file mode 100644 index 000000000000..c3f069130450 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/gwhere/docs/types/index.d.ts @@ -0,0 +1,131 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2026 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 { Collection, AccessorArrayLike } from '@stdlib/types/array'; + +/** +* Input array. +*/ +type InputArray = Collection | AccessorArrayLike; + +/** +* Output array. +*/ +type OutputArray = Collection | AccessorArrayLike; + +/** +* Interface describing `gwhere`. +*/ +interface Routine { + /** + * Takes elements from one of two strided arrays depending on a condition. + * + * @param N - number of indexed elements + * @param condition - condition array + * @param strideC - stride length for `condition` + * @param x - first input array + * @param strideX - stride length for `x` + * @param y - second input array + * @param strideY - stride length for `y` + * @param out - output array + * @param strideOut - stride length for `out` + * @returns output array + * + * @example + * var condition = [ 1, 0, 1 ]; + * var x = [ 1.0, 2.0, 3.0 ]; + * var y = [ 4.0, 5.0, 6.0 ]; + * var out = [ 0.0, 0.0, 0.0 ]; + * + * gwhere( 3, condition, 1, x, 1, y, 1, out, 1 ); + * // out => [ 1.0, 5.0, 3.0 ] + */ + = OutputArray>( N: number, condition: InputArray, strideC: number, x: InputArray, strideX: number, y: InputArray, strideY: number, out: W, strideOut: number ): W; + + /** + * Takes elements from one of two strided arrays depending on a condition using alternative indexing semantics. + * + * @param N - number of indexed elements + * @param condition - condition array + * @param strideC - stride length for `condition` + * @param offsetC - starting index for `condition` + * @param x - first input array + * @param strideX - stride length for `x` + * @param offsetX - starting index for `x` + * @param y - second input array + * @param strideY - stride length for `y` + * @param offsetY - starting index for `y` + * @param out - output array + * @param strideOut - stride length for `out` + * @param offsetOut - starting index for `out` + * @returns output array + * + * @example + * var condition = [ 1, 0, 1 ]; + * var x = [ 1.0, 2.0, 3.0 ]; + * var y = [ 4.0, 5.0, 6.0 ]; + * var out = [ 0.0, 0.0, 0.0 ]; + * + * gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, 1, 0, out, 1, 0 ); + * // out => [ 1.0, 5.0, 3.0 ] + */ + ndarray = OutputArray>( N: number, condition: InputArray, strideC: number, offsetC: number, x: InputArray, strideX: number, offsetX: number, y: InputArray, strideY: number, offsetY: number, out: W, strideOut: number, offsetOut: number ): W; +} + +/** +* Takes elements from one of two strided arrays depending on a condition. +* +* @param N - number of indexed elements +* @param condition - condition array +* @param strideC - stride length for `condition` +* @param x - first input array +* @param strideX - stride length for `x` +* @param y - second input array +* @param strideY - stride length for `y` +* @param out - output array +* @param strideOut - stride length for `out` +* @returns output array +* +* @example +* var condition = [ 1, 0, 1 ]; +* var x = [ 1.0, 2.0, 3.0 ]; +* var y = [ 4.0, 5.0, 6.0 ]; +* var out = [ 0.0, 0.0, 0.0 ]; +* +* gwhere( 3, condition, 1, x, 1, y, 1, out, 1 ); +* // out => [ 1.0, 5.0, 3.0 ] +* +* @example +* var condition = [ 1, 0, 1 ]; +* var x = [ 1.0, 2.0, 3.0 ]; +* var y = [ 4.0, 5.0, 6.0 ]; +* var out = [ 0.0, 0.0, 0.0 ]; +* +* gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, 1, 0, out, 1, 0 ); +* // out => [ 1.0, 5.0, 3.0 ] +*/ +declare var gwhere: Routine; + + +// EXPORTS // + +export = gwhere; diff --git a/lib/node_modules/@stdlib/blas/ext/base/gwhere/docs/types/test.ts b/lib/node_modules/@stdlib/blas/ext/base/gwhere/docs/types/test.ts new file mode 100644 index 000000000000..4f87f64edf56 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/gwhere/docs/types/test.ts @@ -0,0 +1,445 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2026 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 AccessorArray = require( '@stdlib/array/base/accessor' ); +import gwhere = require( './index' ); + + +// TESTS // + +// The function returns a collection... +{ + const x = new Float64Array( 3 ); + const y = new Float64Array( 3 ); + const condition = new Float64Array( 3 ); + const out = new Float64Array( 3 ); + + gwhere( 3, condition, 1, x, 1, y, 1, out, 1 ); // $ExpectType Float64Array + gwhere( 3, new AccessorArray( condition ), 1, new AccessorArray( x ), 1, new AccessorArray( y ), 1, new AccessorArray( out ), 1 ); // $ExpectType AccessorArray +} + +// The compiler throws an error if the function is provided a first argument which is not a number... +{ + const x = new Float64Array( 3 ); + const y = new Float64Array( 3 ); + const condition = new Float64Array( 3 ); + const out = new Float64Array( 3 ); + + gwhere( '10', condition, 1, x, 1, y, 1, out, 1 ); // $ExpectError + gwhere( true, condition, 1, x, 1, y, 1, out, 1 ); // $ExpectError + gwhere( false, condition, 1, x, 1, y, 1, out, 1 ); // $ExpectError + gwhere( null, condition, 1, x, 1, y, 1, out, 1 ); // $ExpectError + gwhere( undefined, condition, 1, x, 1, y, 1, out, 1 ); // $ExpectError + gwhere( [], condition, 1, x, 1, y, 1, out, 1 ); // $ExpectError + gwhere( {}, condition, 1, x, 1, y, 1, out, 1 ); // $ExpectError + gwhere( ( x: number ): number => x, condition, 1, x, 1, y, 1, out, 1 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a second argument which is not a collection... +{ + const x = new Float64Array( 3 ); + const y = new Float64Array( 3 ); + const out = new Float64Array( 3 ); + + gwhere( 3, 10, 1, x, 1, y, 1, out, 1 ); // $ExpectError + gwhere( 3, true, 1, x, 1, y, 1, out, 1 ); // $ExpectError + gwhere( 3, false, 1, x, 1, y, 1, out, 1 ); // $ExpectError + gwhere( 3, null, 1, x, 1, y, 1, out, 1 ); // $ExpectError + gwhere( 3, undefined, 1, x, 1, y, 1, out, 1 ); // $ExpectError + gwhere( 3, {}, 1, x, 1, y, 1, out, 1 ); // $ExpectError + gwhere( 3, ( x: number ): number => x, 1, x, 1, y, 1, out, 1 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a third argument which is not a number... +{ + const x = new Float64Array( 3 ); + const y = new Float64Array( 3 ); + const condition = new Float64Array( 3 ); + const out = new Float64Array( 3 ); + + gwhere( 3, condition, '10', x, 1, y, 1, out, 1 ); // $ExpectError + gwhere( 3, condition, true, x, 1, y, 1, out, 1 ); // $ExpectError + gwhere( 3, condition, false, x, 1, y, 1, out, 1 ); // $ExpectError + gwhere( 3, condition, null, x, 1, y, 1, out, 1 ); // $ExpectError + gwhere( 3, condition, undefined, x, 1, y, 1, out, 1 ); // $ExpectError + gwhere( 3, condition, [], x, 1, y, 1, out, 1 ); // $ExpectError + gwhere( 3, condition, {}, x, 1, y, 1, out, 1 ); // $ExpectError + gwhere( 3, condition, ( x: number ): number => x, x, 1, y, 1, out, 1 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a fourth argument which is not a collection... +{ + const y = new Float64Array( 3 ); + const condition = new Float64Array( 3 ); + const out = new Float64Array( 3 ); + + gwhere( 3, condition, 1, 10, 1, y, 1, out, 1 ); // $ExpectError + gwhere( 3, condition, 1, true, 1, y, 1, out, 1 ); // $ExpectError + gwhere( 3, condition, 1, false, 1, y, 1, out, 1 ); // $ExpectError + gwhere( 3, condition, 1, null, 1, y, 1, out, 1 ); // $ExpectError + gwhere( 3, condition, 1, undefined, 1, y, 1, out, 1 ); // $ExpectError + gwhere( 3, condition, 1, {}, 1, y, 1, out, 1 ); // $ExpectError + gwhere( 3, condition, 1, ( x: number ): number => x, 1, y, 1, out, 1 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a fifth argument which is not a number... +{ + const x = new Float64Array( 3 ); + const y = new Float64Array( 3 ); + const condition = new Float64Array( 3 ); + const out = new Float64Array( 3 ); + + gwhere( 3, condition, 1, x, '10', y, 1, out, 1 ); // $ExpectError + gwhere( 3, condition, 1, x, true, y, 1, out, 1 ); // $ExpectError + gwhere( 3, condition, 1, x, false, y, 1, out, 1 ); // $ExpectError + gwhere( 3, condition, 1, x, null, y, 1, out, 1 ); // $ExpectError + gwhere( 3, condition, 1, x, undefined, y, 1, out, 1 ); // $ExpectError + gwhere( 3, condition, 1, x, [], y, 1, out, 1 ); // $ExpectError + gwhere( 3, condition, 1, x, {}, y, 1, out, 1 ); // $ExpectError + gwhere( 3, condition, 1, x, ( x: number ): number => x, y, 1, out, 1 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a sixth argument which is not a collection... +{ + const x = new Float64Array( 3 ); + const condition = new Float64Array( 3 ); + const out = new Float64Array( 3 ); + + gwhere( 3, condition, 1, x, 1, 10, 1, out, 1 ); // $ExpectError + gwhere( 3, condition, 1, x, 1, true, 1, out, 1 ); // $ExpectError + gwhere( 3, condition, 1, x, 1, false, 1, out, 1 ); // $ExpectError + gwhere( 3, condition, 1, x, 1, null, 1, out, 1 ); // $ExpectError + gwhere( 3, condition, 1, x, 1, undefined, 1, out, 1 ); // $ExpectError + gwhere( 3, condition, 1, x, 1, {}, 1, out, 1 ); // $ExpectError + gwhere( 3, condition, 1, x, 1, ( x: number ): number => x, 1, out, 1 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a seventh argument which is not a number... +{ + const x = new Float64Array( 3 ); + const y = new Float64Array( 3 ); + const condition = new Float64Array( 3 ); + const out = new Float64Array( 3 ); + + gwhere( 3, condition, 1, x, 1, y, '10', out, 1 ); // $ExpectError + gwhere( 3, condition, 1, x, 1, y, true, out, 1 ); // $ExpectError + gwhere( 3, condition, 1, x, 1, y, false, out, 1 ); // $ExpectError + gwhere( 3, condition, 1, x, 1, y, null, out, 1 ); // $ExpectError + gwhere( 3, condition, 1, x, 1, y, undefined, out, 1 ); // $ExpectError + gwhere( 3, condition, 1, x, 1, y, [], out, 1 ); // $ExpectError + gwhere( 3, condition, 1, x, 1, y, {}, out, 1 ); // $ExpectError + gwhere( 3, condition, 1, x, 1, y, ( x: number ): number => x, out, 1 ); // $ExpectError +} + +// The compiler throws an error if the function is provided an eighth argument which is not a collection... +{ + const x = new Float64Array( 3 ); + const y = new Float64Array( 3 ); + const condition = new Float64Array( 3 ); + + gwhere( 3, condition, 1, x, 1, y, 1, 10, 1 ); // $ExpectError + gwhere( 3, condition, 1, x, 1, y, 1, true, 1 ); // $ExpectError + gwhere( 3, condition, 1, x, 1, y, 1, false, 1 ); // $ExpectError + gwhere( 3, condition, 1, x, 1, y, 1, null, 1 ); // $ExpectError + gwhere( 3, condition, 1, x, 1, y, 1, undefined, 1 ); // $ExpectError + gwhere( 3, condition, 1, x, 1, y, 1, {}, 1 ); // $ExpectError + gwhere( 3, condition, 1, x, 1, y, 1, ( x: number ): number => x, 1 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a ninth argument which is not a number... +{ + const x = new Float64Array( 3 ); + const y = new Float64Array( 3 ); + const condition = new Float64Array( 3 ); + const out = new Float64Array( 3 ); + + gwhere( 3, condition, 1, x, 1, y, 1, out, '10' ); // $ExpectError + gwhere( 3, condition, 1, x, 1, y, 1, out, true ); // $ExpectError + gwhere( 3, condition, 1, x, 1, y, 1, out, false ); // $ExpectError + gwhere( 3, condition, 1, x, 1, y, 1, out, null ); // $ExpectError + gwhere( 3, condition, 1, x, 1, y, 1, out, undefined ); // $ExpectError + gwhere( 3, condition, 1, x, 1, y, 1, out, [] ); // $ExpectError + gwhere( 3, condition, 1, x, 1, y, 1, out, {} ); // $ExpectError + gwhere( 3, condition, 1, x, 1, y, 1, out, ( x: number ): number => x ); // $ExpectError +} + +// The compiler throws an error if the function is provided an unsupported number of arguments... +{ + const x = new Float64Array( 3 ); + const y = new Float64Array( 3 ); + const condition = new Float64Array( 3 ); + const out = new Float64Array( 3 ); + + gwhere(); // $ExpectError + gwhere( 3 ); // $ExpectError + gwhere( 3, condition ); // $ExpectError + gwhere( 3, condition, 1 ); // $ExpectError + gwhere( 3, condition, 1, x ); // $ExpectError + gwhere( 3, condition, 1, x, 1 ); // $ExpectError + gwhere( 3, condition, 1, x, 1, y ); // $ExpectError + gwhere( 3, condition, 1, x, 1, y, 1 ); // $ExpectError + gwhere( 3, condition, 1, x, 1, y, 1, out ); // $ExpectError + gwhere( 3, condition, 1, x, 1, y, 1, out, 1, 10 ); // $ExpectError +} + +// Attached to main export is an `ndarray` method which returns a collection... +{ + const x = new Float64Array( 3 ); + const y = new Float64Array( 3 ); + const condition = new Float64Array( 3 ); + const out = new Float64Array( 3 ); + + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, 1, 0, out, 1, 0 ); // $ExpectType Float64Array + gwhere.ndarray( 3, new AccessorArray( condition ), 1, 0, new AccessorArray( x ), 1, 0, new AccessorArray( y ), 1, 0, new AccessorArray( out ), 1, 0 ); // $ExpectType AccessorArray +} + +// The compiler throws an error if the `ndarray` method is provided a first argument which is not a number... +{ + const x = new Float64Array( 3 ); + const y = new Float64Array( 3 ); + const condition = new Float64Array( 3 ); + const out = new Float64Array( 3 ); + + gwhere.ndarray( '10', condition, 1, 0, x, 1, 0, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( true, condition, 1, 0, x, 1, 0, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( false, condition, 1, 0, x, 1, 0, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( null, condition, 1, 0, x, 1, 0, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( undefined, condition, 1, 0, x, 1, 0, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( [], condition, 1, 0, x, 1, 0, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( {}, condition, 1, 0, x, 1, 0, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( ( x: number ): number => x, condition, 1, 0, x, 1, 0, y, 1, 0, out, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the `ndarray` method is provided a second argument which is not a collection... +{ + const x = new Float64Array( 3 ); + const y = new Float64Array( 3 ); + const out = new Float64Array( 3 ); + + gwhere.ndarray( 3, 10, 1, 0, x, 1, 0, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, true, 1, 0, x, 1, 0, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, false, 1, 0, x, 1, 0, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, null, 1, 0, x, 1, 0, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, undefined, 1, 0, x, 1, 0, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, {}, 1, 0, x, 1, 0, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, ( x: number ): number => x, 1, 0, x, 1, 0, y, 1, 0, out, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the `ndarray` method is provided a third argument which is not a number... +{ + const x = new Float64Array( 3 ); + const y = new Float64Array( 3 ); + const condition = new Float64Array( 3 ); + const out = new Float64Array( 3 ); + + gwhere.ndarray( 3, condition, '10', 0, x, 1, 0, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, true, 0, x, 1, 0, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, false, 0, x, 1, 0, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, null, 0, x, 1, 0, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, undefined, 0, x, 1, 0, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, [], 0, x, 1, 0, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, {}, 0, x, 1, 0, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, ( x: number ): number => x, 0, x, 1, 0, y, 1, 0, out, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the `ndarray` method is provided a fourth argument which is not a number... +{ + const x = new Float64Array( 3 ); + const y = new Float64Array( 3 ); + const condition = new Float64Array( 3 ); + const out = new Float64Array( 3 ); + + gwhere.ndarray( 3, condition, 1, '10', x, 1, 0, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, true, x, 1, 0, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, false, x, 1, 0, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, null, x, 1, 0, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, undefined, x, 1, 0, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, [], x, 1, 0, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, {}, x, 1, 0, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, ( x: number ): number => x, x, 1, 0, y, 1, 0, out, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the `ndarray` method is provided a fifth argument which is not a collection... +{ + const y = new Float64Array( 3 ); + const condition = new Float64Array( 3 ); + const out = new Float64Array( 3 ); + + gwhere.ndarray( 3, condition, 1, 0, 10, 1, 0, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, true, 1, 0, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, false, 1, 0, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, null, 1, 0, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, undefined, 1, 0, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, {}, 1, 0, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, ( x: number ): number => x, 1, 0, y, 1, 0, out, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the `ndarray` method is provided a sixth argument which is not a number... +{ + const x = new Float64Array( 3 ); + const y = new Float64Array( 3 ); + const condition = new Float64Array( 3 ); + const out = new Float64Array( 3 ); + + gwhere.ndarray( 3, condition, 1, 0, x, '10', 0, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, true, 0, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, false, 0, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, null, 0, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, undefined, 0, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, [], 0, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, {}, 0, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, ( x: number ): number => x, 0, y, 1, 0, out, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the `ndarray` method is provided a seventh argument which is not a number... +{ + const x = new Float64Array( 3 ); + const y = new Float64Array( 3 ); + const condition = new Float64Array( 3 ); + const out = new Float64Array( 3 ); + + gwhere.ndarray( 3, condition, 1, 0, x, 1, '10', y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, true, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, false, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, null, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, undefined, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, [], y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, {}, y, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, ( x: number ): number => x, y, 1, 0, out, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the `ndarray` method is provided an eighth argument which is not a collection... +{ + const x = new Float64Array( 3 ); + const condition = new Float64Array( 3 ); + const out = new Float64Array( 3 ); + + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, 10, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, true, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, false, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, null, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, undefined, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, {}, 1, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, ( x: number ): number => x, 1, 0, out, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the `ndarray` method is provided a ninth argument which is not a number... +{ + const x = new Float64Array( 3 ); + const y = new Float64Array( 3 ); + const condition = new Float64Array( 3 ); + const out = new Float64Array( 3 ); + + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, '10', 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, true, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, false, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, null, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, undefined, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, [], 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, {}, 0, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, ( x: number ): number => x, 0, out, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the `ndarray` method is provided a tenth argument which is not a number... +{ + const x = new Float64Array( 3 ); + const y = new Float64Array( 3 ); + const condition = new Float64Array( 3 ); + const out = new Float64Array( 3 ); + + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, 1, '10', out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, 1, true, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, 1, false, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, 1, null, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, 1, undefined, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, 1, [], out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, 1, {}, out, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, 1, ( x: number ): number => x, out, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the `ndarray` method is provided an eleventh argument which is not a collection... +{ + const x = new Float64Array( 3 ); + const y = new Float64Array( 3 ); + const condition = new Float64Array( 3 ); + + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, 1, 0, 10, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, 1, 0, true, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, 1, 0, false, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, 1, 0, null, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, 1, 0, undefined, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, 1, 0, {}, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, 1, 0, ( x: number ): number => x, 1, 0 ); // $ExpectError +} + +// The compiler throws an error if the `ndarray` method is provided a twelfth argument which is not a number... +{ + const x = new Float64Array( 3 ); + const y = new Float64Array( 3 ); + const condition = new Float64Array( 3 ); + const out = new Float64Array( 3 ); + + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, 1, 0, out, '10', 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, 1, 0, out, true, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, 1, 0, out, false, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, 1, 0, out, null, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, 1, 0, out, undefined, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, 1, 0, out, [], 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, 1, 0, out, {}, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, 1, 0, out, ( x: number ): number => x, 0 ); // $ExpectError +} + +// The compiler throws an error if the `ndarray` method is provided a thirteenth argument which is not a number... +{ + const x = new Float64Array( 3 ); + const y = new Float64Array( 3 ); + const condition = new Float64Array( 3 ); + const out = new Float64Array( 3 ); + + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, 1, 0, out, 1, '10' ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, 1, 0, out, 1, true ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, 1, 0, out, 1, false ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, 1, 0, out, 1, null ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, 1, 0, out, 1, undefined ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, 1, 0, out, 1, [] ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, 1, 0, out, 1, {} ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, 1, 0, out, 1, ( x: number ): number => x ); // $ExpectError +} + +// The compiler throws an error if the `ndarray` method is provided an unsupported number of arguments... +{ + const x = new Float64Array( 3 ); + const y = new Float64Array( 3 ); + const condition = new Float64Array( 3 ); + const out = new Float64Array( 3 ); + + gwhere.ndarray(); // $ExpectError + gwhere.ndarray( 3 ); // $ExpectError + gwhere.ndarray( 3, condition ); // $ExpectError + gwhere.ndarray( 3, condition, 1 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, 1 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, 1, 0 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, 1, 0, out ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, 1, 0, out, 1 ); // $ExpectError + gwhere.ndarray( 3, condition, 1, 0, x, 1, 0, y, 1, 0, out, 1, 0, 10 ); // $ExpectError +} diff --git a/lib/node_modules/@stdlib/blas/ext/base/gwhere/examples/index.js b/lib/node_modules/@stdlib/blas/ext/base/gwhere/examples/index.js new file mode 100644 index 000000000000..4aab88e0214a --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/gwhere/examples/index.js @@ -0,0 +1,45 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 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 bernoulli = require( '@stdlib/random/array/bernoulli' ); +var discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); +var zeros = require( '@stdlib/array/base/zeros' ); +var gwhere = require( './../lib' ); + +var condition = bernoulli( 20, 0.5, { + 'dtype': 'generic' +}); +console.log( condition ); + +var x = discreteUniform( 20, 0, 100, { + 'dtype': 'generic' +}); +console.log( x ); + +var y = discreteUniform( 20, -100, 0, { + 'dtype': 'generic' +}); +console.log( y ); + +var out = zeros( condition.length ); +console.log( out ); + +gwhere( condition.length, condition, 1, x, 1, y, 1, out, 1 ); +console.log( out ); diff --git a/lib/node_modules/@stdlib/blas/ext/base/gwhere/lib/accessors.js b/lib/node_modules/@stdlib/blas/ext/base/gwhere/lib/accessors.js new file mode 100644 index 000000000000..169f48b722ef --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/gwhere/lib/accessors.js @@ -0,0 +1,112 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 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'; + +// MAIN // + +/** +* Takes elements from one of two strided arrays depending on a condition. +* +* @private +* @param {PositiveInteger} N - number of indexed elements +* @param {Object} condition - condition array object +* @param {Collection} condition.data - condition array data +* @param {Array} condition.accessors - array element accessors +* @param {integer} strideC - stride length for `condition` +* @param {NonNegativeInteger} offsetC - starting index for `condition` +* @param {Object} x - first input array object +* @param {Collection} x.data - first input array data +* @param {Array} x.accessors - array element accessors +* @param {integer} strideX - stride length for `x` +* @param {NonNegativeInteger} offsetX - starting index for `x` +* @param {Object} y - second input array object +* @param {Collection} y.data - second input array data +* @param {Array} y.accessors - array element accessors +* @param {integer} strideY - stride length for `y` +* @param {NonNegativeInteger} offsetY - starting index for `y` +* @param {Object} out - output array object +* @param {Collection} out.data - output array data +* @param {Array} out.accessors - array element accessors +* @param {integer} strideOut - stride length for `out` +* @param {NonNegativeInteger} offsetOut - starting index for `out` +* @returns {Object} output array object +* +* @example +* var toAccessorArray = require( '@stdlib/array/base/to-accessor-array' ); +* var arraylike2object = require( '@stdlib/array/base/arraylike2object' ); +* +* var condition = arraylike2object( toAccessorArray( [ 1, 0, 1 ] ) ); +* var x = arraylike2object( toAccessorArray( [ 1.0, 2.0, 3.0 ] ) ); +* var y = arraylike2object( toAccessorArray( [ 4.0, 5.0, 6.0 ] ) ); +* var out = arraylike2object( toAccessorArray( [ 0.0, 0.0, 0.0 ] ) ); +* +* gwhere( 3, condition, 1, 0, x, 1, 0, y, 1, 0, out, 1, 0 ); +* +* var v = out.data.get( 0 ); +* // returns 1.0 +*/ +function gwhere( N, condition, strideC, offsetC, x, strideX, offsetX, y, strideY, offsetY, out, strideOut, offsetOut ) { // eslint-disable-line max-len, max-params + var cbuf; + var xbuf; + var ybuf; + var obuf; + var cget; + var xget; + var yget; + var oset; + var ic; + var ix; + var iy; + var io; + var i; + + // Cache references to array data: + cbuf = condition.data; + xbuf = x.data; + ybuf = y.data; + obuf = out.data; + + // Cache references to element accessors: + cget = condition.accessors[ 0 ]; + xget = x.accessors[ 0 ]; + yget = y.accessors[ 0 ]; + oset = out.accessors[ 1 ]; + + ic = offsetC; + ix = offsetX; + iy = offsetY; + io = offsetOut; + for ( i = 0; i < N; i++ ) { + if ( cget( cbuf, ic ) ) { + oset( obuf, io, xget( xbuf, ix ) ); + } else { + oset( obuf, io, yget( ybuf, iy ) ); + } + ic += strideC; + ix += strideX; + iy += strideY; + io += strideOut; + } + return out; +} + + +// EXPORTS // + +module.exports = gwhere; diff --git a/lib/node_modules/@stdlib/blas/ext/base/gwhere/lib/index.js b/lib/node_modules/@stdlib/blas/ext/base/gwhere/lib/index.js new file mode 100644 index 000000000000..adb2a9789ca6 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/gwhere/lib/index.js @@ -0,0 +1,63 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 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'; + +/** +* Take elements from one of two strided arrays depending on a condition. +* +* @module @stdlib/blas/ext/base/gwhere +* +* @example +* var gwhere = require( '@stdlib/blas/ext/base/gwhere' ); +* +* var condition = [ 1, 0, 1 ]; +* var x = [ 1.0, 2.0, 3.0 ]; +* var y = [ 4.0, 5.0, 6.0 ]; +* var out = [ 0.0, 0.0, 0.0 ]; +* +* gwhere( 3, condition, 1, x, 1, y, 1, out, 1 ); +* // out => [ 1.0, 5.0, 3.0 ] +* +* @example +* var gwhere = require( '@stdlib/blas/ext/base/gwhere' ); +* +* var condition = [ 1, 0, 1, 0 ]; +* var x = [ 1.0, 2.0, 3.0, 4.0 ]; +* var y = [ 5.0, 6.0, 7.0, 8.0 ]; +* var out = [ 0.0, 0.0, 0.0, 0.0 ]; +* +* gwhere.ndarray( 4, condition, 1, 0, x, 1, 0, y, 1, 0, out, 1, 0 ); +* // out => [ 1.0, 6.0, 3.0, 8.0 ] +*/ + +// MODULES // + +var setReadOnly = require( '@stdlib/utils/define-nonenumerable-read-only-property' ); +var main = require( './main.js' ); +var ndarray = require( './ndarray.js' ); + + +// MAIN // + +setReadOnly( main, 'ndarray', ndarray ); + + +// EXPORTS // + +module.exports = main; diff --git a/lib/node_modules/@stdlib/blas/ext/base/gwhere/lib/main.js b/lib/node_modules/@stdlib/blas/ext/base/gwhere/lib/main.js new file mode 100644 index 000000000000..b8564edaab5e --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/gwhere/lib/main.js @@ -0,0 +1,63 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 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 stride2offset = require( '@stdlib/strided/base/stride2offset' ); +var ndarray = require( './ndarray.js' ); + + +// MAIN // + +/** +* Takes elements from one of two strided arrays depending on a condition. +* +* @param {PositiveInteger} N - number of indexed elements +* @param {Collection} condition - condition array +* @param {integer} strideC - stride length for `condition` +* @param {Collection} x - first input array +* @param {integer} strideX - stride length for `x` +* @param {Collection} y - second input array +* @param {integer} strideY - stride length for `y` +* @param {Collection} out - output array +* @param {integer} strideOut - stride length for `out` +* @returns {Collection} output array +* +* @example +* var x = [ 1.0, 2.0, 3.0 ]; +* var y = [ 4.0, 5.0, 6.0 ]; +* var condition = [ 1, 0, 1 ]; +* var out = [ 0.0, 0.0, 0.0 ]; +* +* gwhere( 3, condition, 1, x, 1, y, 1, out, 1 ); +* // out => [ 1.0, 5.0, 3.0 ] +*/ +function gwhere( N, condition, strideC, x, strideX, y, strideY, out, strideOut ) { // eslint-disable-line max-len + var oc = stride2offset( N, strideC ); + var ox = stride2offset( N, strideX ); + var oy = stride2offset( N, strideY ); + var oo = stride2offset( N, strideOut ); + return ndarray( N, condition, strideC, oc, x, strideX, ox, y, strideY, oy, out, strideOut, oo ); // eslint-disable-line max-len +} + + +// EXPORTS // + +module.exports = gwhere; diff --git a/lib/node_modules/@stdlib/blas/ext/base/gwhere/lib/ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gwhere/lib/ndarray.js new file mode 100644 index 000000000000..11bfc8e25fbe --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/gwhere/lib/ndarray.js @@ -0,0 +1,99 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 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 arraylike2object = require( '@stdlib/array/base/arraylike2object' ); +var accessors = require( './accessors.js' ); + + +// MAIN // + +/** +* Takes elements from one of two strided arrays depending on a condition. +* +* @param {PositiveInteger} N - number of indexed elements +* @param {Collection} condition - condition array +* @param {integer} strideC - stride length for `condition` +* @param {NonNegativeInteger} offsetC - starting index for `condition` +* @param {Collection} x - first input array +* @param {integer} strideX - stride length for `x` +* @param {NonNegativeInteger} offsetX - starting index for `x` +* @param {Collection} y - second input array +* @param {integer} strideY - stride length for `y` +* @param {NonNegativeInteger} offsetY - starting index for `y` +* @param {Collection} out - output array +* @param {integer} strideOut - stride length for `out` +* @param {NonNegativeInteger} offsetOut - starting index for `out` +* @returns {Collection} output array +* +* @example +* var x = [ 1.0, 2.0, 3.0 ]; +* var y = [ 4.0, 5.0, 6.0 ]; +* var condition = [ 1, 0, 1 ]; +* var out = [ 0.0, 0.0, 0.0 ]; +* +* gwhere( 3, condition, 1, 0, x, 1, 0, y, 1, 0, out, 1, 0 ); +* // out => [ 1.0, 5.0, 3.0 ] +*/ +function gwhere( N, condition, strideC, offsetC, x, strideX, offsetX, y, strideY, offsetY, out, strideOut, offsetOut ) { // eslint-disable-line max-len, max-params + var oc; + var ox; + var oy; + var oo; + var ic; + var ix; + var iy; + var io; + var i; + + if ( N <= 0 ) { + return out; + } + oc = arraylike2object( condition ); + ox = arraylike2object( x ); + oy = arraylike2object( y ); + oo = arraylike2object( out ); + if ( oc.accessorProtocol || ox.accessorProtocol || oy.accessorProtocol || oo.accessorProtocol ) { // eslint-disable-line max-len + accessors( N, oc, strideC, offsetC, ox, strideX, offsetX, oy, strideY, offsetY, oo, strideOut, offsetOut ); // eslint-disable-line max-len + return out; + } + ic = offsetC; + ix = offsetX; + iy = offsetY; + io = offsetOut; + for ( i = 0; i < N; i++ ) { + if ( condition[ ic ] ) { + out[ io ] = x[ ix ]; + } else { + out[ io ] = y[ iy ]; + } + ic += strideC; + ix += strideX; + iy += strideY; + io += strideOut; + } + return out; +} + + +// EXPORTS // + +module.exports = gwhere; diff --git a/lib/node_modules/@stdlib/blas/ext/base/gwhere/package.json b/lib/node_modules/@stdlib/blas/ext/base/gwhere/package.json new file mode 100644 index 000000000000..a1cfbf2011ee --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/gwhere/package.json @@ -0,0 +1,69 @@ +{ + "name": "@stdlib/blas/ext/base/gwhere", + "version": "0.0.0", + "description": "Take elements from one of two strided arrays depending on a condition.", + "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", + "extended", + "where", + "condition", + "conditional", + "select", + "ternary", + "strided", + "strided array", + "typed", + "array" + ], + "__stdlib__": {} +} diff --git a/lib/node_modules/@stdlib/blas/ext/base/gwhere/test/test.js b/lib/node_modules/@stdlib/blas/ext/base/gwhere/test/test.js new file mode 100644 index 000000000000..0419572eec7d --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/gwhere/test/test.js @@ -0,0 +1,38 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 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 gwhere = require( './../lib' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof gwhere, '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 gwhere.ndarray, 'function', 'method is a function' ); + t.end(); +}); diff --git a/lib/node_modules/@stdlib/blas/ext/base/gwhere/test/test.main.js b/lib/node_modules/@stdlib/blas/ext/base/gwhere/test/test.main.js new file mode 100644 index 000000000000..17d3beb6f67b --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/gwhere/test/test.main.js @@ -0,0 +1,580 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 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 toAccessorArray = require( '@stdlib/array/base/to-accessor-array' ); +var Float64Array = require( '@stdlib/array/float64' ); +var gwhere = require( './../lib' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof gwhere, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function has an arity of 9', function test( t ) { + t.strictEqual( gwhere.length, 9, 'has expected arity' ); + t.end(); +}); + +tape( 'the function selects elements from `x` or `y` based on a condition', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ 1, 0, 1, 0, 1 ]; + x = [ 1.0, 2.0, 3.0, 4.0, 5.0 ]; + y = [ 6.0, 7.0, 8.0, 9.0, 10.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gwhere( 5, condition, 1, x, 1, y, 1, out, 1 ); + expected = [ 1.0, 7.0, 3.0, 9.0, 5.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function selects elements from `x` or `y` based on a condition (all true)', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ 1, 1, 1 ]; + x = [ 1.0, 2.0, 3.0 ]; + y = [ 4.0, 5.0, 6.0 ]; + out = [ 0.0, 0.0, 0.0 ]; + + gwhere( 3, condition, 1, x, 1, y, 1, out, 1 ); + expected = [ 1.0, 2.0, 3.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function selects elements from `x` or `y` based on a condition (all false)', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ 0, 0, 0 ]; + x = [ 1.0, 2.0, 3.0 ]; + y = [ 4.0, 5.0, 6.0 ]; + out = [ 0.0, 0.0, 0.0 ]; + + gwhere( 3, condition, 1, x, 1, y, 1, out, 1 ); + expected = [ 4.0, 5.0, 6.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function selects elements from `x` or `y` based on a condition (truthy/falsy)', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ true, false, 'a', '', 5, 0, null ]; + x = [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0 ]; + y = [ 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gwhere( 7, condition, 1, x, 1, y, 1, out, 1 ); + expected = [ 1.0, 9.0, 3.0, 11.0, 5.0, 13.0, 14.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function selects elements from `x` or `y` based on a condition (accessors)', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ 1, 0, 1, 0, 1 ]; + x = [ 1.0, 2.0, 3.0, 4.0, 5.0 ]; + y = [ 6.0, 7.0, 8.0, 9.0, 10.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gwhere( 5, toAccessorArray( condition ), 1, toAccessorArray( x ), 1, toAccessorArray( y ), 1, toAccessorArray( out ), 1 ); // eslint-disable-line max-len + expected = [ 1.0, 7.0, 3.0, 9.0, 5.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function returns a reference to the output array', function test( t ) { + var condition; + var actual; + var out; + var x; + var y; + + condition = [ 1, 0, 1 ]; + x = [ 1.0, 2.0, 3.0 ]; + y = [ 4.0, 5.0, 6.0 ]; + out = [ 0.0, 0.0, 0.0 ]; + + actual = gwhere( 3, condition, 1, x, 1, y, 1, out, 1 ); + + t.strictEqual( actual, out, 'returns expected value' ); + t.end(); +}); + +tape( 'if provided an `N` parameter less than or equal to `0`, the function returns the output array unchanged', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ 1, 0, 1 ]; + x = [ 1.0, 2.0, 3.0 ]; + y = [ 4.0, 5.0, 6.0 ]; + expected = [ 0.0, 0.0, 0.0 ]; + + out = [ 0.0, 0.0, 0.0 ]; + gwhere( -1, condition, 1, x, 1, y, 1, out, 1 ); + t.deepEqual( out, expected, 'returns expected value' ); + + out = [ 0.0, 0.0, 0.0 ]; + gwhere( 0, condition, 1, x, 1, y, 1, out, 1 ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports a `condition` stride', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ + 1, // 0 + 0, + 0, // 1 + 1, + 1 // 2 + ]; + x = [ + 1.0, // 0 + 2.0, // 1 + 3.0, // 2 + 4.0, + 5.0 + ]; + y = [ + 6.0, // 0 + 7.0, // 1 + 8.0, // 2 + 9.0, + 10.0 + ]; + out = [ 0.0, 0.0, 0.0 ]; + + gwhere( 3, condition, 2, x, 1, y, 1, out, 1 ); + expected = [ 1.0, 7.0, 3.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports a `condition` stride (accessors)', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ + 1, // 0 + 0, + 0, // 1 + 1, + 1 // 2 + ]; + x = [ + 1.0, // 0 + 2.0, // 1 + 3.0, // 2 + 4.0, + 5.0 + ]; + y = [ + 6.0, // 0 + 7.0, // 1 + 8.0, // 2 + 9.0, + 10.0 + ]; + out = [ 0.0, 0.0, 0.0 ]; + + gwhere( 3, toAccessorArray( condition ), 2, toAccessorArray( x ), 1, toAccessorArray( y ), 1, toAccessorArray( out ), 1 ); // eslint-disable-line max-len + expected = [ 1.0, 7.0, 3.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports an `x` stride', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ + 1, // 0 + 0, // 1 + 1, // 2 + 0, + 0 + ]; + x = [ + 1.0, // 0 + 2.0, + 3.0, // 1 + 4.0, + 5.0 // 2 + ]; + y = [ + 6.0, // 0 + 7.0, // 1 + 8.0, // 2 + 9.0, + 10.0 + ]; + out = [ 0.0, 0.0, 0.0 ]; + + gwhere( 3, condition, 1, x, 2, y, 1, out, 1 ); + expected = [ 1.0, 7.0, 5.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports an `x` stride (accessors)', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ + 1, // 0 + 0, // 1 + 1, // 2 + 0, + 0 + ]; + x = [ + 1.0, // 0 + 2.0, + 3.0, // 1 + 4.0, + 5.0 // 2 + ]; + y = [ + 6.0, // 0 + 7.0, // 1 + 8.0, // 2 + 9.0, + 10.0 + ]; + out = [ 0.0, 0.0, 0.0 ]; + + gwhere( 3, toAccessorArray( condition ), 1, toAccessorArray( x ), 2, toAccessorArray( y ), 1, toAccessorArray( out ), 1 ); // eslint-disable-line max-len + expected = [ 1.0, 7.0, 5.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports a `y` stride', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ + 0, // 0 + 1, // 1 + 0, // 2 + 1, + 0 + ]; + x = [ + 1.0, // 0 + 2.0, // 1 + 3.0, // 2 + 4.0, + 5.0 + ]; + y = [ + 6.0, // 0 + 7.0, + 8.0, // 1 + 9.0, + 10.0 // 2 + ]; + out = [ 0.0, 0.0, 0.0 ]; + + gwhere( 3, condition, 1, x, 1, y, 2, out, 1 ); + expected = [ 6.0, 2.0, 10.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports a `y` stride (accessors)', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ + 0, // 0 + 1, // 1 + 0, // 2 + 1, + 0 + ]; + x = [ + 1.0, // 0 + 2.0, // 1 + 3.0, // 2 + 4.0, + 5.0 + ]; + y = [ + 6.0, // 0 + 7.0, + 8.0, // 1 + 9.0, + 10.0 // 2 + ]; + out = [ 0.0, 0.0, 0.0 ]; + + gwhere( 3, toAccessorArray( condition ), 1, toAccessorArray( x ), 1, toAccessorArray( y ), 2, toAccessorArray( out ), 1 ); // eslint-disable-line max-len + expected = [ 6.0, 2.0, 10.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports an `out` stride', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ 1, 0, 1 ]; + x = [ 1.0, 2.0, 3.0 ]; + y = [ 4.0, 5.0, 6.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gwhere( 3, condition, 1, x, 1, y, 1, out, 2 ); + expected = [ 1.0, 0.0, 5.0, 0.0, 3.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports an `out` stride (accessors)', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ 1, 0, 1 ]; + x = [ 1.0, 2.0, 3.0 ]; + y = [ 4.0, 5.0, 6.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gwhere( 3, toAccessorArray( condition ), 1, toAccessorArray( x ), 1, toAccessorArray( y ), 1, toAccessorArray( out ), 2 ); // eslint-disable-line max-len + expected = [ 1.0, 0.0, 5.0, 0.0, 3.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports negative strides', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ + 1, // 2 + 0, + 0, // 1 + 1, + 1 // 0 + ]; + x = [ + 1.0, // 2 + 2.0, // 1 + 3.0, // 0 + 4.0, + 5.0 + ]; + y = [ + 6.0, // 2 + 7.0, // 1 + 8.0, // 0 + 9.0, + 10.0 + ]; + out = [ 0.0, 0.0, 0.0 ]; + + gwhere( 3, condition, -2, x, -1, y, -1, out, -1 ); + expected = [ 1.0, 7.0, 3.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports negative strides (accessors)', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ + 1, // 2 + 0, + 0, // 1 + 1, + 1 // 0 + ]; + x = [ + 1.0, // 2 + 2.0, // 1 + 3.0, // 0 + 4.0, + 5.0 + ]; + y = [ + 6.0, // 2 + 7.0, // 1 + 8.0, // 0 + 9.0, + 10.0 + ]; + out = [ 0.0, 0.0, 0.0 ]; + + gwhere( 3, toAccessorArray( condition ), -2, toAccessorArray( x ), -1, toAccessorArray( y ), -1, toAccessorArray( out ), -1 ); // eslint-disable-line max-len + expected = [ 1.0, 7.0, 3.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports complex access patterns', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ + 1, // 0 + 0, + 0, // 1 + 1, + 1, // 2 + 0 + ]; + x = [ + 1.0, // 2 + 2.0, // 1 + 3.0, // 0 + 4.0, + 5.0, + 6.0 + ]; + y = [ + 7.0, // 0 + 8.0, + 9.0, // 1 + 10.0, + 11.0, // 2 + 12.0 + ]; + out = [ 0.0, 0.0, 0.0 ]; + + gwhere( 3, condition, 2, x, -1, y, 2, out, 1 ); + expected = [ 3.0, 9.0, 1.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports view offsets', function test( t ) { + var condition0; + var condition1; + var expected; + var out0; + var out1; + var x0; + var y0; + var x1; + var y1; + + // Initial arrays... + condition0 = new Float64Array( [ 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 ] ); + x0 = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); + y0 = new Float64Array( [ 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] ); + out0 = new Float64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); + + // Create offset views... + condition1 = new Float64Array( condition0.buffer, condition0.BYTES_PER_ELEMENT*1 ); // begin at 2nd element // eslint-disable-line max-len + x1 = new Float64Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // begin at 2nd element + y1 = new Float64Array( y0.buffer, y0.BYTES_PER_ELEMENT*1 ); // begin at 2nd element + out1 = new Float64Array( out0.buffer, out0.BYTES_PER_ELEMENT*1 ); // begin at 2nd element + + gwhere( 3, condition1, 2, x1, 2, y1, 2, out1, 1 ); + expected = new Float64Array( [ 0.0, 2.0, 4.0, 6.0, 0.0, 0.0 ] ); + + t.deepEqual( out0, expected, 'returns expected value' ); + t.end(); +}); diff --git a/lib/node_modules/@stdlib/blas/ext/base/gwhere/test/test.ndarray.js b/lib/node_modules/@stdlib/blas/ext/base/gwhere/test/test.ndarray.js new file mode 100644 index 000000000000..0aef137a04a5 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/gwhere/test/test.ndarray.js @@ -0,0 +1,831 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 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 toAccessorArray = require( '@stdlib/array/base/to-accessor-array' ); +var gwhere = require( './../lib/ndarray.js' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof gwhere, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function has an arity of 13', function test( t ) { + t.strictEqual( gwhere.length, 13, 'has expected arity' ); + t.end(); +}); + +tape( 'the function selects elements from `x` or `y` based on a condition', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ 1, 0, 1, 0, 1 ]; + x = [ 1.0, 2.0, 3.0, 4.0, 5.0 ]; + y = [ 6.0, 7.0, 8.0, 9.0, 10.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gwhere( 5, condition, 1, 0, x, 1, 0, y, 1, 0, out, 1, 0 ); + expected = [ 1.0, 7.0, 3.0, 9.0, 5.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function selects elements from `x` or `y` based on a condition (all true)', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ 1, 1, 1 ]; + x = [ 1.0, 2.0, 3.0 ]; + y = [ 4.0, 5.0, 6.0 ]; + out = [ 0.0, 0.0, 0.0 ]; + + gwhere( 3, condition, 1, 0, x, 1, 0, y, 1, 0, out, 1, 0 ); + expected = [ 1.0, 2.0, 3.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function selects elements from `x` or `y` based on a condition (all false)', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ 0, 0, 0 ]; + x = [ 1.0, 2.0, 3.0 ]; + y = [ 4.0, 5.0, 6.0 ]; + out = [ 0.0, 0.0, 0.0 ]; + + gwhere( 3, condition, 1, 0, x, 1, 0, y, 1, 0, out, 1, 0 ); + expected = [ 4.0, 5.0, 6.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function selects elements from `x` or `y` based on a condition (truthy/falsy)', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ true, false, 'a', '', 5, 0, null ]; + x = [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0 ]; + y = [ 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gwhere( 7, condition, 1, 0, x, 1, 0, y, 1, 0, out, 1, 0 ); + expected = [ 1.0, 9.0, 3.0, 11.0, 5.0, 13.0, 14.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function selects elements from `x` or `y` based on a condition (accessors)', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ 1, 0, 1, 0, 1 ]; + x = [ 1.0, 2.0, 3.0, 4.0, 5.0 ]; + y = [ 6.0, 7.0, 8.0, 9.0, 10.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gwhere( 5, toAccessorArray( condition ), 1, 0, toAccessorArray( x ), 1, 0, toAccessorArray( y ), 1, 0, toAccessorArray( out ), 1, 0 ); // eslint-disable-line max-len + expected = [ 1.0, 7.0, 3.0, 9.0, 5.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function returns a reference to the output array', function test( t ) { + var condition; + var actual; + var out; + var x; + var y; + + condition = [ 1, 0, 1 ]; + x = [ 1.0, 2.0, 3.0 ]; + y = [ 4.0, 5.0, 6.0 ]; + out = [ 0.0, 0.0, 0.0 ]; + + actual = gwhere( 3, condition, 1, 0, x, 1, 0, y, 1, 0, out, 1, 0 ); + + t.strictEqual( actual, out, 'returns expected value' ); + t.end(); +}); + +tape( 'if provided an `N` parameter less than or equal to `0`, the function returns the output array unchanged', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ 1, 0, 1 ]; + x = [ 1.0, 2.0, 3.0 ]; + y = [ 4.0, 5.0, 6.0 ]; + expected = [ 0.0, 0.0, 0.0 ]; + + out = [ 0.0, 0.0, 0.0 ]; + gwhere( -1, condition, 1, 0, x, 1, 0, y, 1, 0, out, 1, 0 ); + t.deepEqual( out, expected, 'returns expected value' ); + + out = [ 0.0, 0.0, 0.0 ]; + gwhere( 0, condition, 1, 0, x, 1, 0, y, 1, 0, out, 1, 0 ); + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports a `condition` stride', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ + 1, // 0 + 0, + 0, // 1 + 1, + 1 // 2 + ]; + x = [ + 1.0, // 0 + 2.0, // 1 + 3.0, // 2 + 4.0, + 5.0 + ]; + y = [ + 6.0, // 0 + 7.0, // 1 + 8.0, // 2 + 9.0, + 10.0 + ]; + out = [ 0.0, 0.0, 0.0 ]; + + gwhere( 3, condition, 2, 0, x, 1, 0, y, 1, 0, out, 1, 0 ); + expected = [ 1.0, 7.0, 3.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports a `condition` stride (accessors)', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ + 1, // 0 + 0, + 0, // 1 + 1, + 1 // 2 + ]; + x = [ + 1.0, // 0 + 2.0, // 1 + 3.0, // 2 + 4.0, + 5.0 + ]; + y = [ + 6.0, // 0 + 7.0, // 1 + 8.0, // 2 + 9.0, + 10.0 + ]; + out = [ 0.0, 0.0, 0.0 ]; + + gwhere( 3, toAccessorArray( condition ), 2, 0, toAccessorArray( x ), 1, 0, toAccessorArray( y ), 1, 0, toAccessorArray( out ), 1, 0 ); // eslint-disable-line max-len + expected = [ 1.0, 7.0, 3.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports an `x` stride', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ + 1, // 0 + 0, // 1 + 1, // 2 + 0, + 0 + ]; + x = [ + 1.0, // 0 + 2.0, + 3.0, // 1 + 4.0, + 5.0 // 2 + ]; + y = [ + 6.0, // 0 + 7.0, // 1 + 8.0, // 2 + 9.0, + 10.0 + ]; + out = [ 0.0, 0.0, 0.0 ]; + + gwhere( 3, condition, 1, 0, x, 2, 0, y, 1, 0, out, 1, 0 ); + expected = [ 1.0, 7.0, 5.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports an `x` stride (accessors)', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ + 1, // 0 + 0, // 1 + 1, // 2 + 0, + 0 + ]; + x = [ + 1.0, // 0 + 2.0, + 3.0, // 1 + 4.0, + 5.0 // 2 + ]; + y = [ + 6.0, // 0 + 7.0, // 1 + 8.0, // 2 + 9.0, + 10.0 + ]; + out = [ 0.0, 0.0, 0.0 ]; + + gwhere( 3, toAccessorArray( condition ), 1, 0, toAccessorArray( x ), 2, 0, toAccessorArray( y ), 1, 0, toAccessorArray( out ), 1, 0 ); // eslint-disable-line max-len + expected = [ 1.0, 7.0, 5.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports a `y` stride', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ + 0, // 0 + 1, // 1 + 0, // 2 + 1, + 0 + ]; + x = [ + 1.0, // 0 + 2.0, // 1 + 3.0, // 2 + 4.0, + 5.0 + ]; + y = [ + 6.0, // 0 + 7.0, + 8.0, // 1 + 9.0, + 10.0 // 2 + ]; + out = [ 0.0, 0.0, 0.0 ]; + + gwhere( 3, condition, 1, 0, x, 1, 0, y, 2, 0, out, 1, 0 ); + expected = [ 6.0, 2.0, 10.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports a `y` stride (accessors)', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ + 0, // 0 + 1, // 1 + 0, // 2 + 1, + 0 + ]; + x = [ + 1.0, // 0 + 2.0, // 1 + 3.0, // 2 + 4.0, + 5.0 + ]; + y = [ + 6.0, // 0 + 7.0, + 8.0, // 1 + 9.0, + 10.0 // 2 + ]; + out = [ 0.0, 0.0, 0.0 ]; + + gwhere( 3, toAccessorArray( condition ), 1, 0, toAccessorArray( x ), 1, 0, toAccessorArray( y ), 2, 0, toAccessorArray( out ), 1, 0 ); // eslint-disable-line max-len + expected = [ 6.0, 2.0, 10.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports an `out` stride', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ 1, 0, 1 ]; + x = [ 1.0, 2.0, 3.0 ]; + y = [ 4.0, 5.0, 6.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gwhere( 3, condition, 1, 0, x, 1, 0, y, 1, 0, out, 2, 0 ); + expected = [ 1.0, 0.0, 5.0, 0.0, 3.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports an `out` stride (accessors)', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ 1, 0, 1 ]; + x = [ 1.0, 2.0, 3.0 ]; + y = [ 4.0, 5.0, 6.0 ]; + out = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; + + gwhere( 3, toAccessorArray( condition ), 1, 0, toAccessorArray( x ), 1, 0, toAccessorArray( y ), 1, 0, toAccessorArray( out ), 2, 0 ); // eslint-disable-line max-len + expected = [ 1.0, 0.0, 5.0, 0.0, 3.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports negative strides', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ + 1, // 2 + 0, + 0, // 1 + 1, + 1 // 0 + ]; + x = [ + 1.0, // 2 + 2.0, // 1 + 3.0, // 0 + 4.0, + 5.0 + ]; + y = [ + 6.0, // 2 + 7.0, // 1 + 8.0, // 0 + 9.0, + 10.0 + ]; + out = [ 0.0, 0.0, 0.0 ]; + + gwhere( 3, condition, -2, 4, x, -1, 2, y, -1, 2, out, -1, 2 ); + expected = [ 1.0, 7.0, 3.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports negative strides (accessors)', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ + 1, // 2 + 0, + 0, // 1 + 1, + 1 // 0 + ]; + x = [ + 1.0, // 2 + 2.0, // 1 + 3.0, // 0 + 4.0, + 5.0 + ]; + y = [ + 6.0, // 2 + 7.0, // 1 + 8.0, // 0 + 9.0, + 10.0 + ]; + out = [ 0.0, 0.0, 0.0 ]; + + gwhere( 3, toAccessorArray( condition ), -2, 4, toAccessorArray( x ), -1, 2, toAccessorArray( y ), -1, 2, toAccessorArray( out ), -1, 2 ); // eslint-disable-line max-len + expected = [ 1.0, 7.0, 3.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports a `condition` offset', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ + 0, + 1, // 0 + 0, + 0, // 1 + 0, + 1 // 2 + ]; + x = [ + 1.0, // 0 + 2.0, // 1 + 3.0, // 2 + 4.0, + 5.0, + 6.0 + ]; + y = [ + 7.0, // 0 + 8.0, // 1 + 9.0, // 2 + 10.0, + 11.0, + 12.0 + ]; + out = [ 0.0, 0.0, 0.0 ]; + + gwhere( 3, condition, 2, 1, x, 1, 0, y, 1, 0, out, 1, 0 ); + expected = [ 1.0, 8.0, 3.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports a `condition` offset (accessors)', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ + 0, + 1, // 0 + 0, + 0, // 1 + 0, + 1 // 2 + ]; + x = [ + 1.0, // 0 + 2.0, // 1 + 3.0, // 2 + 4.0, + 5.0, + 6.0 + ]; + y = [ + 7.0, // 0 + 8.0, // 1 + 9.0, // 2 + 10.0, + 11.0, + 12.0 + ]; + out = [ 0.0, 0.0, 0.0 ]; + + gwhere( 3, toAccessorArray( condition ), 2, 1, toAccessorArray( x ), 1, 0, toAccessorArray( y ), 1, 0, toAccessorArray( out ), 1, 0 ); // eslint-disable-line max-len + expected = [ 1.0, 8.0, 3.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports an `x` offset', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ + 1, // 0 + 0, // 1 + 1, // 2 + 0 + ]; + x = [ + 0.0, + 1.0, // 0 + 0.0, + 2.0, // 1 + 0.0, + 3.0, // 2 + 0.0, + 4.0 + ]; + y = [ + 5.0, // 0 + 6.0, // 1 + 7.0, // 2 + 8.0 + ]; + out = [ 0.0, 0.0, 0.0 ]; + + gwhere( 3, condition, 1, 0, x, 2, 1, y, 1, 0, out, 1, 0 ); + expected = [ 1.0, 6.0, 3.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports an `x` offset (accessors)', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ + 1, // 0 + 0, // 1 + 1, // 2 + 0 + ]; + x = [ + 0.0, + 1.0, // 0 + 0.0, + 2.0, // 1 + 0.0, + 3.0, // 2 + 0.0, + 4.0 + ]; + y = [ + 5.0, // 0 + 6.0, // 1 + 7.0, // 2 + 8.0 + ]; + out = [ 0.0, 0.0, 0.0 ]; + + gwhere( 3, toAccessorArray( condition ), 1, 0, toAccessorArray( x ), 2, 1, toAccessorArray( y ), 1, 0, toAccessorArray( out ), 1, 0 ); // eslint-disable-line max-len + expected = [ 1.0, 6.0, 3.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports a `y` offset', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ + 0, // 0 + 1, // 1 + 0, // 2 + 1 + ]; + x = [ + 1.0, // 0 + 2.0, // 1 + 3.0, // 2 + 4.0 + ]; + y = [ + 0.0, + 5.0, // 0 + 0.0, + 6.0, // 1 + 0.0, + 7.0, // 2 + 0.0, + 8.0 + ]; + out = [ 0.0, 0.0, 0.0 ]; + + gwhere( 3, condition, 1, 0, x, 1, 0, y, 2, 1, out, 1, 0 ); + expected = [ 5.0, 2.0, 7.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports a `y` offset (accessors)', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ + 0, // 0 + 1, // 1 + 0, // 2 + 1 + ]; + x = [ + 1.0, // 0 + 2.0, // 1 + 3.0, // 2 + 4.0 + ]; + y = [ + 0.0, + 5.0, // 0 + 0.0, + 6.0, // 1 + 0.0, + 7.0, // 2 + 0.0, + 8.0 + ]; + out = [ 0.0, 0.0, 0.0 ]; + + gwhere( 3, toAccessorArray( condition ), 1, 0, toAccessorArray( x ), 1, 0, toAccessorArray( y ), 2, 1, toAccessorArray( out ), 1, 0 ); // eslint-disable-line max-len + expected = [ 5.0, 2.0, 7.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports an `out` offset', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ 1, 0, 1 ]; + x = [ 1.0, 2.0, 3.0 ]; + y = [ 4.0, 5.0, 6.0 ]; + out = [ + 0.0, + 0.0, + 0.0, // 0 + 0.0, // 1 + 0.0 // 2 + ]; + + gwhere( 3, condition, 1, 0, x, 1, 0, y, 1, 0, out, 1, 2 ); + expected = [ 0.0, 0.0, 1.0, 5.0, 3.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports an `out` offset (accessors)', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ 1, 0, 1 ]; + x = [ 1.0, 2.0, 3.0 ]; + y = [ 4.0, 5.0, 6.0 ]; + out = [ + 0.0, + 0.0, + 0.0, // 0 + 0.0, // 1 + 0.0 // 2 + ]; + + gwhere( 3, toAccessorArray( condition ), 1, 0, toAccessorArray( x ), 1, 0, toAccessorArray( y ), 1, 0, toAccessorArray( out ), 1, 2 ); // eslint-disable-line max-len + expected = [ 0.0, 0.0, 1.0, 5.0, 3.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports complex access patterns', function test( t ) { + var condition; + var expected; + var out; + var x; + var y; + + condition = [ + 1, // 0 + 0, + 0, // 1 + 1, + 1, // 2 + 0 + ]; + x = [ + 1.0, // 2 + 2.0, // 1 + 3.0, // 0 + 4.0, + 5.0, + 6.0 + ]; + y = [ + 7.0, // 0 + 8.0, + 9.0, // 1 + 10.0, + 11.0, // 2 + 12.0 + ]; + out = [ 0.0, 0.0, 0.0 ]; + + gwhere( 3, condition, 2, 0, x, -1, 2, y, 2, 0, out, 1, 0 ); + expected = [ 3.0, 9.0, 1.0 ]; + t.deepEqual( out, expected, 'returns expected value' ); + + t.end(); +}); diff --git a/lib/node_modules/@stdlib/blas/ext/base/lib/index.js b/lib/node_modules/@stdlib/blas/ext/base/lib/index.js index 3bc9d46a28ba..72b9e149e538 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/lib/index.js +++ b/lib/node_modules/@stdlib/blas/ext/base/lib/index.js @@ -918,6 +918,15 @@ setReadOnly( ns, 'gnansumpw', require( '@stdlib/blas/ext/base/gnansumpw' ) ); */ setReadOnly( ns, 'goneTo', require( '@stdlib/blas/ext/base/gone-to' ) ); +/** +* @name greplicate +* @memberof ns +* @readonly +* @type {Function} +* @see {@link module:@stdlib/blas/ext/base/greplicate} +*/ +setReadOnly( ns, 'greplicate', require( '@stdlib/blas/ext/base/greplicate' ) ); + /** * @name grev * @memberof ns @@ -1035,6 +1044,15 @@ setReadOnly( ns, 'gsumors', require( '@stdlib/blas/ext/base/gsumors' ) ); */ setReadOnly( ns, 'gsumpw', require( '@stdlib/blas/ext/base/gsumpw' ) ); +/** +* @name gvander +* @memberof ns +* @readonly +* @type {Function} +* @see {@link module:@stdlib/blas/ext/base/gvander} +*/ +setReadOnly( ns, 'gvander', require( '@stdlib/blas/ext/base/gvander' ) ); + /** * @name gzeroTo * @memberof ns @@ -1332,6 +1350,15 @@ setReadOnly( ns, 'soneTo', require( '@stdlib/blas/ext/base/sone-to' ) ); */ setReadOnly( ns, 'srev', require( '@stdlib/blas/ext/base/srev' ) ); +/** +* @name ssort +* @memberof ns +* @readonly +* @type {Function} +* @see {@link module:@stdlib/blas/ext/base/ssort} +*/ +setReadOnly( ns, 'ssort', require( '@stdlib/blas/ext/base/ssort' ) ); + /** * @name ssort2hp * @memberof ns diff --git a/lib/node_modules/@stdlib/blas/ext/base/ndarray/README.md b/lib/node_modules/@stdlib/blas/ext/base/ndarray/README.md index dc8e2cbd9881..9421c5ef11e5 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/ndarray/README.md +++ b/lib/node_modules/@stdlib/blas/ext/base/ndarray/README.md @@ -45,6 +45,7 @@ The namespace exposes the following APIs:
+- [`coneTo( arrays )`][@stdlib/blas/ext/base/ndarray/cone-to]: fill a one-dimensional single-precision complex floating-point ndarray with linearly spaced numeric elements which increment by `1` starting from one. - [`csum( arrays )`][@stdlib/blas/ext/base/ndarray/csum]: compute the sum of all elements in a one-dimensional single-precision complex floating-point ndarray. - [`csumkbn( arrays )`][@stdlib/blas/ext/base/ndarray/csumkbn]: compute the sum of all elements in a one-dimensional single-precision complex floating-point ndarray using an improved Kahan–Babuška algorithm. - [`czeroTo( arrays )`][@stdlib/blas/ext/base/ndarray/czero-to]: fill a one-dimensional single-precision complex floating-point ndarray with linearly spaced numeric elements which increment by `1` starting from zero. @@ -63,6 +64,7 @@ The namespace exposes the following APIs: - [`dnansumors( arrays )`][@stdlib/blas/ext/base/ndarray/dnansumors]: compute the sum of a one-dimensional double-precision floating-point ndarray, ignoring `NaN` values and using ordinary recursive summation. - [`dnansumpw( arrays )`][@stdlib/blas/ext/base/ndarray/dnansumpw]: compute the sum of a one-dimensional double-precision floating-point ndarray, ignoring `NaN` values and using pairwise summation. - [`doneTo( arrays )`][@stdlib/blas/ext/base/ndarray/done-to]: fill a one-dimensional double-precision floating-point ndarray with linearly spaced numeric elements which increment by `1` starting from one. +- [`dsort( arrays )`][@stdlib/blas/ext/base/ndarray/dsort]: sort a one-dimensional double-precision floating-point ndarray. - [`dsorthp( arrays )`][@stdlib/blas/ext/base/ndarray/dsorthp]: sort a one-dimensional double-precision floating-point ndarray using heapsort. - [`dsortins( arrays )`][@stdlib/blas/ext/base/ndarray/dsortins]: sort a one-dimensional double-precision floating-point ndarray using insertion sort. - [`dsortsh( arrays )`][@stdlib/blas/ext/base/ndarray/dsortsh]: sort a one-dimensional double-precision floating-point ndarray using Shellsort. @@ -113,6 +115,7 @@ The namespace exposes the following APIs: - [`snansumors( arrays )`][@stdlib/blas/ext/base/ndarray/snansumors]: compute the sum of a one-dimensional single-precision floating-point ndarray, ignoring `NaN` values and using ordinary recursive summation. - [`snansumpw( arrays )`][@stdlib/blas/ext/base/ndarray/snansumpw]: compute the sum of a one-dimensional single-precision floating-point ndarray, ignoring `NaN` values and using pairwise summation. - [`soneTo( arrays )`][@stdlib/blas/ext/base/ndarray/sone-to]: fill a one-dimensional single-precision floating-point ndarray with linearly spaced numeric elements which increment by `1` starting from one. +- [`ssort( arrays )`][@stdlib/blas/ext/base/ndarray/ssort]: sort a one-dimensional single-precision floating-point ndarray. - [`ssorthp( arrays )`][@stdlib/blas/ext/base/ndarray/ssorthp]: sort a one-dimensional single-precision floating-point ndarray using heapsort. - [`ssum( arrays )`][@stdlib/blas/ext/base/ndarray/ssum]: compute the sum of all elements in a one-dimensional single-precision floating-point ndarray. - [`ssumkbn( arrays )`][@stdlib/blas/ext/base/ndarray/ssumkbn]: compute the sum of all elements in a one-dimensional single-precision floating-point ndarray using an improved Kahan–Babuška algorithm. @@ -120,6 +123,7 @@ The namespace exposes the following APIs: - [`ssumors( arrays )`][@stdlib/blas/ext/base/ndarray/ssumors]: compute the sum of a one-dimensional single-precision floating-point ndarray using ordinary recursive summation. - [`ssumpw( arrays )`][@stdlib/blas/ext/base/ndarray/ssumpw]: compute the sum of all elements in a one-dimensional single-precision floating-point ndarray using pairwise summation. - [`szeroTo( arrays )`][@stdlib/blas/ext/base/ndarray/szero-to]: fill a one-dimensional single-precision floating-point ndarray with linearly spaced numeric elements which increment by `1` starting from zero. +- [`zoneTo( arrays )`][@stdlib/blas/ext/base/ndarray/zone-to]: fill a one-dimensional double-precision complex floating-point ndarray with linearly spaced numeric elements which increment by `1` starting from one. - [`zsum( arrays )`][@stdlib/blas/ext/base/ndarray/zsum]: compute the sum of all elements in a one-dimensional double-precision complex floating-point ndarray. - [`zsumkbn( arrays )`][@stdlib/blas/ext/base/ndarray/zsumkbn]: compute the sum of all elements in a one-dimensional double-precision complex floating-point ndarray using an improved Kahan–Babuška algorithm. - [`zzeroTo( arrays )`][@stdlib/blas/ext/base/ndarray/zzero-to]: fill a one-dimensional double-precision complex floating-point ndarray with linearly spaced numeric elements which increment by `1` starting from zero. @@ -165,6 +169,8 @@ console.log( objectKeys( ns ) ); +[@stdlib/blas/ext/base/ndarray/cone-to]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/ndarray/cone-to + [@stdlib/blas/ext/base/ndarray/csum]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/ndarray/csum [@stdlib/blas/ext/base/ndarray/csumkbn]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/ndarray/csumkbn @@ -201,6 +207,8 @@ console.log( objectKeys( ns ) ); [@stdlib/blas/ext/base/ndarray/done-to]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/ndarray/done-to +[@stdlib/blas/ext/base/ndarray/dsort]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/ndarray/dsort + [@stdlib/blas/ext/base/ndarray/dsorthp]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/ndarray/dsorthp [@stdlib/blas/ext/base/ndarray/dsortins]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/ndarray/dsortins @@ -301,6 +309,8 @@ console.log( objectKeys( ns ) ); [@stdlib/blas/ext/base/ndarray/sone-to]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/ndarray/sone-to +[@stdlib/blas/ext/base/ndarray/ssort]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/ndarray/ssort + [@stdlib/blas/ext/base/ndarray/ssorthp]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/ndarray/ssorthp [@stdlib/blas/ext/base/ndarray/ssum]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/ndarray/ssum @@ -315,6 +325,8 @@ console.log( objectKeys( ns ) ); [@stdlib/blas/ext/base/ndarray/szero-to]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/ndarray/szero-to +[@stdlib/blas/ext/base/ndarray/zone-to]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/ndarray/zone-to + [@stdlib/blas/ext/base/ndarray/zsum]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/ndarray/zsum [@stdlib/blas/ext/base/ndarray/zsumkbn]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/ndarray/zsumkbn diff --git a/lib/node_modules/@stdlib/blas/ext/base/ndarray/cone-to/README.md b/lib/node_modules/@stdlib/blas/ext/base/ndarray/cone-to/README.md new file mode 100644 index 000000000000..f4eca5937a8b --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/ndarray/cone-to/README.md @@ -0,0 +1,110 @@ + + +# coneTo + +> Fill a one-dimensional single-precision complex floating-point ndarray with linearly spaced numeric elements which increment by `1` starting from one. + +
+ +
+ + + +
+ +## Usage + +```javascript +var coneTo = require( '@stdlib/blas/ext/base/ndarray/cone-to' ); +``` + +#### coneTo( arrays ) + +Fills a one-dimensional single-precision complex floating-point ndarray with linearly spaced numeric elements which increment by `1` starting from one. + +```javascript +var Complex64Array = require( '@stdlib/array/complex64' ); +var ndarray = require( '@stdlib/ndarray/base/ctor' ); + +var xbuf = new Complex64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); +var x = new ndarray( 'complex64', xbuf, [ 4 ], [ 1 ], 0, 'row-major' ); + +var out = coneTo( [ x ] ); +// returns [ [ 1.0, 0.0 ], [ 2.0, 0.0 ], [ 3.0, 0.0 ], [ 4.0, 0.0 ] ] +``` + +The function has the following parameters: + +- **arrays**: array-like object containing a one-dimensional input ndarray. + +
+ + + +
+ +## Notes + +- The input ndarray is modified **in-place** (i.e., the input ndarray is **mutated**). + +
+ + + +
+ +## Examples + + + +```javascript +var zeros = require( '@stdlib/array/zeros' ); +var ndarray = require( '@stdlib/ndarray/base/ctor' ); +var ndarray2array = require( '@stdlib/ndarray/to-array' ); +var coneTo = require( '@stdlib/blas/ext/base/ndarray/cone-to' ); + +var xbuf = zeros( 10, 'complex64' ); +var x = new ndarray( 'complex64', xbuf, [ xbuf.length ], [ 1 ], 0, 'row-major' ); +console.log( ndarray2array( x ) ); + +coneTo( [ x ] ); +console.log( ndarray2array( x ) ); +``` + +
+ + + + + + + + + + + + + + diff --git a/lib/node_modules/@stdlib/blas/ext/base/ndarray/cone-to/benchmark/benchmark.js b/lib/node_modules/@stdlib/blas/ext/base/ndarray/cone-to/benchmark/benchmark.js new file mode 100644 index 000000000000..673e390818ea --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/ndarray/cone-to/benchmark/benchmark.js @@ -0,0 +1,108 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 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 zeros = require( '@stdlib/array/zeros' ); +var pow = require( '@stdlib/math/base/special/pow' ); +var format = require( '@stdlib/string/format' ); +var ndarray = require( '@stdlib/ndarray/base/ctor' ); +var pkg = require( './../package.json' ).name; +var coneTo = require( './../lib' ); + + +// VARIABLES // + +var options = { + 'dtype': 'complex64' +}; + + +// FUNCTIONS // + +/** +* Creates a benchmark function. +* +* @private +* @param {PositiveInteger} len - array length +* @returns {Function} benchmark function +*/ +function createBenchmark( len ) { + var xbuf; + var x; + + xbuf = zeros( len, options.dtype ); + x = new ndarray( options.dtype, xbuf, [ len ], [ 1 ], 0, 'row-major' ); + + return benchmark; + + /** + * Benchmark function. + * + * @private + * @param {Benchmark} b - benchmark instance + */ + function benchmark( b ) { + var out; + var i; + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + out = coneTo( [ x ] ); + if ( typeof out !== 'object' ) { + b.fail( 'should return an ndarray' ); + } + } + b.toc(); + if ( typeof out !== 'object' ) { + b.fail( 'should return an ndarray' ); + } + 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 = pow( 10, i ); + f = createBenchmark( len ); + bench( format( '%s:len=%d', pkg, len ), f ); + } +} + +main(); diff --git a/lib/node_modules/@stdlib/blas/ext/base/ndarray/cone-to/docs/repl.txt b/lib/node_modules/@stdlib/blas/ext/base/ndarray/cone-to/docs/repl.txt new file mode 100644 index 000000000000..c6a976c28d44 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/ndarray/cone-to/docs/repl.txt @@ -0,0 +1,32 @@ + +{{alias}}( arrays ) + Fills a one-dimensional single-precision complex floating-point ndarray with + linearly spaced numeric elements which increment by `1` starting from one. + + The input ndarray is modified *in-place* (i.e., the input ndarray is + *mutated*). + + Parameters + ---------- + arrays: ArrayLikeObject + Array-like object containing a one-dimensional input ndarray. + + Returns + ------- + out: ndarray + Input ndarray. + + Examples + -------- + > var xbuf = new {{alias:@stdlib/array/complex64}}( [ 0.0, 0.0, 0.0, 0.0 ] ); + > var dt = 'complex64'; + > var sh = [ 2 ]; + > var sx = [ 1 ]; + > var ox = 0; + > var ord = 'row-major'; + > var x = new {{alias:@stdlib/ndarray/ctor}}( dt, xbuf, sh, sx, ox, ord ); + > {{alias}}( [ x ] ) + [ [ 1.0, 0.0 ], [ 2.0, 0.0 ] ] + + See Also + -------- diff --git a/lib/node_modules/@stdlib/blas/ext/base/ndarray/cone-to/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/ext/base/ndarray/cone-to/docs/types/index.d.ts new file mode 100644 index 000000000000..f4b37e6b4393 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/ndarray/cone-to/docs/types/index.d.ts @@ -0,0 +1,46 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2026 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 { complex64ndarray } from '@stdlib/types/ndarray'; + +/** +* Fills a one-dimensional single-precision complex floating-point ndarray with linearly spaced numeric elements which increment by `1` starting from one. +* +* @param arrays - array-like object containing a one-dimensional input ndarray +* @returns input ndarray +* +* @example +* var Complex64Array = require( '@stdlib/array/complex64' ); +* var ndarray = require( '@stdlib/ndarray/base/ctor' ); +* +* var xbuf = new Complex64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); +* var x = new ndarray( 'complex64', xbuf, [ 4 ], [ 1 ], 0, 'row-major' ); +* +* var out = coneTo( [ x ] ); +* // returns [ [ 1.0, 0.0 ], [ 2.0, 0.0 ], [ 3.0, 0.0 ], [ 4.0, 0.0 ] ] +*/ +declare function coneTo( arrays: [ complex64ndarray ] ): complex64ndarray; + + +// EXPORTS // + +export = coneTo; diff --git a/lib/node_modules/@stdlib/blas/ext/base/ndarray/cone-to/docs/types/test.ts b/lib/node_modules/@stdlib/blas/ext/base/ndarray/cone-to/docs/types/test.ts new file mode 100644 index 000000000000..0694d73a36d9 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/ndarray/cone-to/docs/types/test.ts @@ -0,0 +1,57 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2026 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 space-in-parens */ + +import zeros = require( '@stdlib/ndarray/zeros' ); +import coneTo = require( './index' ); + + +// TESTS // + +// The function returns an ndarray... +{ + const x = zeros( [ 10 ], { + 'dtype': 'complex64' + }); + + coneTo( [ x ] ); // $ExpectType complex64ndarray +} + +// The compiler throws an error if the function is provided a first argument which is not an array of ndarrays... +{ + coneTo( '10' ); // $ExpectError + coneTo( 10 ); // $ExpectError + coneTo( true ); // $ExpectError + coneTo( false ); // $ExpectError + coneTo( null ); // $ExpectError + coneTo( undefined ); // $ExpectError + coneTo( [] ); // $ExpectError + coneTo( {} ); // $ExpectError + coneTo( ( x: number ): number => x ); // $ExpectError +} + +// The compiler throws an error if the function is provided an unsupported number of arguments... +{ + const x = zeros( [ 10 ], { + 'dtype': 'complex64' + }); + + coneTo(); // $ExpectError + coneTo( [ x ], {} ); // $ExpectError +} diff --git a/lib/node_modules/@stdlib/blas/ext/base/ndarray/cone-to/examples/index.js b/lib/node_modules/@stdlib/blas/ext/base/ndarray/cone-to/examples/index.js new file mode 100644 index 000000000000..825bd3d14112 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/ndarray/cone-to/examples/index.js @@ -0,0 +1,31 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 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 zeros = require( '@stdlib/array/zeros' ); +var ndarray = require( '@stdlib/ndarray/base/ctor' ); +var ndarray2array = require( '@stdlib/ndarray/to-array' ); +var coneTo = require( './../lib' ); + +var xbuf = zeros( 10, 'complex64' ); +var x = new ndarray( 'complex64', xbuf, [ xbuf.length ], [ 1 ], 0, 'row-major' ); +console.log( ndarray2array( x ) ); + +coneTo( [ x ] ); +console.log( ndarray2array( x ) ); diff --git a/lib/node_modules/@stdlib/blas/ext/base/ndarray/cone-to/lib/index.js b/lib/node_modules/@stdlib/blas/ext/base/ndarray/cone-to/lib/index.js new file mode 100644 index 000000000000..bfeba8135238 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/ndarray/cone-to/lib/index.js @@ -0,0 +1,45 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 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'; + +/** +* Fill a one-dimensional single-precision complex floating-point ndarray with linearly spaced numeric elements which increment by `1` starting from one. +* +* @module @stdlib/blas/ext/base/ndarray/cone-to +* +* @example +* var Complex64Array = require( '@stdlib/array/complex64' ); +* var ndarray = require( '@stdlib/ndarray/base/ctor' ); +* var coneTo = require( '@stdlib/blas/ext/base/ndarray/cone-to' ); +* +* var xbuf = new Complex64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); +* var x = new ndarray( 'complex64', xbuf, [ 4 ], [ 1 ], 0, 'row-major' ); +* +* var out = coneTo( [ x ] ); +* // returns [ [ 1.0, 0.0 ], [ 2.0, 0.0 ], [ 3.0, 0.0 ], [ 4.0, 0.0 ] ] +*/ + +// MODULES // + +var main = require( './main.js' ); + + +// EXPORTS // + +module.exports = main; diff --git a/lib/node_modules/@stdlib/blas/ext/base/ndarray/cone-to/lib/main.js b/lib/node_modules/@stdlib/blas/ext/base/ndarray/cone-to/lib/main.js new file mode 100644 index 000000000000..e053e2cea257 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/ndarray/cone-to/lib/main.js @@ -0,0 +1,57 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 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 numelDimension = require( '@stdlib/ndarray/base/numel-dimension' ); +var getStride = require( '@stdlib/ndarray/base/stride' ); +var getOffset = require( '@stdlib/ndarray/base/offset' ); +var getData = require( '@stdlib/ndarray/base/data-buffer' ); +var strided = require( '@stdlib/blas/ext/base/cone-to' ).ndarray; + + +// MAIN // + +/** +* Fills a one-dimensional single-precision complex floating-point ndarray with linearly spaced numeric elements which increment by `1` starting from one. +* +* @param {ArrayLikeObject} arrays - array-like object containing a one-dimensional input ndarray +* @returns {ndarray} input ndarray +* +* @example +* var Complex64Array = require( '@stdlib/array/complex64' ); +* var ndarray = require( '@stdlib/ndarray/base/ctor' ); +* +* var xbuf = new Complex64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); +* var x = new ndarray( 'complex64', xbuf, [ 4 ], [ 1 ], 0, 'row-major' ); +* +* var out = coneTo( [ x ] ); +* // returns [ [ 1.0, 0.0 ], [ 2.0, 0.0 ], [ 3.0, 0.0 ], [ 4.0, 0.0 ] ] +*/ +function coneTo( arrays ) { + var x = arrays[ 0 ]; + strided( numelDimension( x, 0 ), getData( x ), getStride( x, 0 ), getOffset( x ) ); // eslint-disable-line max-len + return x; +} + + +// EXPORTS // + +module.exports = coneTo; diff --git a/lib/node_modules/@stdlib/blas/ext/base/ndarray/cone-to/package.json b/lib/node_modules/@stdlib/blas/ext/base/ndarray/cone-to/package.json new file mode 100644 index 000000000000..755055e0857c --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/ndarray/cone-to/package.json @@ -0,0 +1,74 @@ +{ + "name": "@stdlib/blas/ext/base/ndarray/cone-to", + "version": "0.0.0", + "description": "Fill a one-dimensional single-precision complex floating-point ndarray with linearly spaced numeric elements which increment by 1 starting from one.", + "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", + "extended", + "fill", + "one", + "oneto", + "one-to", + "linearly", + "spaced", + "increment", + "strided", + "array", + "ndarray", + "complex64", + "complex", + "single-precision", + "float32" + ], + "__stdlib__": {} +} diff --git a/lib/node_modules/@stdlib/blas/ext/base/ndarray/cone-to/test/test.js b/lib/node_modules/@stdlib/blas/ext/base/ndarray/cone-to/test/test.js new file mode 100644 index 000000000000..061b571a5d33 --- /dev/null +++ b/lib/node_modules/@stdlib/blas/ext/base/ndarray/cone-to/test/test.js @@ -0,0 +1,290 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 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 isSameComplex64Array = require( '@stdlib/assert/is-same-complex64array' ); +var Complex64Array = require( '@stdlib/array/complex64' ); +var ndarray = require( '@stdlib/ndarray/base/ctor' ); +var getData = require( '@stdlib/ndarray/data-buffer' ); +var coneTo = require( './../lib' ); + + +// FUNCTIONS // + +/** +* Returns a one-dimensional ndarray. +* +* @private +* @param {Complex64Array} buffer - underlying data buffer +* @param {NonNegativeInteger} length - number of indexed elements +* @param {integer} stride - stride length +* @param {NonNegativeInteger} offset - index offset +* @returns {ndarray} one-dimensional ndarray +*/ +function vector( buffer, length, stride, offset ) { + return new ndarray( 'complex64', buffer, [ length ], [ stride ], offset, 'row-major' ); +} + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof coneTo, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function has an arity of 1', function test( t ) { + t.strictEqual( coneTo.length, 1, 'has expected arity' ); + t.end(); +}); + +tape( 'the function fills a one-dimensional ndarray with linearly spaced numeric elements which increment by 1 starting from one', function test( t ) { + var expected; + var actual; + var xbuf; + var x; + + xbuf = new Complex64Array( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); + x = vector( xbuf, 4, 1, 0 ); + + actual = coneTo( [ x ] ); + t.strictEqual( actual, x, 'returns expected value' ); + + expected = new Complex64Array( [ 1.0, 0.0, 2.0, 0.0, 3.0, 0.0, 4.0, 0.0 ] ); + t.strictEqual( isSameComplex64Array( getData( actual ), expected ), true, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function returns the input ndarray unchanged when the input ndarray is empty', function test( t ) { + var actual; + var xbuf; + var x; + + xbuf = new Complex64Array( [] ); + x = vector( xbuf, 0, 1, 0 ); + + actual = coneTo( [ x ] ); + t.strictEqual( actual, x, 'returns expected value' ); + t.strictEqual( getData( actual ).length, 0, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function fills a one-dimensional ndarray containing a single element', function test( t ) { + var expected; + var actual; + var xbuf; + var x; + + xbuf = new Complex64Array( [ 5.0, 5.0 ] ); + x = vector( xbuf, 1, 1, 0 ); + + actual = coneTo( [ x ] ); + t.strictEqual( actual, x, 'returns expected value' ); + + expected = new Complex64Array( [ 1.0, 0.0 ] ); + t.strictEqual( isSameComplex64Array( getData( actual ), expected ), true, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports an input ndarray having a non-unit stride', function test( t ) { + var expected; + var actual; + var xbuf; + var x; + + xbuf = new Complex64Array([ + 0.0, // 0 + 0.0, // 0 + 9.0, + 9.0, + 0.0, // 1 + 0.0, // 1 + 9.0, + 9.0, + 0.0, // 2 + 0.0, // 2 + 9.0, + 9.0, + 0.0, // 3 + 0.0, // 3 + 9.0, + 9.0 + ]); + x = vector( xbuf, 4, 2, 0 ); + + actual = coneTo( [ x ] ); + t.strictEqual( actual, x, 'returns expected value' ); + + expected = new Complex64Array([ + 1.0, // 0 + 0.0, // 0 + 9.0, + 9.0, + 2.0, // 1 + 0.0, // 1 + 9.0, + 9.0, + 3.0, // 2 + 0.0, // 2 + 9.0, + 9.0, + 4.0, // 3 + 0.0, // 3 + 9.0, + 9.0 + ]); + t.strictEqual( isSameComplex64Array( getData( actual ), expected ), true, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports an input ndarray having a negative stride', function test( t ) { + var expected; + var actual; + var xbuf; + var x; + + xbuf = new Complex64Array([ + 0.0, // 4 + 0.0, // 4 + 0.0, // 3 + 0.0, // 3 + 0.0, // 2 + 0.0, // 2 + 0.0, // 1 + 0.0, // 1 + 0.0, // 0 + 0.0 // 0 + ]); + x = vector( xbuf, 5, -1, 4 ); + + actual = coneTo( [ x ] ); + t.strictEqual( actual, x, 'returns expected value' ); + + expected = new Complex64Array([ + 5.0, // 4 + 0.0, // 4 + 4.0, // 3 + 0.0, // 3 + 3.0, // 2 + 0.0, // 2 + 2.0, // 1 + 0.0, // 1 + 1.0, // 0 + 0.0 // 0 + ]); + t.strictEqual( isSameComplex64Array( getData( actual ), expected ), true, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports an input ndarray having a non-zero offset', function test( t ) { + var expected; + var actual; + var xbuf; + var x; + + xbuf = new Complex64Array([ + 9.0, + 9.0, + 9.0, + 9.0, + 0.0, // 0 + 0.0, // 0 + 0.0, // 1 + 0.0, // 1 + 0.0, // 2 + 0.0, // 2 + 0.0, // 3 + 0.0 // 3 + ]); + x = vector( xbuf, 4, 1, 2 ); + + actual = coneTo( [ x ] ); + t.strictEqual( actual, x, 'returns expected value' ); + + expected = new Complex64Array([ + 9.0, + 9.0, + 9.0, + 9.0, + 1.0, // 0 + 0.0, // 0 + 2.0, // 1 + 0.0, // 1 + 3.0, // 2 + 0.0, // 2 + 4.0, // 3 + 0.0 // 3 + ]); + t.strictEqual( isSameComplex64Array( getData( actual ), expected ), true, 'returns expected value' ); + + t.end(); +}); + +tape( 'the function supports an input ndarray having a negative stride and non-zero offset', function test( t ) { + var expected; + var actual; + var xbuf; + var x; + + xbuf = new Complex64Array([ + 9.0, + 9.0, + 0.0, // 2 + 0.0, // 2 + 9.0, + 9.0, + 0.0, // 1 + 0.0, // 1 + 9.0, + 9.0, + 0.0, // 0 + 0.0 // 0 + ]); + x = vector( xbuf, 3, -2, 5 ); + + actual = coneTo( [ x ] ); + t.strictEqual( actual, x, 'returns expected value' ); + + expected = new Complex64Array([ + 9.0, + 9.0, + 3.0, // 2 + 0.0, // 2 + 9.0, + 9.0, + 2.0, // 1 + 0.0, // 1 + 9.0, + 9.0, + 1.0, // 0 + 0.0 // 0 + ]); + t.strictEqual( isSameComplex64Array( getData( actual ), expected ), true, 'returns expected value' ); + + t.end(); +}); diff --git a/lib/node_modules/@stdlib/blas/ext/base/ndarray/csum/README.md b/lib/node_modules/@stdlib/blas/ext/base/ndarray/csum/README.md index f13b7d704485..56e449229166 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/ndarray/csum/README.md +++ b/lib/node_modules/@stdlib/blas/ext/base/ndarray/csum/README.md @@ -98,6 +98,164 @@ console.log( v ); + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/blas/ext/base/ndarray/csum.h" +``` + +#### stdlib_blas_ext_csum( arrays ) + +Computes the sum of all elements in a one-dimensional single-precision complex floating-point ndarray. + +```c +#include "stdlib/complex/float32/ctor.h" +#include "stdlib/ndarray/ctor.h" +#include "stdlib/ndarray/dtypes.h" +#include "stdlib/ndarray/index_modes.h" +#include "stdlib/ndarray/orders.h" +#include "stdlib/ndarray/base/bytes_per_element.h" +#include "stdlib/complex/float32/real.h" +#include "stdlib/complex/float32/imag.h" +#include + +// Create an ndarray: +const float data[] = { 1.0f, 2.0f, 3.0f, 4.0f }; +int64_t shape[] = { 2 }; +int64_t strides[] = { STDLIB_NDARRAY_COMPLEX64_BYTES_PER_ELEMENT }; +int8_t submodes[] = { STDLIB_NDARRAY_INDEX_ERROR }; + +struct ndarray *x = stdlib_ndarray_allocate( STDLIB_NDARRAY_COMPLEX64, (uint8_t *)data, 1, shape, strides, 0, STDLIB_NDARRAY_ROW_MAJOR, STDLIB_NDARRAY_INDEX_ERROR, 1, submodes ); + +// Compute the sum: +const struct ndarray *arrays[] = { x }; +stdlib_complex64_t v = stdlib_blas_ext_csum( arrays ); + +float re = stdlib_complex64_real( v ); +// returns 4.0f + +float im = stdlib_complex64_imag( v ); +// returns 6.0f + +// Free allocated memory: +stdlib_ndarray_free( x ); +``` + +The function accepts the following arguments: + +- **arrays**: `[in] struct ndarray**` list containing a one-dimensional input ndarray. + +```c +stdlib_complex64_t stdlib_blas_ext_csum( const struct ndarray *arrays[] ); +``` + +
+ + + + + +
+ +
+ + + + + +
+ +### Examples + +```c +#include "stdlib/blas/ext/base/ndarray/csum.h" +#include "stdlib/complex/float32/ctor.h" +#include "stdlib/complex/float32/real.h" +#include "stdlib/complex/float32/imag.h" +#include "stdlib/ndarray/ctor.h" +#include "stdlib/ndarray/dtypes.h" +#include "stdlib/ndarray/index_modes.h" +#include "stdlib/ndarray/orders.h" +#include "stdlib/ndarray/base/bytes_per_element.h" +#include +#include +#include + +int main( void ) { + // Create a data buffer: + const float data[] = { 1.0f, -2.0f, 3.0f, -4.0f, 5.0f, -6.0f, 7.0f, -8.0f }; + + // Specify the number of array dimensions: + const int64_t ndims = 1; + + // Specify the array shape: + int64_t shape[] = { 4 }; + + // Specify the array strides: + int64_t strides[] = { STDLIB_NDARRAY_COMPLEX64_BYTES_PER_ELEMENT }; + + // Specify the byte offset: + const int64_t offset = 0; + + // Specify the array order: + const enum STDLIB_NDARRAY_ORDER order = STDLIB_NDARRAY_ROW_MAJOR; + + // Specify the index mode: + const enum STDLIB_NDARRAY_INDEX_MODE imode = STDLIB_NDARRAY_INDEX_ERROR; + + // Specify the subscript index modes: + int8_t submodes[] = { STDLIB_NDARRAY_INDEX_ERROR }; + const int64_t nsubmodes = 1; + + // Create an ndarray: + struct ndarray *x = stdlib_ndarray_allocate( STDLIB_NDARRAY_COMPLEX64, (uint8_t *)data, ndims, shape, strides, offset, order, imode, nsubmodes, submodes ); + if ( x == NULL ) { + fprintf( stderr, "Error allocating memory.\n" ); + exit( 1 ); + } + + // Define a list of ndarrays: + const struct ndarray *arrays[] = { x }; + + // Compute the sum: + stdlib_complex64_t v = stdlib_blas_ext_csum( arrays ); + + // Print the result: + printf( "sum: %f + %fi\n", stdlib_complex64_real( v ), stdlib_complex64_imag( v ) ); + + // Free allocated memory: + stdlib_ndarray_free( x ); +} +``` + +
+ + + +
+ + +