template struct pocketfft::detail::cmplxΒΆ

template <typename T>
struct cmplx {
    // fields
 
    T r;
    T i;
 
    // construction
 
    cmplx();
    cmplx(T r_, T i_);
 
    // methods
 
    void Set(T r_, T i_);
    void Set(T r_);
    cmplx& operator+=(const cmplx& other);
 
    template <typename T2>
    cmplx& operator*=(T2 other);
 
    template <typename T2>
    cmplx& operator*=(const cmplx<T2>& other);
 
    template <typename T2>
    cmplx& operator+=(const cmplx<T2>& other);
 
    template <typename T2>
    cmplx& operator-=(const cmplx<T2>& other);
 
    template <typename T2>
    cmplx<decltype(r*other)> operator*(const T2& other) const;
 
    template <typename T2>
    cmplx<decltype(r+other.r)> operator+(const cmplx<T2>& other) const;
 
    template <typename T2>
    cmplx<decltype(r+other.r)> operator-(const cmplx<T2>& other) const;
 
    template <typename T2>
    cmplx<decltype(r+other.r)> operator*(const cmplx<T2>& other) const;
 
    template <bool fwd, typename T2>
    cmplx<decltype(r+other.r)> special_mul(const cmplx<T2>& other) const;
};