|
| std::unique_ptr< LinOp > | transpose () const override |
| | Returns a LinOp representing the transpose of the Transposable object. More...
|
| |
| std::unique_ptr< LinOp > | conj_transpose () const override |
| | Returns a LinOp representing the conjugate transpose of the Transposable object. More...
|
| |
| void | write (matrix_data< std::complex< float >, int32 > &data) const override |
| | Writes a matrix to a matrix_data structure. More...
|
| |
| void | write (matrix_data< std::complex< float >, int64 > &data) const override |
| | Writes a matrix to a matrix_data structure. More...
|
| |
| void | write (matrix_data< std::complex< double >, int32 > &data) const override |
| | Writes a matrix to a matrix_data structure. More...
|
| |
| void | write (matrix_data< std::complex< double >, int64 > &data) const override |
| | Writes a matrix to a matrix_data structure. More...
|
| |
|
dim< 1 > | get_fft_size () const |
| |
|
bool | is_inverse () const |
| |
| void | apply (ptr_param< const AbstractMultiVector > b, ptr_param< AbstractMultiVector > x) const |
| | Applies a linear operator to a vector (or a sequence of vectors). More...
|
| |
| void | apply (ptr_param< const AbstractMultiVector > alpha, ptr_param< const AbstractMultiVector > b, ptr_param< const AbstractMultiVector > beta, ptr_param< AbstractMultiVector > x) const |
| | Performs the operation x = alpha * op(b) + beta * x. More...
|
| |
|
template<typename DenseIn , typename DenseOut , typename = std::enable_if_t<is_dense_ptr<DenseIn> && is_dense_ptr<DenseOut>>> |
| void | apply (const DenseIn &b, DenseOut &&x) const |
| |
|
template<typename DenseAlpha , typename DenseIn , typename DenseBeta , typename DenseOut , typename = std::enable_if_t< is_dense_ptr<DenseAlpha> && is_dense_ptr<DenseIn> && is_dense_ptr<DenseBeta> && is_dense_ptr<DenseOut>>> |
| void | apply (const DenseAlpha &alpha, const DenseIn &b, const DenseBeta &beta, DenseOut &&x) const |
| |
| const dim< 2 > & | get_size () const noexcept |
| | Returns the size of the operator. More...
|
| |
| virtual bool | apply_uses_initial_guess () const |
| | Returns true if the linear operator uses the data given in x as an initial guess. More...
|
| |
| LinOp & | operator= (const LinOp &)=default |
| | Copy-assigns a LinOp. More...
|
| |
| LinOp & | operator= (LinOp &&other) |
| | Move-assigns a LinOp. More...
|
| |
| | LinOp (const LinOp &)=default |
| | Copy-constructs a LinOp. More...
|
| |
| | LinOp (LinOp &&other) |
| | Move-constructs a LinOp. More...
|
| |
|
virtual void | validate_data () const |
| | Throws gko::InvalidData exception if we found the data inside the object does not fulfill certain property up to our knowledge.
|
| |
|
PolymorphicObject & | operator= (const PolymorphicObject &) |
| |
| std::shared_ptr< const Executor > | get_executor () const noexcept |
| | Returns the Executor of the object. More...
|
| |
|
void | add_logger (std::shared_ptr< const Logger > logger) override |
| |
|
void | remove_logger (const Logger *logger) override |
| |
|
void | remove_logger (ptr_param< const Logger > logger) |
| |
|
const std::vector< std::shared_ptr< const Logger > > & | get_loggers () const override |
| |
|
void | clear_loggers () override |
| |
|
void | remove_logger (ptr_param< const Logger > logger) |
| |
| std::unique_ptr< Fft > | clone (std::shared_ptr< const Executor > exec) const |
| | Creates a clone of the object. More...
|
| |
| std::unique_ptr< Fft > | clone () const |
| | Creates a clone of the object. More...
|
| |
| void | convert_to (result_type *result) const override |
| | Converts the implementer to an object of type result_type. More...
|
| |
| void | move_to (result_type *result) override |
| | Converts the implementer to an object of type result_type by moving data from this object. More...
|
| |
|
std::unique_ptr< Fft > | create_default () const |
| |
|
std::unique_ptr< Fft > | create_default (std::shared_ptr< const Executor > exec) const |
| |
|
void | convert_to (ptr_param< result_type > result) const |
| |
|
void | move_to (ptr_param< result_type > result) |
| |
|
std::unique_ptr< Cloneable > | clone (std::shared_ptr< const Executor > exec) const |
| |
|
std::unique_ptr< Cloneable > | clone () const |
| |
|
Cloneable * | copy_from (ptr_param< const Cloneable > other) |
| |
|
Cloneable * | move_from (ptr_param< Cloneable > other) |
| |
|
std::unique_ptr< Cloneable > | create_default (std::shared_ptr< const Executor > exec) const |
| |
|
std::unique_ptr< Cloneable > | create_default () const |
| |
This LinOp implements a 1D Fourier matrix using the FFT algorithm.
It implements forward and inverse DFT.
For a power-of-two size n with corresponding root of unity \(\omega = e^{-2\pi i / n}\) for forward DFT and \(\omega = e^{2 \pi i / n}\) for inverse DFT it computes
\[ x_k = \sum_{j=0}^{n-1} \omega^{jk} b_j \]
without normalization factors.
The Reference and OpenMP implementations support only power-of-two input sizes, as they use the Radix-2 algorithm by J. W. Cooley and J. W. Tukey, "An Algorithm for the Machine Calculation of Complex Fourier Series," Mathematics of Computation, vol. 19, no. 90, pp. 297–301, 1965, https://doi.org/10.2307/2003354. The CUDA and HIP implementations use cuSPARSE/hipSPARSE with full support for non-power-of-two input sizes and special optimizations for products of small prime powers.