Skip to content

chore: minor cleanup in lapack/base/dgttrf #7383

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

Merged
merged 1 commit into from
Jun 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 4 additions & 4 deletions lib/node_modules/@stdlib/lapack/base/dgttrf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,10 @@ var IPIV0 = new Int32Array( [ 0, 0, 0, 0 ] );

// Create offset views...
var DL = new Float64Array( DL0.buffer, DL0.BYTES_PER_ELEMENT*1 ); // start at 2nd element
var D = new Float64Array( D0.buffer, D0.BYTES_PER_ELEMENT*1 );
var DU = new Float64Array( DU0.buffer, DU0.BYTES_PER_ELEMENT*1 );
var DU2 = new Float64Array( DU20.buffer, DU20.BYTES_PER_ELEMENT*1 );
var IPIV = new Int32Array( IPIV0.buffer, IPIV0.BYTES_PER_ELEMENT*1 );
var D = new Float64Array( D0.buffer, D0.BYTES_PER_ELEMENT*1 ); // start at 2nd element
var DU = new Float64Array( DU0.buffer, DU0.BYTES_PER_ELEMENT*1 ); // start at 2nd element
var DU2 = new Float64Array( DU20.buffer, DU20.BYTES_PER_ELEMENT*1 ); // start at 2nd element
var IPIV = new Int32Array( IPIV0.buffer, IPIV0.BYTES_PER_ELEMENT*1 ); // start at 2nd element

dgttrf( 3, DL, D, DU, DU2, IPIV );
// DL0 => <Float64Array>[ 0.0, 0.3, ~0.22 ]
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/lapack/base/dgttrf/lib/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
// MAIN //

/**
* Computes an `LU` factorization of a real tridiagonal matrix `A` using elimination with partial pivoting and row interchanges.

Check warning on line 29 in lib/node_modules/@stdlib/lapack/base/dgttrf/lib/base.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unknown word: "tridiagonal"
*
* ## Notes
*
Expand Down Expand Up @@ -127,7 +127,7 @@

j = idu + strideDU;
DU2[ idu2 ] = DU[ j ];
DU[ j ] = -fact*DU[ j ];
DU[ j ] *= -fact;

IPIV[ ip ] = i + 1;
}
Expand Down