Xmipp  v3.23.11-Nereus
fft_settings.cpp
Go to the documentation of this file.
1 #include <ostream>
2 #include "data/fft_settings.h"
3 
4 template<typename T>
5 std::ostream &operator<<(std::ostream &os,
6  const FFTSettings<T> &s)
7 {
8  os << s.m_spatial.x() << "(" << s.m_freq.x() << ")"
9  << " * " << s.m_spatial.y() << " * "
10  << s.m_spatial.z() << " * " << s.m_spatial.n() << ", batch: " << s.m_batch
11  << ", inPlace: " << (s.m_isInPlace ? "yes" : "no")
12  << ", isForward: " << (s.m_isForward ? "yes" : "no");
13  return os;
14 }
15 
16 // explicit instantiation
17 template std::ostream& operator<< <float>(std::ostream&, FFTSettings<float> const&);
18 template std::ostream& operator<< <double>(std::ostream&, FFTSettings<double> const&);
std::ostream & operator<<(std::ostream &os, const FFTSettings< T > &s)
Definition: fft_settings.cpp:5
CUDA_HD constexpr size_t z() const
Definition: dimensions.h:69
template std::ostream & operator<<< double >(std::ostream &, FFTSettings< double > const &)
CUDA_HD constexpr size_t x() const
Definition: dimensions.h:51
CUDA_HD constexpr size_t y() const
Definition: dimensions.h:60
template std::ostream & operator<<< float >(std::ostream &, FFTSettings< float > const &)
CUDA_HD constexpr size_t n() const
Definition: dimensions.h:78