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

Remove template parameter from FPArrayComparator #14294

Merged
merged 1 commit into from Sep 21, 2022

Conversation

peterrum
Copy link
Member

... with the intention that it not only works for VectorizedArray<Number> but also for Number.

In forllow up PRs, I plan

  • to move the class into a new file
  • introduce masks
  • add a function for Tables
  • use it in TensorProductMatrixSymmetricSumCache

depends on #14293

Comment on lines 3416 to 3418
Tensor<1,
FPArrayComparator<VectorizedArrayType>::width,
typename FPArrayComparator<VectorizedArrayType>::Number>> &t1,
Copy link
Member

Choose a reason for hiding this comment

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

Can't you just say

Suggested change
Tensor<1,
FPArrayComparator<VectorizedArrayType>::width,
typename FPArrayComparator<VectorizedArrayType>::Number>> &t1,
Tensor<1, width, Number>> &t1,

here and below, since this is the definition of a member function?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes this worked 👍

Copy link
Member

@kronbichler kronbichler left a comment

Choose a reason for hiding this comment

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

Nice. Much better now with the short names.

@peterrum
Copy link
Member Author

I have added the "Do not merge" label since we first need to agree on #14293.

@kronbichler
Copy link
Member

/rebuild

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants