#include "lo-mappers.h"
#include "defun-dld.h"
#include "error.h"
#include "gripes.h"
#include "oct-obj.h"
#include "utils.h"
Go to the source code of this file.
Defines | |
#define | FFTSRC "@sc{fftpack}" |
Functions | |
DEFUN_DLD (fftn, args,,"-*- texinfo -*-\n\ @deftypefn {Loadable Function} {} fftn (@var{A})\n\ @deftypefnx {Loadable Function} {} fftn (@var{A}, @var{size})\n\ Compute the N-dimensional discrete Fourier transform of @var{A} using\n\ a Fast Fourier Transform (FFT) algorithm.\n\ \n\ The optional vector argument @var{size} may be used specify the\n\ dimensions of the array to be used. If an element of @var{size} is\n\ smaller than the corresponding dimension of @var{A}, then the dimension of\n\ @var{A} is truncated prior to performing the FFT@. Otherwise, if an element\n\ of @var{size} is larger than the corresponding dimension then @var{A}\n\ is resized and padded with zeros.\n\ @seealso{ifftn, fft, fft2, fftw}\n\ @end deftypefn") | |
DEFUN_DLD (ifftn, args,,"-*- texinfo -*-\n\ @deftypefn {Loadable Function} {} ifftn (@var{A})\n\ @deftypefnx {Loadable Function} {} ifftn (@var{A}, @var{size})\n\ Compute the inverse N-dimensional discrete Fourier transform of @var{A}\n\ using a Fast Fourier Transform (FFT) algorithm.\n\ \n\ The optional vector argument @var{size} may be used specify the\n\ dimensions of the array to be used. If an element of @var{size} is\n\ smaller than the corresponding dimension of @var{A}, then the dimension of\n\ @var{A} is truncated prior to performing the inverse FFT@. Otherwise, if an\n\ element of @var{size} is larger than the corresponding dimension then @var{A}\n\ is resized and padded with zeros.\n\ @seealso{fftn, ifft, ifft2, fftw}\n\ @end deftypefn") | |
static octave_value | do_fftn (const octave_value_list &args, const char *fcn, int type) |
static octave_value do_fftn | ( | const octave_value_list & | args, | |
const char * | fcn, | |||
int | type | |||
) | [static] |
Definition at line 44 of file fftn.cc.
References dim_vector::all_zero(), arg(), octave_value::array_value(), Array< T >::columns(), octave_value::complex_array_value(), octave_value::dims(), error(), error_state, octave_value::float_array_value(), octave_value::float_complex_array_value(), ComplexNDArray::fourierNd(), NDArray::fourierNd(), FloatComplexNDArray::fourierNd(), FloatNDArray::fourierNd(), gripe_wrong_type_arg(), ComplexNDArray::ifourierNd(), NDArray::ifourierNd(), FloatComplexNDArray::ifourierNd(), FloatNDArray::ifourierNd(), octave_value::is_complex_type(), octave_value::is_real_type(), octave_value::is_single_type(), dim_vector::length(), octave_value_list::length(), NINTbig(), octave_value(), print_usage(), Array< T >::resize(), Array< T >::rows(), Matrix::transpose(), and xisnan().
Referenced by DEFUN_DLD().