Skip to content
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

feat: add C implementation for blas/base/ssyr2 #2880

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

aman-095
Copy link
Member

@aman-095 aman-095 commented Sep 7, 2024

Progresses #2039.

Description

What is the purpose of this pull request?

This pull request proposes to add C implementation for blas/base/ssyr2.

Related Issues

Does this pull request have any related issues?

This pull request:

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

@stdlib-bot stdlib-bot added the BLAS Issue or pull request related to Basic Linear Algebra Subprograms (BLAS). label Sep 7, 2024
@aman-095 aman-095 added the C Issue involves or relates to C. label Sep 7, 2024
float x[] = { 1.0f, 2.0f, 3.0f };
float y[] = { 1.0f, 2.0f, 3.0f };

c_ssyr2( 102, 121, 3, 1.0f, x, 1, y, 1, A, 3 );
Copy link
Member

Choose a reason for hiding this comment

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

We should be using the enums from shared. We should not use hardcoded values as those are subject to change.

const int N = 3;

// Perform the symmetric rank 2 operation `A = α*x*y^T + α*y*x^T + A`:
c_ssyr2( 102, 121, N, 1.0f, x, 1, y, 1, A, N );
Copy link
Member

Choose a reason for hiding this comment

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

Same comment.

],
"libpath": [],
"dependencies": [
"@stdlib/blas/base/shared"
Copy link
Member

Choose a reason for hiding this comment

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

You're missing deps, such as sfill and floorf.

@kgryte kgryte added the Needs Changes Pull request which needs changes before being merged. label Sep 21, 2024
@kgryte
Copy link
Member

kgryte commented Sep 21, 2024

Are you wanting to add the C ndarray API to this PR or to a subsequent PR?

@aman-095
Copy link
Member Author

aman-095 commented Sep 21, 2024

Yes, I will add the C ndarray API to this PR itself. Also, what should be the step for CBLAS should I keep it the same now and update it later once we have dlacpy.

@kgryte
Copy link
Member

kgryte commented Sep 22, 2024

@aman-095 Ah, right. This PR is blocked wrt adding a C ndarray API until we have scopy2d.

@kgryte kgryte added the status: Blocked Issue or pull request which is current blocked. label Sep 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BLAS Issue or pull request related to Basic Linear Algebra Subprograms (BLAS). C Issue involves or relates to C. Needs Changes Pull request which needs changes before being merged. status: Blocked Issue or pull request which is current blocked.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants