Occasionally the user will need to:
- Compare all values of two arrays after they are sorted for each array in a particular order (presort)
- Compare all values of two arrays using approximate matching, e.g. match each value of array 1 with the first value found in array 2 within epsilon (note the difference between the two).
The implementation for (1) had already begun, but some thrust specifics escape me, thus the code is commented out for CUDA-to-CUDA comparison. The implementation for (2) can be gleaned from one of the tests in Test_RaycastingEngine, where the operation is performed by first sorting the values, then keeping a buffer of all encountered "unmatched" values from array1 and array2 and attempting to match them with each newly-encountered value.
Occasionally the user will need to:
The implementation for (1) had already begun, but some thrust specifics escape me, thus the code is commented out for CUDA-to-CUDA comparison. The implementation for (2) can be gleaned from one of the tests in Test_RaycastingEngine, where the operation is performed by first sorting the values, then keeping a buffer of all encountered "unmatched" values from array1 and array2 and attempting to match them with each newly-encountered value.