-
-
Notifications
You must be signed in to change notification settings - Fork 804
feat: add lapack/base/dpotf2
#2771
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
base: develop
Are you sure you want to change the base?
Conversation
lib/node_modules/@stdlib/lapack/base/dpotf2/benchmark/benchmark.js
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/lapack/base/dpotf2/benchmark/benchmark.ndarray.js
Outdated
Show resolved
Hide resolved
Signed-off-by: Pranav <85227306+Pranavchiku@users.noreply.github.com>
var sa1; | ||
var j; | ||
|
||
upper = ( uplo === 'upper' ); |
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.
I don't believe this temporary variable is necessary. Just inline at L75.
if ( upper ) { | ||
for ( j = 0; j < N; j++ ) { | ||
// Compute U( j, j ) and test for non-positive-definiteness... | ||
ajj = A[ offsetA + ( j * sa1 ) + ( j * sa0 ) ] - ddot( j, A, sa1, offsetA + ( j * sa0 ), A, sa1, offsetA + ( j * sa0 ) ); |
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.
You have a lot of repeated computation of index offsets. Refactor to reduce flops.
} | ||
}); | ||
|
||
tape( 'the function supports accessing elements from non-contiguous rows and columns ( row-major )', function test( t ) { |
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.
You need more systematic tests. And also, you only include row-major
tests here. What about column-major behavior?
Towards #2464.
Description
This pull request adds JS implementation of
lapack/base/dpotf2
Related Issues
NA
Questions
No.
Other
No.
Checklist
@stdlib-js/reviewers