24 #if defined (HAVE_CONFIG_H) 38 #if defined (HAVE_FFTW) 39 # define FFTSRC "@sc{fftw}" 41 # define FFTSRC "@sc{fftpack}" 59 double dval = args(1).double_value ();
61 error (
"%s: number of rows (N) cannot be NaN",
fcn);
65 error (
"%s: number of rows (N) must be greater than zero",
fcn);
71 double dval = args(2).double_value ();
73 error (
"%s: number of columns (M) cannot be NaN",
fcn);
77 error (
"%s: number of columns (M) must be greater than zero",
fcn);
80 for (
int i = 0;
i <
dims.ndims ();
i++)
94 if (
dims.all_zero () || n_rows == 0 || n_cols == 0)
158 return do_fft2 (args,
"fft2", 0);
162 DEFUN (ifft2, args, ,
178 return do_fft2 (args,
"ifft2", 1);
OCTINTERP_API void print_usage(void)
#define DEFUN(name, args_name, nargout_name, doc)
Macro to define a builtin function.
void error(const char *fmt,...)
ComplexNDArray ifourier2d(void) const
static octave_value do_fft2(const octave_value_list &args, const char *fcn, int type)
FloatNDArray float_array_value(bool frc_str_conv=false) const
bool is_single_type(void) const
dim_vector dims(void) const
void resize(const dim_vector &dv, const T &rfv)
Resizing (with fill).
ComplexNDArray ifourier2d(void) const
the exceeded dimensions are set to if fewer subscripts than dimensions are the exceeding dimensions are merged into the final requested dimension For consider the following dims
FloatComplexNDArray float_complex_array_value(bool frc_str_conv=false) const
void err_wrong_type_arg(const char *name, const char *s)
FloatComplexNDArray fourier2d(void) const
return octave_value(v1.char_array_value() . concat(v2.char_array_value(), ra_idx),((a1.is_sq_string()||a2.is_sq_string()) ? '\'' :'"'))
ComplexNDArray fourier2d(void) const
octave_idx_type nint_big(double x)
octave_idx_type length(void) const
bool iscomplex(void) const
FloatComplexNDArray ifourier2d(void) const
ComplexNDArray complex_array_value(bool frc_str_conv=false) const
FloatComplexNDArray fourier2d(void) const
Vector representing the dimensions (size) of an Array.
FloatComplexNDArray ifourier2d(void) const
NDArray array_value(bool frc_str_conv=false) const
ComplexNDArray fourier2d(void) const