24 #ifndef SKA_CHEETAH_FREQUENCYTIME_H 25 #define SKA_CHEETAH_FREQUENCYTIME_H 27 #include "cheetah/data/Units.h" 28 #include "cheetah/data/TimeFrequencyCommon.h" 29 #include "cheetah/utils/Architectures.h" 30 #include "panda/DataChunk.h" 32 #pragma GCC diagnostic push 33 #pragma GCC diagnostic ignored "-Wall" 34 #pragma GCC diagnostic ignored "-Wpragmas" 35 #pragma GCC diagnostic ignored "-Wunused-parameter" 36 #pragma GCC diagnostic ignored "-Wunused-variable" 37 #include "pss/astrotypes/types/TimeFrequency.h" 38 #pragma GCC diagnostic pop 87 template <
class Arch,
typename NumericalT>
91 typedef pss::astrotypes::FrequencyTime<NumericalT> BaseT;
99 typedef NumericalT NumericalRep;
100 typedef Arch Architecture;
102 typedef typename CommonBaseT::FrequencyType FrequencyType;
103 typedef typename CommonBaseT::TimeType TimeType;
104 typedef typename CommonBaseT::TimePointType TimePointType;
106 typedef typename BaseT::iterator Iterator;
107 typedef typename BaseT::const_iterator ConstIterator;
116 typedef typename BaseT::ConstSpectra ConstSpectra;
117 typedef typename BaseT::Channel Channel;
118 typedef typename BaseT::ConstChannel ConstChannel;
129 FrequencyTime(DimensionSize<Time> number_of_spectra, DimensionSize<Frequency> number_of_channels);
130 FrequencyTime(DimensionSize<Frequency> number_of_channels, DimensionSize<Time> number_of_spectra);
135 template<
class OtherArch,
typename OtherNumericalT>
138 template<
typename OtherNumericalT>
141 template<
typename OtherArch,
typename OtherNumericalT>
148 void set_channel(
unsigned channel_number, DataType
const& value);
174 template<
typename T,
typename Enable =
void>
182 namespace astrotypes {
184 template<
typename Alloc,
typename T>
185 struct has_exact_dimensions<
ska::cheetah::data::FrequencyTime<T, Alloc>, units::Frequency, units::Time> :
public std::true_type
192 #include "detail/FrequencyTime.cpp" 193 #include "cuda/FrequencyTime.h" 195 #endif // SKA_CHEETAH_FREQUENCYTIME_H
bool operator==(FrequencyTime const &) const
return true if equivalent data
NumericalT DataType
the underlying data storage type for the amplitude of the signal
BaseT::Spectra Spectra
Iterator class for accessing each time sample.
Some limits and constants for FLDO.
void set_channel(unsigned channel_number, DataType const &value)
sets the value of the specified channel to the provided value across all time samples ...