-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsort.h
22 lines (17 loc) · 852 Bytes
/
sort.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef _TRTC_sort_h
#define _TRTC_sort_h
#include "TRTC_api.h"
#include "TRTCContext.h"
#include "DeviceViewable.h"
#include "DVVector.h"
#include "functor.h"
// all merge-based
bool THRUST_RTC_API TRTC_Sort(DVVectorLike& vec);
bool THRUST_RTC_API TRTC_Sort(DVVectorLike& vec, const Functor& comp);
bool THRUST_RTC_API TRTC_Sort_By_Key(DVVectorLike& keys, DVVectorLike& values);
bool THRUST_RTC_API TRTC_Sort_By_Key(DVVectorLike& keys, DVVectorLike& values, const Functor& comp);
bool THRUST_RTC_API TRTC_Is_Sorted(const DVVectorLike& vec, bool& result);
bool THRUST_RTC_API TRTC_Is_Sorted(const DVVectorLike& vec, const Functor& comp, bool& result);
bool THRUST_RTC_API TRTC_Is_Sorted_Until(const DVVectorLike& vec, size_t& result);
bool THRUST_RTC_API TRTC_Is_Sorted_Until(const DVVectorLike& vec, const Functor& comp, size_t& result);
#endif