-
Notifications
You must be signed in to change notification settings - Fork 6
/
extrema.h
18 lines (14 loc) · 752 Bytes
/
extrema.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef _TRTC_extrema_h
#define _TRTC_extrema_h
#include "TRTC_api.h"
#include "TRTCContext.h"
#include "DeviceViewable.h"
#include "DVVector.h"
#include "functor.h"
bool THRUST_RTC_API TRTC_Min_Element(const DVVectorLike& vec, size_t& id_min);
bool THRUST_RTC_API TRTC_Min_Element(const DVVectorLike& vec, const Functor& comp, size_t& id_min);
bool THRUST_RTC_API TRTC_Max_Element(const DVVectorLike& vec, size_t& id_max);
bool THRUST_RTC_API TRTC_Max_Element(const DVVectorLike& vec, const Functor& comp, size_t& id_max);
bool THRUST_RTC_API TRTC_MinMax_Element(const DVVectorLike& vec, size_t& id_min, size_t& id_max);
bool THRUST_RTC_API TRTC_MinMax_Element(const DVVectorLike& vec, const Functor& comp, size_t& id_min, size_t& id_max);
#endif