-
Notifications
You must be signed in to change notification settings - Fork 565
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
Stokhos(mask logic): MaskLogic::OP
should take by const&
#12325
Comments
@maartenarnst will also be interested 😉 |
The compiler often eliminates the copy, but |
This issue has had no activity for 365 days and is marked for closure. It will be closed after an additional 30 days of inactivity. |
I’m retesting the linked PR to see what the status is. |
Enhancement
@trilinos/stokhos
@etphipp
When we run tests using ensembles, we want to make floating-point equality checks (or at least comparison within a tolerance).
Making such thing sample-wise is ensured by using
MaskLogic::OP
.I think these
MaskLogic::OP
should takeMask<T>
byconst&
. Otherwise, it copiesMask<T>
uselessly.Trilinos/packages/stokhos/src/sacado/kokkos/vector/Stokhos_MP_Vector_MaskTraits.hpp
Lines 938 to 964 in 5aaae1a
If you agree, I'll make a PR to fix this.
The text was updated successfully, but these errors were encountered: