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

Arithmetics #10

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Arithmetics #10

wants to merge 10 commits into from

Conversation

alexKrauseTUD
Copy link
Collaborator

Added an arithmetic class, which calculates...

  • the sum over a single column
  • the average of a single column
  • the element-wise product/quotient/sum/difference of two columns

We also provide convenience using definitions, which have to be templated with the appropriate tsl::VectorProcessingStyle by the user.

Unit tests for all of the above have been added.

alexKrauseTUD and others added 4 commits December 16, 2024 09:21
Moved assignment of element_count to the case that handles the average operation to avoid unused warnings (Wunused)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we want to provide operator() with valid masks?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It only makes sense for reduction, i.e. single column operators. In these cases -- yes.

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