Skip to content

feat: add lapack/base/dpoequ #2785

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 3 commits into
base: develop
Choose a base branch
from

Conversation

Pranavchiku
Copy link
Member

Towards #2464.

Description

What is the purpose of this pull request?

This pull request adds JS implementation for lapack/base/dpoequ.

Related Issues

Does this pull request have any related issues?

NA

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

@Pranavchiku Pranavchiku added Feature Issue or pull request for adding a new feature. Base Issue or pull requests related to "low-level" functionality oriented toward library consumers. JavaScript Issue involves or relates to JavaScript. LAPACK Issue or pull request related to the Linear Algebra Package (LAPACK). labels Aug 13, 2024
@Pranavchiku Pranavchiku marked this pull request as ready for review August 13, 2024 19:21
smin = S[ offsetS ];
amax[ offsetAM ] = S[ offsetS ];
for ( i = 1; i < N; i++ ) {
S[ offsetS + ( i * strideS ) ] = A[ offsetA + ( i * strideA1 ) + ( i * strideA2 ) ];
Copy link
Member

Choose a reason for hiding this comment

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

Same comments, as elsewhere, regarding unnecessary flops.

t.end();
});

tape( 'the function supports accessing elements from non-contiguous arrangement of rows and columns and in different order', function test( t ) {
Copy link
Member

Choose a reason for hiding this comment

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

@Pranavchiku You need to provide more systematic and thorough tests, similar to what is common practice for existing BLAS and LAPACK routines in stdlib.

@kgryte kgryte added Needs Review A pull request which needs code review. Needs Changes Pull request which needs changes before being merged. and removed Needs Review A pull request which needs code review. labels Sep 17, 2024

return benchmark;

function benchmark( b ) {
Copy link
Member

Choose a reason for hiding this comment

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

Missing JSDoc.


The function has the following parameters:

- **N**: order of matrix.
Copy link
Member

Choose a reason for hiding this comment

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

Description is wrong.

Copy link
Member

Choose a reason for hiding this comment

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

Or I suppose by "order", you mean the number of elements along each dimension of a square matrix A.

* Computes row and column scalings intended to equilibrate a symmetric positive definite matrix `A`.
*
* @private
* @param {NonNegativeInteger} N - order of matrix
Copy link
Member

Choose a reason for hiding this comment

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

Should change the description from order of matrix to the more descriptive "number of elements along each dimension of A".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Base Issue or pull requests related to "low-level" functionality oriented toward library consumers. Feature Issue or pull request for adding a new feature. JavaScript Issue involves or relates to JavaScript. LAPACK Issue or pull request related to the Linear Algebra Package (LAPACK). Needs Changes Pull request which needs changes before being merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants