Skip to content

Conversation

headlessNode
Copy link
Member


type: pre_commit_static_analysis_report
description: Results of running static analysis checks when committing changes. report:

  • task: lint_filenames status: passed
  • task: lint_editorconfig status: passed
  • task: lint_markdown status: passed
  • task: lint_package_json status: na
  • task: lint_repl_help status: na
  • task: lint_javascript_src status: 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: na
  • task: lint_license_headers status: passed ---

Progresses #2656.

Description

What is the purpose of this pull request?

This pull request:

  • fix fromIndex handling in blas/ext/base/ndarray/dlast-index-of

Related Issues

Does this pull request have any related issues?

This pull request:

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.


@stdlib-js/reviewers

---
type: pre_commit_static_analysis_report
description: Results of running static analysis checks when committing changes.
report:
  - task: lint_filenames
    status: passed
  - task: lint_editorconfig
    status: passed
  - task: lint_markdown
    status: passed
  - task: lint_package_json
    status: na
  - task: lint_repl_help
    status: na
  - task: lint_javascript_src
    status: 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: na
  - task: lint_license_headers
    status: passed
---
@stdlib-bot stdlib-bot added BLAS Issue or pull request related to Basic Linear Algebra Subprograms (BLAS). Needs Review A pull request which needs code review. labels Aug 16, 2025
@headlessNode headlessNode added GSoC Google Summer of Code. gsoc: 2025 Google Summer of Code (2025). labels Aug 16, 2025
@headlessNode headlessNode requested a review from kgryte August 16, 2025 07:37
@stdlib-bot
Copy link
Contributor

stdlib-bot commented Aug 16, 2025

Coverage Report

Package Statements Branches Functions Lines
blas/ext/base/ndarray/dlast-index-of $\color{green}138/138$
$\color{green}+100.00\%$
$\color{green}8/8$
$\color{green}+100.00\%$
$\color{green}1/1$
$\color{green}+100.00\%$
$\color{green}138/138$
$\color{green}+100.00\%$

The above coverage report was generated for the changes in this PR.

@headlessNode
Copy link
Member Author

@kgryte I think only this function needed the change, blas/ext/base/dlast-index-of works as expected. And coming from top-level fromIndex will get resolved here.

@kgryte
Copy link
Member

kgryte commented Aug 29, 2025

@kgryte kgryte removed the Needs Review A pull request which needs code review. label Aug 29, 2025
Signed-off-by: Athan <kgryte@gmail.com>
Copy link
Member

@kgryte kgryte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than the bounds checking behavior, this is shaping up. Once the bounds behavior is addressed, you should double-check that the tests are correct.

@kgryte kgryte added the Needs Changes Pull request which needs changes before being merged. label Aug 29, 2025
---
type: pre_commit_static_analysis_report
description: Results of running static analysis checks when committing changes.
report:
  - task: lint_filenames
    status: passed
  - task: lint_editorconfig
    status: passed
  - task: lint_markdown
    status: na
  - task: lint_package_json
    status: na
  - task: lint_repl_help
    status: na
  - task: lint_javascript_src
    status: passed
  - task: lint_javascript_cli
    status: na
  - task: lint_javascript_examples
    status: na
  - task: lint_javascript_tests
    status: passed
  - task: lint_javascript_benchmarks
    status: na
  - task: lint_python
    status: na
  - task: lint_r
    status: na
  - task: lint_c_src
    status: na
  - task: lint_c_examples
    status: na
  - task: lint_c_benchmarks
    status: na
  - task: lint_c_tests_fixtures
    status: na
  - task: lint_shell
    status: na
  - task: lint_typescript_declarations
    status: na
  - task: lint_typescript_tests
    status: na
  - task: lint_license_headers
    status: passed
---
@headlessNode headlessNode requested a review from kgryte September 2, 2025 08:56
@stdlib-bot stdlib-bot added the Needs Review A pull request which needs code review. label Sep 2, 2025
@headlessNode headlessNode removed the Needs Changes Pull request which needs changes before being merged. label Sep 2, 2025
@kgryte kgryte removed the Needs Review A pull request which needs code review. label Sep 2, 2025
Signed-off-by: Athan <kgryte@gmail.com>
Signed-off-by: Athan <kgryte@gmail.com>
Copy link
Member

@kgryte kgryte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM after some minor clean-up.

@kgryte kgryte changed the title refactor: fix fromIndex handling in blas/ext/base/ndarray/dlast-index-of fix: update fromIndex handling in blas/ext/base/ndarray/dlast-index-of Sep 2, 2025
@kgryte kgryte merged commit 69832d0 into stdlib-js:develop Sep 2, 2025
15 checks passed
@headlessNode headlessNode deleted the fix-low-dlastIndexof branch September 2, 2025 16:39
@kgryte
Copy link
Member

kgryte commented Sep 2, 2025

@headlessNode I believe we now need to update slast-index-of, correct?

@headlessNode
Copy link
Member Author

@kgryte Yep.

@kgryte
Copy link
Member

kgryte commented Sep 2, 2025

@headlessNode ...and glast-index-of. 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BLAS Issue or pull request related to Basic Linear Algebra Subprograms (BLAS). GSoC Google Summer of Code. gsoc: 2025 Google Summer of Code (2025).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants