Skip to content

Commit

Permalink
Update fft.hpp
Browse files Browse the repository at this point in the history
Added comments
  • Loading branch information
spectre-ns authored Nov 24, 2023
1 parent 8b2ac01 commit 77783b8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions include/xtensor-signal/fft.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ inline auto fft(E &&e) {
}
} // namespace detail

/**
* @breif 1D FFT of an Nd array along a specified axis
* @param e an Nd expression to be transformed to the fourier domain
* @param axis the axis along which to perform the 1D FFT
* @return a transformed xarray of the specified precision
*/
template <class E,
typename std::enable_if<
xtl::is_complex<typename std::decay<E>::type::value_type>::value,
Expand All @@ -75,6 +81,12 @@ inline auto fft(E &&e, std::ptrdiff_t axis = -1) {
return out;
}

/**
* @breif 1D FFT of an Nd array along a specified axis
* @param e an Nd expression to be transformed to the fourier domain
* @param axis the axis along which to perform the 1D FFT
* @return a transformed xarray of the specified precision
*/
template <class E,
typename std::enable_if<
!xtl::is_complex<typename std::decay<E>::type::value_type>::value,
Expand Down

0 comments on commit 77783b8

Please sign in to comment.