feat: add blas/ext/base/dnone#12885
Conversation
---
type: pre_commit_static_analysis_report
description: Results of running static analysis checks when committing changes.
report:
- task: lint_filenames
status: passed
- task: lint_editorconfig
status: passed
- task: lint_markdown_pkg_readmes
status: passed
- task: lint_markdown_docs
status: na
- task: lint_markdown
status: na
- task: lint_package_json
status: passed
- task: lint_repl_help
status: passed
- task: lint_javascript_src
status: passed
- task: lint_javascript_cli
status: na
- task: lint_javascript_examples
status: passed
- task: lint_javascript_tests
status: passed
- task: lint_javascript_benchmarks
status: passed
- task: lint_python
status: na
- task: lint_r
status: na
- task: lint_c_src
status: missing_dependencies
- task: lint_c_examples
status: missing_dependencies
- task: lint_c_benchmarks
status: missing_dependencies
- task: lint_c_tests_fixtures
status: na
- task: lint_shell
status: na
- task: lint_typescript_declarations
status: passed
- task: lint_typescript_tests
status: passed
- task: lint_license_headers
status: passed
---
Coverage ReportNo coverage information available. |
---
type: pre_commit_static_analysis_report
description: Results of running static analysis checks when committing changes.
report:
- task: lint_filenames
status: passed
- task: lint_editorconfig
status: passed
- task: lint_markdown_pkg_readmes
status: passed
- task: lint_markdown_docs
status: na
- task: lint_markdown
status: na
- task: lint_package_json
status: na
- task: lint_repl_help
status: passed
- task: lint_javascript_src
status: passed
- task: lint_javascript_cli
status: na
- task: lint_javascript_examples
status: na
- task: lint_javascript_tests
status: passed
- task: lint_javascript_benchmarks
status: na
- task: lint_python
status: na
- task: lint_r
status: na
- task: lint_c_src
status: missing_dependencies
- task: lint_c_examples
status: na
- task: lint_c_benchmarks
status: missing_dependencies
- task: lint_c_tests_fixtures
status: na
- task: lint_shell
status: na
- task: lint_typescript_declarations
status: passed
- task: lint_typescript_tests
status: passed
- task: lint_license_headers
status: passed
---
Co-authored-by: Athan <kgryte@gmail.com> Signed-off-by: Athan <kgryte@gmail.com>
Co-authored-by: Athan <kgryte@gmail.com> Signed-off-by: Athan <kgryte@gmail.com>
| * @returns {Function} benchmark function | ||
| */ | ||
| function createBenchmark( len ) { | ||
| var x = bernoulli( len, 0.5, options ); |
There was a problem hiding this comment.
Think about this benchmark for a moment. Why is it not informative? What happens if you run this multiple times? Are the results reproducible? Do they test any sort of pathologic case? What happens when x[0] is truthy for len = 1e6 but, for len = 10, all values in x randomly happen to be falsy? What conclusions can you draw? The reality is that you can't draw any conclusions because the benchmarks as you've written here are meaningless.
| STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 2 ); | ||
| STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, X, N, strideX, argv, 1 ); | ||
| napi_value v; | ||
| napi_get_boolean( env, API_SUFFIX(stdlib_strided_dnone)( N, X, strideX ), &v ); |
There was a problem hiding this comment.
While this may work, this is not the desired implementation. We need to create a macro similar to what we have for create-int32, create-double, etc (see https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/napi). This package should be napi/create-boolean and is a prerequisite for this package to move forward.
kgryte
left a comment
There was a problem hiding this comment.
Apart from the benchmarks and the missing prerequisite, this is coming along.
type: pre_commit_static_analysis_report
description: Results of running static analysis checks when committing changes. report:
Resolves stdlib-js/metr-issue-tracker#812.
Description
This pull request:
blas/ext/base/dnoneRelated Issues
This pull request has the following related issues:
blas/ext/base/dnonemetr-issue-tracker#812.Questions
No.
Other
No.
Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
Primarily written by Claude Code.
@stdlib-js/reviewers