|
| 1 | +/// @file |
| 2 | +/// @author David Pilger <[email protected]> |
| 3 | +/// [GitHub Repository](https://github.com/dpilger26/NumCpp) |
| 4 | +/// |
| 5 | +/// License |
| 6 | +/// Copyright 2018-2025 David Pilger |
| 7 | +/// |
| 8 | +/// Permission is hereby granted, free of charge, to any person obtaining a copy of this |
| 9 | +/// software and associated documentation files(the "Software"), to deal in the Software |
| 10 | +/// without restriction, including without limitation the rights to use, copy, modify, |
| 11 | +/// merge, publish, distribute, sublicense, and/or sell copies of the Software, and to |
| 12 | +/// permit persons to whom the Software is furnished to do so, subject to the following |
| 13 | +/// conditions : |
| 14 | +/// |
| 15 | +/// The above copyright notice and this permission notice shall be included in all copies |
| 16 | +/// or substantial portions of the Software. |
| 17 | +/// |
| 18 | +/// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, |
| 19 | +/// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR |
| 20 | +/// PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE |
| 21 | +/// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR |
| 22 | +/// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
| 23 | +/// DEALINGS IN THE SOFTWARE. |
| 24 | +/// |
| 25 | +/// Description |
| 26 | +/// Functions for working with NdArrays |
| 27 | +/// |
| 28 | +#pragma once |
| 29 | + |
| 30 | +#include <complex> |
| 31 | + |
| 32 | +#include "NumCpp/Core/Types.hpp" |
| 33 | +#include "NumCpp/FFT/fft2.hpp" |
| 34 | +#include "NumCpp/FFT/ifft2.hpp" |
| 35 | +#include "NumCpp/NdArray.hpp" |
| 36 | + |
| 37 | +namespace nc::fft |
| 38 | +{ |
| 39 | + //=========================================================================== |
| 40 | + // Method Description: |
| 41 | + /// Resample a series to m,n points via Fourier interpolation |
| 42 | + /// |
| 43 | + /// @param inArray |
| 44 | + /// @param n Length of the transformed axis of the output. |
| 45 | + /// @param inAxis (Optional, default NONE) |
| 46 | + /// |
| 47 | + /// @return NdArray |
| 48 | + /// |
| 49 | + template<typename dtype> |
| 50 | + NdArray<std::complex<double>> fft2_resample(const NdArray<dtype>& inArray, uint32 inN, Axis inAxis = Axis::NONE) |
| 51 | + { |
| 52 | + } |
| 53 | + |
| 54 | + //=========================================================================== |
| 55 | + // Method Description: |
| 56 | + /// Resample a series to m,n points via Fourier interpolation |
| 57 | + /// |
| 58 | + /// @param inArray |
| 59 | + /// @param inAxis (Optional, default NONE) |
| 60 | + /// |
| 61 | + /// @return NdArray |
| 62 | + /// |
| 63 | + template<typename dtype> |
| 64 | + NdArray<std::complex<double>> fft2_resample(const NdArray<dtype>& inArray, Axis inAxis = Axis::NONE) |
| 65 | + { |
| 66 | + } |
| 67 | + |
| 68 | + //============================================================================ |
| 69 | + // Method Description: |
| 70 | + /// Resample a series to m,n points via Fourier interpolation |
| 71 | + /// |
| 72 | + /// @param inArray |
| 73 | + /// @param n Length of the transformed axis of the output. |
| 74 | + /// @param inAxis (Optional, default NONE) |
| 75 | + /// |
| 76 | + /// @return NdArray |
| 77 | + /// |
| 78 | + template<typename dtype> |
| 79 | + NdArray<std::complex<double>> |
| 80 | + fft2_resample(const NdArray<std::complex<dtype>>& inArray, uint32 inN, Axis inAxis = Axis::NONE) |
| 81 | + { |
| 82 | + } |
| 83 | + |
| 84 | + //============================================================================ |
| 85 | + // Method Description: |
| 86 | + /// Resample a series to m,n points via Fourier interpolation |
| 87 | + /// |
| 88 | + /// @param inArray |
| 89 | + /// @param inAxis (Optional, default NONE) |
| 90 | + /// |
| 91 | + /// @return NdArray |
| 92 | + /// |
| 93 | + template<typename dtype> |
| 94 | + NdArray<std::complex<double>> fft2_resample(const NdArray<std::complex<dtype>>& inArray, Axis inAxis = Axis::NONE) |
| 95 | + { |
| 96 | + } |
| 97 | +} // namespace nc::fft |
0 commit comments