.. SPDX-FileCopyrightText: (C) The Kokkos-FFT development team, see COPYRIGHT.md file .. .. SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception KokkosFFT::irfftn ----------------- .. doxygenfunction:: KokkosFFT::irfftn(const ExecutionSpace& exec_space, const InViewType& in, const OutViewType& out, axis_type axes, KokkosFFT::Normalization, shape_type s) .. note:: The input must be a complex-valued view, and the output must be a real-valued view. The input length along the transform axis (``axes[DIM-1]``) is ``n/2 + 1``, where ``n`` is the output length along that axis. If this condition is not met, the `std::runtime_error` exception will be thrown. Examples ======== In this example, we use the 3D View with `LayoutRight` to avoid the internal transpose. This allows `irfftn` to perform 3-dimensional inverse FFT on the outermost dimension without transpose. .. literalinclude:: ../../../examples/docs/real/docs_irfftn.cpp :language: c++ :linenos: :lines: 5- Expected output: .. code:: 1 2 3 4 5 6 7 8 9 10 11 12