26 #if defined (HAVE_CONFIG_H)
41 int nargin = args.
length ();
43 if (nargin < 1 || nargin > 3)
50 int ndims = dims.
ndims ();
55 if (! args(1).isempty ())
57 double dval = args(1).double_value ();
59 error (
"%s: number of points (N) cannot be NaN", fcn);
63 error (
"%s: number of points (N) must be greater than zero", fcn);
69 double dval = args(2).double_value ();
71 error (
"%s: DIM cannot be NaN", fcn);
72 else if (dval < 1 || dval > ndims)
73 error (
"%s: DIM must be a valid dimension along which to perform FFT",
101 if (n_points == 0 || dims.
any_zero ())
219 return do_fft (args,
"fft", 0);
248 return do_fft (args,
"ifft", 1);
void resize(const dim_vector &dv, const T &rfv)
Size of the specified dimension.
ComplexNDArray fourier(int dim=1) const
ComplexNDArray ifourier(int dim=1) const
FloatComplexNDArray ifourier(int dim=1) const
FloatComplexNDArray fourier(int dim=1) const
FloatComplexNDArray ifourier(int dim=1) const
FloatComplexNDArray fourier(int dim=1) const
ComplexNDArray ifourier(int dim=1) const
ComplexNDArray fourier(int dim=1) const
Vector representing the dimensions (size) of an Array.
int first_non_singleton(int def=0) const
octave_idx_type ndims(void) const
Number of dimensions.
bool any_zero(void) const
static const idx_vector colon
octave_idx_type length(void) const
octave_value do_index_op(const octave_value_list &idx, bool resize_ok=false)
ComplexNDArray complex_array_value(bool frc_str_conv=false) const
NDArray array_value(bool frc_str_conv=false) const
bool is_single_type(void) const
FloatComplexNDArray float_complex_array_value(bool frc_str_conv=false) const
FloatNDArray float_array_value(bool frc_str_conv=false) const
bool iscomplex(void) const
dim_vector dims(void) const
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,...)
void err_wrong_type_arg(const char *name, const char *s)
static octave_value do_fft(const octave_value_list &args, const char *fcn, int type)
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()) ? '\'' :'"'))
octave_value::octave_value(const Array< char > &chm, char type) return retval