26 #if defined (HAVE_CONFIG_H)
45 int nargin = args.
length ();
47 if (nargin < 1 || nargin > 3)
57 double dval = args(1).double_value ();
59 error (
"%s: number of rows (N) cannot be NaN", fcn);
63 error (
"%s: number of rows (N) must be greater than zero", fcn);
69 double dval = args(2).double_value ();
71 error (
"%s: number of columns (M) cannot be NaN", fcn);
75 error (
"%s: number of columns (M) must be greater than zero", fcn);
78 for (
int i = 0; i < dims.
ndims (); i++)
92 if (dims.
all_zero () || n_rows == 0 || n_cols == 0)
156 return do_fft2 (args,
"fft2", 0);
160 DEFUN (ifft2, args, ,
176 return do_fft2 (args,
"ifft2", 1);
263 OCTAVE_END_NAMESPACE(
octave)
void resize(const dim_vector &dv, const T &rfv)
Size of the specified dimension.
ComplexNDArray ifourier2d() const
ComplexNDArray fourier2d() const
FloatComplexNDArray fourier2d() const
FloatComplexNDArray ifourier2d() const
FloatComplexNDArray ifourier2d() const
FloatComplexNDArray fourier2d() const
ComplexNDArray fourier2d() const
ComplexNDArray ifourier2d() const
Vector representing the dimensions (size) of an Array.
octave_idx_type ndims() const
Number of dimensions.
octave_idx_type length() const
ComplexNDArray complex_array_value(bool frc_str_conv=false) const
bool is_single_type() const
NDArray array_value(bool frc_str_conv=false) const
FloatComplexNDArray float_complex_array_value(bool frc_str_conv=false) const
FloatNDArray float_array_value(bool frc_str_conv=false) const
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
#define DEFUN(name, args_name, nargout_name, doc)
Macro to define a builtin function.
void() error(const char *fmt,...)
void err_wrong_type_arg(const char *name, const char *s)
octave_idx_type nint_big(double x)
return octave_value(v1.char_array_value() . concat(v2.char_array_value(), ra_idx),((a1.is_sq_string()||a2.is_sq_string()) ? '\'' :'"'))