Cheetah - SKA - PSS - Prototype Time Domain Search Pipeline
TdrtMap.cuh
1 #ifndef SKA_CHEETAH_TDRT_CUDA_TDRTMAP_H
2 #define SKA_CHEETAH_TDRT_CUDA_TDRTMAP_H
3 
4 #include "cheetah/data/Units.h"
5 #include "cheetah/cuda_utils/cuda_thrust.h"
6 
7 namespace ska {
8 namespace cheetah {
9 namespace tdrt {
10 namespace cuda {
11 
21 struct TdrtMap: public thrust::unary_function<std::size_t,std::size_t>
22 {
23  double accel_fact;
24  double size;
25 
33  TdrtMap(data::AccelerationType acceleration, std::size_t size, data::TimeType tsamp);
34 
35  inline __host__ __device__
36  std::size_t operator()(std::size_t idx) const;
37 
38 };
39 
40 } //namespace cuda
41 } // namespace tdrt
42 } // namespace cheetah
43 } // namespace ska
44 
45 #include "cheetah/tdrt/cuda/detail/TdrtMap.cu"
46 
47 #endif // SKA_CHEETAH_TDRT_CUDA_TDRTMAP_H
Functor for remapping accelerated time series.
Definition: TdrtMap.cuh:21
Some limits and constants for FLDO.
Definition: Brdz.h:35
__host__ __device__ std::size_t operator()(std::size_t idx) const
Functor for remapping timeseries using time domain resampling.
Definition: TdrtMap.cu:14
TdrtMap(data::AccelerationType acceleration, std::size_t size, data::TimeType tsamp)
Create new functor instance.
Definition: TdrtMap.cu:14