Skip to content

feat: add lapack/base/dgebal #6989

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

Open
wants to merge 43 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
191fc91
feat: add base implementation
aayush0325 May 12, 2025
08cc97d
feat: add main export
aayush0325 May 12, 2025
3a12298
test: add initial tests
aayush0325 May 12, 2025
080ed50
test: add P job test
aayush0325 May 12, 2025
02f5d2d
test: add test for S job
aayush0325 May 12, 2025
0b4af09
test: add test for job = B
aayush0325 May 12, 2025
aeaff94
test: add ndarray tests
aayush0325 May 12, 2025
03a6986
chore: cleanup
aayush0325 May 12, 2025
5f956b0
test: add tests for empty submatrix
aayush0325 May 13, 2025
4ab0380
test: add more tests
aayush0325 May 13, 2025
8192ae8
test: add test for norm = 0
aayush0325 May 13, 2025
f70eec0
test: add test for small values
aayush0325 May 13, 2025
c9ded98
refactor: update job names
aayush0325 May 13, 2025
2c45388
test: add tests with weird values
aayush0325 May 13, 2025
6d755ca
test: add ndarray tests
aayush0325 May 13, 2025
91366cd
test: add some tests
aayush0325 May 14, 2025
ecf4a87
test: more negative stride tests
aayush0325 May 14, 2025
91d0ec8
test: add tests for negative strides
aayush0325 May 14, 2025
7631cba
chore: clean up
aayush0325 May 14, 2025
7030f4d
test: add offset tests
aayush0325 May 15, 2025
f6fcf1d
test: add tests for mixed strides
aayush0325 May 15, 2025
f6054c2
test: add tests for large strides
aayush0325 May 15, 2025
099194a
docs: add examples
aayush0325 May 15, 2025
2ca9245
bench: add benchmarks and cleanup
aayush0325 May 16, 2025
a69fa0b
fix: out should be an int32array because it contains indices
aayush0325 May 16, 2025
2ac5b9c
chore: remove decimals from int32arrays
aayush0325 May 16, 2025
ee1d3a1
chore: cleanupp
aayush0325 May 16, 2025
eb38b48
docs: update docs
aayush0325 May 16, 2025
b516efd
docs: add ts declaration file
aayush0325 May 16, 2025
3f05266
test: add ts test file
aayush0325 May 16, 2025
c86cd76
docs: add repl.txt
aayush0325 May 16, 2025
51b8662
docs: add readme
aayush0325 May 17, 2025
115d185
chore: linting error
aayush0325 May 17, 2025
944cc60
chore: linting error
aayush0325 May 17, 2025
bd0084f
chore: move variables to a separate section
aayush0325 May 18, 2025
09f01ca
chore: update error message
aayush0325 May 21, 2025
50a4de1
chore: update error mesages
aayush0325 May 21, 2025
0c607b9
chore: resolve conflicts
aayush0325 May 22, 2025
021712f
refactor: pointer arithmetics
aayush0325 May 22, 2025
89c3b1c
refactor: pointer arithmetic
aayush0325 May 22, 2025
5f0fdaa
refactor: pointer arithmetic
aayush0325 May 22, 2025
d50308b
refactor: pointer arithmetic
aayush0325 May 22, 2025
ff55902
refactor: pointer arithmetic
aayush0325 May 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs: update docs
---
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: na
  - 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
---
  • Loading branch information
aayush0325 committed May 16, 2025
commit eb38b48adbff78f30bb993f403eb2ab347502a9a
8 changes: 7 additions & 1 deletion lib/node_modules/@stdlib/lapack/base/dgebal/lib/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,13 @@ var dscal = require( '@stdlib/blas/base/dscal' ).ndarray;
* - 'scale': scale only
* - 'both': both permute and scale
*
* The matrix `A` is overwritten by the balanced matrix. Scale factors are stored in the `scale` array.
* The matrix `A` is overwritten by the balanced matrix. Scale factors are stored in the `scale` array. If `P[ j ]` is the index of the row and column interchanged with row and column j (zero-based) and `D[ j ]` is the scaling factor applied to row and column j, then:
*
* - `scale[ j ]` = `P[ j ]` for j = `0`,...,`out[ 0 ]-1`
* - `scale[ j ]` = `D[ j ]` for j = `out[ 0 ]`,...,`out[ 1 ]`
* - `scale[ j ]` = `P[ j ]` for j = `out[ 1 ]+1`,...,`N-1`.
*
* The order in which the interchanges are made is `N-1` to `out[ 1 ]+1`, then `0` to `out[ 0 ]-1`.
*
* @private
* @param {string} job - indicates the operations to be performed
Expand Down
9 changes: 8 additions & 1 deletion lib/node_modules/@stdlib/lapack/base/dgebal/lib/dgebal.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,14 @@ var base = require( './base.js' );
* - 'permute': permute only
* - 'scale': scale only
* - 'both': both permute and scale
* - The matrix `A` is overwritten by the balanced matrix.
*
* The matrix `A` is overwritten by the balanced matrix. Scale factors are stored in the `scale` array. If `P[ j ]` is the index of the row and column interchanged with row and column j (zero-based) and `D[ j ]` is the scaling factor applied to row and column j, then:
*
* - `scale[ j ]` = `P[ j ]` for j = `0`,...,`out[ 0 ]-1`
* - `scale[ j ]` = `D[ j ]` for j = `out[ 0 ]`,...,`out[ 1 ]`
* - `scale[ j ]` = `P[ j ]` for j = `out[ 1 ]+1`,...,`N-1`.
*
* The order in which the interchanges are made is `N-1` to `out[ 1 ]+1`, then `0` to `out[ 0 ]-1`.
*
* @private
* @param {string} order - storage layout of `A`
Expand Down
9 changes: 8 additions & 1 deletion lib/node_modules/@stdlib/lapack/base/dgebal/lib/ndarray.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,14 @@ var base = require( './base.js' );
* - 'permute': permute only
* - 'scale': scale only
* - 'both': both permute and scale
* - The matrix `A` is overwritten by the balanced matrix.
*
* The matrix `A` is overwritten by the balanced matrix. Scale factors are stored in the `scale` array. If `P[ j ]` is the index of the row and column interchanged with row and column j (zero-based) and `D[ j ]` is the scaling factor applied to row and column j, then:
*
* - `scale[ j ]` = `P[ j ]` for j = `0`,...,`out[ 0 ]-1`
* - `scale[ j ]` = `D[ j ]` for j = `out[ 0 ]`,...,`out[ 1 ]`
* - `scale[ j ]` = `P[ j ]` for j = `out[ 1 ]+1`,...,`N-1`.
*
* The order in which the interchanges are made is `N-1` to `out[ 1 ]+1`, then `0` to `out[ 0 ]-1`.
*
* @private
* @param {string} job - indicates the operations to be performed
Expand Down