Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---
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: 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
---
Contributor
Coverage Report
The above coverage report was generated for the changes in this PR. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves a part of #2464.
Description
This pull request:
@stdlib/lapack/base/dgbequ, which computes row and column scale factors intended to equilibrate anM-by-Nband matrixAand reduce its condition number.The implementation is a port of reference LAPACK
DGBEQU. Its only dependency is the smallest normal double-precision number (used asdlamch('S')), so it is independent of the other open LAPACK PRs.Conventions:
dgeequ(feat: addlapack/base/dgeequ#13155):dgbequ( order, M, N, KL, KU, AB, LDAB, R, C, out )anddgbequ.ndarray( M, N, KL, KU, AB, sab1, sab2, oab, R, sr, or, C, sc, oc, out, so, oo ), withoutset to[ ROWCND, COLCND, AMAX ]. The return value is the status code:0on success,i(one-based) if rowiis exactly zero, andM+jif columnjis exactly zero. On an early return, the outputs are left exactly as the reference implementation leaves them (e.g.,Rholds the unscaled row maxima when a row is zero).dgbtf2(feat: addlapack/base/dgbtf2#15833):ABis the(KL+KU+1)-by-Nband array, withA(i,j)stored in band rowKU+i-j(zero-based) of columnj. Column-major indexing isAB[b+j*LDAB]withLDAB >= KL+KU+1; row-major indexing isAB[b*LDAB+j]withLDAB >= max(1,N). The ndarray API doesn't takeorder, since strides fully describe the band array.KL/KUmay exceed the matrix dimensions.Related Issues
This pull request has the following related issues:
lapack/base/dgeequ#13155 (dgeequ)lapack/base/dgbtf2#15833 (dgbtf2)Reference Packages
This pull request followed these packages:
lapack/base/dgeequ(feat: addlapack/base/dgeequ#13155)lapack/base/dgbtf2(feat: addlapack/base/dgbtf2#15833)base.js+dgbequ.js+ndarray.js), theoutarray and status code semantics, thesmlnum/bignumclamping, docs, and test structure from feat: addlapack/base/dgeequ#13155LDABrules from feat: addlapack/base/dgbtf2#15833j, only rowsmax(0,j-KU)throughmin(M-1,j+KL)are visited, reading band rowKU+i-jdgbequ(Apple Accelerate) and compared exactly withisSameFloat64Array, as in feat: addlapack/base/dgeequ#13155. They cover both layouts, square, wide, and tall matrices,KL = KU = 0, bandwidths larger than the matrix,LDABlarger than required, zero rows and zero columns (status codes and partially written outputs), row and column maxima below the smallest normal number (clamping), values near the overflow threshold, and offsets and positive, negative, and mixed strides. Matrices and band arrays are shown row by row in*_matfieldsKL/KUup to 9 for matrices up to 7-by-7), the status code,R,C, andoutmatch reference LAPACK bit for bit in both column-major and row-major layoutslib/base.js(band row index, row bounds, status codes, row scaling, row/column clamping,ROWCND/COLCND/AMAX, quick return) makes the tests failQuestions
Yes (also asked in #2464): no band routine has been merged yet, and #6707 raised a question about the row-major band layout. This PR follows the LAPACKE-style layout used in #15833 (row-major
AB[b*LDAB+j],LDAB >= max(1,N)). Is that the convention new band routines should use? If not, only the stride setup inlib/dgbequ.jsand the row-major fixtures would need to change.Other
Ran locally: package tests (211 assertions), benchmarks, the example, and the commit-hook linters (file names, EditorConfig, Markdown,
package.json,repl.txt, JavaScript, TypeScript declarations and tests, license headers), all passing.Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
@stdlib-js/reviewers