MLX
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
pocketfft::detail::cmplx< T > Struct Template Reference

#include <pocketfft.h>

Public Member Functions

 cmplx ()
 
 cmplx (T r_, T i_)
 
void Set (T r_, T i_)
 
void Set (T r_)
 
cmplxoperator+= (const cmplx &other)
 
template<typename T2 >
cmplxoperator*= (T2 other)
 
template<typename T2 >
cmplxoperator*= (const cmplx< T2 > &other)
 
template<typename T2 >
cmplxoperator+= (const cmplx< T2 > &other)
 
template<typename T2 >
cmplxoperator-= (const cmplx< T2 > &other)
 
template<typename T2 >
auto operator* (const T2 &other) const -> cmplx< decltype(r *other)>
 
template<typename T2 >
auto operator+ (const cmplx< T2 > &other) const -> cmplx< decltype(r+other.r)>
 
template<typename T2 >
auto operator- (const cmplx< T2 > &other) const -> cmplx< decltype(r+other.r)>
 
template<typename T2 >
auto operator* (const cmplx< T2 > &other) const -> cmplx< decltype(r+other.r)>
 
template<bool fwd, typename T2 >
auto special_mul (const cmplx< T2 > &other) const -> cmplx< decltype(r+other.r)>
 

Public Attributes

T r
 
T i
 

Constructor & Destructor Documentation

◆ cmplx() [1/2]

template<typename T >
pocketfft::detail::cmplx< T >::cmplx ( )
inline

◆ cmplx() [2/2]

template<typename T >
pocketfft::detail::cmplx< T >::cmplx ( T r_,
T i_ )
inline

Member Function Documentation

◆ operator*() [1/2]

template<typename T >
template<typename T2 >
auto pocketfft::detail::cmplx< T >::operator* ( const cmplx< T2 > & other) const -> cmplx<decltype(r+other.r)>
inline

◆ operator*() [2/2]

template<typename T >
template<typename T2 >
auto pocketfft::detail::cmplx< T >::operator* ( const T2 & other) const -> cmplx<decltype(r*other)>
inline

◆ operator*=() [1/2]

template<typename T >
template<typename T2 >
cmplx & pocketfft::detail::cmplx< T >::operator*= ( const cmplx< T2 > & other)
inline

◆ operator*=() [2/2]

template<typename T >
template<typename T2 >
cmplx & pocketfft::detail::cmplx< T >::operator*= ( T2 other)
inline

◆ operator+()

template<typename T >
template<typename T2 >
auto pocketfft::detail::cmplx< T >::operator+ ( const cmplx< T2 > & other) const -> cmplx<decltype(r+other.r)>
inline

◆ operator+=() [1/2]

template<typename T >
cmplx & pocketfft::detail::cmplx< T >::operator+= ( const cmplx< T > & other)
inline

◆ operator+=() [2/2]

template<typename T >
template<typename T2 >
cmplx & pocketfft::detail::cmplx< T >::operator+= ( const cmplx< T2 > & other)
inline

◆ operator-()

template<typename T >
template<typename T2 >
auto pocketfft::detail::cmplx< T >::operator- ( const cmplx< T2 > & other) const -> cmplx<decltype(r+other.r)>
inline

◆ operator-=()

template<typename T >
template<typename T2 >
cmplx & pocketfft::detail::cmplx< T >::operator-= ( const cmplx< T2 > & other)
inline

◆ Set() [1/2]

template<typename T >
void pocketfft::detail::cmplx< T >::Set ( T r_)
inline

◆ Set() [2/2]

template<typename T >
void pocketfft::detail::cmplx< T >::Set ( T r_,
T i_ )
inline

◆ special_mul()

template<typename T >
template<bool fwd, typename T2 >
auto pocketfft::detail::cmplx< T >::special_mul ( const cmplx< T2 > & other) const -> cmplx<decltype(r+other.r)>
inline

Member Data Documentation

◆ i

◆ r


The documentation for this struct was generated from the following file: