Cheetah - SKA - PSS - Prototype Time Domain Search Pipeline
Public Member Functions | List of all members
ska::cheetah::tdrt::Tdrt Class Reference

Time Domain Resampler CUDA version / Transform / Module. More...

#include <cheetah/tdrt/Tdrt.h>

Collaboration diagram for ska::cheetah::tdrt::Tdrt:
Collaboration graph

Public Member Functions

 Tdrt (Config const &config)
 Construct a new instance. More...
 
 Tdrt (Tdrt const &)=delete
 
 Tdrt (Tdrt &&)=default
 
template<typename Arch , typename T , typename Alloc , typename... Args>
void process (panda::PoolResource< Arch > &resource, data::TimeSeries< Arch, T, Alloc >const &input, data::TimeSeries< Arch, T, Alloc > &output, data::AccelerationType acceleration, Args &&... args)
 Resample a time series to a given acceleration. More...
 

Detailed Description

Time Domain Resampler CUDA version / Transform / Module.

Definition at line 44 of file Tdrt.h.

Constructor & Destructor Documentation

◆ Tdrt()

ska::cheetah::tdrt::Tdrt::Tdrt ( Config const &  config)

Construct a new instance.

Parameters
configA Tdrt configuration object

Definition at line 30 of file Tdrt.cpp.

31  : _config(config)
32  , _implementations(cuda::Tdrt(config.cuda_config(),_config))
33 {
34 }

Member Function Documentation

◆ process()

template<typename Arch , typename T , typename Alloc , typename... Args>
void ska::cheetah::tdrt::Tdrt::process ( panda::PoolResource< Arch > &  resource,
data::TimeSeries< Arch, T, Alloc >const &  input,
data::TimeSeries< Arch, T, Alloc > &  output,
data::AccelerationType  acceleration,
Args &&...  args 
)

Resample a time series to a given acceleration.

This is a forwarding call that will pass on the given arguments to the first implementation that provides a matching method.

Parameters
resourceThe pool resource on which to process
inputThe input time series
outputThe output time series
[in]accelerationThe acceleration value to resample to
[in]argsAny additional parameters to be forwarded
Template Parameters
ArchThe architecture of the input & output
TThe value type of the input & output
AllocThe allocator type of the input & output
ArgsThe types of any additional args to be forwarded

Definition at line 31 of file Tdrt.cpp.

36 {
37  auto& algo = _implementations.get<Arch>();
38  algo.template process<T,Alloc,Args...>(resource,input,output,acceleration,std::forward<Args>(args)...);
39 }
void process(panda::PoolResource< Arch > &resource, data::TimeSeries< Arch, T, Alloc >const &input, data::TimeSeries< Arch, T, Alloc > &output, data::AccelerationType acceleration, Args &&... args)
Resample a time series to a given acceleration.
Definition: Tdrt.cpp:31

The documentation for this class was generated from the following files: