-
-
Notifications
You must be signed in to change notification settings - Fork 1k
feat: add blas/ext/base/ndarray/ssumkbn
#8822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Coverage Report
The above coverage report was generated for the changes in this PR. |
lib/node_modules/@stdlib/blas/ext/base/ndarray/ssumkbn/benchmark/benchmark.js
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/blas/ext/base/ndarray/ssumkbn/docs/types/index.d.ts
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/blas/ext/base/ndarray/ssumkbn/docs/types/test.ts
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/blas/ext/base/ndarray/ssumkbn/examples/index.js
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/blas/ext/base/ndarray/ssumkbn/lib/index.js
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/blas/ext/base/ndarray/ssumkbn/lib/index.js
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/blas/ext/base/ndarray/ssumkbn/lib/main.js
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/blas/ext/base/ndarray/ssumkbn/test/test.js
Outdated
Show resolved
Hide resolved
kgryte
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MeKaustubh07 Overall, this PR needs quite a bit of clean-up. It seems that you are relying on AI for generating these PRs, given that AI tends to be quite poor at maintaining style conventions. The reality of most of these one-dimensional ndarray packages is that they do not need AI and using AI doesn't really speed up the dev process. Once you have done dsumkbn, creating ssumkbn is trivial: copy dsumkbn, use find-and-replace to update the alias s/dsumkbn/ssumbkn/, precision s/double-precision/single-precision/, the dtype s/float64/float32/, and any utils s/isnan/isnanf/, s/is-nan/is-nanf/, s/-zero/-zerof/, s/veZero/veZerof/. It should take about 2-3 minutes. By using AI, you are likely just creating more work for yourself and certainly more work for reviewers who have to provide feedback on your work.
lib/node_modules/@stdlib/blas/ext/base/ndarray/ssumkbn/benchmark/benchmark.js
Outdated
Show resolved
Hide resolved
Signed-off-by: Athan <kgryte@gmail.com>
lib/node_modules/@stdlib/blas/ext/base/ndarray/ssumkbn/lib/index.js
Outdated
Show resolved
Hide resolved
Signed-off-by: Athan <kgryte@gmail.com>
kgryte
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM after additional clean-up.
type: pre_commit_static_analysis_report
description: Results of running static analysis checks when committing changes.
report:
task: lint_filenames status: passed
task: lint_editorconfig status: passed
task: lint_markdown status: passed
task: lint_package_json status: passed
task: lint_repl_help status: passed
task: lint_javascript_src status: passed
task: lint_javascript_cli status: na
task: lint_javascript_examples status: passed
task: lint_javascript_tests status: passed
task: lint_javascript_benchmarks status: passed
task: lint_python status: na
task: lint_r status: na
task: lint_c_src status: na
task: lint_c_examples status: na
task: lint_c_benchmarks status: na
task: lint_c_tests_fixtures status: na
task: lint_shell status: na
task: lint_typescript_declarations status: passed
task: lint_typescript_tests status: passed
task: lint_license_headers status: passed
Resolves None.
Description
What is the purpose of this pull request?
This pull request:
blas/ext/base/ndarray/ssumkbnRelated Issues
Does this pull request have any related issues?
This pull request has the following related issues:
Questions
Any questions for reviewers of this pull request?
No.
Other
Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.
No.
Checklist
Please ensure the following tasks are completed before submitting this pull request.
AI Assistance
When authoring the changes proposed in this PR, did you use any kind of AI assistance?
If you answered "yes" above, how did you use AI assistance?
Disclosure
If you answered "yes" to using AI assistance, please provide a short disclosure indicating how you used AI assistance. This helps reviewers determine how much scrutiny to apply when reviewing your contribution. Example disclosures: "This PR was written primarily by Claude Code." or "I consulted ChatGPT to understand the codebase, but the proposed changes were fully authored manually by myself.".
This PR was created by duplicating the
ssumpackage and adapting it to compute the maximum absolute value instead of the maximum value. GitHub Copilot assisted with updating test cases, documentation, and verifying consistency across all files.@stdlib-js/reviewers