Improvements to sort functions#1373
Merged
pavanky merged 28 commits intoarrayfire:hotfix-3.3.2from Apr 24, 2016
shehzan10:sort
Merged
Improvements to sort functions#1373pavanky merged 28 commits intoarrayfire:hotfix-3.3.2from shehzan10:sort
pavanky merged 28 commits intoarrayfire:hotfix-3.3.2from
shehzan10:sort
Conversation
This allows complex sorting based on a key, which can be the abs, real, imag etc of the value array. So the user can choose which metric they want to use.
* Sort now allows all dimensions * Sort if much faster by using batched mode. This takes up more memory though. * Enabled large tests for sort * Added tests for sorting on dim1 and dim2
This reverts commit 98e023d.
Member
Author
|
build arrayfire windows ci |
Member
Author
|
@pavanky updated sort_index code for CPU and CUDA |
Member
Author
|
build arrayfire tegrak1 ci |
Member
Author
|
build arrayfire tegrak1 ci |
Member
Author
|
build arrayfire linux-03 ci |
| cuda::kernel::iota<uint>(pSeq, seqDims, tileDims); | ||
|
|
||
| // Make pkey, pVal into a pair | ||
| thrust::device_vector<IndexPair<Tk, Tv> > X(inDims.elements()); |
Member
There was a problem hiding this comment.
Allocate using arrayfire. This is going to be costly otherwise.
Member
Author
Member
|
@shehzan10 Tests look fine. |
Member
|
looks good 👍 |
Member
|
build arrayfire ci |
1 similar comment
Member
Author
|
build arrayfire ci |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds:
Fixes #291 #394