Skip to content

Commit

Permalink
Fix unresolved doxygen for N-dimensional FFT APIs (#143)
Browse files Browse the repository at this point in the history
* Add norm arg

* try predefined

* apply predefined

---------

Co-authored-by: Yuuichi Asahi <[email protected]>
  • Loading branch information
yasahi-hpc and Yuuichi Asahi authored Oct 1, 2024
1 parent d406037 commit 25469cd
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/Doxyfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -2177,7 +2177,7 @@ INCLUDE_FILE_PATTERNS =
# recursively expanded use the := operator instead of the = operator.
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.

PREDEFINED =
PREDEFINED = DOXY

# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
# tag can be used to specify a list of macro names that should be expanded. The
Expand Down
2 changes: 1 addition & 1 deletion docs/api/standard/fftn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
KokkosFFT::fftn
---------------

.. doxygenfunction:: KokkosFFT::fftn(const ExecutionSpace& exec_space, const InViewType& in, OutViewType& out, axis_type<DIM> axes, KokkosFFT::Normalization, shape_type<DIM> s)
.. doxygenfunction:: KokkosFFT::fftn(const ExecutionSpace& exec_space, const InViewType& in, OutViewType& out, axis_type<DIM> axes, KokkosFFT::Normalization norm, shape_type<DIM> s)
28 changes: 24 additions & 4 deletions fft/src/KokkosFFT_Transform.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -469,11 +469,16 @@ void irfft2(const ExecutionSpace& exec_space, const InViewType& in,
/// \param exec_space [in] Kokkos execution space
/// \param in [in] Input data (complex)
/// \param out [out] Ouput data (complex)
/// \param axes [in] Axes over which FFT is performed (optional)
/// \param axes [in] Axes over which FFT is performed (default, all axes)
/// \param norm [in] How the normalization is applied (optional)
/// \param s [in] Shape of the transformed axis of the output (optional)
#if defined(DOXY)
template <typename ExecutionSpace, typename InViewType, typename OutViewType,
std::size_t DIM>
#else
template <typename ExecutionSpace, typename InViewType, typename OutViewType,
std::size_t DIM = InViewType::rank()>
#endif
void fftn(
const ExecutionSpace& exec_space, const InViewType& in, OutViewType& out,
axis_type<DIM> axes =
Expand Down Expand Up @@ -504,11 +509,16 @@ void fftn(
/// \param exec_space [in] Kokkos execution space
/// \param in [in] Input data (complex)
/// \param out [out] Ouput data (complex)
/// \param axes [in] Axes over which FFT is performed (optional)
/// \param axes [in] Axes over which FFT is performed (default, all axes)
/// \param norm [in] How the normalization is applied (optional)
/// \param s [in] Shape of the transformed axis of the output (optional)
#if defined(DOXY)
template <typename ExecutionSpace, typename InViewType, typename OutViewType,
std::size_t DIM>
#else
template <typename ExecutionSpace, typename InViewType, typename OutViewType,
std::size_t DIM = InViewType::rank()>
#endif
void ifftn(
const ExecutionSpace& exec_space, const InViewType& in, OutViewType& out,
axis_type<DIM> axes =
Expand Down Expand Up @@ -541,11 +551,16 @@ void ifftn(
/// \param exec_space [in] Kokkos execution space
/// \param in [in] Input data (real)
/// \param out [out] Ouput data (complex)
/// \param axes [in] Axes over which FFT is performed (optional)
/// \param axes [in] Axes over which FFT is performed (default, all axes)
/// \param norm [in] How the normalization is applied (optional)
/// \param s [in] Shape of the transformed axis of the output (optional)
#if defined(DOXY)
template <typename ExecutionSpace, typename InViewType, typename OutViewType,
std::size_t DIM>
#else
template <typename ExecutionSpace, typename InViewType, typename OutViewType,
std::size_t DIM = InViewType::rank()>
#endif
void rfftn(
const ExecutionSpace& exec_space, const InViewType& in, OutViewType& out,
axis_type<DIM> axes =
Expand Down Expand Up @@ -584,11 +599,16 @@ void rfftn(
/// \param exec_space [in] Kokkos execution space
/// \param in [in] Input data (complex)
/// \param out [out] Ouput data (real)
/// \param axes [in] Axes over which FFT is performed (optional)
/// \param axes [in] Axes over which FFT is performed (default, all axes)
/// \param norm [in] How the normalization is applied (optional)
/// \param s [in] Shape of the transformed axis of the output (optional)
#if defined(DOXY)
template <typename ExecutionSpace, typename InViewType, typename OutViewType,
std::size_t DIM>
#else
template <typename ExecutionSpace, typename InViewType, typename OutViewType,
std::size_t DIM = InViewType::rank()>
#endif
void irfftn(
const ExecutionSpace& exec_space, const InViewType& in, OutViewType& out,
axis_type<DIM> axes =
Expand Down

0 comments on commit 25469cd

Please sign in to comment.