-
Notifications
You must be signed in to change notification settings - Fork 41
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 deprecated code in SortUtils #1171
Conversation
aprokop
commented
Oct 4, 2024
•
edited
Loading
edited
- Remove 2D and 3D permutation routines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to update the type requirements on apply[Inverse]Permutation()
PermuteHelper::CopyOp<OutputView, InputView>::copy( | ||
output_view, permutation(i), input_view, i); | ||
}); | ||
KOKKOS_LAMBDA(int i) { output_view(permutation(i)) = input_view(i); }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
static assert that views are rank-1
What do you mean by type requirements? That the inputs are views? |
6b8c35f
to
f962ec3
Compare
that they are rank-1 views yes |
static_assert(InputView::rank == 1); | ||
static_assert(OutputView::rank == 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
static_assert(InputView::rank == 1); | |
static_assert(OutputView::rank == 1); | |
static_assert(InputView::rank() == 1); | |
static_assert(OutputView::rank() == 1); |
static_assert(InputView::rank == 1); | ||
static_assert(OutputView::rank == 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
static_assert(InputView::rank == 1); | |
static_assert(OutputView::rank == 1); | |
static_assert(InputView::rank() == 1); | |
static_assert(OutputView::rank() == 1); |
Thanks for the |