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

ref: simplify matrix interface #130

Merged

Conversation

niermann999
Copy link
Contributor

@niermann999 niermann999 commented Nov 12, 2024

Make the matrix interface less verbose and similar to the way we deal with vectors. This is done by adding type traits, which in a later PR will be developed into concepts that can also be used by downstream projects to constrain their template parameters. The templating on many classes has been simplified, because the index type, value type etc can now be associated to a matrix type using the new type traits.
The choice of matrix algorithm (determinant, inverse etc) is done by template specialization, which is a language feature, instead of doing custom metaprogramming.

Also adds the matrix transpose operation to the benchmark suite

@niermann999

This comment was marked as outdated.

@niermann999 niermann999 force-pushed the ref-simplify-error-messages branch from 978af64 to 09f3b5c Compare November 12, 2024 20:06
@niermann999 niermann999 mentioned this pull request Nov 14, 2024
@niermann999 niermann999 force-pushed the ref-simplify-error-messages branch from 09f3b5c to e3e3ff2 Compare November 14, 2024 16:27
@niermann999 niermann999 marked this pull request as ready for review November 14, 2024 16:27
@niermann999 niermann999 force-pushed the ref-simplify-error-messages branch 25 times, most recently from eba39c2 to 9dbee43 Compare November 15, 2024 13:39
@niermann999 niermann999 force-pushed the ref-simplify-error-messages branch 10 times, most recently from ec87029 to c7c9e73 Compare November 15, 2024 18:57
@niermann999 niermann999 mentioned this pull request Nov 16, 2024
@niermann999 niermann999 force-pushed the ref-simplify-error-messages branch 2 times, most recently from ca95a64 to af70ff8 Compare November 19, 2024 17:15
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
3.3% 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 like it; one small comment.

common/include/algebra/type_traits.hpp Show resolved Hide resolved
@stephenswat stephenswat merged commit d54e121 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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants