22 #ifndef vtkPistonMinMax_h 23 #define vtkPistonMinMax_h 25 #include <thrust/device_vector.h> 26 #include <thrust/host_vector.h> 27 #include <thrust/transform_reduce.h> 28 #include <thrust/functional.h> 29 #include <thrust/extrema.h> 30 #include <thrust/random.h> 50 :
public thrust::unary_function< T, minmax_pair<T> >
68 :
public thrust::binary_function< minmax_pair<T>, minmax_pair<T>, minmax_pair<T> >
92 data->begin(), data->end(), unary_op, init, binary_op);
98 #endif // vtkPistonMinMax_h
__host__ __device__ minmax_pair< T > operator()(const minmax_pair< T > &x, const minmax_pair< T > &y) const
minmax_pair< T > find_min_max(thrust::device_vector< T > *data)
__host__ __device__ minmax_pair< T > operator()(const T &x) const