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: generic plugin #131

Merged
merged 2 commits into from
Nov 20, 2024
Merged

Conversation

niermann999
Copy link
Contributor

@niermann999 niermann999 commented Nov 16, 2024

The cmath frontend cannot be used generically with every linear algebra library, since the subscript operator is not always available. In the current matrix algorithm implementation, a more generic solution is being used by applying the element getter instead. In this PR, this was generalized into a generic implementation, which can be used on top of every linear algebra plugin. The cmath, which relies on the c-style access to arrays, implementation is kept as well, since it is still shared between the array and vecmem plugins.

@niermann999 niermann999 added the enhancement New feature or request label Nov 16, 2024
@niermann999

This comment was marked as outdated.

@niermann999 niermann999 force-pushed the feat-generic-plugin2 branch 18 times, most recently from 65850f1 to 4df06d2 Compare November 16, 2024 15:59
@niermann999 niermann999 force-pushed the feat-generic-plugin2 branch 4 times, most recently from 8cc979c to d1c856f Compare November 20, 2024 15:15
@stephenswat
Copy link
Member

Is this ready for review? And if so - any guidelines on how to do this? In other words, are there any major changes here or is it mostly renaming stuff?

@niermann999
Copy link
Contributor Author

Is this ready for review? And if so - any guidelines on how to do this? In other words, are there any major changes here or is it mostly renaming stuff?

Yes, I think a lot of it is renaming and moving code around. The getters, for example, were moved into their own files to be able to combine them with different matrix implementations

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
6.6% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

Copy link
Member

@stephenswat stephenswat left a comment

Choose a reason for hiding this comment

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

I'm not going to look through all of this, but it looks sensible; happy to scream test this.

@stephenswat stephenswat merged commit d83f29e into acts-project:main Nov 20, 2024
24 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants